@mevdragon/vidfarm-devcli 0.2.14 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/SKILL.director.md +100 -0
- package/SKILL.platform.md +66 -6
- package/dist/src/cli.js +135 -1527
- package/package.json +5 -24
- package/.env.example +0 -60
- package/auto-create-hyperframe-templates/AUTO_CREATE_HYPERFRAME_TEMPLATES.md +0 -275
- package/auto-create-hyperframe-templates/extractor-system-prompt.md +0 -128
- package/auto-create-hyperframe-templates/input-manifest.schema.json +0 -56
- package/auto-create-hyperframe-templates/lambda-memory-estimator.md +0 -118
- package/auto-create-hyperframe-templates/production-graph.schema.json +0 -314
- package/auto-create-hyperframe-templates/runbook.md +0 -198
- package/auto-create-hyperframe-templates/scripts/create-hyperframe-template.mjs +0 -368
- package/auto-create-hyperframe-templates/template-plan.schema.json +0 -311
- package/auto-create-hyperframe-templates/template-planner-prompt.md +0 -144
- package/auto-create-templates/AUTO_CREATE_TEMPLATES.md +0 -599
- package/auto-create-templates/extractor-system-prompt.md +0 -119
- package/auto-create-templates/production-graph.schema.json +0 -276
- package/auto-create-templates/runbook.md +0 -140
- package/auto-create-templates/template-plan.schema.json +0 -301
- package/auto-create-templates/template-planner-prompt.md +0 -137
- package/dist/src/account-pages-legacy.js +0 -9338
- package/dist/src/account-pages-legacy.js.map +0 -1
- package/dist/src/account-pages.js +0 -52
- package/dist/src/account-pages.js.map +0 -1
- package/dist/src/app.js +0 -13711
- package/dist/src/app.js.map +0 -1
- package/dist/src/cli.js.map +0 -1
- package/dist/src/composition-runtime.js +0 -581
- package/dist/src/composition-runtime.js.map +0 -1
- package/dist/src/config.js +0 -140
- package/dist/src/config.js.map +0 -1
- package/dist/src/context.js +0 -492
- package/dist/src/context.js.map +0 -1
- package/dist/src/dev-app-legacy.js +0 -694
- package/dist/src/dev-app-legacy.js.map +0 -1
- package/dist/src/dev-app.js +0 -6
- package/dist/src/dev-app.js.map +0 -1
- package/dist/src/dev-serve.js.map +0 -1
- package/dist/src/domain.js +0 -2
- package/dist/src/domain.js.map +0 -1
- package/dist/src/editor-chat-history.js +0 -82
- package/dist/src/editor-chat-history.js.map +0 -1
- package/dist/src/editor-chat.js +0 -312
- package/dist/src/editor-chat.js.map +0 -1
- package/dist/src/editor-dark-theme.js +0 -1128
- package/dist/src/editor-dark-theme.js.map +0 -1
- package/dist/src/frontend/flockposter-cache-store.js +0 -124
- package/dist/src/frontend/flockposter-cache-store.js.map +0 -1
- package/dist/src/frontend/homepage-client.js +0 -117
- package/dist/src/frontend/homepage-client.js.map +0 -1
- package/dist/src/frontend/homepage-shared.js +0 -4
- package/dist/src/frontend/homepage-shared.js.map +0 -1
- package/dist/src/frontend/homepage-store.js +0 -28
- package/dist/src/frontend/homepage-store.js.map +0 -1
- package/dist/src/frontend/homepage-view.js +0 -260
- package/dist/src/frontend/homepage-view.js.map +0 -1
- package/dist/src/frontend/page-runtime-client.js +0 -124
- package/dist/src/frontend/page-runtime-client.js.map +0 -1
- package/dist/src/frontend/page-runtime-store.js +0 -9
- package/dist/src/frontend/page-runtime-store.js.map +0 -1
- package/dist/src/frontend/sentry.js +0 -42
- package/dist/src/frontend/sentry.js.map +0 -1
- package/dist/src/frontend/template-editor-chat.js +0 -3760
- package/dist/src/frontend/template-editor-chat.js.map +0 -1
- package/dist/src/help-page.js +0 -333
- package/dist/src/help-page.js.map +0 -1
- package/dist/src/homepage.js +0 -919
- package/dist/src/homepage.js.map +0 -1
- package/dist/src/hyperframes/composition.js +0 -180
- package/dist/src/hyperframes/composition.js.map +0 -1
- package/dist/src/index.js +0 -16
- package/dist/src/index.js.map +0 -1
- package/dist/src/instrument.js +0 -30
- package/dist/src/instrument.js.map +0 -1
- package/dist/src/lib/crypto.js +0 -45
- package/dist/src/lib/crypto.js.map +0 -1
- package/dist/src/lib/dev-log.js +0 -54
- package/dist/src/lib/dev-log.js.map +0 -1
- package/dist/src/lib/display-name.js +0 -11
- package/dist/src/lib/display-name.js.map +0 -1
- package/dist/src/lib/ids.js +0 -24
- package/dist/src/lib/ids.js.map +0 -1
- package/dist/src/lib/images.js +0 -19
- package/dist/src/lib/images.js.map +0 -1
- package/dist/src/lib/json.js +0 -15
- package/dist/src/lib/json.js.map +0 -1
- package/dist/src/lib/template-dna.js +0 -543
- package/dist/src/lib/template-dna.js.map +0 -1
- package/dist/src/lib/template-paths.js +0 -28
- package/dist/src/lib/template-paths.js.map +0 -1
- package/dist/src/lib/template-style-options.js +0 -203
- package/dist/src/lib/template-style-options.js.map +0 -1
- package/dist/src/lib/time.js +0 -7
- package/dist/src/lib/time.js.map +0 -1
- package/dist/src/lib/video-quality-harness.js +0 -60
- package/dist/src/lib/video-quality-harness.js.map +0 -1
- package/dist/src/page-runtime.js +0 -2
- package/dist/src/page-runtime.js.map +0 -1
- package/dist/src/page-shell.js +0 -1315
- package/dist/src/page-shell.js.map +0 -1
- package/dist/src/primitive-context.js +0 -299
- package/dist/src/primitive-context.js.map +0 -1
- package/dist/src/primitive-registry.js +0 -2181
- package/dist/src/primitive-registry.js.map +0 -1
- package/dist/src/primitive-sdk.js +0 -4
- package/dist/src/primitive-sdk.js.map +0 -1
- package/dist/src/primitives/remotion/html-image.js +0 -30
- package/dist/src/primitives/remotion/html-image.js.map +0 -1
- package/dist/src/primitives/remotion/media-slideshow.js +0 -60
- package/dist/src/primitives/remotion/media-slideshow.js.map +0 -1
- package/dist/src/react-page-shell.js +0 -35
- package/dist/src/react-page-shell.js.map +0 -1
- package/dist/src/ready-post-schedule-component.js +0 -1515
- package/dist/src/ready-post-schedule-component.js.map +0 -1
- package/dist/src/registry.js +0 -296
- package/dist/src/registry.js.map +0 -1
- package/dist/src/runtime.js +0 -31
- package/dist/src/runtime.js.map +0 -1
- package/dist/src/services/api-call-history.js +0 -249
- package/dist/src/services/api-call-history.js.map +0 -1
- package/dist/src/services/auth.js +0 -152
- package/dist/src/services/auth.js.map +0 -1
- package/dist/src/services/billing.js +0 -231
- package/dist/src/services/billing.js.map +0 -1
- package/dist/src/services/chat-threads.js +0 -92
- package/dist/src/services/chat-threads.js.map +0 -1
- package/dist/src/services/fork-access.js +0 -93
- package/dist/src/services/fork-access.js.map +0 -1
- package/dist/src/services/fork-manifest.js +0 -43
- package/dist/src/services/fork-manifest.js.map +0 -1
- package/dist/src/services/ghostcut.js +0 -132
- package/dist/src/services/ghostcut.js.map +0 -1
- package/dist/src/services/hyperframes.js +0 -1014
- package/dist/src/services/hyperframes.js.map +0 -1
- package/dist/src/services/job-capacity.js +0 -14
- package/dist/src/services/job-capacity.js.map +0 -1
- package/dist/src/services/job-logs.js +0 -197
- package/dist/src/services/job-logs.js.map +0 -1
- package/dist/src/services/jobs.js +0 -136
- package/dist/src/services/jobs.js.map +0 -1
- package/dist/src/services/media-processing.js +0 -743
- package/dist/src/services/media-processing.js.map +0 -1
- package/dist/src/services/primitive-media-lambda.js +0 -280
- package/dist/src/services/primitive-media-lambda.js.map +0 -1
- package/dist/src/services/providers.js +0 -2870
- package/dist/src/services/providers.js.map +0 -1
- package/dist/src/services/rate-limits.js +0 -237
- package/dist/src/services/rate-limits.js.map +0 -1
- package/dist/src/services/remotion.js +0 -688
- package/dist/src/services/remotion.js.map +0 -1
- package/dist/src/services/serverless-auth.js +0 -374
- package/dist/src/services/serverless-auth.js.map +0 -1
- package/dist/src/services/serverless-jobs.js +0 -1074
- package/dist/src/services/serverless-jobs.js.map +0 -1
- package/dist/src/services/serverless-provider-keys.js +0 -401
- package/dist/src/services/serverless-provider-keys.js.map +0 -1
- package/dist/src/services/serverless-records.js +0 -1088
- package/dist/src/services/serverless-records.js.map +0 -1
- package/dist/src/services/serverless-template-configs.js +0 -67
- package/dist/src/services/serverless-template-configs.js.map +0 -1
- package/dist/src/services/storage.js +0 -383
- package/dist/src/services/storage.js.map +0 -1
- package/dist/src/services/template-certification.js +0 -475
- package/dist/src/services/template-certification.js.map +0 -1
- package/dist/src/services/template-loader.js +0 -99
- package/dist/src/services/template-loader.js.map +0 -1
- package/dist/src/services/template-runtime-bundles.js +0 -217
- package/dist/src/services/template-runtime-bundles.js.map +0 -1
- package/dist/src/services/template-sources.js +0 -1017
- package/dist/src/services/template-sources.js.map +0 -1
- package/dist/src/services/video-normalization.js +0 -2
- package/dist/src/services/video-normalization.js.map +0 -1
- package/dist/src/services/webhooks.js +0 -62
- package/dist/src/services/webhooks.js.map +0 -1
- package/dist/src/template-editor-pages.js +0 -2491
- package/dist/src/template-editor-pages.js.map +0 -1
- package/dist/src/template-editor-shell.js +0 -2702
- package/dist/src/template-editor-shell.js.map +0 -1
- package/dist/src/template-sdk.js +0 -4
- package/dist/src/template-sdk.js.map +0 -1
- package/dist/src/worker.js +0 -17
- package/dist/src/worker.js.map +0 -1
- package/public/assets/homepage-app.js +0 -54
- package/public/assets/homepage-client-app.js +0 -80
- package/public/assets/page-runtime-client-app.js +0 -94
- package/readme.secret.md +0 -89
- package/templates/vidfarm_template_0000/README.md +0 -106
- package/templates/vidfarm_template_0000/SKILL.md +0 -266
- package/templates/vidfarm_template_0000/assets/Abel-Regular.ttf +0 -0
- package/templates/vidfarm_template_0000/assets/DMSerifDisplay-Regular.ttf +0 -0
- package/templates/vidfarm_template_0000/assets/Montserrat[wght].ttf +0 -0
- package/templates/vidfarm_template_0000/assets/SourceCodePro[wght].ttf +0 -0
- package/templates/vidfarm_template_0000/assets/TikTokSans-SemiBold.ttf +0 -0
- package/templates/vidfarm_template_0000/assets/Yesteryear-Regular.ttf +0 -0
- package/templates/vidfarm_template_0000/composition.json +0 -11
- package/templates/vidfarm_template_0000/src/lib/images.js +0 -221
- package/templates/vidfarm_template_0000/src/remotion/Root.js +0 -33
- package/templates/vidfarm_template_0000/src/remotion/index.js +0 -3
- package/templates/vidfarm_template_0000/src/sdk.js +0 -3
- package/templates/vidfarm_template_0000/src/style-options.js +0 -200
- package/templates/vidfarm_template_0000/src/template-dna.js +0 -9
- package/templates/vidfarm_template_0000/src/template.js +0 -1566
- package/templates/vidfarm_template_0000/template.config.json +0 -21
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
var mb=Object.create;var Cg=Object.defineProperty;var hb=Object.getOwnPropertyDescriptor;var gb=Object.getOwnPropertyNames;var Sb=Object.getPrototypeOf,yb=Object.prototype.hasOwnProperty;var qr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var _b=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gb(t))!yb.call(e,o)&&o!==r&&Cg(e,o,{get:()=>t[o],enumerable:!(n=hb(t,o))||n.enumerable});return e};var fr=(e,t,r)=>(r=e!=null?mb(Sb(e)):{},_b(t||!e||!e.__esModule?Cg(r,"default",{value:e,enumerable:!0}):r,e));var TE=qr(V=>{"use strict";var Ra=Symbol.for("react.element"),JA=Symbol.for("react.portal"),QA=Symbol.for("react.fragment"),ZA=Symbol.for("react.strict_mode"),eM=Symbol.for("react.profiler"),tM=Symbol.for("react.provider"),rM=Symbol.for("react.context"),nM=Symbol.for("react.forward_ref"),oM=Symbol.for("react.suspense"),iM=Symbol.for("react.memo"),sM=Symbol.for("react.lazy"),dE=Symbol.iterator;function aM(e){return e===null||typeof e!="object"?null:(e=dE&&e[dE]||e["@@iterator"],typeof e=="function"?e:null)}var mE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hE=Object.assign,gE={};function Fi(e,t,r){this.props=e,this.context=t,this.refs=gE,this.updater=r||mE}Fi.prototype.isReactComponent={};Fi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function SE(){}SE.prototype=Fi.prototype;function lm(e,t,r){this.props=e,this.context=t,this.refs=gE,this.updater=r||mE}var cm=lm.prototype=new SE;cm.constructor=lm;hE(cm,Fi.prototype);cm.isPureReactComponent=!0;var pE=Array.isArray,yE=Object.prototype.hasOwnProperty,um={current:null},_E={key:!0,ref:!0,__self:!0,__source:!0};function vE(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)yE.call(t,n)&&!_E.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)o[n]===void 0&&(o[n]=a[n]);return{$$typeof:Ra,type:e,key:i,ref:s,props:o,_owner:um.current}}function lM(e,t){return{$$typeof:Ra,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ra}function cM(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var fE=/\/+/g;function am(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cM(""+e.key):t.toString(36)}function au(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ra:case JA:s=!0}}if(s)return s=e,o=o(s),e=n===""?"."+am(s,0):n,pE(o)?(r="",e!=null&&(r=e.replace(fE,"$&/")+"/"),au(o,t,r,"",function(c){return c})):o!=null&&(dm(o)&&(o=lM(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(fE,"$&/")+"/")+e)),t.push(o)),1;if(s=0,n=n===""?".":n+":",pE(e))for(var a=0;a<e.length;a++){i=e[a];var l=n+am(i,a);s+=au(i,t,r,l,o)}else if(l=aM(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=n+am(i,a++),s+=au(i,t,r,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function su(e,t,r){if(e==null)return e;var n=[],o=0;return au(e,n,"","",function(i){return t.call(r,i,o++)}),n}function uM(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var yt={current:null},lu={transition:null},dM={ReactCurrentDispatcher:yt,ReactCurrentBatchConfig:lu,ReactCurrentOwner:um};function EE(){throw Error("act(...) is not supported in production builds of React.")}V.Children={map:su,forEach:function(e,t,r){su(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return su(e,function(){t++}),t},toArray:function(e){return su(e,function(t){return t})||[]},only:function(e){if(!dm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=Fi;V.Fragment=QA;V.Profiler=eM;V.PureComponent=lm;V.StrictMode=ZA;V.Suspense=oM;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dM;V.act=EE;V.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=hE({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=um.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)yE.call(t,l)&&!_E.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];n.children=a}return{$$typeof:Ra,type:e.type,key:o,ref:i,props:n,_owner:s}};V.createContext=function(e){return e={$$typeof:rM,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tM,_context:e},e.Consumer=e};V.createElement=vE;V.createFactory=function(e){var t=vE.bind(null,e);return t.type=e,t};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:nM,render:e}};V.isValidElement=dm;V.lazy=function(e){return{$$typeof:sM,_payload:{_status:-1,_result:e},_init:uM}};V.memo=function(e,t){return{$$typeof:iM,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=lu.transition;lu.transition={};try{e()}finally{lu.transition=t}};V.unstable_act=EE;V.useCallback=function(e,t){return yt.current.useCallback(e,t)};V.useContext=function(e){return yt.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return yt.current.useDeferredValue(e)};V.useEffect=function(e,t){return yt.current.useEffect(e,t)};V.useId=function(){return yt.current.useId()};V.useImperativeHandle=function(e,t,r){return yt.current.useImperativeHandle(e,t,r)};V.useInsertionEffect=function(e,t){return yt.current.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return yt.current.useLayoutEffect(e,t)};V.useMemo=function(e,t){return yt.current.useMemo(e,t)};V.useReducer=function(e,t,r){return yt.current.useReducer(e,t,r)};V.useRef=function(e){return yt.current.useRef(e)};V.useState=function(e){return yt.current.useState(e)};V.useSyncExternalStore=function(e,t,r){return yt.current.useSyncExternalStore(e,t,r)};V.useTransition=function(){return yt.current.useTransition()};V.version="18.3.1"});var un=qr((dW,IE)=>{"use strict";IE.exports=TE()});var HE=qr(he=>{"use strict";function ym(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(0<cu(o,t))e[n]=t,e[r]=o,r=n;else break e}}function br(e){return e.length===0?null:e[0]}function du(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,i=o>>>1;n<i;){var s=2*(n+1)-1,a=e[s],l=s+1,c=e[l];if(0>cu(a,r))l<o&&0>cu(c,a)?(e[n]=c,e[l]=r,n=l):(e[n]=a,e[s]=r,n=s);else if(l<o&&0>cu(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function cu(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(AE=performance,he.unstable_now=function(){return AE.now()}):(hm=Date,ME=hm.now(),he.unstable_now=function(){return hm.now()-ME});var AE,hm,ME,zr=[],Fn=[],hM=1,or=null,at=3,pu=!1,Uo=!1,Aa=!1,PE=typeof setTimeout=="function"?setTimeout:null,DE=typeof clearTimeout=="function"?clearTimeout:null,LE=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _m(e){for(var t=br(Fn);t!==null;){if(t.callback===null)du(Fn);else if(t.startTime<=e)du(Fn),t.sortIndex=t.expirationTime,ym(zr,t);else break;t=br(Fn)}}function vm(e){if(Aa=!1,_m(e),!Uo)if(br(zr)!==null)Uo=!0,Tm(Em);else{var t=br(Fn);t!==null&&Im(vm,t.startTime-e)}}function Em(e,t){Uo=!1,Aa&&(Aa=!1,DE(Ma),Ma=-1),pu=!0;var r=at;try{for(_m(t),or=br(zr);or!==null&&(!(or.expirationTime>t)||e&&!FE());){var n=or.callback;if(typeof n=="function"){or.callback=null,at=or.priorityLevel;var o=n(or.expirationTime<=t);t=he.unstable_now(),typeof o=="function"?or.callback=o:or===br(zr)&&du(zr),_m(t)}else du(zr);or=br(zr)}if(or!==null)var i=!0;else{var s=br(Fn);s!==null&&Im(vm,s.startTime-t),i=!1}return i}finally{or=null,at=r,pu=!1}}var fu=!1,uu=null,Ma=-1,UE=5,BE=-1;function FE(){return!(he.unstable_now()-BE<UE)}function gm(){if(uu!==null){var e=he.unstable_now();BE=e;var t=!0;try{t=uu(!0,e)}finally{t?Ca():(fu=!1,uu=null)}}else fu=!1}var Ca;typeof LE=="function"?Ca=function(){LE(gm)}:typeof MessageChannel<"u"?(Sm=new MessageChannel,OE=Sm.port2,Sm.port1.onmessage=gm,Ca=function(){OE.postMessage(null)}):Ca=function(){PE(gm,0)};var Sm,OE;function Tm(e){uu=e,fu||(fu=!0,Ca())}function Im(e,t){Ma=PE(function(){e(he.unstable_now())},t)}he.unstable_IdlePriority=5;he.unstable_ImmediatePriority=1;he.unstable_LowPriority=4;he.unstable_NormalPriority=3;he.unstable_Profiling=null;he.unstable_UserBlockingPriority=2;he.unstable_cancelCallback=function(e){e.callback=null};he.unstable_continueExecution=function(){Uo||pu||(Uo=!0,Tm(Em))};he.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):UE=0<e?Math.floor(1e3/e):5};he.unstable_getCurrentPriorityLevel=function(){return at};he.unstable_getFirstCallbackNode=function(){return br(zr)};he.unstable_next=function(e){switch(at){case 1:case 2:case 3:var t=3;break;default:t=at}var r=at;at=t;try{return e()}finally{at=r}};he.unstable_pauseExecution=function(){};he.unstable_requestPaint=function(){};he.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=at;at=e;try{return t()}finally{at=r}};he.unstable_scheduleCallback=function(e,t,r){var n=he.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:hM++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>n?(e.sortIndex=r,ym(Fn,e),br(zr)===null&&e===br(Fn)&&(Aa?(DE(Ma),Ma=-1):Aa=!0,Im(vm,r-n))):(e.sortIndex=o,ym(zr,e),Uo||pu||(Uo=!0,Tm(Em))),e};he.unstable_shouldYield=FE;he.unstable_wrapCallback=function(e){var t=at;return function(){var r=at;at=t;try{return e.apply(this,arguments)}finally{at=r}}}});var $E=qr((MW,zE)=>{"use strict";zE.exports=HE()});var VI=qr(Gt=>{"use strict";var gM=un(),jt=$E();function w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var K0=new Set,el={};function Xo(e,t){ss(e,t),ss(e+"Capture",t)}function ss(e,t){for(el[e]=t,e=0;e<t.length;e++)K0.add(t[e])}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vm=Object.prototype.hasOwnProperty,SM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jE={},WE={};function yM(e){return Vm.call(WE,e)?!0:Vm.call(jE,e)?!1:SM.test(e)?WE[e]=!0:(jE[e]=!0,!1)}function _M(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vM(e,t,r,n){if(t===null||typeof t>"u"||_M(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bh=/[\-:]([a-z])/g;function Fh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bh,Fh);Ze[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bh,Fh);Ze[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bh,Fh);Ze[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hh(e,t,r,n){var o=Ze.hasOwnProperty(t)?Ze[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vM(t,r,o,n)&&(r=null),n||o===null?yM(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var En=gM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mu=Symbol.for("react.element"),$i=Symbol.for("react.portal"),ji=Symbol.for("react.fragment"),zh=Symbol.for("react.strict_mode"),Ym=Symbol.for("react.profiler"),X0=Symbol.for("react.provider"),J0=Symbol.for("react.context"),$h=Symbol.for("react.forward_ref"),qm=Symbol.for("react.suspense"),Km=Symbol.for("react.suspense_list"),jh=Symbol.for("react.memo"),zn=Symbol.for("react.lazy"),Q0=Symbol.for("react.offscreen"),GE=Symbol.iterator;function La(e){return e===null||typeof e!="object"?null:(e=GE&&e[GE]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,bm;function za(e){if(bm===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);bm=t&&t[1]||""}return`
|
|
2
|
-
`+bm+e}var xm=!1;function km(e,t){if(!e||xm)return"";xm=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
3
|
-
`),i=n.stack.split(`
|
|
4
|
-
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
|
|
5
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{xm=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?za(e):""}function EM(e){switch(e.tag){case 5:return za(e.type);case 16:return za("Lazy");case 13:return za("Suspense");case 19:return za("SuspenseList");case 0:case 2:case 15:return e=km(e.type,!1),e;case 11:return e=km(e.type.render,!1),e;case 1:return e=km(e.type,!0),e;default:return""}}function Xm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ji:return"Fragment";case $i:return"Portal";case Ym:return"Profiler";case zh:return"StrictMode";case qm:return"Suspense";case Km:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J0:return(e.displayName||"Context")+".Consumer";case X0:return(e._context.displayName||"Context")+".Provider";case $h:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jh:return t=e.displayName||null,t!==null?t:Xm(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return Xm(e(t))}catch{}}return null}function TM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xm(t);case 8:return t===zh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function to(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function IM(e){var t=Z0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hu(e){e._valueTracker||(e._valueTracker=IM(e))}function eT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Z0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ju(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jm(e,t){var r=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function VE(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=to(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tT(e,t){t=t.checked,t!=null&&Hh(e,"checked",t,!1)}function Qm(e,t){tT(e,t);var r=to(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Zm(e,t.type,to(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YE(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Zm(e,t,r){(t!=="number"||ju(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $a=Array.isArray;function es(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+to(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function eh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(w(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qE(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(w(92));if($a(r)){if(1<r.length)throw Error(w(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:to(r)}}function rT(e,t){var r=to(t.value),n=to(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function KE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nT(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function th(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nT(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gu,oT=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(gu=gu||document.createElement("div"),gu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ga={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bM=["Webkit","ms","Moz","O"];Object.keys(Ga).forEach(function(e){bM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ga[t]=Ga[e]})});function iT(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ga.hasOwnProperty(e)&&Ga[e]?(""+t).trim():t+"px"}function sT(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=iT(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var xM=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rh(e,t){if(t){if(xM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(w(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(w(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(w(61))}if(t.style!=null&&typeof t.style!="object")throw Error(w(62))}}function nh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oh=null;function Wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ih=null,ts=null,rs=null;function XE(e){if(e=_l(e)){if(typeof ih!="function")throw Error(w(280));var t=e.stateNode;t&&(t=Sd(t),ih(e.stateNode,e.type,t))}}function aT(e){ts?rs?rs.push(e):rs=[e]:ts=e}function lT(){if(ts){var e=ts,t=rs;if(rs=ts=null,XE(e),t)for(e=0;e<t.length;e++)XE(t[e])}}function cT(e,t){return e(t)}function uT(){}var wm=!1;function dT(e,t,r){if(wm)return e(t,r);wm=!0;try{return cT(e,t,r)}finally{wm=!1,(ts!==null||rs!==null)&&(uT(),lT())}}function rl(e,t){var r=e.stateNode;if(r===null)return null;var n=Sd(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(w(231,t,typeof r));return r}var sh=!1;if(Sn)try{Hi={},Object.defineProperty(Hi,"passive",{get:function(){sh=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{sh=!1}var Hi;function kM(e,t,r,n,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Va=!1,Wu=null,Gu=!1,ah=null,wM={onError:function(e){Va=!0,Wu=e}};function RM(e,t,r,n,o,i,s,a,l){Va=!1,Wu=null,kM.apply(wM,arguments)}function NM(e,t,r,n,o,i,s,a,l){if(RM.apply(this,arguments),Va){if(Va){var c=Wu;Va=!1,Wu=null}else throw Error(w(198));Gu||(Gu=!0,ah=c)}}function Jo(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function pT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function JE(e){if(Jo(e)!==e)throw Error(w(188))}function CM(e){var t=e.alternate;if(!t){if(t=Jo(e),t===null)throw Error(w(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return JE(o),e;if(i===n)return JE(o),t;i=i.sibling}throw Error(w(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s)throw Error(w(189))}}if(r.alternate!==n)throw Error(w(190))}if(r.tag!==3)throw Error(w(188));return r.stateNode.current===r?e:t}function fT(e){return e=CM(e),e!==null?mT(e):null}function mT(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mT(e);if(t!==null)return t;e=e.sibling}return null}var hT=jt.unstable_scheduleCallback,QE=jt.unstable_cancelCallback,AM=jt.unstable_shouldYield,MM=jt.unstable_requestPaint,Me=jt.unstable_now,LM=jt.unstable_getCurrentPriorityLevel,Gh=jt.unstable_ImmediatePriority,gT=jt.unstable_UserBlockingPriority,Vu=jt.unstable_NormalPriority,OM=jt.unstable_LowPriority,ST=jt.unstable_IdlePriority,fd=null,Gr=null;function PM(e){if(Gr&&typeof Gr.onCommitFiberRoot=="function")try{Gr.onCommitFiberRoot(fd,e,void 0,(e.current.flags&128)===128)}catch{}}var Nr=Math.clz32?Math.clz32:BM,DM=Math.log,UM=Math.LN2;function BM(e){return e>>>=0,e===0?32:31-(DM(e)/UM|0)|0}var Su=64,yu=4194304;function ja(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=ja(a):(i&=s,i!==0&&(n=ja(i)))}else s=r&~o,s!==0?n=ja(s):i!==0&&(n=ja(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Nr(t),o=1<<r,n|=e[r],t&=~o;return n}function FM(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function HM(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Nr(i),a=1<<s,l=o[s];l===-1?((a&r)===0||(a&n)!==0)&&(o[s]=FM(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function lh(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yT(){var e=Su;return Su<<=1,(Su&4194240)===0&&(Su=64),e}function Rm(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Sl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nr(t),e[t]=r}function zM(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Nr(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function Vh(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Nr(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ae=0;function _T(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var vT,Yh,ET,TT,IT,ch=!1,_u=[],Yn=null,qn=null,Kn=null,nl=new Map,ol=new Map,jn=[],$M="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ZE(e,t){switch(e){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ol.delete(t.pointerId)}}function Oa(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_l(t),t!==null&&Yh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function jM(e,t,r,n,o){switch(t){case"focusin":return Yn=Oa(Yn,e,t,r,n,o),!0;case"dragenter":return qn=Oa(qn,e,t,r,n,o),!0;case"mouseover":return Kn=Oa(Kn,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return nl.set(i,Oa(nl.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,ol.set(i,Oa(ol.get(i)||null,e,t,r,n,o)),!0}return!1}function bT(e){var t=Ho(e.target);if(t!==null){var r=Jo(t);if(r!==null){if(t=r.tag,t===13){if(t=pT(r),t!==null){e.blockedOn=t,IT(e.priority,function(){ET(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=uh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);oh=n,r.target.dispatchEvent(n),oh=null}else return t=_l(r),t!==null&&Yh(t),e.blockedOn=r,!1;t.shift()}return!0}function e0(e,t,r){Lu(e)&&r.delete(t)}function WM(){ch=!1,Yn!==null&&Lu(Yn)&&(Yn=null),qn!==null&&Lu(qn)&&(qn=null),Kn!==null&&Lu(Kn)&&(Kn=null),nl.forEach(e0),ol.forEach(e0)}function Pa(e,t){e.blockedOn===t&&(e.blockedOn=null,ch||(ch=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,WM)))}function il(e){function t(o){return Pa(o,e)}if(0<_u.length){Pa(_u[0],e);for(var r=1;r<_u.length;r++){var n=_u[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Yn!==null&&Pa(Yn,e),qn!==null&&Pa(qn,e),Kn!==null&&Pa(Kn,e),nl.forEach(t),ol.forEach(t),r=0;r<jn.length;r++)n=jn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<jn.length&&(r=jn[0],r.blockedOn===null);)bT(r),r.blockedOn===null&&jn.shift()}var ns=En.ReactCurrentBatchConfig,qu=!0;function GM(e,t,r,n){var o=ae,i=ns.transition;ns.transition=null;try{ae=1,qh(e,t,r,n)}finally{ae=o,ns.transition=i}}function VM(e,t,r,n){var o=ae,i=ns.transition;ns.transition=null;try{ae=4,qh(e,t,r,n)}finally{ae=o,ns.transition=i}}function qh(e,t,r,n){if(qu){var o=uh(e,t,r,n);if(o===null)Pm(e,t,n,Ku,r),ZE(e,n);else if(jM(o,e,t,r,n))n.stopPropagation();else if(ZE(e,n),t&4&&-1<$M.indexOf(e)){for(;o!==null;){var i=_l(o);if(i!==null&&vT(i),i=uh(e,t,r,n),i===null&&Pm(e,t,n,Ku,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else Pm(e,t,n,null,r)}}var Ku=null;function uh(e,t,r,n){if(Ku=null,e=Wh(n),e=Ho(e),e!==null)if(t=Jo(e),t===null)e=null;else if(r=t.tag,r===13){if(e=pT(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ku=e,null}function xT(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(LM()){case Gh:return 1;case gT:return 4;case Vu:case OM:return 16;case ST:return 536870912;default:return 16}default:return 16}}var Gn=null,Kh=null,Ou=null;function kT(){if(Ou)return Ou;var e,t=Kh,r=t.length,n,o="value"in Gn?Gn.value:Gn.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===o[i-n];n++);return Ou=o.slice(e,1<n?1-n:void 0)}function Pu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vu(){return!0}function t0(){return!1}function Wt(e){function t(r,n,o,i,s){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?vu:t0,this.isPropagationStopped=t0,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=vu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=vu)},persist:function(){},isPersistent:vu}),t}var fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xh=Wt(fs),yl=we({},fs,{view:0,detail:0}),YM=Wt(yl),Nm,Cm,Da,md=we({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Da&&(Da&&e.type==="mousemove"?(Nm=e.screenX-Da.screenX,Cm=e.screenY-Da.screenY):Cm=Nm=0,Da=e),Nm)},movementY:function(e){return"movementY"in e?e.movementY:Cm}}),r0=Wt(md),qM=we({},md,{dataTransfer:0}),KM=Wt(qM),XM=we({},yl,{relatedTarget:0}),Am=Wt(XM),JM=we({},fs,{animationName:0,elapsedTime:0,pseudoElement:0}),QM=Wt(JM),ZM=we({},fs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e2=Wt(ZM),t2=we({},fs,{data:0}),n0=Wt(t2),r2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},o2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o2[e])?!!t[e]:!1}function Jh(){return i2}var s2=we({},yl,{key:function(e){if(e.key){var t=r2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jh,charCode:function(e){return e.type==="keypress"?Pu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a2=Wt(s2),l2=we({},md,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o0=Wt(l2),c2=we({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jh}),u2=Wt(c2),d2=we({},fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),p2=Wt(d2),f2=we({},md,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),m2=Wt(f2),h2=[9,13,27,32],Qh=Sn&&"CompositionEvent"in window,Ya=null;Sn&&"documentMode"in document&&(Ya=document.documentMode);var g2=Sn&&"TextEvent"in window&&!Ya,wT=Sn&&(!Qh||Ya&&8<Ya&&11>=Ya),i0=" ",s0=!1;function RT(e,t){switch(e){case"keyup":return h2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wi=!1;function S2(e,t){switch(e){case"compositionend":return NT(t);case"keypress":return t.which!==32?null:(s0=!0,i0);case"textInput":return e=t.data,e===i0&&s0?null:e;default:return null}}function y2(e,t){if(Wi)return e==="compositionend"||!Qh&&RT(e,t)?(e=kT(),Ou=Kh=Gn=null,Wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wT&&t.locale!=="ko"?null:t.data;default:return null}}var _2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function a0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_2[e.type]:t==="textarea"}function CT(e,t,r,n){aT(n),t=Xu(t,"onChange"),0<t.length&&(r=new Xh("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qa=null,sl=null;function v2(e){zT(e,0)}function hd(e){var t=Yi(e);if(eT(t))return e}function E2(e,t){if(e==="change")return t}var AT=!1;Sn&&(Sn?(Tu="oninput"in document,Tu||(Mm=document.createElement("div"),Mm.setAttribute("oninput","return;"),Tu=typeof Mm.oninput=="function"),Eu=Tu):Eu=!1,AT=Eu&&(!document.documentMode||9<document.documentMode));var Eu,Tu,Mm;function l0(){qa&&(qa.detachEvent("onpropertychange",MT),sl=qa=null)}function MT(e){if(e.propertyName==="value"&&hd(sl)){var t=[];CT(t,sl,e,Wh(e)),dT(v2,t)}}function T2(e,t,r){e==="focusin"?(l0(),qa=t,sl=r,qa.attachEvent("onpropertychange",MT)):e==="focusout"&&l0()}function I2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hd(sl)}function b2(e,t){if(e==="click")return hd(t)}function x2(e,t){if(e==="input"||e==="change")return hd(t)}function k2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ar=typeof Object.is=="function"?Object.is:k2;function al(e,t){if(Ar(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!Vm.call(t,o)||!Ar(e[o],t[o]))return!1}return!0}function c0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function u0(e,t){var r=c0(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=c0(r)}}function LT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?LT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OT(){for(var e=window,t=ju();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ju(e.document)}return t}function Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function w2(e){var t=OT(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&<(r.ownerDocument.documentElement,r)){if(n!==null&&Zh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=u0(r,i);var s=u0(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var R2=Sn&&"documentMode"in document&&11>=document.documentMode,Gi=null,dh=null,Ka=null,ph=!1;function d0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ph||Gi==null||Gi!==ju(n)||(n=Gi,"selectionStart"in n&&Zh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ka&&al(Ka,n)||(Ka=n,n=Xu(dh,"onSelect"),0<n.length&&(t=new Xh("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Gi)))}function Iu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Vi={animationend:Iu("Animation","AnimationEnd"),animationiteration:Iu("Animation","AnimationIteration"),animationstart:Iu("Animation","AnimationStart"),transitionend:Iu("Transition","TransitionEnd")},Lm={},PT={};Sn&&(PT=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function gd(e){if(Lm[e])return Lm[e];if(!Vi[e])return e;var t=Vi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in PT)return Lm[e]=t[r];return e}var DT=gd("animationend"),UT=gd("animationiteration"),BT=gd("animationstart"),FT=gd("transitionend"),HT=new Map,p0="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function no(e,t){HT.set(e,t),Xo(t,[e])}for(bu=0;bu<p0.length;bu++)xu=p0[bu],f0=xu.toLowerCase(),m0=xu[0].toUpperCase()+xu.slice(1),no(f0,"on"+m0);var xu,f0,m0,bu;no(DT,"onAnimationEnd");no(UT,"onAnimationIteration");no(BT,"onAnimationStart");no("dblclick","onDoubleClick");no("focusin","onFocus");no("focusout","onBlur");no(FT,"onTransitionEnd");ss("onMouseEnter",["mouseout","mouseover"]);ss("onMouseLeave",["mouseout","mouseover"]);ss("onPointerEnter",["pointerout","pointerover"]);ss("onPointerLeave",["pointerout","pointerover"]);Xo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),N2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wa));function h0(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,NM(n,t,void 0,e),e.currentTarget=null}function zT(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;h0(o,a,c),i=l}else for(s=0;s<n.length;s++){if(a=n[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;h0(o,a,c),i=l}}}if(Gu)throw e=ah,Gu=!1,ah=null,e}function ve(e,t){var r=t[Sh];r===void 0&&(r=t[Sh]=new Set);var n=e+"__bubble";r.has(n)||($T(t,e,2,!1),r.add(n))}function Om(e,t,r){var n=0;t&&(n|=4),$T(r,e,n,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function ll(e){if(!e[ku]){e[ku]=!0,K0.forEach(function(r){r!=="selectionchange"&&(N2.has(r)||Om(r,!1,e),Om(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,Om("selectionchange",!1,t))}}function $T(e,t,r,n){switch(xT(t)){case 1:var o=GM;break;case 4:o=VM;break;default:o=qh}r=o.bind(null,t,r,e),o=void 0,!sh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Pm(e,t,r,n,o){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Ho(a),s===null)return;if(l=s.tag,l===5||l===6){n=i=s;continue e}a=a.parentNode}}n=n.return}dT(function(){var c=i,d=Wh(r),u=[];e:{var p=HT.get(e);if(p!==void 0){var f=Xh,m=e;switch(e){case"keypress":if(Pu(r)===0)break e;case"keydown":case"keyup":f=a2;break;case"focusin":m="focus",f=Am;break;case"focusout":m="blur",f=Am;break;case"beforeblur":case"afterblur":f=Am;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=r0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=KM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=u2;break;case DT:case UT:case BT:f=QM;break;case FT:f=p2;break;case"scroll":f=YM;break;case"wheel":f=m2;break;case"copy":case"cut":case"paste":f=e2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=o0}var _=(t&4)!==0,I=!_&&e==="scroll",g=_?p!==null?p+"Capture":null:p;_=[];for(var h=c,S;h!==null;){S=h;var T=S.stateNode;if(S.tag===5&&T!==null&&(S=T,g!==null&&(T=rl(h,g),T!=null&&_.push(cl(h,T,S)))),I)break;h=h.return}0<_.length&&(p=new f(p,m,null,r,d),u.push({event:p,listeners:_}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&r!==oh&&(m=r.relatedTarget||r.fromElement)&&(Ho(m)||m[yn]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(m=r.relatedTarget||r.toElement,f=c,m=m?Ho(m):null,m!==null&&(I=Jo(m),m!==I||m.tag!==5&&m.tag!==6)&&(m=null)):(f=null,m=c),f!==m)){if(_=r0,T="onMouseLeave",g="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(_=o0,T="onPointerLeave",g="onPointerEnter",h="pointer"),I=f==null?p:Yi(f),S=m==null?p:Yi(m),p=new _(T,h+"leave",f,r,d),p.target=I,p.relatedTarget=S,T=null,Ho(d)===c&&(_=new _(g,h+"enter",m,r,d),_.target=S,_.relatedTarget=I,T=_),I=T,f&&m)t:{for(_=f,g=m,h=0,S=_;S;S=zi(S))h++;for(S=0,T=g;T;T=zi(T))S++;for(;0<h-S;)_=zi(_),h--;for(;0<S-h;)g=zi(g),S--;for(;h--;){if(_===g||g!==null&&_===g.alternate)break t;_=zi(_),g=zi(g)}_=null}else _=null;f!==null&&g0(u,p,f,_,!1),m!==null&&I!==null&&g0(u,I,m,_,!0)}}e:{if(p=c?Yi(c):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var R=E2;else if(a0(p))if(AT)R=x2;else{R=I2;var k=T2}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(R=b2);if(R&&(R=R(e,c))){CT(u,R,r,d);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&Zm(p,"number",p.value)}switch(k=c?Yi(c):window,e){case"focusin":(a0(k)||k.contentEditable==="true")&&(Gi=k,dh=c,Ka=null);break;case"focusout":Ka=dh=Gi=null;break;case"mousedown":ph=!0;break;case"contextmenu":case"mouseup":case"dragend":ph=!1,d0(u,r,d);break;case"selectionchange":if(R2)break;case"keydown":case"keyup":d0(u,r,d)}var v;if(Qh)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Wi?RT(e,r)&&(x="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(x="onCompositionStart");x&&(wT&&r.locale!=="ko"&&(Wi||x!=="onCompositionStart"?x==="onCompositionEnd"&&Wi&&(v=kT()):(Gn=d,Kh="value"in Gn?Gn.value:Gn.textContent,Wi=!0)),k=Xu(c,x),0<k.length&&(x=new n0(x,e,null,r,d),u.push({event:x,listeners:k}),v?x.data=v:(v=NT(r),v!==null&&(x.data=v)))),(v=g2?S2(e,r):y2(e,r))&&(c=Xu(c,"onBeforeInput"),0<c.length&&(d=new n0("onBeforeInput","beforeinput",null,r,d),u.push({event:d,listeners:c}),d.data=v))}zT(u,t)})}function cl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Xu(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=rl(e,r),i!=null&&n.unshift(cl(e,i,o)),i=rl(e,t),i!=null&&n.push(cl(e,i,o))),e=e.return}return n}function zi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function g0(e,t,r,n,o){for(var i=t._reactName,s=[];r!==null&&r!==n;){var a=r,l=a.alternate,c=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&c!==null&&(a=c,o?(l=rl(r,i),l!=null&&s.unshift(cl(r,l,a))):o||(l=rl(r,i),l!=null&&s.push(cl(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var C2=/\r\n?/g,A2=/\u0000|\uFFFD/g;function S0(e){return(typeof e=="string"?e:""+e).replace(C2,`
|
|
6
|
-
`).replace(A2,"")}function wu(e,t,r){if(t=S0(t),S0(e)!==t&&r)throw Error(w(425))}function Ju(){}var fh=null,mh=null;function hh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gh=typeof setTimeout=="function"?setTimeout:void 0,M2=typeof clearTimeout=="function"?clearTimeout:void 0,y0=typeof Promise=="function"?Promise:void 0,L2=typeof queueMicrotask=="function"?queueMicrotask:typeof y0<"u"?function(e){return y0.resolve(null).then(e).catch(O2)}:gh;function O2(e){setTimeout(function(){throw e})}function Dm(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),il(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);il(t)}function Xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ms=Math.random().toString(36).slice(2),Wr="__reactFiber$"+ms,ul="__reactProps$"+ms,yn="__reactContainer$"+ms,Sh="__reactEvents$"+ms,P2="__reactListeners$"+ms,D2="__reactHandles$"+ms;function Ho(e){var t=e[Wr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[yn]||r[Wr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=_0(e);e!==null;){if(r=e[Wr])return r;e=_0(e)}return t}e=r,r=e.parentNode}return null}function _l(e){return e=e[Wr]||e[yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(w(33))}function Sd(e){return e[ul]||null}var yh=[],qi=-1;function oo(e){return{current:e}}function Ee(e){0>qi||(e.current=yh[qi],yh[qi]=null,qi--)}function ge(e,t){qi++,yh[qi]=e.current,e.current=t}var ro={},dt=oo(ro),At=oo(!1),Go=ro;function as(e,t){var r=e.type.contextTypes;if(!r)return ro;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mt(e){return e=e.childContextTypes,e!=null}function Qu(){Ee(At),Ee(dt)}function v0(e,t,r){if(dt.current!==ro)throw Error(w(168));ge(dt,t),ge(At,r)}function jT(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(w(108,TM(e)||"Unknown",o));return we({},r,n)}function Zu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ro,Go=dt.current,ge(dt,e),ge(At,At.current),!0}function E0(e,t,r){var n=e.stateNode;if(!n)throw Error(w(169));r?(e=jT(e,t,Go),n.__reactInternalMemoizedMergedChildContext=e,Ee(At),Ee(dt),ge(dt,e)):Ee(At),ge(At,r)}var fn=null,yd=!1,Um=!1;function WT(e){fn===null?fn=[e]:fn.push(e)}function U2(e){yd=!0,WT(e)}function io(){if(!Um&&fn!==null){Um=!0;var e=0,t=ae;try{var r=fn;for(ae=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}fn=null,yd=!1}catch(o){throw fn!==null&&(fn=fn.slice(e+1)),hT(Gh,io),o}finally{ae=t,Um=!1}}return null}var Ki=[],Xi=0,ed=null,td=0,ir=[],sr=0,Vo=null,mn=1,hn="";function Bo(e,t){Ki[Xi++]=td,Ki[Xi++]=ed,ed=e,td=t}function GT(e,t,r){ir[sr++]=mn,ir[sr++]=hn,ir[sr++]=Vo,Vo=e;var n=mn;e=hn;var o=32-Nr(n)-1;n&=~(1<<o),r+=1;var i=32-Nr(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,mn=1<<32-Nr(t)+o|r<<o|n,hn=i+e}else mn=1<<i|r<<o|n,hn=e}function eg(e){e.return!==null&&(Bo(e,1),GT(e,1,0))}function tg(e){for(;e===ed;)ed=Ki[--Xi],Ki[Xi]=null,td=Ki[--Xi],Ki[Xi]=null;for(;e===Vo;)Vo=ir[--sr],ir[sr]=null,hn=ir[--sr],ir[sr]=null,mn=ir[--sr],ir[sr]=null}var $t=null,zt=null,Ie=!1,Rr=null;function VT(e,t){var r=ar(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function T0(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$t=e,zt=Xn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$t=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Vo!==null?{id:mn,overflow:hn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ar(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,$t=e,zt=null,!0):!1;default:return!1}}function _h(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vh(e){if(Ie){var t=zt;if(t){var r=t;if(!T0(e,t)){if(_h(e))throw Error(w(418));t=Xn(r.nextSibling);var n=$t;t&&T0(e,t)?VT(n,r):(e.flags=e.flags&-4097|2,Ie=!1,$t=e)}}else{if(_h(e))throw Error(w(418));e.flags=e.flags&-4097|2,Ie=!1,$t=e}}}function I0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$t=e}function Ru(e){if(e!==$t)return!1;if(!Ie)return I0(e),Ie=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hh(e.type,e.memoizedProps)),t&&(t=zt)){if(_h(e))throw YT(),Error(w(418));for(;t;)VT(e,t),t=Xn(t.nextSibling)}if(I0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){zt=Xn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=$t?Xn(e.stateNode.nextSibling):null;return!0}function YT(){for(var e=zt;e;)e=Xn(e.nextSibling)}function ls(){zt=$t=null,Ie=!1}function rg(e){Rr===null?Rr=[e]:Rr.push(e)}var B2=En.ReactCurrentBatchConfig;function Ua(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(w(309));var n=r.stateNode}if(!n)throw Error(w(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(w(284));if(!r._owner)throw Error(w(290,e))}return e}function Nu(e,t){throw e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function b0(e){var t=e._init;return t(e._payload)}function qT(e){function t(g,h){if(e){var S=g.deletions;S===null?(g.deletions=[h],g.flags|=16):S.push(h)}}function r(g,h){if(!e)return null;for(;h!==null;)t(g,h),h=h.sibling;return null}function n(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function o(g,h){return g=eo(g,h),g.index=0,g.sibling=null,g}function i(g,h,S){return g.index=S,e?(S=g.alternate,S!==null?(S=S.index,S<h?(g.flags|=2,h):S):(g.flags|=2,h)):(g.flags|=1048576,h)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,h,S,T){return h===null||h.tag!==6?(h=Wm(S,g.mode,T),h.return=g,h):(h=o(h,S),h.return=g,h)}function l(g,h,S,T){var R=S.type;return R===ji?d(g,h,S.props.children,T,S.key):h!==null&&(h.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===zn&&b0(R)===h.type)?(T=o(h,S.props),T.ref=Ua(g,h,S),T.return=g,T):(T=$u(S.type,S.key,S.props,null,g.mode,T),T.ref=Ua(g,h,S),T.return=g,T)}function c(g,h,S,T){return h===null||h.tag!==4||h.stateNode.containerInfo!==S.containerInfo||h.stateNode.implementation!==S.implementation?(h=Gm(S,g.mode,T),h.return=g,h):(h=o(h,S.children||[]),h.return=g,h)}function d(g,h,S,T,R){return h===null||h.tag!==7?(h=Wo(S,g.mode,T,R),h.return=g,h):(h=o(h,S),h.return=g,h)}function u(g,h,S){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Wm(""+h,g.mode,S),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case mu:return S=$u(h.type,h.key,h.props,null,g.mode,S),S.ref=Ua(g,null,h),S.return=g,S;case $i:return h=Gm(h,g.mode,S),h.return=g,h;case zn:var T=h._init;return u(g,T(h._payload),S)}if($a(h)||La(h))return h=Wo(h,g.mode,S,null),h.return=g,h;Nu(g,h)}return null}function p(g,h,S,T){var R=h!==null?h.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return R!==null?null:a(g,h,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case mu:return S.key===R?l(g,h,S,T):null;case $i:return S.key===R?c(g,h,S,T):null;case zn:return R=S._init,p(g,h,R(S._payload),T)}if($a(S)||La(S))return R!==null?null:d(g,h,S,T,null);Nu(g,S)}return null}function f(g,h,S,T,R){if(typeof T=="string"&&T!==""||typeof T=="number")return g=g.get(S)||null,a(h,g,""+T,R);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case mu:return g=g.get(T.key===null?S:T.key)||null,l(h,g,T,R);case $i:return g=g.get(T.key===null?S:T.key)||null,c(h,g,T,R);case zn:var k=T._init;return f(g,h,S,k(T._payload),R)}if($a(T)||La(T))return g=g.get(S)||null,d(h,g,T,R,null);Nu(h,T)}return null}function m(g,h,S,T){for(var R=null,k=null,v=h,x=h=0,j=null;v!==null&&x<S.length;x++){v.index>x?(j=v,v=null):j=v.sibling;var b=p(g,v,S[x],T);if(b===null){v===null&&(v=j);break}e&&v&&b.alternate===null&&t(g,v),h=i(b,h,x),k===null?R=b:k.sibling=b,k=b,v=j}if(x===S.length)return r(g,v),Ie&&Bo(g,x),R;if(v===null){for(;x<S.length;x++)v=u(g,S[x],T),v!==null&&(h=i(v,h,x),k===null?R=v:k.sibling=v,k=v);return Ie&&Bo(g,x),R}for(v=n(g,v);x<S.length;x++)j=f(v,g,x,S[x],T),j!==null&&(e&&j.alternate!==null&&v.delete(j.key===null?x:j.key),h=i(j,h,x),k===null?R=j:k.sibling=j,k=j);return e&&v.forEach(function(P){return t(g,P)}),Ie&&Bo(g,x),R}function _(g,h,S,T){var R=La(S);if(typeof R!="function")throw Error(w(150));if(S=R.call(S),S==null)throw Error(w(151));for(var k=R=null,v=h,x=h=0,j=null,b=S.next();v!==null&&!b.done;x++,b=S.next()){v.index>x?(j=v,v=null):j=v.sibling;var P=p(g,v,b.value,T);if(P===null){v===null&&(v=j);break}e&&v&&P.alternate===null&&t(g,v),h=i(P,h,x),k===null?R=P:k.sibling=P,k=P,v=j}if(b.done)return r(g,v),Ie&&Bo(g,x),R;if(v===null){for(;!b.done;x++,b=S.next())b=u(g,b.value,T),b!==null&&(h=i(b,h,x),k===null?R=b:k.sibling=b,k=b);return Ie&&Bo(g,x),R}for(v=n(g,v);!b.done;x++,b=S.next())b=f(v,g,x,b.value,T),b!==null&&(e&&b.alternate!==null&&v.delete(b.key===null?x:b.key),h=i(b,h,x),k===null?R=b:k.sibling=b,k=b);return e&&v.forEach(function(Y){return t(g,Y)}),Ie&&Bo(g,x),R}function I(g,h,S,T){if(typeof S=="object"&&S!==null&&S.type===ji&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case mu:e:{for(var R=S.key,k=h;k!==null;){if(k.key===R){if(R=S.type,R===ji){if(k.tag===7){r(g,k.sibling),h=o(k,S.props.children),h.return=g,g=h;break e}}else if(k.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===zn&&b0(R)===k.type){r(g,k.sibling),h=o(k,S.props),h.ref=Ua(g,k,S),h.return=g,g=h;break e}r(g,k);break}else t(g,k);k=k.sibling}S.type===ji?(h=Wo(S.props.children,g.mode,T,S.key),h.return=g,g=h):(T=$u(S.type,S.key,S.props,null,g.mode,T),T.ref=Ua(g,h,S),T.return=g,g=T)}return s(g);case $i:e:{for(k=S.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===S.containerInfo&&h.stateNode.implementation===S.implementation){r(g,h.sibling),h=o(h,S.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=Gm(S,g.mode,T),h.return=g,g=h}return s(g);case zn:return k=S._init,I(g,h,k(S._payload),T)}if($a(S))return m(g,h,S,T);if(La(S))return _(g,h,S,T);Nu(g,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,S),h.return=g,g=h):(r(g,h),h=Wm(S,g.mode,T),h.return=g,g=h),s(g)):r(g,h)}return I}var cs=qT(!0),KT=qT(!1),rd=oo(null),nd=null,Ji=null,ng=null;function og(){ng=Ji=nd=null}function ig(e){var t=rd.current;Ee(rd),e._currentValue=t}function Eh(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function os(e,t){nd=e,ng=Ji=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ct=!0),e.firstContext=null)}function cr(e){var t=e._currentValue;if(ng!==e)if(e={context:e,memoizedValue:t,next:null},Ji===null){if(nd===null)throw Error(w(308));Ji=e,nd.dependencies={lanes:0,firstContext:e}}else Ji=Ji.next=e;return t}var zo=null;function sg(e){zo===null?zo=[e]:zo.push(e)}function XT(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,sg(t)):(r.next=o.next,o.next=r),t.interleaved=r,_n(e,n)}function _n(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var $n=!1;function ag(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function JT(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Z&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,_n(e,r)}return o=n.interleaved,o===null?(t.next=t,sg(n)):(t.next=o.next,o.next=t),n.interleaved=t,_n(e,r)}function Du(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vh(e,r)}}function x0(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function od(e,t,r,n){var o=e.updateQueue;$n=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(i!==null){var u=o.baseState;s=0,d=c=l=null,a=i;do{var p=a.lane,f=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,_=a;switch(p=t,f=r,_.tag){case 1:if(m=_.payload,typeof m=="function"){u=m.call(f,u,p);break e}u=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=_.payload,p=typeof m=="function"?m.call(f,u,p):m,p==null)break e;u=we({},u,p);break e;case 2:$n=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=f,l=u):d=d.next=f,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(l=u),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);qo|=s,e.lanes=s,e.memoizedState=u}}function k0(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(w(191,o));o.call(n)}}}var vl={},Vr=oo(vl),dl=oo(vl),pl=oo(vl);function $o(e){if(e===vl)throw Error(w(174));return e}function lg(e,t){switch(ge(pl,t),ge(dl,e),ge(Vr,vl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:th(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=th(t,e)}Ee(Vr),ge(Vr,t)}function us(){Ee(Vr),Ee(dl),Ee(pl)}function QT(e){$o(pl.current);var t=$o(Vr.current),r=th(t,e.type);t!==r&&(ge(dl,e),ge(Vr,r))}function cg(e){dl.current===e&&(Ee(Vr),Ee(dl))}var xe=oo(0);function id(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bm=[];function ug(){for(var e=0;e<Bm.length;e++)Bm[e]._workInProgressVersionPrimary=null;Bm.length=0}var Uu=En.ReactCurrentDispatcher,Fm=En.ReactCurrentBatchConfig,Yo=0,ke=null,He=null,We=null,sd=!1,Xa=!1,fl=0,F2=0;function lt(){throw Error(w(321))}function dg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ar(e[r],t[r]))return!1;return!0}function pg(e,t,r,n,o,i){if(Yo=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Uu.current=e===null||e.memoizedState===null?j2:W2,e=r(n,o),Xa){i=0;do{if(Xa=!1,fl=0,25<=i)throw Error(w(301));i+=1,We=He=null,t.updateQueue=null,Uu.current=G2,e=r(n,o)}while(Xa)}if(Uu.current=ad,t=He!==null&&He.next!==null,Yo=0,We=He=ke=null,sd=!1,t)throw Error(w(300));return e}function fg(){var e=fl!==0;return fl=0,e}function jr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ke.memoizedState=We=e:We=We.next=e,We}function ur(){if(He===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?ke.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw Error(w(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?ke.memoizedState=We=e:We=We.next=e}return We}function ml(e,t){return typeof t=="function"?t(e):t}function Hm(e){var t=ur(),r=t.queue;if(r===null)throw Error(w(311));r.lastRenderedReducer=e;var n=He,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var a=s=null,l=null,c=i;do{var d=c.lane;if((Yo&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var u={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=u,s=n):l=l.next=u,ke.lanes|=d,qo|=d}c=c.next}while(c!==null&&c!==i);l===null?s=n:l.next=a,Ar(n,t.memoizedState)||(Ct=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,ke.lanes|=i,qo|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function zm(e){var t=ur(),r=t.queue;if(r===null)throw Error(w(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Ar(i,t.memoizedState)||(Ct=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ZT(){}function eI(e,t){var r=ke,n=ur(),o=t(),i=!Ar(n.memoizedState,o);if(i&&(n.memoizedState=o,Ct=!0),n=n.queue,mg(nI.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||We!==null&&We.memoizedState.tag&1){if(r.flags|=2048,hl(9,rI.bind(null,r,n,o,t),void 0,null),Ge===null)throw Error(w(349));(Yo&30)!==0||tI(r,t,o)}return o}function tI(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function rI(e,t,r,n){t.value=r,t.getSnapshot=n,oI(t)&&iI(e)}function nI(e,t,r){return r(function(){oI(t)&&iI(e)})}function oI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ar(e,r)}catch{return!0}}function iI(e){var t=_n(e,1);t!==null&&Cr(t,e,1,-1)}function w0(e){var t=jr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:e},t.queue=e,e=e.dispatch=$2.bind(null,ke,e),[t.memoizedState,e]}function hl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function sI(){return ur().memoizedState}function Bu(e,t,r,n){var o=jr();ke.flags|=e,o.memoizedState=hl(1|t,r,void 0,n===void 0?null:n)}function _d(e,t,r,n){var o=ur();n=n===void 0?null:n;var i=void 0;if(He!==null){var s=He.memoizedState;if(i=s.destroy,n!==null&&dg(n,s.deps)){o.memoizedState=hl(t,r,i,n);return}}ke.flags|=e,o.memoizedState=hl(1|t,r,i,n)}function R0(e,t){return Bu(8390656,8,e,t)}function mg(e,t){return _d(2048,8,e,t)}function aI(e,t){return _d(4,2,e,t)}function lI(e,t){return _d(4,4,e,t)}function cI(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uI(e,t,r){return r=r!=null?r.concat([e]):null,_d(4,4,cI.bind(null,t,e),r)}function hg(){}function dI(e,t){var r=ur();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&dg(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function pI(e,t){var r=ur();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&dg(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function fI(e,t,r){return(Yo&21)===0?(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=r):(Ar(r,t)||(r=yT(),ke.lanes|=r,qo|=r,e.baseState=!0),t)}function H2(e,t){var r=ae;ae=r!==0&&4>r?r:4,e(!0);var n=Fm.transition;Fm.transition={};try{e(!1),t()}finally{ae=r,Fm.transition=n}}function mI(){return ur().memoizedState}function z2(e,t,r){var n=Zn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},hI(e))gI(t,r);else if(r=XT(e,t,r,n),r!==null){var o=vt();Cr(r,e,n,o),SI(r,t,n)}}function $2(e,t,r){var n=Zn(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(hI(e))gI(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,Ar(a,s)){var l=t.interleaved;l===null?(o.next=o,sg(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}r=XT(e,t,o,n),r!==null&&(o=vt(),Cr(r,e,n,o),SI(r,t,n))}}function hI(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function gI(e,t){Xa=sd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function SI(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vh(e,r)}}var ad={readContext:cr,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},j2={readContext:cr,useCallback:function(e,t){return jr().memoizedState=[e,t===void 0?null:t],e},useContext:cr,useEffect:R0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bu(4194308,4,cI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bu(4,2,e,t)},useMemo:function(e,t){var r=jr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=z2.bind(null,ke,e),[n.memoizedState,e]},useRef:function(e){var t=jr();return e={current:e},t.memoizedState=e},useState:w0,useDebugValue:hg,useDeferredValue:function(e){return jr().memoizedState=e},useTransition:function(){var e=w0(!1),t=e[0];return e=H2.bind(null,e[1]),jr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ke,o=jr();if(Ie){if(r===void 0)throw Error(w(407));r=r()}else{if(r=t(),Ge===null)throw Error(w(349));(Yo&30)!==0||tI(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,R0(nI.bind(null,n,i,e),[e]),n.flags|=2048,hl(9,rI.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=jr(),t=Ge.identifierPrefix;if(Ie){var r=hn,n=mn;r=(n&~(1<<32-Nr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=fl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=F2++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},W2={readContext:cr,useCallback:dI,useContext:cr,useEffect:mg,useImperativeHandle:uI,useInsertionEffect:aI,useLayoutEffect:lI,useMemo:pI,useReducer:Hm,useRef:sI,useState:function(){return Hm(ml)},useDebugValue:hg,useDeferredValue:function(e){var t=ur();return fI(t,He.memoizedState,e)},useTransition:function(){var e=Hm(ml)[0],t=ur().memoizedState;return[e,t]},useMutableSource:ZT,useSyncExternalStore:eI,useId:mI,unstable_isNewReconciler:!1},G2={readContext:cr,useCallback:dI,useContext:cr,useEffect:mg,useImperativeHandle:uI,useInsertionEffect:aI,useLayoutEffect:lI,useMemo:pI,useReducer:zm,useRef:sI,useState:function(){return zm(ml)},useDebugValue:hg,useDeferredValue:function(e){var t=ur();return He===null?t.memoizedState=e:fI(t,He.memoizedState,e)},useTransition:function(){var e=zm(ml)[0],t=ur().memoizedState;return[e,t]},useMutableSource:ZT,useSyncExternalStore:eI,useId:mI,unstable_isNewReconciler:!1};function kr(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Th(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:we({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var vd={isMounted:function(e){return(e=e._reactInternals)?Jo(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vt(),o=Zn(e),i=gn(n,o);i.payload=t,r!=null&&(i.callback=r),t=Jn(e,i,o),t!==null&&(Cr(t,e,o,n),Du(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vt(),o=Zn(e),i=gn(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Jn(e,i,o),t!==null&&(Cr(t,e,o,n),Du(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vt(),n=Zn(e),o=gn(r,n);o.tag=2,t!=null&&(o.callback=t),t=Jn(e,o,n),t!==null&&(Cr(t,e,n,r),Du(t,e,n))}};function N0(e,t,r,n,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,s):t.prototype&&t.prototype.isPureReactComponent?!al(r,n)||!al(o,i):!0}function yI(e,t,r){var n=!1,o=ro,i=t.contextType;return typeof i=="object"&&i!==null?i=cr(i):(o=Mt(t)?Go:dt.current,n=t.contextTypes,i=(n=n!=null)?as(e,o):ro),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function C0(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&vd.enqueueReplaceState(t,t.state,null)}function Ih(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},ag(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=cr(i):(i=Mt(t)?Go:dt.current,o.context=as(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Th(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&vd.enqueueReplaceState(o,o.state,null),od(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ds(e,t){try{var r="",n=t;do r+=EM(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function $m(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function bh(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var V2=typeof WeakMap=="function"?WeakMap:Map;function _I(e,t,r){r=gn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){cd||(cd=!0,Oh=n),bh(e,t)},r}function vI(e,t,r){r=gn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){bh(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){bh(e,t),typeof n!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function A0(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new V2;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=sL.bind(null,e,t,r),t.then(e,e))}function M0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function L0(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=gn(-1,1),t.tag=2,Jn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Y2=En.ReactCurrentOwner,Ct=!1;function _t(e,t,r,n){t.child=e===null?KT(t,null,r,n):cs(t,e.child,r,n)}function O0(e,t,r,n,o){r=r.render;var i=t.ref;return os(t,o),n=pg(e,t,r,n,i,o),r=fg(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vn(e,t,o)):(Ie&&r&&eg(t),t.flags|=1,_t(e,t,n,o),t.child)}function P0(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!Ig(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,EI(e,t,i,n,o)):(e=$u(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:al,r(s,n)&&e.ref===t.ref)return vn(e,t,o)}return t.flags|=1,e=eo(i,n),e.ref=t.ref,e.return=t,t.child=e}function EI(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(al(i,n)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,vn(e,t,o)}return xh(e,t,r,n,o)}function TI(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Zi,Ht),Ht|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Zi,Ht),Ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ge(Zi,Ht),Ht|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ge(Zi,Ht),Ht|=n;return _t(e,t,o,r),t.child}function II(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function xh(e,t,r,n,o){var i=Mt(r)?Go:dt.current;return i=as(t,i),os(t,o),r=pg(e,t,r,n,i,o),n=fg(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vn(e,t,o)):(Ie&&n&&eg(t),t.flags|=1,_t(e,t,r,o),t.child)}function D0(e,t,r,n,o){if(Mt(r)){var i=!0;Zu(t)}else i=!1;if(os(t,o),t.stateNode===null)Fu(e,t),yI(t,r,n),Ih(t,r,n,o),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=cr(c):(c=Mt(r)?Go:dt.current,c=as(t,c));var d=r.getDerivedStateFromProps,u=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";u||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==c)&&C0(t,s,n,c),$n=!1;var p=t.memoizedState;s.state=p,od(t,n,s,o),l=t.memoizedState,a!==n||p!==l||At.current||$n?(typeof d=="function"&&(Th(t,r,d,n),l=t.memoizedState),(a=$n||N0(t,r,a,n,p,l,c))?(u||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=c,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,JT(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:kr(t.type,a),s.props=c,u=t.pendingProps,p=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=cr(l):(l=Mt(r)?Go:dt.current,l=as(t,l));var f=r.getDerivedStateFromProps;(d=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==u||p!==l)&&C0(t,s,n,l),$n=!1,p=t.memoizedState,s.state=p,od(t,n,s,o);var m=t.memoizedState;a!==u||p!==m||At.current||$n?(typeof f=="function"&&(Th(t,r,f,n),m=t.memoizedState),(c=$n||N0(t,r,c,n,p,m,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),s.props=n,s.state=m,s.context=l,n=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return kh(e,t,r,n,i,o)}function kh(e,t,r,n,o,i){II(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&E0(t,r,!1),vn(e,t,i);n=t.stateNode,Y2.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=cs(t,e.child,null,i),t.child=cs(t,null,a,i)):_t(e,t,a,i),t.memoizedState=n.state,o&&E0(t,r,!0),t.child}function bI(e){var t=e.stateNode;t.pendingContext?v0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&v0(e,t.context,!1),lg(e,t.containerInfo)}function U0(e,t,r,n,o){return ls(),rg(o),t.flags|=256,_t(e,t,r,n),t.child}var wh={dehydrated:null,treeContext:null,retryLane:0};function Rh(e){return{baseLanes:e,cachePool:null,transitions:null}}function xI(e,t,r){var n=t.pendingProps,o=xe.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(xe,o&1),e===null)return vh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Id(s,n,0,null),e=Wo(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Rh(r),t.memoizedState=wh,e):gg(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return q2(e,t,s,n,a,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=eo(o,l),n.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=eo(a,i):(i=Wo(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?Rh(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=wh,n}return i=e.child,e=i.sibling,n=eo(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function gg(e,t){return t=Id({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cu(e,t,r,n){return n!==null&&rg(n),cs(t,e.child,null,r),e=gg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function q2(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=$m(Error(w(422))),Cu(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Id({mode:"visible",children:n.children},o,0,null),i=Wo(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&cs(t,e.child,null,s),t.child.memoizedState=Rh(s),t.memoizedState=wh,i);if((t.mode&1)===0)return Cu(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(w(419)),n=$m(i,n,void 0),Cu(e,t,s,n)}if(a=(s&e.childLanes)!==0,Ct||a){if(n=Ge,n!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|s))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,_n(e,o),Cr(n,e,o,-1))}return Tg(),n=$m(Error(w(421))),Cu(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=aL.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,zt=Xn(o.nextSibling),$t=t,Ie=!0,Rr=null,e!==null&&(ir[sr++]=mn,ir[sr++]=hn,ir[sr++]=Vo,mn=e.id,hn=e.overflow,Vo=t),t=gg(t,n.children),t.flags|=4096,t)}function B0(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Eh(e.return,t,r)}function jm(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function kI(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(_t(e,t,n.children,r),n=xe.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&B0(e,r,t);else if(e.tag===19)B0(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ge(xe,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&id(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),jm(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&id(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}jm(t,!0,r,null,i);break;case"together":jm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fu(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),qo|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,r=eo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=eo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function K2(e,t,r){switch(t.tag){case 3:bI(t),ls();break;case 5:QT(t);break;case 1:Mt(t.type)&&Zu(t);break;case 4:lg(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ge(rd,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ge(xe,xe.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?xI(e,t,r):(ge(xe,xe.current&1),e=vn(e,t,r),e!==null?e.sibling:null);ge(xe,xe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return kI(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(xe,xe.current),n)break;return null;case 22:case 23:return t.lanes=0,TI(e,t,r)}return vn(e,t,r)}var wI,Nh,RI,NI;wI=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Nh=function(){};RI=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,$o(Vr.current);var i=null;switch(r){case"input":o=Jm(e,o),n=Jm(e,n),i=[];break;case"select":o=we({},o,{value:void 0}),n=we({},n,{value:void 0}),i=[];break;case"textarea":o=eh(e,o),n=eh(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Ju)}rh(r,n);var s;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(el.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(a=o?.[c],n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(el.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ve("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};NI=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ba(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function X2(e,t,r){var n=t.pendingProps;switch(tg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return Mt(t.type)&&Qu(),ct(t),null;case 3:return n=t.stateNode,us(),Ee(At),Ee(dt),ug(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ru(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rr!==null&&(Uh(Rr),Rr=null))),Nh(e,t),ct(t),null;case 5:cg(t);var o=$o(pl.current);if(r=t.type,e!==null&&t.stateNode!=null)RI(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(w(166));return ct(t),null}if(e=$o(Vr.current),Ru(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Wr]=t,n[ul]=i,e=(t.mode&1)!==0,r){case"dialog":ve("cancel",n),ve("close",n);break;case"iframe":case"object":case"embed":ve("load",n);break;case"video":case"audio":for(o=0;o<Wa.length;o++)ve(Wa[o],n);break;case"source":ve("error",n);break;case"img":case"image":case"link":ve("error",n),ve("load",n);break;case"details":ve("toggle",n);break;case"input":VE(n,i),ve("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},ve("invalid",n);break;case"textarea":qE(n,i),ve("invalid",n)}rh(r,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&wu(n.textContent,a,e),o=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&wu(n.textContent,a,e),o=["children",""+a]):el.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ve("scroll",n)}switch(r){case"input":hu(n),YE(n,i,!0);break;case"textarea":hu(n),KE(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Ju)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nT(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Wr]=t,e[ul]=n,wI(e,t,!1,!1),t.stateNode=e;e:{switch(s=nh(r,n),r){case"dialog":ve("cancel",e),ve("close",e),o=n;break;case"iframe":case"object":case"embed":ve("load",e),o=n;break;case"video":case"audio":for(o=0;o<Wa.length;o++)ve(Wa[o],e);o=n;break;case"source":ve("error",e),o=n;break;case"img":case"image":case"link":ve("error",e),ve("load",e),o=n;break;case"details":ve("toggle",e),o=n;break;case"input":VE(e,n),o=Jm(e,n),ve("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=we({},n,{value:void 0}),ve("invalid",e);break;case"textarea":qE(e,n),o=eh(e,n),ve("invalid",e);break;default:o=n}rh(r,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?sT(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&oT(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&tl(e,l):typeof l=="number"&&tl(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(el.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ve("scroll",e):l!=null&&Hh(e,i,l,s))}switch(r){case"input":hu(e),YE(e,n,!1);break;case"textarea":hu(e),KE(e);break;case"option":n.value!=null&&e.setAttribute("value",""+to(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?es(e,!!n.multiple,i,!1):n.defaultValue!=null&&es(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ju)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ct(t),null;case 6:if(e&&t.stateNode!=null)NI(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(w(166));if(r=$o(pl.current),$o(Vr.current),Ru(t)){if(n=t.stateNode,r=t.memoizedProps,n[Wr]=t,(i=n.nodeValue!==r)&&(e=$t,e!==null))switch(e.tag){case 3:wu(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wu(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Wr]=t,t.stateNode=n}return ct(t),null;case 13:if(Ee(xe),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&zt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)YT(),ls(),t.flags|=98560,i=!1;else if(i=Ru(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(w(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(w(317));i[Wr]=t}else ls(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ct(t),i=!1}else Rr!==null&&(Uh(Rr),Rr=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(xe.current&1)!==0?ze===0&&(ze=3):Tg())),t.updateQueue!==null&&(t.flags|=4),ct(t),null);case 4:return us(),Nh(e,t),e===null&&ll(t.stateNode.containerInfo),ct(t),null;case 10:return ig(t.type._context),ct(t),null;case 17:return Mt(t.type)&&Qu(),ct(t),null;case 19:if(Ee(xe),i=t.memoizedState,i===null)return ct(t),null;if(n=(t.flags&128)!==0,s=i.rendering,s===null)if(n)Ba(i,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=id(e),s!==null){for(t.flags|=128,Ba(i,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ge(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Me()>ps&&(t.flags|=128,n=!0,Ba(i,!1),t.lanes=4194304)}else{if(!n)if(e=id(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ba(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ie)return ct(t),null}else 2*Me()-i.renderingStartTime>ps&&r!==1073741824&&(t.flags|=128,n=!0,Ba(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,r=xe.current,ge(xe,n?r&1|2:r&1),t):(ct(t),null);case 22:case 23:return Eg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Ht&1073741824)!==0&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function J2(e,t){switch(tg(t),t.tag){case 1:return Mt(t.type)&&Qu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return us(),Ee(At),Ee(dt),ug(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return cg(t),null;case 13:if(Ee(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(xe),null;case 4:return us(),null;case 10:return ig(t.type._context),null;case 22:case 23:return Eg(),null;case 24:return null;default:return null}}var Au=!1,ut=!1,Q2=typeof WeakSet=="function"?WeakSet:Set,A=null;function Qi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ae(e,t,n)}else r.current=null}function Ch(e,t,r){try{r()}catch(n){Ae(e,t,n)}}var F0=!1;function Z2(e,t){if(fh=qu,e=OT(),Zh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,c=0,d=0,u=e,p=null;t:for(;;){for(var f;u!==r||o!==0&&u.nodeType!==3||(a=s+o),u!==i||n!==0&&u.nodeType!==3||(l=s+n),u.nodeType===3&&(s+=u.nodeValue.length),(f=u.firstChild)!==null;)p=u,u=f;for(;;){if(u===e)break t;if(p===r&&++c===o&&(a=s),p===i&&++d===n&&(l=s),(f=u.nextSibling)!==null)break;u=p,p=u.parentNode}u=f}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(mh={focusedElem:e,selectionRange:r},qu=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var m=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,I=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?_:kr(t.type,_),I);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(w(163))}}catch(T){Ae(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return m=F0,F0=!1,m}function Ja(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ch(t,r,i)}o=o.next}while(o!==n)}}function Ed(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Ah(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function CI(e){var t=e.alternate;t!==null&&(e.alternate=null,CI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wr],delete t[ul],delete t[Sh],delete t[P2],delete t[D2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function AI(e){return e.tag===5||e.tag===3||e.tag===4}function H0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ju));else if(n!==4&&(e=e.child,e!==null))for(Mh(e,t,r),e=e.sibling;e!==null;)Mh(e,t,r),e=e.sibling}function Lh(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Lh(e,t,r),e=e.sibling;e!==null;)Lh(e,t,r),e=e.sibling}var Je=null,wr=!1;function Hn(e,t,r){for(r=r.child;r!==null;)MI(e,t,r),r=r.sibling}function MI(e,t,r){if(Gr&&typeof Gr.onCommitFiberUnmount=="function")try{Gr.onCommitFiberUnmount(fd,r)}catch{}switch(r.tag){case 5:ut||Qi(r,t);case 6:var n=Je,o=wr;Je=null,Hn(e,t,r),Je=n,wr=o,Je!==null&&(wr?(e=Je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Je.removeChild(r.stateNode));break;case 18:Je!==null&&(wr?(e=Je,r=r.stateNode,e.nodeType===8?Dm(e.parentNode,r):e.nodeType===1&&Dm(e,r),il(e)):Dm(Je,r.stateNode));break;case 4:n=Je,o=wr,Je=r.stateNode.containerInfo,wr=!0,Hn(e,t,r),Je=n,wr=o;break;case 0:case 11:case 14:case 15:if(!ut&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&Ch(r,t,s),o=o.next}while(o!==n)}Hn(e,t,r);break;case 1:if(!ut&&(Qi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ae(r,t,a)}Hn(e,t,r);break;case 21:Hn(e,t,r);break;case 22:r.mode&1?(ut=(n=ut)||r.memoizedState!==null,Hn(e,t,r),ut=n):Hn(e,t,r);break;default:Hn(e,t,r)}}function z0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Q2),t.forEach(function(n){var o=lL.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Je=a.stateNode,wr=!1;break e;case 3:Je=a.stateNode.containerInfo,wr=!0;break e;case 4:Je=a.stateNode.containerInfo,wr=!0;break e}a=a.return}if(Je===null)throw Error(w(160));MI(i,s,o),Je=null,wr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Ae(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)LI(t,e),t=t.sibling}function LI(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xr(t,e),$r(e),n&4){try{Ja(3,e,e.return),Ed(3,e)}catch(_){Ae(e,e.return,_)}try{Ja(5,e,e.return)}catch(_){Ae(e,e.return,_)}}break;case 1:xr(t,e),$r(e),n&512&&r!==null&&Qi(r,r.return);break;case 5:if(xr(t,e),$r(e),n&512&&r!==null&&Qi(r,r.return),e.flags&32){var o=e.stateNode;try{tl(o,"")}catch(_){Ae(e,e.return,_)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=r!==null?r.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&tT(o,i),nh(a,s);var c=nh(a,i);for(s=0;s<l.length;s+=2){var d=l[s],u=l[s+1];d==="style"?sT(o,u):d==="dangerouslySetInnerHTML"?oT(o,u):d==="children"?tl(o,u):Hh(o,d,u,c)}switch(a){case"input":Qm(o,i);break;case"textarea":rT(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?es(o,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?es(o,!!i.multiple,i.defaultValue,!0):es(o,!!i.multiple,i.multiple?[]:"",!1))}o[ul]=i}catch(_){Ae(e,e.return,_)}}break;case 6:if(xr(t,e),$r(e),n&4){if(e.stateNode===null)throw Error(w(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(_){Ae(e,e.return,_)}}break;case 3:if(xr(t,e),$r(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{il(t.containerInfo)}catch(_){Ae(e,e.return,_)}break;case 4:xr(t,e),$r(e);break;case 13:xr(t,e),$r(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(_g=Me())),n&4&&z0(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(ut=(c=ut)||d,xr(t,e),ut=c):xr(t,e),$r(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(A=e,d=e.child;d!==null;){for(u=A=d;A!==null;){switch(p=A,f=p.child,p.tag){case 0:case 11:case 14:case 15:Ja(4,p,p.return);break;case 1:Qi(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(_){Ae(n,r,_)}}break;case 5:Qi(p,p.return);break;case 22:if(p.memoizedState!==null){j0(u);continue}}f!==null?(f.return=p,A=f):j0(u)}d=d.sibling}e:for(d=null,u=e;;){if(u.tag===5){if(d===null){d=u;try{o=u.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=u.stateNode,l=u.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=iT("display",s))}catch(_){Ae(e,e.return,_)}}}else if(u.tag===6){if(d===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(_){Ae(e,e.return,_)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:xr(t,e),$r(e),n&4&&z0(e);break;case 21:break;default:xr(t,e),$r(e)}}function $r(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(AI(r)){var n=r;break e}r=r.return}throw Error(w(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(tl(o,""),n.flags&=-33);var i=H0(e);Lh(e,i,o);break;case 3:case 4:var s=n.stateNode.containerInfo,a=H0(e);Mh(e,a,s);break;default:throw Error(w(161))}}catch(l){Ae(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eL(e,t,r){A=e,OI(e,t,r)}function OI(e,t,r){for(var n=(e.mode&1)!==0;A!==null;){var o=A,i=o.child;if(o.tag===22&&n){var s=o.memoizedState!==null||Au;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||ut;a=Au;var c=ut;if(Au=s,(ut=l)&&!c)for(A=o;A!==null;)s=A,l=s.child,s.tag===22&&s.memoizedState!==null?W0(o):l!==null?(l.return=s,A=l):W0(o);for(;i!==null;)A=i,OI(i,t,r),i=i.sibling;A=o,Au=a,ut=c}$0(e,t,r)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,A=i):$0(e,t,r)}}function $0(e){for(;A!==null;){var t=A;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ut||Ed(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ut)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:kr(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&k0(t,i,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}k0(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var u=d.dehydrated;u!==null&&il(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(w(163))}ut||t.flags&512&&Ah(t)}catch(p){Ae(t,t.return,p)}}if(t===e){A=null;break}if(r=t.sibling,r!==null){r.return=t.return,A=r;break}A=t.return}}function j0(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var r=t.sibling;if(r!==null){r.return=t.return,A=r;break}A=t.return}}function W0(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ed(4,t)}catch(l){Ae(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){Ae(t,o,l)}}var i=t.return;try{Ah(t)}catch(l){Ae(t,i,l)}break;case 5:var s=t.return;try{Ah(t)}catch(l){Ae(t,s,l)}}}catch(l){Ae(t,t.return,l)}if(t===e){A=null;break}var a=t.sibling;if(a!==null){a.return=t.return,A=a;break}A=t.return}}var tL=Math.ceil,ld=En.ReactCurrentDispatcher,Sg=En.ReactCurrentOwner,lr=En.ReactCurrentBatchConfig,Z=0,Ge=null,De=null,Qe=0,Ht=0,Zi=oo(0),ze=0,gl=null,qo=0,Td=0,yg=0,Qa=null,Nt=null,_g=0,ps=1/0,pn=null,cd=!1,Oh=null,Qn=null,Mu=!1,Vn=null,ud=0,Za=0,Ph=null,Hu=-1,zu=0;function vt(){return(Z&6)!==0?Me():Hu!==-1?Hu:Hu=Me()}function Zn(e){return(e.mode&1)===0?1:(Z&2)!==0&&Qe!==0?Qe&-Qe:B2.transition!==null?(zu===0&&(zu=yT()),zu):(e=ae,e!==0||(e=window.event,e=e===void 0?16:xT(e.type)),e)}function Cr(e,t,r,n){if(50<Za)throw Za=0,Ph=null,Error(w(185));Sl(e,r,n),((Z&2)===0||e!==Ge)&&(e===Ge&&((Z&2)===0&&(Td|=r),ze===4&&Wn(e,Qe)),Lt(e,n),r===1&&Z===0&&(t.mode&1)===0&&(ps=Me()+500,yd&&io()))}function Lt(e,t){var r=e.callbackNode;HM(e,t);var n=Yu(e,e===Ge?Qe:0);if(n===0)r!==null&&QE(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&QE(r),t===1)e.tag===0?U2(G0.bind(null,e)):WT(G0.bind(null,e)),L2(function(){(Z&6)===0&&io()}),r=null;else{switch(_T(n)){case 1:r=Gh;break;case 4:r=gT;break;case 16:r=Vu;break;case 536870912:r=ST;break;default:r=Vu}r=$I(r,PI.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function PI(e,t){if(Hu=-1,zu=0,(Z&6)!==0)throw Error(w(327));var r=e.callbackNode;if(is()&&e.callbackNode!==r)return null;var n=Yu(e,e===Ge?Qe:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=dd(e,n);else{t=n;var o=Z;Z|=2;var i=UI();(Ge!==e||Qe!==t)&&(pn=null,ps=Me()+500,jo(e,t));do try{oL();break}catch(a){DI(e,a)}while(!0);og(),ld.current=i,Z=o,De!==null?t=0:(Ge=null,Qe=0,t=ze)}if(t!==0){if(t===2&&(o=lh(e),o!==0&&(n=o,t=Dh(e,o))),t===1)throw r=gl,jo(e,0),Wn(e,n),Lt(e,Me()),r;if(t===6)Wn(e,n);else{if(o=e.current.alternate,(n&30)===0&&!rL(o)&&(t=dd(e,n),t===2&&(i=lh(e),i!==0&&(n=i,t=Dh(e,i))),t===1))throw r=gl,jo(e,0),Wn(e,n),Lt(e,Me()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(w(345));case 2:Fo(e,Nt,pn);break;case 3:if(Wn(e,n),(n&130023424)===n&&(t=_g+500-Me(),10<t)){if(Yu(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){vt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gh(Fo.bind(null,e,Nt,pn),t);break}Fo(e,Nt,pn);break;case 4:if(Wn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-Nr(n);i=1<<s,s=t[s],s>o&&(o=s),n&=~i}if(n=o,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*tL(n/1960))-n,10<n){e.timeoutHandle=gh(Fo.bind(null,e,Nt,pn),n);break}Fo(e,Nt,pn);break;case 5:Fo(e,Nt,pn);break;default:throw Error(w(329))}}}return Lt(e,Me()),e.callbackNode===r?PI.bind(null,e):null}function Dh(e,t){var r=Qa;return e.current.memoizedState.isDehydrated&&(jo(e,t).flags|=256),e=dd(e,t),e!==2&&(t=Nt,Nt=r,t!==null&&Uh(t)),e}function Uh(e){Nt===null?Nt=e:Nt.push.apply(Nt,e)}function rL(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!Ar(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t){for(t&=~yg,t&=~Td,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Nr(t),n=1<<r;e[r]=-1,t&=~n}}function G0(e){if((Z&6)!==0)throw Error(w(327));is();var t=Yu(e,0);if((t&1)===0)return Lt(e,Me()),null;var r=dd(e,t);if(e.tag!==0&&r===2){var n=lh(e);n!==0&&(t=n,r=Dh(e,n))}if(r===1)throw r=gl,jo(e,0),Wn(e,t),Lt(e,Me()),r;if(r===6)throw Error(w(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fo(e,Nt,pn),Lt(e,Me()),null}function vg(e,t){var r=Z;Z|=1;try{return e(t)}finally{Z=r,Z===0&&(ps=Me()+500,yd&&io())}}function Ko(e){Vn!==null&&Vn.tag===0&&(Z&6)===0&&is();var t=Z;Z|=1;var r=lr.transition,n=ae;try{if(lr.transition=null,ae=1,e)return e()}finally{ae=n,lr.transition=r,Z=t,(Z&6)===0&&io()}}function Eg(){Ht=Zi.current,Ee(Zi)}function jo(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,M2(r)),De!==null)for(r=De.return;r!==null;){var n=r;switch(tg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Qu();break;case 3:us(),Ee(At),Ee(dt),ug();break;case 5:cg(n);break;case 4:us();break;case 13:Ee(xe);break;case 19:Ee(xe);break;case 10:ig(n.type._context);break;case 22:case 23:Eg()}r=r.return}if(Ge=e,De=e=eo(e.current,null),Qe=Ht=t,ze=0,gl=null,yg=Td=qo=0,Nt=Qa=null,zo!==null){for(t=0;t<zo.length;t++)if(r=zo[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var s=i.next;i.next=o,n.next=s}r.pending=n}zo=null}return e}function DI(e,t){do{var r=De;try{if(og(),Uu.current=ad,sd){for(var n=ke.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}sd=!1}if(Yo=0,We=He=ke=null,Xa=!1,fl=0,Sg.current=null,r===null||r.return===null){ze=1,gl=t,De=null;break}e:{var i=e,s=r.return,a=r,l=t;if(t=Qe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,u=d.tag;if((d.mode&1)===0&&(u===0||u===11||u===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=M0(s);if(f!==null){f.flags&=-257,L0(f,s,a,i,t),f.mode&1&&A0(i,c,t),t=f,l=c;var m=t.updateQueue;if(m===null){var _=new Set;_.add(l),t.updateQueue=_}else m.add(l);break e}else{if((t&1)===0){A0(i,c,t),Tg();break e}l=Error(w(426))}}else if(Ie&&a.mode&1){var I=M0(s);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),L0(I,s,a,i,t),rg(ds(l,a));break e}}i=l=ds(l,a),ze!==4&&(ze=2),Qa===null?Qa=[i]:Qa.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=_I(i,l,t);x0(i,g);break e;case 1:a=l;var h=i.type,S=i.stateNode;if((i.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Qn===null||!Qn.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var T=vI(i,a,t);x0(i,T);break e}}i=i.return}while(i!==null)}FI(r)}catch(R){t=R,De===r&&r!==null&&(De=r=r.return);continue}break}while(!0)}function UI(){var e=ld.current;return ld.current=ad,e===null?ad:e}function Tg(){(ze===0||ze===3||ze===2)&&(ze=4),Ge===null||(qo&268435455)===0&&(Td&268435455)===0||Wn(Ge,Qe)}function dd(e,t){var r=Z;Z|=2;var n=UI();(Ge!==e||Qe!==t)&&(pn=null,jo(e,t));do try{nL();break}catch(o){DI(e,o)}while(!0);if(og(),Z=r,ld.current=n,De!==null)throw Error(w(261));return Ge=null,Qe=0,ze}function nL(){for(;De!==null;)BI(De)}function oL(){for(;De!==null&&!AM();)BI(De)}function BI(e){var t=zI(e.alternate,e,Ht);e.memoizedProps=e.pendingProps,t===null?FI(e):De=t,Sg.current=null}function FI(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=X2(r,t,Ht),r!==null){De=r;return}}else{if(r=J2(r,t),r!==null){r.flags&=32767,De=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);ze===0&&(ze=5)}function Fo(e,t,r){var n=ae,o=lr.transition;try{lr.transition=null,ae=1,iL(e,t,r,n)}finally{lr.transition=o,ae=n}return null}function iL(e,t,r,n){do is();while(Vn!==null);if((Z&6)!==0)throw Error(w(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(w(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(zM(e,i),e===Ge&&(De=Ge=null,Qe=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Mu||(Mu=!0,$I(Vu,function(){return is(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=lr.transition,lr.transition=null;var s=ae;ae=1;var a=Z;Z|=4,Sg.current=null,Z2(e,r),LI(r,e),w2(mh),qu=!!fh,mh=fh=null,e.current=r,eL(r,e,o),MM(),Z=a,ae=s,lr.transition=i}else e.current=r;if(Mu&&(Mu=!1,Vn=e,ud=o),i=e.pendingLanes,i===0&&(Qn=null),PM(r.stateNode,n),Lt(e,Me()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(cd)throw cd=!1,e=Oh,Oh=null,e;return(ud&1)!==0&&e.tag!==0&&is(),i=e.pendingLanes,(i&1)!==0?e===Ph?Za++:(Za=0,Ph=e):Za=0,io(),null}function is(){if(Vn!==null){var e=_T(ud),t=lr.transition,r=ae;try{if(lr.transition=null,ae=16>e?16:e,Vn===null)var n=!1;else{if(e=Vn,Vn=null,ud=0,(Z&6)!==0)throw Error(w(331));var o=Z;for(Z|=4,A=e.current;A!==null;){var i=A,s=i.child;if((A.flags&16)!==0){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(A=c;A!==null;){var d=A;switch(d.tag){case 0:case 11:case 15:Ja(8,d,i)}var u=d.child;if(u!==null)u.return=d,A=u;else for(;A!==null;){d=A;var p=d.sibling,f=d.return;if(CI(d),d===c){A=null;break}if(p!==null){p.return=f,A=p;break}A=f}}}var m=i.alternate;if(m!==null){var _=m.child;if(_!==null){m.child=null;do{var I=_.sibling;_.sibling=null,_=I}while(_!==null)}}A=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,A=s;else e:for(;A!==null;){if(i=A,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Ja(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,A=g;break e}A=i.return}}var h=e.current;for(A=h;A!==null;){s=A;var S=s.child;if((s.subtreeFlags&2064)!==0&&S!==null)S.return=s,A=S;else e:for(s=h;A!==null;){if(a=A,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Ed(9,a)}}catch(R){Ae(a,a.return,R)}if(a===s){A=null;break e}var T=a.sibling;if(T!==null){T.return=a.return,A=T;break e}A=a.return}}if(Z=o,io(),Gr&&typeof Gr.onPostCommitFiberRoot=="function")try{Gr.onPostCommitFiberRoot(fd,e)}catch{}n=!0}return n}finally{ae=r,lr.transition=t}}return!1}function V0(e,t,r){t=ds(r,t),t=_I(e,t,1),e=Jn(e,t,1),t=vt(),e!==null&&(Sl(e,1,t),Lt(e,t))}function Ae(e,t,r){if(e.tag===3)V0(e,e,r);else for(;t!==null;){if(t.tag===3){V0(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Qn===null||!Qn.has(n))){e=ds(r,e),e=vI(t,e,1),t=Jn(t,e,1),e=vt(),t!==null&&(Sl(t,1,e),Lt(t,e));break}}t=t.return}}function sL(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&r,Ge===e&&(Qe&r)===r&&(ze===4||ze===3&&(Qe&130023424)===Qe&&500>Me()-_g?jo(e,0):yg|=r),Lt(e,t)}function HI(e,t){t===0&&((e.mode&1)===0?t=1:(t=yu,yu<<=1,(yu&130023424)===0&&(yu=4194304)));var r=vt();e=_n(e,t),e!==null&&(Sl(e,t,r),Lt(e,r))}function aL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),HI(e,r)}function lL(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(w(314))}n!==null&&n.delete(t),HI(e,r)}var zI;zI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||At.current)Ct=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ct=!1,K2(e,t,r);Ct=(e.flags&131072)!==0}else Ct=!1,Ie&&(t.flags&1048576)!==0&>(t,td,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Fu(e,t),e=t.pendingProps;var o=as(t,dt.current);os(t,r),o=pg(null,t,n,e,o,r);var i=fg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(n)?(i=!0,Zu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ag(t),o.updater=vd,t.stateNode=o,o._reactInternals=t,Ih(t,n,e,r),t=kh(null,t,n,!0,i,r)):(t.tag=0,Ie&&i&&eg(t),_t(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Fu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=uL(n),e=kr(n,e),o){case 0:t=xh(null,t,n,e,r);break e;case 1:t=D0(null,t,n,e,r);break e;case 11:t=O0(null,t,n,e,r);break e;case 14:t=P0(null,t,n,kr(n.type,e),r);break e}throw Error(w(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:kr(n,o),xh(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:kr(n,o),D0(e,t,n,o,r);case 3:e:{if(bI(t),e===null)throw Error(w(387));n=t.pendingProps,i=t.memoizedState,o=i.element,JT(e,t),od(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ds(Error(w(423)),t),t=U0(e,t,n,r,o);break e}else if(n!==o){o=ds(Error(w(424)),t),t=U0(e,t,n,r,o);break e}else for(zt=Xn(t.stateNode.containerInfo.firstChild),$t=t,Ie=!0,Rr=null,r=KT(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ls(),n===o){t=vn(e,t,r);break e}_t(e,t,n,r)}t=t.child}return t;case 5:return QT(t),e===null&&vh(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,hh(n,o)?s=null:i!==null&&hh(n,i)&&(t.flags|=32),II(e,t),_t(e,t,s,r),t.child;case 6:return e===null&&vh(t),null;case 13:return xI(e,t,r);case 4:return lg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=cs(t,null,n,r):_t(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:kr(n,o),O0(e,t,n,o,r);case 7:return _t(e,t,t.pendingProps,r),t.child;case 8:return _t(e,t,t.pendingProps.children,r),t.child;case 12:return _t(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ge(rd,n._currentValue),n._currentValue=s,i!==null)if(Ar(i.value,s)){if(i.children===o.children&&!At.current){t=vn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=gn(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Eh(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(w(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),Eh(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}_t(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,os(t,r),o=cr(o),n=n(o),t.flags|=1,_t(e,t,n,r),t.child;case 14:return n=t.type,o=kr(n,t.pendingProps),o=kr(n.type,o),P0(e,t,n,o,r);case 15:return EI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:kr(n,o),Fu(e,t),t.tag=1,Mt(n)?(e=!0,Zu(t)):e=!1,os(t,r),yI(t,n,o),Ih(t,n,o,r),kh(null,t,n,!0,e,r);case 19:return kI(e,t,r);case 22:return TI(e,t,r)}throw Error(w(156,t.tag))};function $I(e,t){return hT(e,t)}function cL(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(e,t,r,n){return new cL(e,t,r,n)}function Ig(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uL(e){if(typeof e=="function")return Ig(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$h)return 11;if(e===jh)return 14}return 2}function eo(e,t){var r=e.alternate;return r===null?(r=ar(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $u(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Ig(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ji:return Wo(r.children,o,i,t);case zh:s=8,o|=8;break;case Ym:return e=ar(12,r,t,o|2),e.elementType=Ym,e.lanes=i,e;case qm:return e=ar(13,r,t,o),e.elementType=qm,e.lanes=i,e;case Km:return e=ar(19,r,t,o),e.elementType=Km,e.lanes=i,e;case Q0:return Id(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X0:s=10;break e;case J0:s=9;break e;case $h:s=11;break e;case jh:s=14;break e;case zn:s=16,n=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=ar(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Wo(e,t,r,n){return e=ar(7,e,n,t),e.lanes=r,e}function Id(e,t,r,n){return e=ar(22,e,n,t),e.elementType=Q0,e.lanes=r,e.stateNode={isHidden:!1},e}function Wm(e,t,r){return e=ar(6,e,null,t),e.lanes=r,e}function Gm(e,t,r){return t=ar(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dL(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rm(0),this.expirationTimes=Rm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rm(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bg(e,t,r,n,o,i,s,a,l){return e=new dL(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ar(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ag(i),e}function pL(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$i,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function jI(e){if(!e)return ro;e=e._reactInternals;e:{if(Jo(e)!==e||e.tag!==1)throw Error(w(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(w(171))}if(e.tag===1){var r=e.type;if(Mt(r))return jT(e,r,t)}return t}function WI(e,t,r,n,o,i,s,a,l){return e=bg(r,n,!0,e,o,i,s,a,l),e.context=jI(null),r=e.current,n=vt(),o=Zn(r),i=gn(n,o),i.callback=t??null,Jn(r,i,o),e.current.lanes=o,Sl(e,o,n),Lt(e,n),e}function bd(e,t,r,n){var o=t.current,i=vt(),s=Zn(o);return r=jI(r),t.context===null?t.context=r:t.pendingContext=r,t=gn(i,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Jn(o,t,s),e!==null&&(Cr(e,o,s,i),Du(e,o,s)),s}function pd(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Y0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function xg(e,t){Y0(e,t),(e=e.alternate)&&Y0(e,t)}function fL(){return null}var GI=typeof reportError=="function"?reportError:function(e){console.error(e)};function kg(e){this._internalRoot=e}xd.prototype.render=kg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));bd(e,t,null,null)};xd.prototype.unmount=kg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ko(function(){bd(null,e,null,null)}),t[yn]=null}};function xd(e){this._internalRoot=e}xd.prototype.unstable_scheduleHydration=function(e){if(e){var t=TT();e={blockedOn:null,target:e,priority:t};for(var r=0;r<jn.length&&t!==0&&t<jn[r].priority;r++);jn.splice(r,0,e),r===0&&bT(e)}};function wg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function q0(){}function mL(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var c=pd(s);i.call(c)}}var s=WI(t,n,e,0,null,!1,!1,"",q0);return e._reactRootContainer=s,e[yn]=s.current,ll(e.nodeType===8?e.parentNode:e),Ko(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var a=n;n=function(){var c=pd(l);a.call(c)}}var l=bg(e,0,!1,null,null,!1,!1,"",q0);return e._reactRootContainer=l,e[yn]=l.current,ll(e.nodeType===8?e.parentNode:e),Ko(function(){bd(t,l,r,n)}),l}function wd(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=pd(s);a.call(l)}}bd(t,s,e,o)}else s=mL(r,t,e,o,n);return pd(s)}vT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ja(t.pendingLanes);r!==0&&(Vh(t,r|1),Lt(t,Me()),(Z&6)===0&&(ps=Me()+500,io()))}break;case 13:Ko(function(){var n=_n(e,1);if(n!==null){var o=vt();Cr(n,e,1,o)}}),xg(e,1)}};Yh=function(e){if(e.tag===13){var t=_n(e,134217728);if(t!==null){var r=vt();Cr(t,e,134217728,r)}xg(e,134217728)}};ET=function(e){if(e.tag===13){var t=Zn(e),r=_n(e,t);if(r!==null){var n=vt();Cr(r,e,t,n)}xg(e,t)}};TT=function(){return ae};IT=function(e,t){var r=ae;try{return ae=e,t()}finally{ae=r}};ih=function(e,t,r){switch(t){case"input":if(Qm(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Sd(n);if(!o)throw Error(w(90));eT(n),Qm(n,o)}}}break;case"textarea":rT(e,r);break;case"select":t=r.value,t!=null&&es(e,!!r.multiple,t,!1)}};cT=vg;uT=Ko;var hL={usingClientEntryPoint:!1,Events:[_l,Yi,Sd,aT,lT,vg]},Fa={findFiberByHostInstance:Ho,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gL={bundleType:Fa.bundleType,version:Fa.version,rendererPackageName:Fa.rendererPackageName,rendererConfig:Fa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fT(e),e===null?null:e.stateNode},findFiberByHostInstance:Fa.findFiberByHostInstance||fL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ha=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ha.isDisabled&&Ha.supportsFiber))try{fd=Ha.inject(gL),Gr=Ha}catch{}var Ha;Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hL;Gt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wg(t))throw Error(w(200));return pL(e,t,null,r)};Gt.createRoot=function(e,t){if(!wg(e))throw Error(w(299));var r=!1,n="",o=GI;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=bg(e,1,!1,null,null,r,!1,n,o),e[yn]=t.current,ll(e.nodeType===8?e.parentNode:e),new kg(t)};Gt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=fT(t),e=e===null?null:e.stateNode,e};Gt.flushSync=function(e){return Ko(e)};Gt.hydrate=function(e,t,r){if(!kd(t))throw Error(w(200));return wd(null,e,t,!0,r)};Gt.hydrateRoot=function(e,t,r){if(!wg(e))throw Error(w(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",s=GI;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=WI(t,null,e,1,r??null,o,!1,i,s),e[yn]=t.current,ll(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new xd(t)};Gt.render=function(e,t,r){if(!kd(t))throw Error(w(200));return wd(null,e,t,!1,r)};Gt.unmountComponentAtNode=function(e){if(!kd(e))throw Error(w(40));return e._reactRootContainer?(Ko(function(){wd(null,null,e,!1,function(){e._reactRootContainer=null,e[yn]=null})}),!0):!1};Gt.unstable_batchedUpdates=vg;Gt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!kd(r))throw Error(w(200));if(e==null||e._reactInternals===void 0)throw Error(w(38));return wd(e,t,r,!1,n)};Gt.version="18.3.1-next-f1338f8080-20240426"});var KI=qr((OW,qI)=>{"use strict";function YI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YI)}catch(e){console.error(e)}}YI(),qI.exports=VI()});var JI=qr(Rg=>{"use strict";var XI=KI();Rg.createRoot=XI.createRoot,Rg.hydrateRoot=XI.hydrateRoot;var PW});var rb=qr(Nd=>{"use strict";var yL=un(),_L=Symbol.for("react.element"),vL=Symbol.for("react.fragment"),EL=Object.prototype.hasOwnProperty,TL=yL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,IL={key:!0,ref:!0,__self:!0,__source:!0};function tb(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)EL.call(t,n)&&!IL.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:_L,type:e,key:i,ref:s,props:o,_owner:TL.current}}Nd.Fragment=vL;Nd.jsx=tb;Nd.jsxs=tb});var Tl=qr((GW,nb)=>{"use strict";nb.exports=rb()});var N=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var L=globalThis;var Lr="10.56.0";function Pt(){return uo(L),L}function uo(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Lr,t[Lr]=t[Lr]||{}}function mr(e,t,r=L){let n=r.__SENTRY__=r.__SENTRY__||{},o=n[Lr]=n[Lr]||{};return o[e]||(o[e]=t())}var bl=["debug","info","warn","error","log","assert","trace"],vb="Sentry Logger ",po={};function Ye(e){if(!("console"in L))return e();let t=L.console,r={},n=Object.keys(po);n.forEach(o=>{let i=po[o];r[o]=t[o],t[o]=i});try{return e()}finally{n.forEach(o=>{t[o]=r[o]})}}function Eb(){Od().enabled=!0}function Tb(){Od().enabled=!1}function Ag(){return Od().enabled}function Ib(...e){Ld("log",...e)}function bb(...e){Ld("warn",...e)}function xb(...e){Ld("error",...e)}function Ld(e,...t){N&&Ag()&&Ye(()=>{L.console[e](`${vb}[${e}]:`,...t)})}function Od(){return N?mr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var E={enable:Eb,disable:Tb,isEnabled:Ag,log:Ib,warn:bb,error:xb};var Mg=/\(error: (.*)\)/,Lg=/captureMessage|captureException/;function Ss(...e){let t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{let i=[],s=r.split(`
|
|
9
|
-
`);for(let a=n;a<s.length;a++){let l=s[a];l.length>1024&&(l=l.slice(0,1024));let c=Mg.test(l)?l.replace(Mg,"$1"):l;if(!c.includes("Error: ")){for(let d of t){let u=d(c);if(u){i.push(u);break}}if(i.length>=50+o)break}}return Dd(i.slice(o))}}function kl(e){return Array.isArray(e)?Ss(...e):e}function Dd(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(xl(t).function||"")&&t.pop(),t.reverse(),Lg.test(xl(t).function||"")&&(t.pop(),Lg.test(xl(t).function||"")&&t.pop()),t.slice(0,50).map(r=>({...r,filename:r.filename||xl(t).filename,function:r.function||"?"}))}function xl(e){return e[e.length-1]||{}}var Pd="<anonymous>";function pt(e){try{return!e||typeof e!="function"?Pd:e.name||Pd}catch{return Pd}}function ys(e){let t=e.exception;if(t){let r=[];try{return t.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}var _s={},Og={};function et(e,t){return _s[e]=_s[e]||[],_s[e].push(t),()=>{let r=_s[e];if(r){let n=r.indexOf(t);n!==-1&&r.splice(n,1)}}}function tt(e,t){if(!Og[e]){Og[e]=!0;try{t()}catch(r){N&&E.error(`Error while instrumenting ${e}`,r)}}}function Le(e,t){let r=e&&_s[e];if(r)for(let n of r)try{n(t)}catch(o){N&&E.error(`Error while triggering instrumentation handler.
|
|
10
|
-
Type: ${e}
|
|
11
|
-
Name: ${pt(n)}
|
|
12
|
-
Error:`,o)}}var Ud=null;function vs(e){let t="error";et(t,e),tt(t,kb)}function kb(){Ud=L.onerror,L.onerror=function(e,t,r,n,o){return Le("error",{column:n,error:o,line:r,msg:e,url:t}),Ud?Ud.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}var Bd=null;function Es(e){let t="unhandledrejection";et(t,e),tt(t,wb)}function wb(){Bd=L.onunhandledrejection,L.onunhandledrejection=function(e){return Le("unhandledrejection",e),Bd?Bd.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Pg=Object.prototype.toString;function Yt(e){switch(Pg.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return gr(e,Error)}}function ei(e,t){return Pg.call(e)===`[object ${t}]`}function ti(e){return ei(e,"ErrorEvent")}function Ts(e){return ei(e,"DOMError")}function wl(e){return ei(e,"DOMException")}function rt(e){return ei(e,"String")}function bn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Tt(e){return e===null||bn(e)||typeof e!="object"&&typeof e!="function"}function qt(e){return ei(e,"Object")}function xn(e){return typeof Event<"u"&&gr(e,Event)}function Rl(e){return ei(e,"RegExp")}function hr(e){return!!(e?.then&&typeof e.then=="function")}function gr(e,t){try{return e instanceof t}catch{return!1}}function Is(e){return typeof Request<"u"&&gr(e,Request)}function Re(e,t,r){if(!(t in e))return;let n=e[t];if(typeof n!="function")return;let o=r(n);typeof o=="function"&&bs(o,n);try{e[t]=o}catch{N&&E.log(`Failed to replace method "${t}" in object`,e)}}function ye(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{N&&E.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function bs(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,ye(e,"__sentry_original__",t)}catch{}}function kn(e){return e.__sentry_original__}function xs(e){if(Yt(e))return{message:e.message,name:e.name,stack:e.stack,...Dg(e)};if(xn(e)){let{type:t,target:r,currentTarget:n,detail:o}=e;return{type:t,target:r,currentTarget:n,...o?{detail:o}:{},...Dg(e)}}return e}function Dg(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function Nl(e){let t=Object.keys(xs(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}var ri;function fo(e){if(ri!==void 0)return ri?ri(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=L;return t in r&&typeof r[t]=="function"?(ri=r[t],ri(e)):(ri=null,e())}function Kt(){return fo(()=>Math.random())}function mo(){return fo(()=>Date.now())}var Rb=Symbol.for("sentry.skipNormalization"),Nb=Symbol.for("sentry.overrideNormalizationDepth");function Ug(e){return!!e[Rb]}function Bg(e){let t=e[Nb];return typeof t=="number"?t:void 0}var Fd;function ni(e){Fd=e}function nt(e,t=100,r=1/0){try{return Hd("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function ks(e,t=3,r=100*1024){let n=nt(e,t);return Mb(n)>r?ks(e,t-1,r):n}function Hd(e,t,r=1/0,n=1/0,o=Lb()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let a=zd(e,t);if(!a.startsWith("[object "))return a;if(Ug(t))return t;let l=Bg(t),c=l!==void 0?l:r;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let d=t;if(d&&typeof d.toJSON=="function")try{let m=d.toJSON();return Hd("",m,c-1,n,o)}catch{}let u=Array.isArray(t)?[]:{},p=0,f=xs(t);for(let m in f){if(!Object.prototype.hasOwnProperty.call(f,m))continue;if(p>=n){u[m]="[MaxProperties ~]";break}let _=f[m];u[m]=Hd(m,_,c-1,n,o),p++}return s(t),u}function zd(e,t){try{if(Fd){let n=Fd(t);if(n)return n}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${pt(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Cb(t)}]`}catch(r){return`**non-serializable** (${r})`}}function Cb(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Ab(e){return~-encodeURI(e).split(/%..|./).length}function Mb(e){return Ab(JSON.stringify(e))}function Lb(){let e=new WeakSet;function t(n){return e.has(n)?!0:(e.add(n),!1)}function r(n){e.delete(n)}return[t,r]}function ho(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ws(e,t){if(!Array.isArray(e))return"";let r=[];for(let n=0;n<e.length;n++){let o=e[n];Tt(o)?r.push(String(o)):o instanceof Error?r.push(o.message?`${o.name}: ${o.message}`:o.name):r.push(zd(void 0,o))}return r.join(t)}function wn(e,t,r=!1){return rt(e)?Rl(t)?t.test(e):rt(t)?r?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function qe(e,t=[],r=!1){for(let n of t)if(wn(e,n,r))return!0;return!1}function Ob(){let e=L;return e.crypto||e.msCrypto}var $d;function Pb(){return Kt()*16}function Ne(e=Ob()){try{if(e?.randomUUID)return fo(()=>e.randomUUID()).replace(/-/g,"")}catch{}return $d||($d="10000000100040008000"+1e11),$d.replace(/[018]/g,t=>(t^(Pb()&15)>>t/4).toString(16))}function Fg(e){return e.exception?.values?.[0]}function Sr(e){let{message:t,event_id:r}=e;if(t)return t;let n=Fg(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function go(e,t,r){let n=e.exception=e.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function Xt(e,t){let r=Fg(e);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...t},t&&"data"in t){let i={...o?.data,...t.data};r.mechanism.data=i}}function Rs(e){if(jd(e))return!0;try{ye(e,"__sentry_captured__",!0)}catch{}return!1}function jd(e){try{return e.__sentry_captured__}catch{}}var zg=1e3;function It(){return mo()/zg}function Db(){let{performance:e}=L;if(!e?.now||!e.timeOrigin)return It;let t=e.timeOrigin;return()=>(t+fo(()=>e.now()))/zg}var Hg;function ne(){return(Hg??(Hg=Db()))()}var Wd=null;function Ub(){let{performance:e}=L;if(!e?.now)return;let t=3e5,r=fo(()=>e.now()),n=mo(),o=e.timeOrigin;if(typeof o=="number"&&Math.abs(o+r-n)<t)return o;let i=e.timing?.navigationStart;return typeof i=="number"&&Math.abs(i+r-n)<t?i:n-r}function ue(){return Wd===null&&(Wd=Ub()),Wd}function $g(e){let t=ne(),r={sid:Ne(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Bb(r)};return e&&Kr(r,e),r}function Kr(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||ne(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ne()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let r=e.timestamp-e.started;e.duration=r>=0?r: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),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function jg(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),Kr(e,r)}function Bb(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Rn(e,t,r=2){if(!t||typeof t!="object"||r<=0)return t;if(e&&Object.keys(t).length===0)return e;let n={...e};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=Rn(n[o],t[o],r-1));return n}function ft(){return Ne()}function ot(){return Ne().substring(16)}function Cl(e){try{let t=L.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Al(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}var Gd="_sentrySpan";function Nn(e,t){t?ye(e,Gd,Cl(t)):delete e[Gd]}function So(e){return Al(e[Gd])}var Fb=100,bt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ft(),sampleRand:Kt()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Nn(t,So(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Kr(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this.setTags({[t]:r})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,r){return this.setAttributes({[t]:r})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let r=typeof t=="function"?t(this):t,n=r instanceof e?r.getScopeData():qt(r)?t:void 0,{tags:o,attributes:i,extra:s,user:a,contexts:l,level:c,fingerprint:d=[],propagationContext:u,conversationId:p}=n||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),c&&(this._level=c),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Nn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ft(),sampleRand:Kt()}),this._notifyScopeListeners(),this}addBreadcrumb(t,r){let n=typeof r=="number"?r:Fb;if(n<=0)return this;let o={timestamp:It(),...t,message:t.message?ho(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:So(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Rn(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){let n=r?.event_id||Ne();if(!this._client)return N&&E.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...r,event_id:n},this),n}captureMessage(t,r,n){let o=n?.event_id||Ne();if(!this._client)return N&&E.warn("No client configured on scope - will not capture message!"),o;let i=n?.syntheticException??new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:i,...n,event_id:o},this),o}captureEvent(t,r){let n=t.event_id||r?.event_id||Ne();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(N&&E.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function Wg(){return mr("defaultCurrentScope",()=>new bt)}function Gg(){return mr("defaultIsolationScope",()=>new bt)}var Vg=e=>e instanceof Promise&&!e[Yg],Yg=Symbol("chained PromiseLike"),qg=(e,t,r)=>{let n=e.then(o=>(t(o),o),o=>{throw r(o),o});return Vg(n)&&Vg(e)?n:Hb(e,n)},Hb=(e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let o=e[n];typeof o=="function"?Object.defineProperty(t,n,{value:(...i)=>o.apply(e,i),enumerable:!0,configurable:!0,writable:!0}):t[n]=o}return r&&Object.assign(t,{[Yg]:!0}),t};var Vd=class{constructor(t,r){let n;t?n=t:n=new bt;let o;r?o=r:o=new bt,this._stack=[{scope:n}],this._isolationScope=o}withScope(t){let r=this._pushScope(),n;try{n=t(r)}catch(o){throw this._popScope(),o}return hr(n)?qg(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function oi(){let e=Pt(),t=uo(e);return t.stack=t.stack||new Vd(Wg(),Gg())}function zb(e){return oi().withScope(e)}function $b(e,t){let r=oi();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function Kg(e){return oi().withScope(()=>e(oi().getIsolationScope()))}function Xg(){return{withIsolationScope:Kg,withScope:zb,withSetScope:$b,withSetIsolationScope:(e,t)=>Kg(t),getCurrentScope:()=>oi().getScope(),getIsolationScope:()=>oi().getIsolationScope()}}function Or(e){let t=uo(e);return t.acs?t.acs:Xg()}function jb(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function Wb(e,t){let{value:r,unit:n}=jb(e)?e:{value:e,unit:void 0},o=Gb(r),i=n&&typeof n=="string"?{unit:n}:{};if(o)return{...o,...i};if(!t||t==="skip-undefined"&&r===void 0)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...i}}function Yd(e,t=!1){let r={};for(let[n,o]of Object.entries(e??{})){let i=Wb(o,t);i&&(r[n]=i)}return r}function Gb(e){if(Array.isArray(e))return{value:e,type:"array"};let t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}var Jg;function qd(){return Jg?.()}function Ml(){return Jg!==void 0}function U(){let e=Pt();return Or(e).getCurrentScope()}function Te(){let e=Pt();return Or(e).getIsolationScope()}function Ns(){return mr("globalScope",()=>new bt)}function Jt(...e){let t=Pt(),r=Or(t);if(e.length===2){let[n,o]=e;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(e[0])}function M(){return U().getClient()}function Ll(e){let t=qd();if(t)return{trace_id:t.traceId,span_id:t.spanId};let r=e.getPropagationContext(),{traceId:n,parentSpanId:o,propagationSpanId:i}=r,s={trace_id:n,span_id:i||ot()};return o&&(s.parent_span_id=o),s}var Be="sentry.source",Xr="sentry.sample_rate",ii="sentry.previous_trace_sample_rate",_e="sentry.op",J="sentry.origin",Jr="sentry.idle_span_finish_reason",yr="sentry.measurement_unit",_r="sentry.measurement_value";var si="sentry.custom_span_name",yo="sentry.profile_id",it="sentry.exclusive_time";var Ol="sentry.link.type",Pl="gen_ai.conversation.id";function Kd(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function ai(e,t){e.setAttribute("http.response.status_code",t);let r=Kd(t);r.message!=="unknown_error"&&e.setStatus(r)}var Qg="_sentryScope",Zg="_sentryIsolationScope";function eS(e,t,r){e&&(ye(e,Zg,Cl(r)),ye(e,Qg,t))}function _o(e){let t=e;return{scope:t[Qg],isolationScope:Al(t[Zg])}}var Cs="sentry-";var Vb=8192;function Dl(e){let t=Yb(e);if(!t)return;let r=Object.entries(t).reduce((n,[o,i])=>{if(o.startsWith(Cs)){let s=o.slice(Cs.length);n[s]=i}return n},{});if(Object.keys(r).length>0)return r}function Xd(e){if(!e)return;let t=Object.entries(e).reduce((r,[n,o])=>(o&&(r[`${Cs}${n}`]=o),r),{});return qb(t)}function Yb(e){if(!(!e||!rt(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{let n=tS(r);return Object.entries(n).forEach(([o,i])=>{t[o]=i}),t},{}):tS(e)}function tS(e){return e.split(",").map(t=>{let r=t.indexOf("=");if(r===-1)return[];let n=t.slice(0,r),o=t.slice(r+1);return[n,o].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}function qb(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],o)=>{let i=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=o===0?i:`${t},${i}`;return s.length>Vb?(N&&E.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},"")}var Kb=/^o(\d+)\./,Xb=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Jb(e){return e==="http"||e==="https"}function Dt(e,t=!1){let{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${s}`}function Qb(e){let t=Xb.exec(e);if(!t){Ye(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,o="",i="",s="",a=""]=t.slice(1),l="",c=a,d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){let u=c.match(/^\d+/);u&&(c=u[0])}return rS({host:i,pass:o,path:l,projectId:c,port:s,protocol:r,publicKey:n})}function rS(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zb(e){if(!N)return!0;let{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(E.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?Jb(n)?t&&isNaN(parseInt(t,10))?(E.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(E.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(E.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function ex(e){return e.match(Kb)?.[1]}function nS(e){let t=e.getOptions(),{host:r}=e.getDsn()||{},n;return t.orgId?n=String(t.orgId):r&&(n=ex(r)),n}function Ul(e){let t=typeof e=="string"?Qb(e):rS(e);if(!(!t||!Zb(t)))return t}function Ut(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var Bl=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function oS(e){if(!e)return;let t=e.match(Bl);if(!t)return;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function Jd(e,t){let r=oS(e),n=Dl(t);if(!r?.traceId)return{traceId:ft(),sampleRand:Kt()};let o=tx(r,n);n&&(n.sample_rand=o.toString());let{traceId:i,parentSpanId:s,parentSampled:a}=r;return{traceId:i,parentSpanId:s,sampled:a,dsc:n||{},sampleRand:o}}function As(e=ft(),t=ot(),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function Ms(e=ft(),t=ot(),r){return`00-${e}-${t}-${r?"01":"00"}`}function tx(e,t){let r=Ut(t?.sample_rand);if(r!==void 0)return r;let n=Ut(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?Kt()*n:n+Kt()*(1-n):Kt()}var Fl=0,Os=1,iS=!1;function lS(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a,links:l}=B(e);return{parent_span_id:i,span_id:t,trace_id:r,data:n,op:o,status:s,origin:a,links:l}}function Hl(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),o=n?t:B(e).parent_span_id,i=_o(e).scope,s=n?i?.getPropagationContext().propagationSpanId||ot():t;return{parent_span_id:o,span_id:s,trace_id:r}}function Ps(e){let{traceId:t,spanId:r}=e.spanContext(),n=kt(e);return As(t,r,n)}function cS(e){let{traceId:t,spanId:r}=e.spanContext(),n=kt(e);return Ms(t,r,n)}function Ds(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:r,traceFlags:n,...o},attributes:i})=>({span_id:t,trace_id:r,sampled:n===Os,attributes:i,...o}))}function ep(e){if(e?.length)return e.map(({context:{spanId:t,traceId:r,traceFlags:n},attributes:o})=>({span_id:t,trace_id:r,sampled:n===Os,attributes:o}))}function xt(e){return typeof e=="number"?sS(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sS(e.getTime()):ne()}function sS(e){return e>9999999999?e/1e3:e}function B(e){if(fS(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(pS(e)){let{attributes:n,startTime:o,name:i,endTime:s,status:a,links:l}=e;return{span_id:t,trace_id:r,data:n,description:i,parent_span_id:uS(e),start_timestamp:xt(o),timestamp:xt(s)||void 0,status:Bs(a),op:n[_e],origin:n[J],links:Ds(l)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function Us(e){if(fS(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(pS(e)){let{attributes:n,startTime:o,name:i,endTime:s,status:a,links:l}=e;return{name:i,span_id:t,trace_id:r,parent_span_id:uS(e),start_timestamp:xt(o),end_timestamp:xt(s),is_segment:e===Ls(e),status:tp(a),attributes:n,links:ep(l)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===Ls(e)}}function uS(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function dS(e){return{...e,attributes:Yd(e.attributes),links:e.links?.map(t=>({...t,attributes:Yd(t.attributes)}))}}function pS(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fS(e){return typeof e.getSpanJSON=="function"}function kt(e){let{traceFlags:t}=e.spanContext();return t===Os}function Bs(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}function tp(e){return!e||e.code===1||e.code===0||e.message==="cancelled"?"ok":"error"}var vo="_sentryChildSpans",Qd="_sentryRootSpan";function Fs(e,t){let r=e[Qd]||e;ye(t,Qd,r),e[vo]?e[vo].add(t):ye(e,vo,new Set([t]))}function mS(e,t){e[vo]&&e[vo].delete(t)}function Qr(e){let t=new Set;function r(n){if(!t.has(n)&&kt(n)){t.add(n);let o=n[vo]?Array.from(n[vo]):[];for(let i of o)r(i)}}return r(e),Array.from(t)}var te=Ls;function Ls(e){return e[Qd]||e}function ie(){let e=Pt(),t=Or(e);return t.getActiveSpan?t.getActiveSpan():So(U())}function Hs(){iS||(Ye(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),iS=!0)}var hS=!1;function zl(){if(hS)return;function e(){let t=ie(),r=t&&te(t);if(r){let n="internal_error";N&&E.log(`[Tracing] Root span: ${n} -> Global error occurred`),r.setStatus({code:2,message:n})}}hS=!0,vs(e),Es(e)}function Fe(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||M()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function gS(e){E.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Zr(e,t){if(!t?.length)return!1;for(let r of t){if(nx(r)){if(e.description&&wn(e.description,r))return N&&gS(e),!0;continue}let n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;let o=r.name?e.description&&wn(e.description,r.name):!0,i=r.op?e.op&&wn(e.op,r.op):!0,s=r.attributes?Object.entries(r.attributes).every(([a,l])=>rx(e.attributes?.[a],l)):!0;if(o&&i&&s)return N&&gS(e),!0}return!1}function rx(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?wn(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e===t}function SS(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let o of e)o.parent_span_id===n&&(o.parent_span_id=r)}function nx(e){return typeof e=="string"||e instanceof RegExp}var li="production";var yS="_frozenDsc";function ci(e,t){ye(e,yS,t)}function $l(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},o={environment:r.environment||li,release:r.release,public_key:n,trace_id:e,org_id:nS(t)};return t.emit("createDsc",o),o}function ui(e,t){let r=t.getPropagationContext();return r.dsc||$l(r.traceId,e)}function Oe(e){let t=M();if(!t)return{};let r=te(e),n=B(r),o=n.data,i=r.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Xr]??o[ii];function a(m){return(typeof s=="number"||typeof s=="string")&&(m.sample_rate=`${s}`),m}let l=r[yS];if(l)return a(l);let c=i?.get("sentry.dsc"),d=c&&Dl(c);if(d)return a(d);let u=$l(e.spanContext().traceId,t),p=o[Be]??o["sentry.span.source"],f=n.description;return p!=="url"&&f&&(u.transaction=f),Fe()&&(u.sampled=String(kt(r)),u.sample_rand=i?.get("sentry.sample_rand")??_o(r).scope?.getPropagationContext().sampleRand.toString()),a(u),t.emit("createDsc",u,r),u}var Ke=class{constructor(t={}){this._traceId=t.traceId||ft(),this._spanId=t.spanId||ot(),this.dropReason=t.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Fl}}end(t){}setAttribute(t,r){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,r,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,r){}};function jl(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function mt(e,t=[]){return[e,t]}function Wl(e,t){let[r,n]=e;return[r,[...n,t]]}function zs(e,t){let r=e[1];for(let n of r){let o=n[0].type;if(t(n,o))return!0}return!1}function np(e,t){return zs(e,(r,n)=>t.includes(n))}function rp(e){let t=uo(L);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function op(e){let[t,r]=e,n=JSON.stringify(t);function o(i){typeof n=="string"?n=typeof i=="string"?n+i:[rp(n),i]:n.push(typeof i=="string"?rp(i):i)}for(let i of r){let[s,a]=i;if(o(`
|
|
13
|
-
${JSON.stringify(s)}
|
|
14
|
-
`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(nt(a))}o(l)}}return typeof n=="string"?n:ox(n)}function ox(e){let t=e.reduce((o,i)=>o+i.length,0),r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}function ip(e){return[{type:"span"},e]}function sp(e){let t=typeof e.data=="string"?rp(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var _S={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ix(e){return e in _S}function Gl(e){return ix(e)?_S[e]:e}function di(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function $s(e,t,r,n){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:Dt(n)},...o&&{trace:o}}}function sx(e,t){if(!t)return e;let r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function vS(e,t,r,n){let o=di(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&t&&{dsn:Dt(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return mt(i,[s])}function ES(e,t,r,n){let o=di(r),i=e.type&&e.type!=="replay_event"?e.type:"event";sx(e,r?.sdk);let s=$s(e,o,n,t);return delete e.sdkProcessingMetadata,mt(s,[[{type:i},e]])}function TS(e,t){function r(f){return!!f.trace_id&&!!f.public_key}let n=Oe(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!i&&o&&{dsn:Dt(o)}},{beforeSendSpan:a,ignoreSpans:l}=t?.getOptions()||{},c=l?.length?e.filter(f=>{let m=B(f);return!Zr({description:m.description,op:m.op,attributes:m.data},l)}):e,d=e.length-c.length;d&&t?.recordDroppedEvent("before_send","span",d);let u=a?f=>{let m=B(f),_=jl(a)?m:a(m);return _||(Hs(),m)}:B,p=[];for(let f of c){let m=u(f);m&&p.push(ip(m))}return mt(s,p)}function IS(e){if(!N)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=B(e),{spanId:o}=e.spanContext(),i=kt(e),s=te(e),a=s===e,l=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${o}`];if(n&&c.push(`parent ID: ${n}`),!a){let{op:d,description:u}=B(s);c.push(`root ID: ${s.spanContext().spanId}`),d&&c.push(`root op: ${d}`),u&&c.push(`root description: ${u}`)}E.log(`${l}
|
|
15
|
-
${c.join(`
|
|
16
|
-
`)}`)}function bS(e){if(!N)return;let{description:t="< unknown name >",op:r="< unknown op >"}=B(e),{spanId:n}=e.spanContext(),i=te(e)===e,s=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;E.log(s)}function Vl(e,t,r,n=ie()){let o=n&&te(n);o&&(N&&E.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),o.addEvent(e,{[_r]:t,[yr]:r}))}function Yl(e){if(!e||e.length===0)return;let t={};return e.forEach(r=>{let n=r.attributes||{},o=n[yr],i=n[_r];typeof o=="string"&&typeof i=="number"&&(t[r.name]={value:i,unit:o})}),t}function Xe(e){return e.getOptions().traceLifecycle==="stream"}var xS=1e3,Cn=class{constructor(t={}){this._traceId=t.traceId||ft(),this._spanId=t.spanId||ot(),this._startTime=t.startTimestamp||ne(),this._links=t.links,this._attributes={},this.setAttributes({[J]:"manual",[_e]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,r){}spanContext(){let{_spanId:t,_traceId:r,_sampled:n}=this;return{spanId:t,traceId:r,traceFlags:n?Os:Fl}}setAttribute(t,r){return r===void 0?delete this._attributes[t]:this._attributes[t]=r,this}setAttributes(t){return Object.keys(t).forEach(r=>this.setAttribute(r,t[r])),this}updateStartTime(t){this._startTime=xt(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Be,"custom"),this}end(t){this._endTime||(this._endTime=xt(t),bS(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[_e],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Bs(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[J],profile_id:this._attributes[yo],exclusive_time:this._attributes[it],measurements:Yl(this._events),is_segment:this._isStandaloneSpan&&te(this)===this||void 0,segment_id:this._isStandaloneSpan?te(this).spanContext().spanId:void 0,links:Ds(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===te(this),status:tp(this._status),attributes:this._attributes,links:ep(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,r,n){N&&E.log("[Tracing] Adding an event to span:",t);let o=kS(r)?r:n||ne(),i=kS(r)?{}:r||{},s={name:t,time:xt(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=M();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===te(this)))return;if(this._isStandaloneSpan){this._sampled?lx(TS([this],t)):(N&&E.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}else if(t&&Xe(t)){t.emit("afterSegmentSpanEnd",this);return}let n=this._convertSpanToTransaction();n&&(_o(this).scope||U()).captureEvent(n)}_convertSpanToTransaction(){if(!wS(B(this)))return;this._name||(N&&E.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:r}=_o(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=Qr(this).filter(u=>u!==this&&!ax(u)).map(u=>B(u)).filter(wS),s=this._attributes[Be];delete this._attributes[si];let a=!1;i.forEach(u=>{delete u.data[si],u.op?.startsWith("gen_ai.")&&(a=!0)});let l={contexts:{trace:lS(this)},spans:i.length>xS?i.sort((u,p)=>u.start_timestamp-p.start_timestamp).slice(0,xS):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,dynamicSamplingContext:Oe(this),hasGenAiSpans:a},request:n,...s&&{transaction_info:{source:s}}},c=Yl(this._events);return c&&Object.keys(c).length&&(N&&E.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}};function kS(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function wS(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ax(e){return e instanceof Cn&&e.isStandaloneSpan()}function lx(e){let t=M();if(!t)return;let r=e[1];if(!r||r.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function RS(e,t,r){if(!Fe(e))return[!1];let n,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),n=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,n=!0);let i=Ut(o);if(i===void 0)return N&&E.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return N&&E.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,n];let s=r<i;return s||N&&E.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,n]}var ap="__SENTRY_SUPPRESS_TRACING__";function $e(e){let t=CS();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=ux(e),{forceTransaction:n,parentSpan:o}=e;return(e.scope?s=>Jt(e.scope,s):o!==void 0?s=>pi(o,s):s=>s())(()=>{let s=U(),a=px(s,o),l=M();return e.onlyIfParent&&!a?(l?.recordDroppedEvent("no_parent_span","span"),new Ke):cx({parentSpan:a,spanArguments:r,forceTransaction:n,scope:s})})}function pi(e,t){let r=CS();return r.withActiveSpan?r.withActiveSpan(e,t):Jt(n=>(Nn(n,e||void 0),t(n)))}function cx({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!Fe()){let a=new Ke;if(r||!e){let l={sampled:"false",sample_rate:"0",transaction:t.name,...Oe(a)};ci(a,l)}return a}let o=M();if(fx(o,t))return lp(n)||o?.recordDroppedEvent("ignored","span"),new Ke({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});let i=Te(),s;if(e&&!r)s=dx(e,n,t),Fs(e,s);else if(e){let a=Oe(e),{traceId:l,spanId:c}=e.spanContext(),d=kt(e);s=NS({traceId:l,parentSpanId:c,...t},n,d),ci(s,a)}else{let{traceId:a,dsc:l,parentSpanId:c,sampled:d}={...i.getPropagationContext(),...n.getPropagationContext()};s=NS({traceId:a,parentSpanId:c,...t},n,d),l&&ci(s,l)}return IS(s),eS(s,n,i),s}function ux(e){let r={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...r};return n.startTimestamp=xt(e.startTime),delete n.startTime,n}return r}function CS(){let e=Pt();return Or(e)}function NS(e,t,r){let n=M(),o=n?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:r};n?.emit("beforeSampling",s,{decision:!1});let a=s.parentSampled??r,l=s.spanAttributes,c=t.getPropagationContext(),d=lp(t),[u,p,f]=d?[!1]:RS(o,{name:i,parentSampled:a,attributes:l,parentSampleRate:Ut(c.dsc?.sample_rate)},c.sampleRand),m=new Cn({...e,attributes:{[Be]:"custom",[Xr]:p!==void 0&&f?p:void 0,...l},sampled:u});return!u&&n&&!d&&(N&&E.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate",Xe(n)?"span":"transaction")),n&&n.emit("spanStart",m),m}function dx(e,t,r){let{spanId:n,traceId:o}=e.spanContext(),i=lp(t),s=i?!1:kt(e),a=s?new Cn({...r,parentSpanId:n,traceId:o,sampled:s}):new Ke({traceId:o});Fs(e,a);let l=M();return l&&(Xe(l)&&a instanceof Ke&&(e instanceof Ke&&e.dropReason?(a.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):i||(a.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span"))),l.emit("spanStart",a),r.endTimestamp&&(l.emit("spanEnd",a),l.emit("afterSpanEnd",a))),a}function px(e,t){if(t)return t;if(t===null)return;let r=So(e);if(!r)return;let n=M();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?te(r):r}function fx(e,t){let r=e?.getOptions().ignoreSpans;return!e||!Xe(e)||!r?.length?!1:Zr({description:t.name||"",op:t.attributes?.[_e]||t.op,attributes:t.attributes},r)}function lp(e){return e.getScopeData().sdkProcessingMetadata[ap]===!0}var fi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},mx="heartbeatFailed",hx="idleTimeout",gx="finalTimeout",Sx="externalFinish";function ql(e,t={}){let r=new Map,n=!1,o,i=Sx,s=!t.disableAutoFinish,a=[],{idleTimeout:l=fi.idleTimeout,finalTimeout:c=fi.finalTimeout,childSpanTimeout:d=fi.childSpanTimeout,beforeSpanEnd:u,trimIdleSpanEndTimestamp:p=!0}=t,f=M();if(!f||!Fe()){let v=new Ke,x={sample_rate:"0",sampled:"false",...Oe(v)};return ci(v,x),v}let m=U(),_=ie(),I=yx(e);I.end=new Proxy(I.end,{apply(v,x,j){if(u&&u(I),x instanceof Ke)return;let[b,...P]=j,Y=b||ne(),ee=xt(Y),G=Qr(I).filter($=>$!==I),Ue=B(I);if(!G.length||!p)return k(ee),Reflect.apply(v,x,[ee,...P]);let ce=f.getOptions().ignoreSpans,Se=G?.reduce(($,q)=>{let de=B(q);return!de.timestamp||ce&&Zr({description:de.description,op:de.op,attributes:de.data},ce)?$:$?Math.max($,de.timestamp):de.timestamp},void 0),C=Ue.start_timestamp,oe=Math.min(C?C+c/1e3:1/0,Math.max(C||-1/0,Math.min(ee,Se||1/0)));return k(oe),Reflect.apply(v,x,[oe,...P])}});function g(){o&&(clearTimeout(o),o=void 0)}function h(v){g(),o=setTimeout(()=>{!n&&r.size===0&&s&&(i=hx,I.end(v))},l)}function S(v){o=setTimeout(()=>{!n&&s&&(i=mx,I.end(v))},d)}function T(v){g(),r.set(v,!0);let x=ne();S(x+d/1e3)}function R(v){if(r.has(v)&&r.delete(v),r.size===0){let x=ne();h(x+l/1e3)}}function k(v){n=!0,r.clear(),a.forEach(G=>G()),Nn(m,_);let x=B(I),{start_timestamp:j}=x;if(!j)return;x.data[Jr]||I.setAttribute(Jr,i);let P=x.status;(!P||P==="unknown")&&I.setStatus({code:1}),E.log(`[Tracing] Idle span "${x.op}" finished`);let Y=Qr(I).filter(G=>G!==I),ee=0;Y.forEach(G=>{G.isRecording()&&(G.setStatus({code:2,message:"cancelled"}),G.end(v),N&&E.log("[Tracing] Cancelling span since span ended early",JSON.stringify(G,void 0,2)));let Ue=B(G),{timestamp:ce=0,start_timestamp:Se=0}=Ue,C=Se<=v,oe=(c+l)/1e3,$=ce-Se<=oe;if(N){let q=JSON.stringify(G,void 0,2);C?$||E.log("[Tracing] Discarding span since it finished after idle span final timeout",q):E.log("[Tracing] Discarding span since it happened after idle span was finished",q)}(!$||!C)&&(mS(I,G),ee++)}),ee>0&&I.setAttribute("sentry.idle_span_discarded_spans",ee)}return a.push(f.on("spanStart",v=>{if(n||v===I||B(v).timestamp||v instanceof Cn&&v.isStandaloneSpan())return;Qr(I).includes(v)&&T(v.spanContext().spanId)})),a.push(f.on("spanEnd",v=>{n||R(v.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",v=>{v===I&&(s=!0,h(),r.size&&S())})),t.disableAutoFinish||h(),setTimeout(()=>{n||(I.setStatus({code:2,message:"deadline_exceeded"}),i=gx,I.end())},c),I}function yx(e){let t=$e(e);return Nn(U(),t),N&&E.log("[Tracing] Started span is an idle span"),t}function MS(e,t){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:i}=t;_x(e,t),n&&Tx(e,n),Ix(e,r),vx(e,o),Ex(e,i)}function AS(e,t){let{extra:r,tags:n,attributes:o,user:i,contexts:s,level:a,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:d,eventProcessors:u,attachments:p,propagationContext:f,transactionName:m,span:_}=t;js(e,"extra",r),js(e,"tags",n),js(e,"attributes",o),js(e,"user",i),js(e,"contexts",s),e.sdkProcessingMetadata=Rn(e.sdkProcessingMetadata,l,2),a&&(e.level=a),m&&(e.transactionName=m),_&&(e.span=_),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function js(e,t,r){e[t]=Rn(e[t],r,1)}function Kl(e,t){let r=Ns().getScopeData();return e&&AS(r,e.getScopeData()),t&&AS(r,t.getScopeData()),r}function _x(e,t){let{extra:r,tags:n,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function vx(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function Ex(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Tx(e,t){e.contexts={trace:Hl(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Oe(t),...e.sdkProcessingMetadata};let r=te(t),n=B(r).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n)}function Ix(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var bx="thismessage:/";function To(e){return"isRelative"in e}function Pr(e,t){let r=e.indexOf("://")<=0&&e.indexOf("//")!==0,n=t??(r?bx:void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let o=new URL(e,n);return r?{isRelative:r,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function mi(e){if(To(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Qt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function Xl(e){return e.split(/[?#]/,1)[0]}function st(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",o=e.includes(";base64,"),i=e.indexOf(","),s="";if(t&&i!==-1){let a=e.slice(i+1);s=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${n}${o?",base64":""}${s?`,${s}`:""}`}return e}function An(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([n,o])=>{o!=null&&!(n in r)&&(r[n]=o)})}var cp=0,LS=1,OS=2;function Dr(e){return new Ws(t=>{t(e)})}function Io(e){return new Ws((t,r)=>{r(e)})}var Ws=class e{constructor(t){this._state=cp,this._handlers=[],this._runExecutor(t)}then(t,r){return new e((n,o)=>{this._handlers.push([!1,i=>{if(!t)n(i);else try{n(t(i))}catch(s){o(s)}},i=>{if(!r)o(i);else try{n(r(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new e((r,n)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){n(o);return}r(o)})})}_executeHandlers(){if(this._state===cp)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===LS&&r[1](this._value),this._state===OS&&r[2](this._value),r[0]=!0)})}_runExecutor(t){let r=(i,s)=>{if(this._state===cp){if(hr(s)){s.then(n,o);return}this._state=i,this._value=s,this._executeHandlers()}},n=i=>{r(LS,i)},o=i=>{r(OS,i)};try{t(n,o)}catch(i){o(i)}}};function PS(e,t,r,n=0){try{let o=up(t,r,e,n);return hr(o)?o:Dr(o)}catch(o){return Io(o)}}function up(e,t,r,n){let o=r[n];if(!e||!o)return e;let i=o({...e},t);return N&&i===null&&E.log(`Event processor "${o.id||"?"}" dropped event`),hr(i)?i.then(s=>up(s,t,r,n+1)):up(i,t,r,n+1)}var bo,DS,US,Mn;function BS(e){let t=L._sentryDebugIds,r=L._debugIds;if(!t&&!r)return{};let n=t?Object.keys(t):[],o=r?Object.keys(r):[];if(Mn&&n.length===DS&&o.length===US)return Mn;DS=n.length,US=o.length,Mn={},bo||(bo={});let i=(s,a)=>{for(let l of s){let c=a[l],d=bo?.[l];if(d&&Mn&&c)Mn[d[0]]=c,bo&&(bo[l]=[d[0],c]);else if(c){let u=e(l);for(let p=u.length-1;p>=0;p--){let m=u[p]?.filename;if(m&&Mn&&bo){Mn[m]=c,bo[l]=[m,c];break}}}}};return t&&i(n,t),r&&i(o,r),Mn}function Gs(e,t,r,n,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||r.event_id||Ne(),timestamp:t.timestamp||It()},c=r.integrations||e.integrations.map(g=>g.name);xx(l,e),Rx(l,c),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&kx(l,e.stackParser);let d=Cx(n,r.captureContext);r.mechanism&&Xt(l,r.mechanism);let u=o?o.getEventProcessors():[],p=Kl(i,d),f=[...r.attachments||[],...p.attachments];f.length&&(r.attachments=f),MS(l,p);let m=[...u,...p.eventProcessors];return(r.data&&r.data.__sentry__===!0?Dr(l):PS(m,l,r)).then(g=>(g&&wx(g),typeof s=="number"&&s>0?Nx(g,s,a):g))}function xx(e,t){let{environment:r,release:n,dist:o,maxValueLength:i}=t;e.environment=e.environment||r||li,!e.release&&n&&(e.release=n),!e.dist&&o&&(e.dist=o);let s=e.request;s?.url&&i&&(s.url=ho(s.url,i)),i&&e.exception?.values?.forEach(a=>{a.value&&(a.value=ho(a.value,i))})}function kx(e,t){let r=BS(t);e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=r[o.filename])})})}function wx(e){let t={};if(e.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function Rx(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Nx(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:nt(o.data,t,r)}}))},...e.user&&{user:nt(e.user,t,r)},...e.contexts&&{contexts:nt(e.contexts,t,r)},...e.extra&&{extra:nt(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=nt(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(o=>({...o,...o.data&&{data:nt(o.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=nt(e.contexts.flags,3,r)),n}function Cx(e,t){if(!t)return e;let r=e?e.clone():new bt;return r.update(t),r}function FS(e){if(e)return Ax(e)?{captureContext:e}:Lx(e)?{captureContext:e}:e}function Ax(e){return e instanceof bt||typeof e=="function"}var Mx=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Lx(e){return Object.keys(e).some(t=>Mx.includes(t))}function en(e,t){return U().captureException(e,FS(t))}function hi(e,t){return U().captureEvent(e,t)}function xo(e,t){Te().setContext(e,t)}function Vs(){return Te().lastEventId()}function Ys(){let e=M();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function qs(e){Te().addEventProcessor(e)}function gi(e){let t=Te(),{user:r}=Kl(t,U()),{userAgent:n}=L.navigator||{},o=$g({user:r,...n&&{userAgent:n},...e}),i=t.getSession();return i?.status==="ok"&&Kr(i,{status:"exited"}),Ks(),t.setSession(o),o}function Ks(){let e=Te(),r=U().getSession()||e.getSession();r&&jg(r),HS(),e.setSession()}function HS(){let e=Te(),t=M(),r=e.getSession();r&&t&&t.captureSession(r)}function ko(e=!1){if(e){Ks();return}HS()}var zS="7";function $S(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function Ox(e){return`${$S(e)}${e.projectId}/envelope/`}function Px(e,t){let r={sentry_version:zS};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function pp(e,t,r){return t||`${Ox(e)}?${Px(e,r)}`}function fp(e,t){let r=Ul(e);if(!r)return"";let n=`${$S(r)}embed/error-page/`,o=`dsn=${Dt(r)}`;for(let i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${n}?${o}`}var mp=[];function Dx(e){let t={};return e.forEach(r=>{let{name:n}=r,o=t[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(t[n]=r)}),Object.values(t)}function hp(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let n;if(Array.isArray(r))n=[...t,...r];else if(typeof r=="function"){let o=r(t);n=Array.isArray(o)?o:[o]}else n=t;return Dx(n)}function jS(e,t){let r={};return t.forEach(n=>{n?.beforeSetup&&n.beforeSetup(e)}),t.forEach(n=>{n&&Sp(e,n,r)}),r}function gp(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function Sp(e,t,r){if(r[t.name]){N&&E.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,!mp.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),mp.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>n(o,i,e))}if(typeof t.processEvent=="function"){let n=t.processEvent.bind(t),o=Object.assign((i,s)=>n(i,s,e),{id:t.name});e.addEventProcessor(o)}["processSpan","processSegmentSpan"].forEach(n=>{let o=t[n];typeof o=="function"&&e.on(n,i=>o.call(t,i,e))}),N&&E.log(`Integration installed: ${t.name}`)}function yp(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function _p(){return"npm"}function WS(){return!yp()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Zt(){return typeof window<"u"&&(!WS()||Ux())}function Ux(){return L.process?.type==="renderer"}function Bx(e,t){let r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...Zt()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}function GS(e,t,r,n,o){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=Dt(n)),mt(i,[Bx(e,o)])}function Si(e,t){let r=t??Fx(e)??[];if(r.length===0)return;let n=e.getOptions(),o=GS(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);VS().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Fx(e){return VS().get(e)}function VS(){return mr("clientToLogBufferMap",()=>new WeakMap)}function Hx(e,t){let r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...Zt()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}function YS(e,t,r,n,o){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=Dt(n)),mt(i,[Hx(e,o)])}function Xs(e,t){let r=t??zx(e)??[];if(r.length===0)return;let n=e.getOptions(),o=YS(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);qS().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function zx(e){return qS().get(e)}function qS(){return mr("clientToMetricBufferMap",()=>new WeakMap)}function KS(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...e.data},links:e.links};return dS(t)}function XS(e,t){if(e.type!=="transaction"||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||Xe(t))return;let r=[],n=[];for(let i of e.spans)i.op?.startsWith("gen_ai.")?r.push(KS(i)):n.push(i);if(r.length===0)return;e.spans=n;let o=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...Zt()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}},items:r}]}function Jl(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}var yi=Symbol.for("SentryBufferFullError");function wo(e=100){let t=new Set;function r(){return t.size<e}function n(s){t.delete(s)}function o(s){if(!r())return Io(yi);let a=s();return t.add(a),a.then(()=>n(a),()=>n(a)),a}function i(s){if(!t.size)return Dr(!0);let a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return a;let l=[a,new Promise(c=>Jl(setTimeout(()=>c(!1),s)))];return Promise.race(l)}return{get $(){return Array.from(t)},add:o,drain:i}}var JS=60*1e3;function QS(e,t=mo()){let r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${e}`);return isNaN(n)?JS:n-t}function ZS(e,t){return e[t]||e.all||0}function Js(e,t,r=mo()){return ZS(e,t)>r}function Qs(e,{statusCode:t,headers:r},n=mo()){let o={...e},i=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(i)for(let a of i.trim().split(",")){let[l,c,,,d]=a.split(":",5),u=parseInt(l,10),p=(isNaN(u)?60:u)*1e3;if(!c)o.all=n+p;else for(let f of c.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[f]=n+p):o[f]=n+p}else s?o.all=n+QS(s,n):t===429&&(o.all=n+60*1e3);return o}var vp=64;function Ql(e,t,r=wo(e.bufferSize||vp)){let n={},o=s=>r.drain(s);function i(s){let a=[];if(zs(s,(u,p)=>{let f=Gl(p);Js(n,f)?e.recordDroppedEvent("ratelimit_backoff",f):a.push(u)}),a.length===0)return Promise.resolve({});let l=mt(s[0],a),c=u=>{if(np(l,["client_report"])){N&&E.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}zs(l,(p,f)=>{e.recordDroppedEvent(u,Gl(f))})},d=()=>t({body:op(l)}).then(u=>u.statusCode===413?(N&&E.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),u):(N&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&E.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),n=Qs(n,u),u),u=>{throw c("network_error"),N&&E.error("Encountered error running transport request:",u),u});return r.add(d).then(u=>u,u=>{if(u===yi)return N&&E.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:o}}function ey(e,t,r){let n=[{type:"client_report"},{timestamp:r||It(),discarded_events:e}];return mt(t?{dsn:t}:{},[n])}function Zl(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}function ty(e){let{trace_id:t,parent_span_id:r,span_id:n,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[yo],exclusive_time:s?.[it],measurements:e.measurements,is_segment:!0}}function ry(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[yo]:e.profile_id},...e.exclusive_time&&{[it]:e.exclusive_time}}}},measurements:e.measurements}}var Zs=["forwarded","-ip","remote-","via","-user"];function ny(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5}:{userInfo:!1,cookies:{deny:Zs},httpHeaders:{request:{deny:Zs},response:{deny:Zs}},httpBodies:[],queryParams:{deny:Zs},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:5}}var $x={userInfo:!1,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function oy(e){let t=e.dataCollection!=null?$x:ny(e.sendDefaultPii),r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,queryParams:r.queryParams??t.queryParams,genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},stackFrameVariables:r.stackFrameVariables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}var iy="Not capturing exception because it's already been captured.",sy="Discarded session because of missing or non-string release",py=Symbol.for("SentryInternalError"),fy=Symbol.for("SentryDoNotSendEventError"),jx=5e3;function ec(e){return{message:e,[py]:!0}}function Ep(e){return{message:e,[fy]:!0}}function ay(e){return!!e&&typeof e=="object"&&py in e}function ly(e){return!!e&&typeof e=="object"&&fy in e}function cy(e,t,r,n,o){let i=0,s,a=!1;e.on(r,()=>{i=0,clearTimeout(s),a=!1}),e.on(t,l=>{if(i+=n(l),i>=8e5)o(e);else if(!a){let c=e.getOptions()._flushInterval??jx;c>0&&(a=!0,s=Jl(setTimeout(()=>{o(e)},c)))}}),e.on("flush",()=>{o(e)})}var ea=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=wo(t.transportOptions?.bufferSize??vp),this._dataCollection=oy(t),t.dsn?this._dsn=Ul(t.dsn):N&&E.warn("No DSN provided, client will not send events."),this._dsn){let n=pp(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&cy(this,"afterCaptureLog","flushLogs",Yx,Si),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&cy(this,"afterCaptureMetric","flushMetrics",Vx,Xs)}captureException(t,r,n){let o=Ne();if(Rs(t))return N&&E.log(iy),o;let i={event_id:o,...r};return this._process(()=>this.eventFromException(t,i).then(s=>this._captureEvent(s,i,n)).then(s=>s),"error"),i.event_id}captureMessage(t,r,n,o){let i={event_id:Ne(),...n},s=bn(t)?t:String(t),a=Tt(t),l=a?this.eventFromMessage(s,r,i):this.eventFromException(t,i);return this._process(()=>l.then(c=>this._captureEvent(c,i,o)),a?"unknown":"error"),i.event_id}captureEvent(t,r,n){let o=Ne();if(r?.originalException&&Rs(r.originalException))return N&&E.log(iy),o;let i={event_id:o,...r},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,l=s.capturedSpanIsolationScope,c=uy(t.type);return this._process(()=>this._captureEvent(t,i,a||n,l),c),i.event_id}captureSession(t){this.sendSession(t),Kr(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){let r=this._transport;if(this.emit("flush"),!r)return!0;let n=await this._isClientDoneProcessing(t),o=await r.flush(t);return n&&o}async close(t){Si(this);let r=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),r}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){let r=this._integrations[t.name];!r&&t.beforeSetup&&t.beforeSetup(this),Sp(this,t,this._integrations),r||gp(this,[t])}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=XS(t,this),o=ES(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of r.attachments||[])o=Wl(o,sp(i));n&&(o=Wl(o,n)),this.sendEnvelope(o).then(i=>this.emit("afterSendEvent",t,i))}sendSession(t){let{release:r,environment:n=li}=this._options;if("aggregates"in t){let i=t.attrs||{};if(!i.release&&!r){N&&E.warn(sy);return}i.release=i.release||r,i.environment=i.environment||n,t.attrs=i}else{if(!t.release&&!r){N&&E.warn(sy);return}t.release=t.release||r,t.environment=t.environment||n}this.emit("beforeSendSession",t);let o=vS(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,r,n=1){if(this._options.sendClientReports){let o=`${t}:${r}`;N&&E.log(`Recording outcome: "${o}"${n>1?` (${n} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+n}}on(t,r){let n=this._hooks[t]=this._hooks[t]||new Set,o=(...i)=>r(...i);return n.add(o),()=>{n.delete(o)}}emit(t,...r){let n=this._hooks[t];n&&n.forEach(o=>o(...r))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(r){return N&&E.error("Error while sending envelope:",r),{}}return N&&E.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=jS(this,t),gp(this,t)}_updateSessionFromEvent(t,r){let n=r.level==="fatal",o=!1,i=r.exception?.values;if(i){o=!0,n=!1;for(let l of i)if(l.mechanism?.handled===!1){n=!0;break}}let s=t.status==="ok";(s&&t.errors===0||s&&n)&&(Kr(t,{...n&&{status:"crashed"},errors:t.errors||Number(o||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let r=0;for(;!t||r<t;){if(await new Promise(n=>setTimeout(n,1)),!this._numProcessing)return!0;r++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,n,o){let i=this.getOptions(),s=this.getIntegrationNames();return!r.integrations&&s.length&&(r.integrations=s),this.emit("preprocessEvent",t,r),t.type||o.setLastEventId(t.event_id||r.event_id),Gs(i,t,r,n,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,r),a.contexts={trace:{...a.contexts?.trace,...Ll(n)},...a.contexts};let l=ui(this,n);return a.sdkProcessingMetadata={dynamicSamplingContext:l,...a.sdkProcessingMetadata},a})}_captureEvent(t,r={},n=U(),o=Te()){return N&&Tp(t)&&E.log(`Captured error event \`${Zl(t)[0]||"<unknown>"}\``),this._processEvent(t,r,n,o).then(i=>i.event_id,i=>{N&&(ly(i)?E.log(i.message):ay(i)?E.warn(i.message):E.warn(i))})}_processEvent(t,r,n,o){let i=this.getOptions(),{sampleRate:s}=i,a=my(t),l=Tp(t),d=`before send for type \`${t.type||"error"}\``,u=typeof s>"u"?void 0:Ut(s);if(l&&typeof u=="number"&&Kt()>u)return this.recordDroppedEvent("sample_rate","error"),Io(Ep(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let p=uy(t.type);return this._prepareEvent(t,r,n,o).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",p),Ep("An event processor returned `null`, will not send event.");if(r.data?.__sentry__===!0)return f;let _=Gx(this,i,f,r);return Wx(_,d)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",p),a){let g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw Ep(`${d} returned \`null\`, will not send event.`)}let m=n.getSession()||o.getSession();if(l&&m&&this._updateSessionFromEvent(m,f),a){let I=f.sdkProcessingMetadata?.spanCountBeforeProcessing||0,g=f.spans?f.spans.length:0,h=I-g;h>0&&this.recordDroppedEvent("before_send","span",h)}let _=f.transaction_info;if(a&&_&&f.transaction!==t.transaction){let I="custom";f.transaction_info={..._,source:I}}return this.sendEvent(f,r),f}).then(null,f=>{throw ly(f)||ay(f)?f:(this.captureException(f,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:f}),ec(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
17
|
-
Reason: ${f}`))})}_process(t,r){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===yi&&this.recordDroppedEvent("queue_overflow",r),n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,n])=>{let[o,i]=r.split(":");return{reason:o,category:i,quantity:n}})}_flushOutcomes(){N&&E.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){N&&E.log("No outcomes to send");return}if(!this._dsn){N&&E.log("No dsn provided, will not send outcomes");return}N&&E.log("Sending outcomes:",t);let r=ey(t,this._options.tunnel&&Dt(this._dsn));this.sendEnvelope(r)}};function uy(e){return e==="replay_event"?"replay":e||"error"}function Wx(e,t){let r=`${t} must return \`null\` or a valid event.`;if(hr(e))return e.then(n=>{if(!qt(n)&&n!==null)throw ec(r);return n},n=>{throw ec(`${t} rejected with ${n}`)});if(!qt(e)&&e!==null)throw ec(r);return e}function Gx(e,t,r,n){let{beforeSend:o,beforeSendTransaction:i,ignoreSpans:s}=t,a=!jl(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(Tp(l)&&o)return o(l,n);if(my(l)){if(a||s){let c=ty(l);if(s?.length&&Zr({description:c.description,op:c.op,attributes:c.data},s))return null;if(a){let d=a(c);d?l=Rn(r,ry(d)):Hs()}if(l.spans){let d=[],u=l.spans;for(let f of u){if(s?.length&&Zr({description:f.description,op:f.op,attributes:f.data},s)){SS(u,f);continue}if(a){let m=a(f);m?d.push(m):(Hs(),d.push(f))}else d.push(f)}let p=l.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),l.spans=d}}if(i){if(l.spans){let c=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return i(l,n)}}return l}function Tp(e){return e.type===void 0}function my(e){return e.type==="transaction"}function Vx(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+hy(e.attributes)}function Yx(e){let t=0;return e.message&&(t+=e.message.length*2),t+hy(e.attributes)}function hy(e){if(!e)return 0;let t=0;return Object.values(e).forEach(r=>{Array.isArray(r)?t+=r.length*dy(r[0]):Tt(r)?t+=dy(r):t+=100}),t}function dy(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Ip(e,t){t.debug===!0&&(N?E.enable():Ye(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),U().update(t.initialScope);let n=new e(t);return bp(n),n.init(),n}function bp(e){U().setClient(e)}function xp(e,t){let r=t?.getDsn(),n=t?.getOptions().tunnel;return Kx(e,r)||qx(e,n)}function qx(e,t){return t?gy(e)===gy(t):!1}function Kx(e,t){let r=Pr(e);return!r||To(r)||!t?!1:Xx(r.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(r.search)}function Xx(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function gy(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function kp(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function ta(e,t,r=[t],n="npm"){let o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=r.map(i=>({name:`${n}:@sentry/${i}`,version:Lr})),o.version=Lr)}function _i(e={}){let t=e.client||M();if(!Ys()||!t)return{};let r=Pt(),n=Or(r);if(n.getTraceData)return n.getTraceData(e);let o=e.scope||U(),i=e.span||ie();if(!i&&Ml())return{};let s=i?Ps(i):Jx(o),a=i?Oe(i):ui(t,o),l=Xd(a);if(!Bl.test(s))return E.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let d={"sentry-trace":s,baggage:l};return e.propagateTraceparent&&(d.traceparent=i?cS(i):Qx(o)),d}function Jx(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return As(t,n,r)}function Qx(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return Ms(t,n,r)}function wp(e,t,r){let n,o,i,s=r?.maxWait?Math.max(r.maxWait,t):0,a=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e(),n}function c(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function d(){return o!==void 0||i!==void 0?l():n}function u(){return o&&clearTimeout(o),o=a(l,t),s&&i===void 0&&(i=a(l,s)),n}return u.cancel=c,u.flush=d,u}var Zx=100;function Bt(e,t){let r=M(),n=Te();if(!r)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Zx}=r.getOptions();if(i<=0)return;let a={timestamp:It(),...e},l=o?Ye(()=>o(a,t)):a;l!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,i))}var Sy,e1="FunctionToString",yy=new WeakMap,t1=(()=>({name:e1,setupOnce(){Sy=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=kn(this),r=yy.has(M())&&t!==void 0?t:this;return Sy.apply(r,e)}}catch{}},setup(e){yy.set(e,!0)}})),tc=t1;var r1=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],n1="EventFilters",Rp=(e={})=>{let t;return{name:n1,setup(r){let n=r.getOptions();t=_y(e,n)},processEvent(r,n,o){if(!t){let i=o.getOptions();t=_y(e,i)}return o1(r,t)?null:r}}},nc=((e={})=>({...Rp(e),name:"InboundFilters"}));function _y(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:r1],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function o1(e,t){if(e.type){if(e.type==="transaction"&&s1(e,t.ignoreTransactions))return N&&E.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
18
|
-
Event: ${Sr(e)}`),!0}else{if(i1(e,t.ignoreErrors))return N&&E.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
19
|
-
Event: ${Sr(e)}`),!0;if(u1(e))return N&&E.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
20
|
-
Event: ${Sr(e)}`),!0;if(a1(e,t.denyUrls))return N&&E.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
21
|
-
Event: ${Sr(e)}.
|
|
22
|
-
Url: ${rc(e)}`),!0;if(!l1(e,t.allowUrls))return N&&E.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
23
|
-
Event: ${Sr(e)}.
|
|
24
|
-
Url: ${rc(e)}`),!0}return!1}function i1(e,t){return t?.length?Zl(e).some(r=>qe(r,t)):!1}function s1(e,t){if(!t?.length)return!1;let r=e.transaction;return r?qe(r,t):!1}function a1(e,t){if(!t?.length)return!1;let r=rc(e);return r?qe(r,t):!1}function l1(e,t){if(!t?.length)return!0;let r=rc(e);return r?qe(r,t):!0}function c1(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function rc(e){try{let r=[...e.exception?.values??[]].reverse().find(n=>n.mechanism?.parent_id===void 0&&n.stacktrace?.frames?.length)?.stacktrace?.frames;return r?c1(r):null}catch{return N&&E.error(`Cannot extract url for event ${Sr(e)}`),null}}function u1(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Cp(e,t,r,n,o,i){if(!o.exception?.values||!i||!gr(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Np(e,t,n,i.originalException,r,o.exception.values,s,0))}function Np(e,t,r,n,o,i,s,a){if(i.length>=r+1)return i;let l=[...i];if(gr(n[o],Error)){vy(s,a,n);let c=e(t,n[o]),d=l.length;Ey(c,o,d,a),l=Np(e,t,r,n[o],o,[c,...l],c,d)}return Ty(n)&&n.errors.forEach((c,d)=>{if(gr(c,Error)){vy(s,a,n);let u=e(t,c),p=l.length;Ey(u,`errors[${d}]`,p,a),l=Np(e,t,r,c,o,[u,...l],u,p)}}),l}function Ty(e){return Array.isArray(e.errors)}function vy(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Ty(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Ey(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function d1(e){return Yt(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function oc(e){return d1(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Iy=new Set([]);function Ap(e){let t="console",r=et(t,e);return tt(t,p1),r}function p1(){"console"in L&&bl.forEach(function(e){e in L.console&&Re(L.console,e,function(t){return po[e]=t,function(...r){let n=r[0],o=po[e],i=Iy.size&&typeof n=="string"&&qe(n,Iy);i||Le("console",{args:r,level:e}),(!i||N&&E.isEnabled())&&o?.apply(L.console,r)}})})}function vi(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var f1="Dedupe",m1=(()=>{let e;return{name:f1,processEvent(t){if(t.type)return t;try{if(h1(t,e))return N&&E.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),ic=m1;function h1(e,t){return t?!!(g1(e,t)||S1(e,t)):!1}function g1(e,t){let r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!ky(e,t)||!xy(e,t))}function S1(e,t){let r=by(t),n=by(e);return!(!r||!n||r.type!==n.type||r.value!==n.value||!ky(e,t)||!xy(e,t))}function xy(e,t){let r=ys(e),n=ys(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o<n.length;o++){let i=n[o],s=r[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function ky(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function by(e){return e.exception?.values?.[0]}var y1="ConversationId",_1=(()=>({name:y1,setup(e){e.on("spanStart",t=>{let r=U().getScopeData(),n=Te().getScopeData(),o=r.conversationId||n.conversationId;if(o){let{op:i,data:s,description:a}=B(t);if(!i?.startsWith("gen_ai.")&&!s["ai.operationId"]&&!a?.startsWith("ai."))return;t.setAttribute(Pl,o)}})}})),Mp=_1;function Lp(e,t,r,n,o){if(!e.fetchData)return;let{method:i,url:s}=e.fetchData,a=Fe()&&t(s);if(e.endTimestamp){let m=e.fetchData.__span;if(!m)return;let _=n[m];_&&(a&&(E1(_,e),v1(_,e,o)),delete n[m]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:c=!1}=typeof o=="object"?o:{spanOrigin:o},d=M(),p=!!ie()||!!d&&Xe(d),f=a&&p?$e(b1(s,i,l)):new Ke;if(a&&!p&&d?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f,r(e.fetchData.url)){let m=e.args[0],_={...e.args[1]||{}},I=Ry(m,_,Fe()&&p?f:void 0,c);I&&(e.args[1]=_,_.headers=I)}if(d){let m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",f,m)}return f}function v1(e,t,r){(typeof r=="object"&&r!==null?r.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Ry(e,t,r,n){let o=_i({span:r,propagateTraceparent:n}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;let l=t.headers||(Is(e)?e.headers:void 0);if(l)if(T1(l)){let c=new Headers(l);if(c.get("sentry-trace")||c.set("sentry-trace",i),n&&a&&!c.get("traceparent")&&c.set("traceparent",a),s){let d=c.get("baggage");d?sc(d)||c.set("baggage",`${d},${s}`):c.set("baggage",s)}return c}else if(I1(l)){let c=[...l];c.find(u=>u[0]==="sentry-trace")||c.push(["sentry-trace",i]),n&&a&&!c.find(u=>u[0]==="traceparent")&&c.push(["traceparent",a]);let d=l.find(u=>u[0]==="baggage"&&typeof u[1]=="string"&&sc(u[1]));return s&&!d&&c.push(["baggage",s]),c}else{let c="sentry-trace"in l?l["sentry-trace"]:void 0,d="traceparent"in l?l.traceparent:void 0,u="baggage"in l?l.baggage:void 0,p=u?Array.isArray(u)?[...u]:[u]:[],f=u&&(Array.isArray(u)?u.find(_=>sc(_)):sc(u));s&&!f&&p.push(s);let m=Object.assign({},l,{"sentry-trace":c??i,baggage:p.length>0?p.join(","):void 0});return n&&a&&!d&&(m.traceparent=a),m}else return{...o}}function E1(e,t){if(t.response){ai(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let n=parseInt(r);n>0&&e.setAttribute("http.response_content_length",n)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function sc(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Cs))}function T1(e){return typeof Headers<"u"&&gr(e,Headers)}function I1(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function b1(e,t,r){if(e.startsWith("data:")){let i=st(e);return{name:`${t} ${i}`,attributes:wy(e,void 0,t,r)}}let n=Pr(e),o=n?mi(n):e;return{name:`${t} ${o}`,attributes:wy(e,n,t,r)}}function wy(e,t,r,n){let o={url:st(e),type:"fetch","http.method":r,[J]:n,[_e]:"http.client"};return t&&(To(t)||(o["http.url"]=st(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function ac(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var ra=L;function Op(){return"history"in ra&&!!ra.history}function x1(){if(!("fetch"in ra))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function na(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Pp(){if(typeof EdgeRuntime=="string")return!0;if(!x1())return!1;if(na(ra.fetch))return!0;let e=!1,t=ra.document;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=na(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){N&&E.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function Ln(e,t){let r="fetch",n=et(r,e);return tt(r,()=>Cy(void 0,t)),n}function cc(e){let t="fetch-body-resolved",r=et(t,e);return tt(t,()=>Cy(w1)),r}function Cy(e,t=!1){t&&!Pp()||Re(L,"fetch",function(r){return function(...n){let o=new Error,{method:i,url:s}=R1(n),a={args:n,fetchData:{method:i,url:s},startTimestamp:ne()*1e3,virtualError:o,headers:N1(n)};return e||Le("fetch",{...a}),r.apply(L,n).then(async l=>(e?e(l):Le("fetch",{...a,endTimestamp:ne()*1e3,response:l}),l),l=>{Le("fetch",{...a,endTimestamp:ne()*1e3,error:l}),Yt(l)&&l.stack===void 0&&(l.stack=o.stack,ye(l,"framesToPop",1));let d=M()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{let f=new URL(a.fetchData.url).host;d==="always"?l.message=`${l.message} (${f})`:ye(l,"__sentry_fetch_url_host__",f)}catch{}throw l})}})}async function k1(e,t){if(e?.body){let r=e.body,n=r.getReader(),o=setTimeout(()=>{r.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(s),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,()=>{})}}function w1(e){let t;try{t=e.clone()}catch{return}k1(t,()=>{Le("fetch-body-resolved",{endTimestamp:ne()*1e3,response:e})})}function lc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ny(e){return typeof e=="string"?e:e?lc(e,"url")?e.url:e.toString?e.toString():"":""}function R1(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[r,n]=e;return{url:Ny(r),method:lc(n,"method")?String(n.method).toUpperCase():Is(r)&&lc(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:Ny(t),method:lc(t,"method")?String(t.method).toUpperCase():"GET"}}function N1(e){let[t,r]=e;try{if(typeof r=="object"&&r!==null&&"headers"in r&&r.headers)return new Headers(r.headers);if(Is(t))return new Headers(t.headers)}catch{}}var Ay=L;function wt(){try{return Ay.document.location.href}catch{return""}}function Ei(e,t=5){if(!Ay.HTMLElement)return null;let r=e;for(let n=0;n<t;n++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}var D=L,Dp=0;function Up(){return Dp>0}function ck(){Dp++,setTimeout(()=>{Dp--})}function Ro(e,t={}){function r(o){return typeof o=="function"}if(!r(e))return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(kn(e))return e}catch{return e}let n=function(...o){L._sentryWrappedDepth=(L._sentryWrappedDepth||0)+1;try{let i=o.map(s=>Ro(s,t));return e.apply(this,i)}catch(i){throw ck(),Jt(s=>{s.addEventProcessor(a=>(t.mechanism&&(go(a,void 0,void 0),Xt(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),en(i)}),i}finally{L._sentryWrappedDepth=(L._sentryWrappedDepth||0)-1}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}catch{}bs(n,e),ye(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return e.name}})}catch{}return n}function Ti(){let e=wt(),{referrer:t}=D.document||{},{userAgent:r}=D.navigator||{},n={...t&&{Referer:t},...r&&{"User-Agent":r}};return{url:e,headers:n}}function uc(e,t){let r=dc(e,t),n={type:mk(t),value:hk(t)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function uk(e,t,r,n){let i=M()?.getOptions().normalizeDepth,s=yk(t),a={__serialized__:ks(t,i)};if(s)return{exception:{values:[uc(e,s)]},extra:a};let l={exception:{values:[{type:xn(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:gk(t,{isUnhandledRejection:n})}]},extra:a};if(r){let c=dc(e,r);c.length&&(l.exception.values[0].stacktrace={frames:c})}return l}function Bp(e,t){return{exception:{values:[uc(e,t)]}}}function dc(e,t){let r=t.stacktrace||t.stack||"",n=pk(t),o=fk(t);try{return e(r,n,o)}catch{}return[]}var dk=/Minified React error #\d+;/i;function pk(e){return e&&dk.test(e.message)?1:0}function fk(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Ky(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function mk(e){let t=e?.name;return!t&&Ky(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function hk(e){let t=e?.message;return Ky(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?oc(t.error):oc(e):"No error message"}function Xy(e,t,r,n){let o=r?.syntheticException||void 0,i=pc(e,t,o,n);return Xt(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),Dr(i)}function Jy(e,t,r="info",n,o){let i=n?.syntheticException||void 0,s=Fp(e,t,i,o);return s.level=r,n?.event_id&&(s.event_id=n.event_id),Dr(s)}function pc(e,t,r,n,o){let i;if(ti(t)&&t.error)return Bp(e,t.error);if(Ts(t)||wl(t)){let s=t;if("stack"in t){i=Bp(e,t);let a=i.exception?.values?.[0];if(n&&r&&a&&!a.stacktrace){let l=dc(e,r);l.length&&(a.stacktrace={frames:l},Xt(i,{synthetic:!0}))}}else{let a=s.name||(Ts(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;i=Fp(e,l,r,n),go(i,l)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Yt(t)?Bp(e,t):qt(t)||xn(t)?(i=uk(e,t,r,o),Xt(i,{synthetic:!0}),i):(i=Fp(e,t,r,n),go(i,`${t}`,void 0),Xt(i,{synthetic:!0}),i)}function Fp(e,t,r,n){let o={};if(n&&r){let i=dc(e,r);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),Xt(o,{synthetic:!0})}if(bn(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function gk(e,{isUnhandledRejection:t}){let r=Nl(e),n=t?"promise rejection":"exception";return ti(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:xn(e)?`Event \`${Sk(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function Sk(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function yk(e){return Object.values(e).find(t=>t instanceof Error)}var fc=class extends ea{constructor(t){let r=_k(t),n=D.SENTRY_SDK_SOURCE||_p();ta(r,"browser",["browser"],n),super(r);let{userInfo:o}=this.getDataCollectionOptions();r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:o?"auto":"never",...r._metadata.sdk.settings});let{sendClientReports:i,enableLogs:s,_experiments:a,enableMetrics:l}=this._options,c=l??a?.enableMetrics??!0;D.document&&(i||s||c)&&D.document.addEventListener("visibilitychange",()=>{D.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&Si(this),c&&Xs(this))}),o&&this.on("beforeSendSession",kp)}eventFromException(t,r){return Xy(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",n){return Jy(this._options.stackParser,t,r,n,this._options.attachStacktrace)}_prepareEvent(t,r,n,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,n,o)}};function _k(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:D.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var je=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var O=L;var vk=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ur=(e,t,r,n)=>{let o,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=vk(t.value,r),e(t)))}};var rn=(e=!0)=>{let t=O.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t};var er=()=>rn()?.activationStart??0;function tr(e,t,r){O.document&&O.addEventListener(e,t,r)}function No(e,t,r){O.document&&O.removeEventListener(e,t,r)}var Ii=-1,Qy=new Set,Ek=()=>O.document?.visibilityState==="hidden"&&!O.document?.prerendering?0:1/0,mc=e=>{if(Tk(e)&&Ii>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(let t of Qy)t();isFinite(Ii)||(Ii=e.type==="visibilitychange"?e.timeStamp:0,No("prerenderingchange",mc,!0))}},Br=()=>{if(O.document&&Ii<0){let e=er();Ii=(O.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>e)[0]?.startTime)??Ek(),tr("visibilitychange",mc,!0),tr("pagehide",mc,!0),tr("prerenderingchange",mc,!0)}return{get firstHiddenTime(){return Ii},onHidden(e){Qy.add(e)}}};function Tk(e){return e.type==="pagehide"||O.document?.visibilityState==="hidden"}var Zy=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var Fr=(e,t=-1)=>{let r=rn(),n="navigate";return r&&(O.document?.prerendering||er()>0?n="prerender":O.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Zy(),navigationType:n}};var Hp=new WeakMap;function bi(e,t){try{return Hp.get(e)||Hp.set(e,new t),Hp.get(e)}catch{return new t}}var hc=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;let r=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&r&&n&&t.startTime-n.startTime<1e3&&t.startTime-r.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}};var rr=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}};var xi=e=>{let t=!1;return()=>{t||(e(),t=!0)}};var Pn=e=>{O.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()};var Ik=[1800,3e3],e_=(e,t={})=>{Pn(()=>{let r=Br(),n=Fr("FCP"),o,s=rr("paint",a=>{for(let l of a)l.name==="first-contentful-paint"&&(s.disconnect(),l.startTime<r.firstHiddenTime&&(n.value=Math.max(l.startTime-er(),0),n.entries.push(l),o(!0)))});s&&(o=Ur(e,n,Ik,t.reportAllChanges))})};var bk=[.1,.25],t_=(e,t={})=>{e_(xi(()=>{let r=Fr("CLS",0),n,o=Br(),i=bi(t,hc),s=l=>{for(let c of l)i._processEntry(c);i._sessionValue>r.value&&(r.value=i._sessionValue,r.entries=i._sessionEntries,n())},a=rr("layout-shift",s);a&&(n=Ur(e,r,bk,t.reportAllChanges),o.onHidden(()=>{s(a.takeRecords()),n(!0)}),O?.setTimeout?.(n))}))};var r_=0,zp=1/0,gc=0,xk=e=>{e.forEach(t=>{t.interactionId&&(zp=Math.min(zp,t.interactionId),gc=Math.max(gc,t.interactionId),r_=gc?(gc-zp)/7+1:0)})},$p,jp=()=>$p?r_:performance.interactionCount||0,n_=()=>{"interactionCount"in performance||$p||($p=rr("event",xk,{type:"event",buffered:!0,durationThreshold:0}))};var Wp=10,o_=0,kk=()=>jp()-o_,Sc=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){o_=jp(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let t=Math.min(this._longestInteractionList.length-1,Math.floor(kk()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;let r=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(t.interactionId);if(n||this._longestInteractionList.length<Wp||t.duration>r._latency){if(n?t.duration>n._latency?(n.entries=[t],n._latency=t.duration):t.duration===n._latency&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>Wp){let o=this._longestInteractionList.splice(Wp);for(let i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(n)}}};var yc=e=>{let t=O.requestIdleCallback||O.setTimeout;O.document?.visibilityState==="hidden"?e():(e=xi(e),tr("visibilitychange",e,{once:!0,capture:!0}),tr("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),No("visibilitychange",e,{capture:!0}),No("pagehide",e,{capture:!0})}))};var wk=[200,500],Rk=40,i_=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=Br();Pn(()=>{n_();let n=Fr("INP"),o,i=bi(t,Sc),s=l=>{yc(()=>{for(let d of l)i._processEntry(d);let c=i._estimateP98LongestInteraction();c&&c._latency!==n.value&&(n.value=c._latency,n.entries=c.entries,o())})},a=rr("event",s,{durationThreshold:t.durationThreshold??Rk});o=Ur(e,n,wk,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(a.takeRecords()),o(!0)}))})};var _c=class{_processEntry(t){this._onBeforeProcessingEntry?.(t)}};var Nk=[2500,4e3],s_=(e,t={})=>{Pn(()=>{let r=Br(),n=Fr("LCP"),o,i=bi(t,_c),s=l=>{t.reportAllChanges||(l=l.slice(-1));for(let c of l)i._processEntry(c),c.startTime<r.firstHiddenTime&&(n.value=Math.max(c.startTime-er(),0),n.entries=[c],o())},a=rr("largest-contentful-paint",s);if(a){o=Ur(e,n,Nk,t.reportAllChanges);let l=xi(()=>{s(a.takeRecords()),a.disconnect(),o(!0)}),c=d=>{d.isTrusted&&(yc(l),No(d.type,c,{capture:!0}))};for(let d of["keydown","click","visibilitychange"])tr(d,c,{capture:!0})}})};var Ck=[800,1800],Gp=e=>{O.document?.prerendering?Pn(()=>Gp(e)):O.document?.readyState!=="complete"?addEventListener("load",()=>Gp(e),!0):setTimeout(e)},a_=(e,t={})=>{let r=Fr("TTFB"),n=Ur(e,r,Ck,t.reportAllChanges);Gp(()=>{let o=rn();o&&(r.value=Math.max(o.responseStart-er(),0),r.entries=[o],n(!0))})};var oa={},vc={},l_,c_,u_,d_;function nn(e,t=!1){return Ec("cls",e,Ak,l_,t)}function on(e,t=!1){return Ec("lcp",e,Mk,c_,t)}function Vp(e){return Ec("ttfb",e,Lk,u_)}function Co(e){return Ec("inp",e,Ok,d_)}function vr(e,t){return p_(e,t),vc[e]||(Pk(e),vc[e]=!0),f_(e,t)}function ia(e,t){let r=oa[e];if(r?.length)for(let n of r)try{n(t)}catch(o){je&&E.error(`Error while triggering instrumentation handler.
|
|
25
|
-
Type: ${e}
|
|
26
|
-
Name: ${pt(n)}
|
|
27
|
-
Error:`,o)}}function Ak(){return t_(e=>{ia("cls",{metric:e}),l_=e},{reportAllChanges:!0})}function Mk(){return s_(e=>{ia("lcp",{metric:e}),c_=e},{reportAllChanges:!0})}function Lk(){return a_(e=>{ia("ttfb",{metric:e}),u_=e})}function Ok(){return i_(e=>{ia("inp",{metric:e}),d_=e})}function Ec(e,t,r,n,o=!1){p_(e,t);let i;return vc[e]||(i=r(),vc[e]=!0),n&&t({metric:n}),f_(e,t,o?i:void 0)}function Pk(e){let t={};e==="event"&&(t.durationThreshold=0),rr(e,r=>{ia(e,{entries:r})},t)}function p_(e,t){oa[e]=oa[e]||[],oa[e].push(t)}function f_(e,t,r){return()=>{r&&r();let n=oa[e];if(!n)return;let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}function m_(e){return"duration"in e}var Dk=80;function le(e,t={}){if(!e)return"<unknown>";try{let r=e,n=5,o=[],i=0,s=0,a=" > ",l=a.length,c,d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||Dk;for(;r&&i++<n&&(c=Uk(r,d),!(c==="html"||i>1&&s+o.length*l+c.length>=u));)o.push(c),s+=c.length,r=r.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Uk(e,t){let r=e,n=[];if(!r?.tagName)return"";if(typeof HTMLElement<"u"&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());let o=t?.length?t.filter(i=>r.getAttribute(i)).map(i=>[i,r.getAttribute(i)]):null;if(o?.length)o.forEach(i=>{n.push(`[${i[0]}="${i[1]}"]`)});else{r.id&&n.push(`#${r.id}`);let i=r.className;if(i&&rt(i)){let s=i.split(/\s+/);for(let a of s)n.push(`.${a}`)}}for(let i of["aria-label","type","name","title","alt"]){let s=r.getAttribute(i);s&&n.push(`[${i}="${s}"]`)}return n.join("")}var h_=e=>{let t=r=>{(r.type==="pagehide"||O.document?.visibilityState==="hidden")&&e(r)};tr("visibilitychange",t,{capture:!0,once:!0}),tr("pagehide",t,{capture:!0,once:!0})};function Tc(e){return typeof e=="number"&&isFinite(e)}function sn(e,t,r,{...n}){let o=B(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),pi(e,()=>{let i=$e({startTime:t,...n});return i&&i.end(r),i})}function ki(e){let t=M();if(!t)return;let{name:r,transaction:n,attributes:o,startTime:i}=e,{release:s,environment:a}=t.getOptions(),{userInfo:l}=t.getDataCollectionOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),u=U(),p=u.getUser(),f=p!==void 0?p.email||p.id||p.ip_address:void 0,m;try{m=u.getScopeData().contexts.profile.profile_id}catch{}let _={release:s,environment:a,user:f||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:n,"user_agent.original":O.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...o};return $e({name:r,attributes:_,startTime:i,experimental:{standalone:!0}})}function an(){return O.addEventListener&&O.performance}function se(e){return e/1e3}function g_(e){let t="unknown",r="unknown",n="";for(let o of e){if(o==="/"){[t,r]=e.split("/");break}if(!isNaN(Number(o))){t=n==="h"?"http":n,r=e.split(n)[1];break}n+=o}return n===e&&(t=n),{name:t,version:r}}function Ao(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Mo(e,t){let r,n=!1;function o(a){!n&&r&&t(a,r.spanContext().spanId,r),n=!0}h_(()=>{o("pagehide")});let i=e.on("beforeStartNavigationSpan",(a,l)=>{l?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",a=>{r=a,s()})}function S_(e){let t=0,r;if(!Ao("layout-shift"))return;let n=nn(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,r=i)},!0);Mo(e,(o,i)=>{Bk(t,r,i,o),n()})}function Bk(e,t,r,n){je&&E.log(`Sending CLS span (${e})`);let o=t?se((ue()||0)+t.startTime):ne(),i=U().getScopeData().transactionName,s=t?le(t.sources[0]?.node):"Layout shift",a={[J]:"auto.http.browser.cls",[_e]:"ui.webvital.cls",[it]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t?.sources&&t.sources.forEach((c,d)=>{a[`cls.source.${d+1}`]=le(c.node)});let l=ki({name:s,transaction:i,attributes:a,startTime:o});l&&(l.addEvent("cls",{[yr]:"",[_r]:e}),l.end(o))}var Fk=6e4;function Lo(e){return e!=null&&e>0&&e<=Fk}function y_(e){let t=0,r;if(!Ao("largest-contentful-paint"))return;let n=on(({metric:o})=>{let i=o.entries[o.entries.length-1];!i||!Lo(o.value)||(t=o.value,r=i)},!0);Mo(e,(o,i)=>{Hk(t,r,i,o),n()})}function Hk(e,t,r,n){if(!Lo(e))return;je&&E.log(`Sending LCP span (${e})`);let o=se((ue()||0)+(t?.startTime||0)),i=U().getScopeData().transactionName,s=t?le(t.element):"Largest contentful paint",a={[J]:"auto.http.browser.lcp",[_e]:"ui.webvital.lcp",[it]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(a["lcp.element"]=le(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));let l=ki({name:s,transaction:i,attributes:a,startTime:o});l&&(l.addEvent("lcp",{[yr]:"millisecond",[_r]:e}),l.end(o))}function nr(e){return e&&((ue()||performance.timeOrigin)+e)/1e3}function sa(e){let t={};if(e.nextHopProtocol!=null){let{name:r,version:n}=g_(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return ue()||an()?.timeOrigin?zk({...t,"http.request.redirect_start":nr(e.redirectStart),"http.request.redirect_end":nr(e.redirectEnd),"http.request.worker_start":nr(e.workerStart),"http.request.fetch_start":nr(e.fetchStart),"http.request.domain_lookup_start":nr(e.domainLookupStart),"http.request.domain_lookup_end":nr(e.domainLookupEnd),"http.request.connect_start":nr(e.connectStart),"http.request.secure_connection_start":nr(e.secureConnectionStart),"http.request.connection_end":nr(e.connectEnd),"http.request.request_start":nr(e.requestStart),"http.request.response_start":nr(e.responseStart),"http.request.response_end":nr(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function zk(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var $k=2147483647,__=0,ht={},Rt,bc;function Yp({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=an();if(n&&ue()){n.mark&&O.performance.mark("sentry-tracing-init");let o=t?y_(r):t===!1?Wk():void 0,i=e?S_(r):e===!1?jk():void 0,s=Gk();return()=>{s(),o?.(),i?.()}}return()=>{}}function qp(){vr("longtask",({entries:e})=>{let t=ie();if(!t)return;let{op:r,start_timestamp:n}=B(t);for(let o of e){let i=se(ue()+o.startTime),s=se(o.duration);r==="navigation"&&n&&i<n||sn(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[J]:"auto.ui.browser.metrics"}})}})}function Kp(){new PerformanceObserver(t=>{let r=ie();if(r)for(let n of t.getEntries()){if(!n.scripts[0])continue;let o=se(ue()+n.startTime),{start_timestamp:i,op:s}=B(r);if(s==="navigation"&&i&&o<i)continue;let a=se(n.duration),l={[J]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:d,invokerType:u,sourceURL:p,sourceFunctionName:f,sourceCharPosition:m}=c;l["browser.script.invoker"]=d,l["browser.script.invoker_type"]=u,p&&(l["code.filepath"]=p),f&&(l["code.function"]=f),m!==-1&&(l["browser.script.source_char_position"]=m),sn(r,o,o+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function Xp(){vr("event",({entries:e})=>{let t=ie();if(t){for(let r of e)if(r.name==="click"){let n=se(ue()+r.startTime),o=se(r.duration),i={name:le(r.target),op:`ui.interaction.${r.name}`,startTime:n,attributes:{[J]:"auto.ui.browser.metrics"}},s=Ei(r.target);s&&(i.attributes["ui.component_name"]=s),sn(t,n,n+o,i)}}})}function jk(){return nn(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ht.cls={value:e.value,unit:""},bc=t)},!0)}function Wk(){return on(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!Lo(e.value)||(ht.lcp={value:e.value,unit:"millisecond"},Rt=t)},!0)}function Gk(){return Vp(({metric:e})=>{e.entries[e.entries.length-1]&&(ht.ttfb={value:e.value,unit:"millisecond"})})}function Jp(e,t){let r=an(),n=ue();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:o,ignorePerformanceApiSpans:i,ignoreResourceSpans:s,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:l}=t,c=se(n),d=r.getEntries(),{op:u,start_timestamp:p}=B(e);if(d.slice(__).forEach(f=>{let m=se(f.startTime),_=se(Math.max(0,f.duration));if(!(u==="navigation"&&p&&c+m<p))switch(f.entryType){case"navigation":{Kk(e,f,c);break}case"mark":case"paint":case"measure":{Yk(e,f,m,_,c,i);let I=Br(),g=f.startTime<I.firstHiddenTime;f.name==="first-paint"&&g&&(ht.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&g&&(ht.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{Qk(e,f,f.name,m,_,c,s);break}}}),__=Math.max(d.length-1,0),Zk(e,o),u==="pageload"){if(rw(ht),o){let f=(m,_,I)=>{let g=I??`browser.web_vital.${m}.value`;e.setAttribute(g,_),je&&E.log("Setting web vital attribute",{[g]:_},"on pageload span")};["ttfb","fp","fcp"].forEach(m=>{ht[m]&&f(m,ht[m].value)}),ht["ttfb.requestTime"]&&f("ttfb.requestTime",ht["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete ht.cls,l||delete ht.lcp,Object.entries(ht).forEach(([f,m])=>{Vl(f,m.value,m.unit)}),ew(e,t);e.setAttribute(o?"browser.performance.time_origin":"performance.timeOrigin",c),e.setAttribute(o?"browser.performance.navigation.activation_start":"performance.activationStart",er())}Rt=void 0,bc=void 0,ht={}}function Vk(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components \u269B"}catch{return}}function Yk(e,t,r,n,o,i){if(Vk(t)||["mark","measure"].includes(t.entryType)&&qe(t.name,i))return;let s=rn(!1),a=se(s?s.requestStart:0),l=o+Math.max(r,a),c=o+r,d=c+n,u={[J]:"auto.resource.browser.metrics"};l!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=l),qk(u,t),l<=d&&sn(e,l,d,{name:t.name,op:t.entryType,attributes:u})}function qk(e,t){try{let r=t.detail;if(!r)return;if(typeof r=="object"){for(let[n,o]of Object.entries(r))if(o&&Tt(o))e[`sentry.browser.measure.detail.${n}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${n}`]=JSON.stringify(o)}catch{}return}if(Tt(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}function Kk(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{Ic(e,t,n,r)}),Ic(e,t,"secureConnection",r,"TLS/SSL"),Ic(e,t,"fetch",r,"cache"),Ic(e,t,"domainLookup",r,"DNS"),Jk(e,t,r)}function Ic(e,t,r,n,o=r){let i=Xk(r),s=t[i],a=t[`${r}Start`];!a||!s||sn(e,n+se(a),n+se(s),{op:`browser.${o}`,name:t.name,attributes:{[J]:"auto.ui.browser.metrics",...r==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Xk(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Jk(e,t,r){let n=r+se(t.requestStart),o=r+se(t.responseEnd),i=r+se(t.responseStart);t.responseEnd&&(sn(e,n,o,{op:"browser.request",name:t.name,attributes:{[J]:"auto.ui.browser.metrics"}}),sn(e,i,o,{op:"browser.response",name:t.name,attributes:{[J]:"auto.ui.browser.metrics"}}))}function Qk(e,t,r,n,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;let a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(a))return;let l={[J]:"auto.resource.browser.metrics"},c=Qt(r);c.protocol&&(l["url.scheme"]=c.protocol.split(":").pop()),c.host&&(l["server.address"]=c.host),l["url.same_origin"]=r.includes(O.location.origin),tw(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let d={...l,...sa(t)},u=i+n,p=u+o;sn(e,u,p,{name:r.replace(O.location.origin,""),op:a,attributes:d})}function Zk(e,t){let r=O.navigator;if(!r)return;let n=r.connection;n&&(n.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute(t?"network.connection.type":"connectionType",n.type),Tc(n.rtt)&&(ht["connection.rtt"]={value:n.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",n.rtt))),Tc(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),Tc(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}function ew(e,t){Rt&&t.recordLcpOnPageloadSpan&&(Rt.element&&e.setAttribute("lcp.element",le(Rt.element)),Rt.id&&e.setAttribute("lcp.id",Rt.id),Rt.url&&e.setAttribute("lcp.url",Rt.url.trim().slice(0,200)),Rt.loadTime!=null&&e.setAttribute("lcp.loadTime",Rt.loadTime),Rt.renderTime!=null&&e.setAttribute("lcp.renderTime",Rt.renderTime),e.setAttribute("lcp.size",Rt.size)),bc?.sources&&t.recordClsOnPageloadSpan&&bc.sources.forEach((r,n)=>e.setAttribute(`cls.source.${n+1}`,le(r.node)))}function tw(e,t,r){r.forEach(([n,o])=>{let i=e[n];i!=null&&(typeof i=="number"&&i<$k||typeof i=="string")&&(t[o]=i)})}function rw(e){let t=rn(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}var Qp=[],aa=new Map,wi=new Map,Zp=60;function ef(){if(an()&&ue()){let t=nw();return()=>{t()}}return()=>{}}var Ri={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"};function nw(){return Co(ow)}var ow=({metric:e})=>{if(e.value==null)return;let t=se(e.value);if(t>Zp)return;let r=e.entries.find(m=>m.duration===e.value&&Ri[m.name]);if(!r)return;let{interactionId:n}=r,o=Ri[r.name],i=se(ue()+r.startTime),s=ie(),a=s?te(s):void 0,l=n!=null?aa.get(n):void 0,c=l?.span||a,d=c?B(c).description:U().getScopeData().transactionName,u=l?.elementName||le(r.target),p={[J]:"auto.http.browser.inp",[_e]:`ui.interaction.${o}`,[it]:r.duration},f=ki({name:u,transaction:d,attributes:p,startTime:i});f&&(f.addEvent("inp",{[yr]:"millisecond",[_r]:e.value}),f.end(i+t))};function v_(e){return e!=null?aa.get(e):void 0}function tf(){let e=Object.keys(Ri);Zt()&&e.forEach(o=>{O.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){let i=o.target;if(!i)return;let s=le(i),a=Math.round(o.timeStamp);if(wi.set(a,s),wi.size>50){let l=wi.keys().next().value;l!==void 0&&wi.delete(l)}}function r(o){let i=Math.round(o.startTime),s=wi.get(i);if(!s)for(let a=-5;a<=5;a++){let l=wi.get(i+a);if(l){s=l;break}}return s||"<unknown>"}let n=({entries:o})=>{let i=ie(),s=i&&te(i);o.forEach(a=>{if(!m_(a))return;let l=a.interactionId;if(l==null||aa.has(l))return;let c=a.target?le(a.target):r(a);if(Qp.length>10){let d=Qp.shift();aa.delete(d)}Qp.push(l),aa.set(l,{span:s,elementName:c})})};vr("event",n),vr("first-input",n)}function rf(e){let{name:t,op:r,origin:n,metricName:o,value:i,attributes:s,parentSpan:a,reportEvent:l,startTime:c,endTime:d}=e,u=U().getScopeData().transactionName,p={[J]:n,[_e]:r,[it]:0,[`browser.web_vital.${o}.value`]:i,"sentry.transaction":u,"user_agent.original":O.navigator?.userAgent,...s};a&&Us(a).attributes?.[_e]==="pageload"&&(p["sentry.pageload.span_id"]=a.spanContext().spanId),l&&(p[`browser.web_vital.${o}.report_event`]=l);let f=$e({name:t,attributes:p,startTime:c,parentSpan:a});f&&f.end(d??c)}function nf(e){let t=0,r;if(!Ao("largest-contentful-paint"))return;let n=on(({metric:o})=>{let i=o.entries[o.entries.length-1];!i||!Lo(o.value)||(t=o.value,r=i)},!0);Mo(e,(o,i,s)=>{iw(t,r,s,o),n()})}function iw(e,t,r,n){if(!Lo(e))return;je&&E.log(`Sending LCP span (${e})`);let o=ue()||0,i=se(o),s=se(o+(t?.startTime||0)),a=t?le(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=le(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),rf({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:i,endTime:s})}function of(e){let t=0,r;if(!Ao("layout-shift"))return;let n=nn(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,r=i)},!0);Mo(e,(o,i,s)=>{sw(t,r,s,o),n()})}function sw(e,t,r,n){je&&E.log(`Sending CLS span (${e})`);let o=t?se((ue()||0)+t.startTime):ne(),i=t?le(t.sources[0]?.node):"Layout shift",s={};t?.sources&&t.sources.forEach((a,l)=>{s[`browser.web_vital.cls.source.${l+1}`]=le(a.node)}),rf({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:s,parentSpan:r,reportEvent:n,startTime:o})}function sf(){if(!an()||!ue())return;Co(({metric:r})=>{if(r.value==null||se(r.value)>Zp)return;let o=r.entries.find(i=>i.duration===r.value&&Ri[i.name]);o&&aw(r.value,o)})}function aw(e,t){je&&E.log(`Sending INP span (${e})`);let r=se(ue()+t.startTime),n=se(e),o=Ri[t.name],i=v_(t.interactionId),s=ie(),a=s?te(s):void 0,l=i?.span||a,c=l?Us(l).name:U().getScopeData().transactionName,d=i?.elementName||le(t.target);rf({name:d,op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[it]:t.duration,"sentry.transaction":c},startTime:r,endTime:r+n,parentSpan:l})}var lw=1e3,E_,af,lf;function la(e){et("dom",e),tt("dom",cw)}function cw(){if(!O.document)return;let e=Le.bind(null,"dom"),t=T_(e,!0);O.document.addEventListener("click",t,!1),O.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{let o=O[r]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(Re(o,"addEventListener",function(i){return function(s,a,l){if(s==="click"||s=="keypress")try{let c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=c[s]=c[s]||{refCount:0};if(!d.handler){let u=T_(e);d.handler=u,i.call(this,s,u,l)}d.refCount++}catch{}return i.call(this,s,a,l)}}),Re(o,"removeEventListener",function(i){return function(s,a,l){if(s==="click"||s=="keypress")try{let c=this.__sentry_instrumentation_handlers__||{},d=c[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,l),d.handler=void 0,delete c[s]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,a,l)}}))})}function uw(e){if(e.type!==af)return!1;try{if(!e.target||e.target._sentryId!==lf)return!1}catch{}return!0}function dw(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function T_(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=pw(r);if(dw(r.type,n))return;ye(r,"_sentryCaptured",!0),n&&!n._sentryId&&ye(n,"_sentryId",Ne());let o=r.type==="keypress"?"input":r.type;uw(r)||(e({event:r,name:o,global:t}),af=r.type,lf=n?n._sentryId:void 0),clearTimeout(E_),E_=O.setTimeout(()=>{lf=void 0,af=void 0},lw)}}function pw(e){try{return e.target}catch{return null}}var xc;function ln(e){let t="history";et(t,e),tt(t,fw)}function fw(){if(O.addEventListener("popstate",()=>{let t=O.location.href,r=xc;if(xc=t,r===t)return;Le("history",{from:r,to:t})}),!Op())return;function e(t){return function(...r){let n=r.length>2?r[2]:void 0;if(n){let o=xc,i=mw(String(n));if(xc=i,o===i)return t.apply(this,r);Le("history",{from:o,to:i})}return t.apply(this,r)}}Re(O.history,"pushState",e),Re(O.history,"replaceState",e)}function mw(e){try{return new URL(e,O.location.origin).toString()}catch{return e}}var kc={};function wc(e){let t=kc[e];if(t)return t;let r=O[e];if(na(r))return kc[e]=r.bind(O);let n=O.document;if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(o)}catch(o){je&&E.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return r&&(kc[e]=r.bind(O))}function cf(e){kc[e]=void 0}function Oo(...e){return wc("setTimeout")(...e)}var Er="__sentry_xhr_v3__";function ca(e){et("xhr",e),tt("xhr",hw)}function hw(){if(!O.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,r,n){let o=new Error,i=ne()*1e3,s=rt(n[0])?n[0].toUpperCase():void 0,a=gw(n[1]);if(!s||!a)return t.apply(r,n);r[Er]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(r.__sentry_own_request__=!0);let l=()=>{let c=r[Er];if(c&&r.readyState===4){try{c.status_code=r.status}catch{}let d={endTimestamp:ne()*1e3,startTimestamp:i,xhr:r,virtualError:o};Le("xhr",d)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(c,d,u){return l(),c.apply(d,u)}}):r.addEventListener("readystatechange",l),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(c,d,u){let[p,f]=u,m=d[Er];return m&&rt(p)&&rt(f)&&(m.request_headers[p.toLowerCase()]=f),c.apply(d,u)}}),t.apply(r,n)}}),e.send=new Proxy(e.send,{apply(t,r,n){let o=r[Er];if(!o)return t.apply(r,n);n[0]!==void 0&&(o.body=n[0]);let i={startTimestamp:ne()*1e3,xhr:r};return Le("xhr",i),t.apply(r,n)}})}function gw(e){if(rt(e))return e;try{return e.toString()}catch{}}var Sw=Symbol.for("sentry__originalRequestBody");function Rc(e){return new URLSearchParams(e).toString()}function Nc(e,t=E){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Rc(e)];if(!e)return[void 0]}catch(r){return je&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return je&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Cc(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let r=e[0][Sw];return r!==void 0?r:void 0}}function ua(e){let t;try{t=e.getAllResponseHeaders()}catch(r){return je&&E.error(r,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
|
|
28
|
-
`).reduce((r,n)=>{let[o,i]=n.split(": ");return i&&(r[o.toLowerCase()]=i),r},{}):{}}function uf(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch{return!1}}var yw=40;function I_(e,t=wc("fetch")){let r=0,n=0;async function o(i){let s=i.body.length;r+=s,n++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let l=await t(e.url,a);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw cf("fetch"),l}finally{r-=s,n--}}return Ql(e,o,wo(e.bufferSize||yw))}var be=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var _w=30;var vw=50;function df(e,t,r,n){let o={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return r!==void 0&&(o.lineno=r),n!==void 0&&(o.colno=n),o}var Ew=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Tw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Iw=/\((\S*)(?::(\d+))(?::(\d+))\)/,bw=/at (.+?) ?\(data:(.+?),/,xw=e=>{let t=e.match(bw);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=Ew.exec(e);if(r){let[,o,i,s]=r;return df(o,"?",+i,+s)}let n=Tw.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let a=Iw.exec(n[2]);a&&(n[2]=a[1],n[3]=a[2],n[4]=a[3])}let[i,s]=x_(n[1]||"?",n[2]);return df(s,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},kw=[_w,xw],ww=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Rw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Nw=e=>{let t=ww.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=Rw.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],o=t[1]||"?";return[o,n]=x_(o,n),df(n,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Cw=[vw,Nw];var Aw=[kw,Cw],b_=Ss(...Aw),x_=(e,t)=>{let r=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return r||n?[e.indexOf("@")!==-1?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var Ac=1024,Mw="Breadcrumbs",Lw=((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Mw,setup(r){t.console&&Ap(Dw(r)),t.dom&&la(Pw(r,t.dom)),t.xhr&&ca(Uw(r)),t.fetch&&Ln(Bw(r)),t.history&&ln(Fw(r)),t.sentry&&r.on("beforeSendEvent",Ow(r))}}}),k_=Lw;function Ow(e){return function(r){M()===e&&Bt({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Sr(r)},{event:r})}}function Pw(e,t){return function(n){if(M()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ac&&(be&&E.warn(`\`dom.maxStringLength\` cannot exceed ${Ac}, but a value of ${a} was configured. Sentry will use ${Ac} instead.`),a=Ac),typeof s=="string"&&(s=[s]);try{let c=n.event,d=Hw(c)?c.target:c;o=le(d,{keyAttrs:s,maxStringLength:a}),i=Ei(d)}catch{o="<unknown>"}if(o.length===0)return;let l={category:`ui.${n.name}`,message:o};i&&(l.data={"ui.component_name":i}),Bt(l,{event:n.event,name:n.name,global:n.global})}}function Dw(e){return function(r){if(M()!==e)return;let n={category:"console",data:{arguments:r.args,logger:"console"},level:vi(r.level),message:ws(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${ws(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Bt(n,{input:r.args,level:r.level})}}function Uw(e){return function(r){if(M()!==e)return;let{startTimestamp:n,endTimestamp:o}=r,i=r.xhr[Er];if(!n||!o||!i)return;let{method:s,url:a,status_code:l,body:c}=i,d={method:s,url:a,status_code:l},u={xhr:r.xhr,input:c,startTimestamp:n,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:ac(l)};e.emit("beforeOutgoingRequestBreadcrumb",p,u),Bt(p,u)}}function Bw(e){return function(r){if(M()!==e)return;let{startTimestamp:n,endTimestamp:o}=r;if(o&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){let i={data:r.error,input:r.args,startTimestamp:n,endTimestamp:o},s={category:"fetch",data:r.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),Bt(s,i)}else{let i=r.response,s={...r.fetchData,status_code:i?.status},a={input:r.args,response:i,startTimestamp:n,endTimestamp:o},l={category:"fetch",data:s,type:"http",level:ac(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,a),Bt(l,a)}}}function Fw(e){return function(r){if(M()!==e)return;let n=r.from,o=r.to,i=Qt(D.location.href),s=n?Qt(n):void 0,a=Qt(o);s?.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),Bt({category:"navigation",data:{from:n,to:o}})}}function Hw(e){return!!e&&!!e.target}var zw="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".split(","),$w="BrowserApiErrors",jw=((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:$w,setupOnce(){t.setTimeout&&Re(D,"setTimeout",w_),t.setInterval&&Re(D,"setInterval",w_),t.requestAnimationFrame&&Re(D,"requestAnimationFrame",Ww),t.XMLHttpRequest&&"XMLHttpRequest"in D&&Re(XMLHttpRequest.prototype,"send",Gw);let r=t.eventTarget;r&&(Array.isArray(r)?r:zw).forEach(o=>Vw(o,t))}}}),R_=jw;function w_(e){return function(...t){let r=t[0];return t[0]=Ro(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${pt(e)}`}}),e.apply(this,t)}}function Ww(e){return function(t){return e.apply(this,[Ro(t,{mechanism:{data:{handler:pt(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Gw(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in r&&typeof r[o]=="function"&&Re(r,o,function(i){let s={mechanism:{data:{handler:pt(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},a=kn(i);return a&&(s.mechanism.data.handler=pt(a)),Ro(i,s)})}),e.apply(this,t)}}function Vw(e,t){let n=D[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(Re(n,"addEventListener",function(o){return function(i,s,a){try{Yw(s)&&(s.handleEvent=Ro(s.handleEvent,{mechanism:{data:{handler:pt(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&qw(this,i,s),o.apply(this,[i,Ro(s,{mechanism:{data:{handler:pt(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Re(n,"removeEventListener",function(o){return function(i,s,a){try{let l=s.__sentry_wrapped__;l&&o.call(this,i,l,a)}catch{}return o.call(this,i,s,a)}}))}function Yw(e){return typeof e.handleEvent=="function"}function qw(e,t,r){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,r)}var N_=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof D.document>"u"){be&&E.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}gi({ignoreDuration:!0}),ko();let r=Te(),n=r.getUser();r.addScopeListener(o=>{let i=o.getUser();(n?.id!==i?.id||n?.ip_address!==i?.ip_address)&&(ko(),n=i)}),t==="route"&&ln(({from:o,to:i})=>{o!==i&&(gi({ignoreDuration:!0}),ko())})}}};var Kw="CultureContext",Xw=(()=>({name:Kw,preprocessEvent(e){let t=C_();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=C_();t&&An(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})),A_=Xw;function C_(){try{let e=D.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Jw="GlobalHandlers",Qw=((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Jw,setupOnce(){Error.stackTraceLimit=50},setup(r){t.onerror&&(Zw(r),M_("onerror")),t.onunhandledrejection&&(eR(r),M_("onunhandledrejection"))}}}),L_=Qw;function Zw(e){vs(t=>{let{stackParser:r,attachStacktrace:n}=O_();if(M()!==e||Up())return;let{msg:o,url:i,line:s,column:a,error:l}=t,c=nR(pc(r,l||o,void 0,n,!1),i,s,a);c.level="error",hi(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function eR(e){Es(t=>{let{stackParser:r,attachStacktrace:n}=O_();if(M()!==e||Up())return;let o=tR(t),i=Tt(o)?rR(o):pc(r,o,void 0,n,!0);i.level="error",hi(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function tR(e){if(Tt(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function rR(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function nR(e,t,r,n){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[];return l.length===0&&l.push({colno:n,lineno:r,filename:oR(t)??wt(),function:"?",in_app:!0}),e}function M_(e){be&&E.log(`Global Handler attached: ${e}`)}function O_(){return M()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function oR(e){if(!(!rt(e)||e.length===0))return e.startsWith("data:")?`<${st(e,!1)}>`:e}var P_=()=>({name:"HttpContext",preprocessEvent(e){if(!D.navigator&&!D.location&&!D.document)return;let t=Ti(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){if(!D.navigator&&!D.location&&!D.document)return;let t=Ti();An(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}});var iR="cause",sR=5,aR="LinkedErrors",lR=((e={})=>{let t=e.limit||sR,r=e.key||iR;return{name:aR,preprocessEvent(n,o,i){let s=i.getOptions();Cp(uc,s.stackParser,r,t,n,o)}}}),D_=lR;var cR=/^HTML(\w*)Element$/;function da(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(uf(e)){let t=uR(e);if(cR.test(t))return`[HTMLElement: ${le(e)}]`}}function uR(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function U_(){return dR()?(be&&Ye(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function dR(){if(typeof D.window>"u")return!1;let e=D;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let r=wt();return!(D===D.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}function B_(e){return[nc(),tc(),Mp(),R_(),k_(),L_(),D_(),ic(),P_(),A_(),N_()]}function pf(e={}){let t=!e.skipBrowserExtensionCheck&&U_(),r=e.defaultIntegrations==null?B_():e.defaultIntegrations,n={...e,enabled:t?!1:e.enabled,stackParser:kl(e.stackParser||b_),integrations:hp({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||I_};return ni(da),Ip(fc,n)}function Mc(e={}){let t=D.document,r=t?.head||t?.body;if(!r){be&&E.error("[showReportDialog] Global document not defined");return}let n=U(),i=M()?.getDsn();if(!i){be&&E.error("[showReportDialog] DSN not configured");return}let s={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||Vs()},a=D.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=fp(i,s);let{onLoad:l,onClose:c}=s;if(l&&(a.onload=l),c){let d=u=>{if(u.data==="__sentry_reportdialog_closed__")try{c()}finally{D.removeEventListener("message",d)}};D.addEventListener("message",d)}r.appendChild(a)}var me=L,$f="sentryReplaySession",pR="replay_event",jf="Unable to send Replay",fR=3e5,mR=9e5,hR=5e3,gR=5500,SR=6e4,yR=5e3,_R=3,F_=15e4,Lc=5e3,vR=3e3,ER=300,Wf=2e7,TR=4999,IR=5e4,H_=36e5,bR=Object.defineProperty,xR=(e,t,r)=>t in e?bR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z_=(e,t,r)=>xR(e,typeof t!="symbol"?t+"":t,r),Pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Pe||{});function kR(e){return e.nodeType===e.ELEMENT_NODE}function ma(e){return e?.host?.shadowRoot===e}function ha(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function wR(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function RR(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Bc(e){try{let t=e.rules||e.cssRules;return t?wR(Array.from(t,dv).join("")):null}catch{return null}}function NR(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,o=n[r],i=n.getPropertyPriority(o);t+=`${o}:${n.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function dv(e){let t;if(AR(e))try{t=Bc(e.styleSheet)||RR(e)}catch{}else if(MR(e)){let r=e.cssText,n=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(r=NR(e)),n&&(r=CR(r)),n||o)return r}return t||e.cssText}function CR(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function AR(e){return"styleSheet"in e}function MR(e){return"selectorText"in e}var Fc=class{constructor(){z_(this,"idNodeMap",new Map),z_(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let o=this.nodeMetaMap.get(n);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function LR(){return new Fc}function Zc({maskInputOptions:e,tagName:t,type:r}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||r==="password"||t==="INPUT"&&!r&&e.text)}function Sa({isMasked:e,element:t,value:r,maskInputFn:n}){let o=r||"";return e?(n&&(o=n(o,t)),"*".repeat(o.length)):o}function Di(e){return e.toLowerCase()}function yf(e){return e.toUpperCase()}var $_="__rrweb_original__";function OR(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n<e.width;n+=r)for(let o=0;o<e.height;o+=r){let i=t.getImageData,s=$_ in i?i[$_]:i;if(new Uint32Array(s.call(t,n,o,Math.min(r,e.width-n),Math.min(r,e.height-o)).data.buffer).some(l=>l!==0))return!1}return!0}function Gf(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Di(t):null}function Hc(e,t,r){return t==="INPUT"&&(r==="radio"||r==="checkbox")?e.getAttribute("value")||"":e.value}function pv(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let n=/\.([0-9a-z]+)(?:$)/i;return r.pathname.match(n)?.[1]??null}var j_={};function fv(e){let t=j_[e];if(t)return t;let r=window.document,n=window[e];if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch{}return j_[e]=n.bind(window)}function _f(...e){return fv("setTimeout")(...e)}function mv(...e){return fv("clearTimeout")(...e)}function hv(e){try{return e.contentDocument}catch{}}function PR(e){try{return e.contentWindow}catch{}}var DR=1,UR=new RegExp("[^a-z0-9-_:]"),ya=-2;function Vf(){return DR++}function BR(e){if(e instanceof HTMLFormElement)return"form";let t=Di(e.tagName);return UR.test(t)?"div":t}function FR(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Ni,W_,HR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,zR=/^(?:[a-z+]+:)?\/\//i,$R=/^www\..*/i,jR=/^(data:)([^,]*),(.*)/i;function WR(e,t){if(!e||t.size===0)return e;try{let r=e.split(";"),n=[];for(let o of r){if(o=o.trim(),!o)continue;let i=o.indexOf(":");if(i===-1){n.push(o);continue}let s=o.slice(0,i).trim();t.has(s)||n.push(o)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(r){return console.warn("Error filtering CSS properties:",r),e}}function zc(e,t){return(e||"").replace(HR,(r,n,o,i,s,a)=>{let l=o||s||a,c=n||i||"";if(!l)return r;if(zR.test(l)||$R.test(l))return`url(${c}${l}${c})`;if(jR.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${FR(t)+l}${c})`;let d=t.split("/"),u=l.split("/");d.pop();for(let p of u)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${c}${d.join("/")}${c})`})}var GR=/^[^ \t\n\r\u000c]+/,VR=/^[, \t\n\r\u000c]+/;function YR(e,t){if(t.trim()==="")return t;let r=0;function n(i){let s,a=i.exec(t.substring(r));return a?(s=a[0],r+=s.length,s):""}let o=[];for(;n(VR),!(r>=t.length);){let i=n(GR);if(i.slice(-1)===",")i=Mi(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=Mi(e,i);let a=!1;for(;;){let l=t.charAt(r);if(l===""){o.push((i+s).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){r+=1,o.push((i+s).trim());break}else l==="("&&(a=!0);s+=l,r+=1}}}return o.join(", ")}var G_=new WeakMap;function Mi(e,t){return!t||t.trim()===""?t:eu(e,t)}function qR(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function eu(e,t){let r=G_.get(e);if(r||(r=e.createElement("a"),G_.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function gv(e,t,r,n,o,i,s){if(!n)return n;if(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#"))return Mi(e,n);if(r==="xlink:href"&&n[0]!=="#")return Mi(e,n);if(r==="background"&&(t==="table"||t==="td"||t==="th"))return Mi(e,n);if(r==="srcset")return YR(e,n);if(r==="style"){let a=zc(n,eu(e));return s&&s.size>0&&(a=WR(a,s)),a}else if(t==="object"&&r==="data")return Mi(e,n);return typeof i=="function"?i(r,n,o):n}function Sv(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function KR(e,t,r,n){try{if(n&&e.matches(n))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(t.test(i))return!0}if(r)return e.matches(r)}catch{}return!1}function XR(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}function Po(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Po(e.parentNode,t,r,n+1)}function Li(e,t){return r=>{let n=r;if(n===null)return!1;try{if(e){if(typeof e=="string"){if(n.matches(`.${e}`))return!0}else if(XR(n,e))return!0}return!!(t&&n.matches(t))}catch{return!1}}}function Ui(e,t,r,n,o,i){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){let c=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(c))return!0}let a=-1,l=-1;if(i){if(l=Po(s,Li(n,o)),l<0)return!0;a=Po(s,Li(t,r),l>=0?l:1/0)}else{if(a=Po(s,Li(t,r)),a<0)return!1;l=Po(s,Li(n,o),a>=0?a:1/0)}return a>=0?l>=0?a<=l:!0:l>=0?!1:!!i}catch{}return!!i}function JR(e,t,r){let n=PR(e);if(!n)return;let o=!1,i;try{i=n.document.readyState}catch{return}if(i!=="complete"){let a=_f(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{mv(a),o=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||e.src==="")return _f(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function QR(e,t,r){let n=!1,o;try{o=e.sheet}catch{o=null}if(o)return;let i=_f(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{mv(i),n=!0,t()})}function ZR(e,t){let{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m={},maskTextFn:_,maskInputFn:I,dataURLOptions:g={},inlineImages:h,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:R=!1,ignoreCSSAttributes:k}=t,v=eN(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Pe.Document,childNodes:[],compatMode:e.compatMode}:{type:Pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return rN(e,{doc:r,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:m,maskInputFn:I,dataURLOptions:g,inlineImages:h,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:R,rootId:v,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,ignoreCSSAttributes:k});case e.TEXT_NODE:return tN(e,{doc:r,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:m,maskInputFn:I,rootId:v});case e.CDATA_SECTION_NODE:return{type:Pe.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:Pe.Comment,textContent:e.textContent||"",rootId:v};default:return!1}}function eN(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function tN(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:c,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName,p=e.textContent,f=u==="STYLE"?!0:void 0,m=u==="SCRIPT"?!0:void 0,_=u==="TEXTAREA"?!0:void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Bc(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}p=zc(p,eu(t.doc))}m&&(p="SCRIPT_PLACEHOLDER");let I=Ui(e,n,i,o,s,r);if(!f&&!m&&!_&&p&&I&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),_&&p&&(l.textarea||I)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),u==="OPTION"&&p){let g=Zc({type:null,tagName:u,maskInputOptions:l});p=Sa({isMasked:Ui(e,n,i,o,s,g),element:e,value:p,maskInputFn:c})}return{type:Pe.Text,textContent:p||"",isStyle:f,rootId:d}}function rN(e,t){let{doc:r,blockClass:n,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:d={},inlineImages:u,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:_,maskTextClass:I,unmaskTextClass:g,maskTextSelector:h,unmaskTextSelector:S,ignoreCSSAttributes:T}=t,R=KR(e,n,o,i),k=BR(e),v={},x=e.attributes.length;for(let b=0;b<x;b++){let P=e.attributes[b];P.name&&!Sv(k,P.name,P.value)&&(v[P.name]=gv(r,k,Di(P.name),P.value,e,l,T))}if(k==="link"&&s){let b=Array.from(r.styleSheets).find(Y=>Y.href===e.href),P=null;b&&(P=Bc(b)),P&&(v.rel=null,v.href=null,v.crossorigin=null,v._cssText=zc(P,b.href))}if(k==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let b=Bc(e.sheet);b&&(v._cssText=zc(b,eu(r)))}if(k==="input"||k==="textarea"||k==="select"||k==="option"){let b=e,P=Gf(b),Y=Hc(b,yf(k),P),ee=b.checked;if(P!=="submit"&&P!=="button"&&Y){let G=Ui(b,I,h,g,S,Zc({type:P,tagName:yf(k),maskInputOptions:a}));v.value=Sa({isMasked:G,element:b,value:Y,maskInputFn:c})}ee&&(v.checked=ee)}if(k==="option"&&(e.selected&&!a.select?v.selected=!0:delete v.selected),k==="canvas"&&p){if(e.__context==="2d")OR(e)||(v.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let b=e.toDataURL(d.type,d.quality),P=r.createElement("canvas");P.width=e.width,P.height=e.height;let Y=P.toDataURL(d.type,d.quality);b!==Y&&(v.rr_dataURL=b)}}if(k==="img"&&u){Ni||(Ni=r.createElement("canvas"),W_=Ni.getContext("2d"));let b=e,P=b.currentSrc||b.getAttribute("src")||"<unknown-src>",Y=b.crossOrigin,ee=()=>{b.removeEventListener("load",ee);try{Ni.width=b.naturalWidth,Ni.height=b.naturalHeight,W_.drawImage(b,0,0),v.rr_dataURL=Ni.toDataURL(d.type,d.quality)}catch(G){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?ee():b.addEventListener("load",ee);return}else console.warn(`Cannot inline img src=${P}! Error: ${G}`)}b.crossOrigin==="anonymous"&&(Y?v.crossOrigin=Y:b.removeAttribute("crossorigin"))};b.complete&&b.naturalWidth!==0?ee():b.addEventListener("load",ee)}if((k==="audio"||k==="video")&&(v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),R){let{width:b,height:P}=e.getBoundingClientRect();v={class:v.class,rr_width:`${b}px`,rr_height:`${P}px`}}k==="iframe"&&!f(v.src)&&(!R&&!hv(e)&&(v.rr_src=v.src),delete v.src);let j;try{customElements.get(k)&&(j=!0)}catch{}return{type:Pe.Element,tagName:k,attributes:v,childNodes:[],isSVG:qR(e)||void 0,needBlock:R,rootId:_,isCustom:j}}function fe(e){return e==null?"":e.toLowerCase()}function nN(e,t){if(t.comment&&e.type===Pe.Comment)return!0;if(e.type===Pe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&pv(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(fe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||fe(e.attributes.name)==="application-name"||fe(e.attributes.rel)==="icon"||fe(e.attributes.rel)==="apple-touch-icon"||fe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&fe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(fe(e.attributes.property).match(/^(og|twitter|fb):/)||fe(e.attributes.name).match(/^(og|twitter):/)||fe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(fe(e.attributes.name)==="robots"||fe(e.attributes.name)==="googlebot"||fe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(fe(e.attributes.name)==="author"||fe(e.attributes.name)==="generator"||fe(e.attributes.name)==="framework"||fe(e.attributes.name)==="publisher"||fe(e.attributes.name)==="progid"||fe(e.attributes.property).match(/^article:/)||fe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(fe(e.attributes.name)==="google-site-verification"||fe(e.attributes.name)==="yandex-verification"||fe(e.attributes.name)==="csrf-token"||fe(e.attributes.name)==="p:domain_verify"||fe(e.attributes.name)==="verify-v1"||fe(e.attributes.name)==="verification"||fe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Oi(e,t){let{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:_,maskTextFn:I,maskInputFn:g,slimDOMOptions:h,dataURLOptions:S={},inlineImages:T=!1,recordCanvas:R=!1,onSerialize:k,onIframeLoad:v,iframeLoadTimeout:x=5e3,onBlockedImageLoad:j,onStylesheetLoad:b,stylesheetLoadTimeout:P=5e3,keepIframeSrcFn:Y=()=>!1,newlyAddedElement:ee=!1,ignoreCSSAttributes:G}=t,{preserveWhiteSpace:Ue=!0}=t,ce=ZR(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:I,maskInputFn:g,dataURLOptions:S,inlineImages:T,recordCanvas:R,keepIframeSrcFn:Y,newlyAddedElement:ee,ignoreCSSAttributes:G});if(!ce)return console.warn(e,"not serialized"),null;let Se;n.hasNode(e)?Se=n.getId(e):nN(ce,h)||!Ue&&ce.type===Pe.Text&&!ce.isStyle&&!ce.textContent.trim().length?Se=ya:Se=Vf();let C=Object.assign(ce,{id:Se});if(n.add(e,C),Se===ya)return null;k&&k(e);let oe=!p;if(C.type===Pe.Element){oe=oe&&!C.needBlock;let $=e.shadowRoot;$&&ha($)&&(C.isShadowHost=!0)}if((C.type===Pe.Document||C.type===Pe.Element)&&oe){h.headWhitespace&&C.type===Pe.Element&&C.tagName==="head"&&(Ue=!1);let $={doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:I,maskInputFn:g,slimDOMOptions:h,dataURLOptions:S,inlineImages:T,recordCanvas:R,preserveWhiteSpace:Ue,onSerialize:k,onIframeLoad:v,iframeLoadTimeout:x,onBlockedImageLoad:j,onStylesheetLoad:b,stylesheetLoadTimeout:P,keepIframeSrcFn:Y,ignoreCSSAttributes:G},q=e.childNodes?Array.from(e.childNodes):[];for(let de of q){let pe=Oi(de,$);pe&&C.childNodes.push(pe)}if(kR(e)&&e.shadowRoot)for(let de of Array.from(e.shadowRoot.childNodes)){let pe=Oi(de,$);pe&&(ha(e.shadowRoot)&&(pe.isShadow=!0),C.childNodes.push(pe))}}if(e.parentNode&&ma(e.parentNode)&&ha(e.parentNode)&&(C.isShadow=!0),C.type===Pe.Element&&C.tagName==="iframe"&&!C.needBlock&&JR(e,()=>{let $=hv(e);if($&&v){let q=Oi($,{doc:$,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:I,maskInputFn:g,slimDOMOptions:h,dataURLOptions:S,inlineImages:T,recordCanvas:R,preserveWhiteSpace:Ue,onSerialize:k,onIframeLoad:v,iframeLoadTimeout:x,onStylesheetLoad:b,stylesheetLoadTimeout:P,keepIframeSrcFn:Y,ignoreCSSAttributes:G});q&&v(e,q)}},x),C.type===Pe.Element&&C.tagName==="img"&&!e.complete&&C.needBlock){let $=e,q=()=>{if($.isConnected&&!$.complete&&j)try{let de=$.getBoundingClientRect();de.width>0&&de.height>0&&j($,C,de)}catch{}$.removeEventListener("load",q)};$.isConnected&&$.addEventListener("load",q)}return C.type===Pe.Element&&C.tagName==="link"&&typeof C.attributes.rel=="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href=="string"&&pv(C.attributes.href)==="css")&&QR(e,()=>{if(b){let $=Oi(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:_,maskTextFn:I,maskInputFn:g,slimDOMOptions:h,dataURLOptions:S,inlineImages:T,recordCanvas:R,preserveWhiteSpace:Ue,onSerialize:k,onIframeLoad:v,iframeLoadTimeout:x,onStylesheetLoad:b,stylesheetLoadTimeout:P,keepIframeSrcFn:Y,ignoreCSSAttributes:G});$&&b(e,$)}},P),C.type===Pe.Element&&delete C.needBlock,C}function oN(e,t){let{mirror:r=new Fc,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:m=!1,maskAttributeFn:_,maskTextFn:I,maskInputFn:g,slimDOM:h=!1,dataURLOptions:S,preserveWhiteSpace:T,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:v,onBlockedImageLoad:x,onStylesheetLoad:j,stylesheetLoadTimeout:b,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:Y=new Set([])}=t||{};return Oi(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:m===!0?{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}:m===!1?{}:m,maskAttributeFn:_,maskTextFn:I,maskInputFn:g,slimDOMOptions:h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:h==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:h===!1?{}:h,dataURLOptions:S,inlineImages:p,recordCanvas:f,preserveWhiteSpace:T,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:v,onBlockedImageLoad:x,onStylesheetLoad:j,stylesheetLoadTimeout:b,keepIframeSrcFn:P,newlyAddedElement:!1,ignoreCSSAttributes:Y})}function St(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var Ci=`Please stop import mirror directly. Instead of that,\r
|
|
29
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
30
|
-
or you can use record.mirror to access the mirror instance during recording.`,V_={map:{},getId(){return console.error(Ci),-1},getNode(){return console.error(Ci),null},removeNodeFromMap(){console.error(Ci)},has(){return console.error(Ci),!1},reset(){console.error(Ci)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(V_=new Proxy(V_,{get(e,t,r){return t==="map"&&console.error(Ci),Reflect.get(e,t,r)}}));function _a(e,t,r={}){let n=null,o=0;return function(...i){let s=Date.now();!o&&r.leading===!1&&(o=s);let a=t-(s-o),l=this;a<=0||a>t?(n&&(uN(n),n=null),o=s,e.apply(l,i)):!n&&r.trailing!==!1&&(n=tu(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(l,i)},a))}}function yv(e,t,r,n,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(s){tu(()=>{r.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>yv(e,t,i||{},!0)}function Yf(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}var $c=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||($c=()=>new Date().getTime());function _v(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function vv(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ev(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Tv(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ft(e,t,r,n,o){if(!e)return!1;let i=Tv(e);if(!i)return!1;let s=Li(t,r);if(!o){let c=n&&i.matches(n);return s(i)&&!c}let a=Po(i,s),l=-1;return a<0?!1:(n&&(l=Po(i,Li(null,n))),a>-1&&l<0?!0:a<l)}function iN(e,t){return t.getId(e)!==-1}function ff(e,t){return t.getId(e)===ya}function Iv(e,t){if(ma(e))return!1;let r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Iv(e.parentNode,t):!0:!0}function vf(e){return!!e.changedTouches}function sN(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=(...t)=>{let r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function bv(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function xv(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ef(e){return!!e?.shadowRoot}var Tf=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function kv(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function aN(e){let t=e,r;for(;r=kv(t);)t=r;return t}function lN(e){let t=e.ownerDocument;if(!t)return!1;let r=aN(e);return t.contains(r)}function wv(e){let t=e.ownerDocument;return t?t.contains(e)||lN(e):!1}var Y_={};function qf(e){let t=Y_[e];if(t)return t;let r=window.document,n=window[e];if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch{}return Y_[e]=n.bind(window)}function cN(...e){return qf("requestAnimationFrame")(...e)}function tu(...e){return qf("setTimeout")(...e)}function uN(...e){return qf("clearTimeout")(...e)}var W=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(W||{}),z=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(z||{}),gt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(gt||{}),cn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(cn||{}),Ai=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ai||{}),ga;function dN(e){ga=e}function pN(){ga=void 0}var Q=e=>ga?((...r)=>{try{return e(...r)}catch(n){if(ga&&ga(n)===!0)return()=>{};throw n}}):e,q_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fN=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(pa=0;pa<q_.length;pa++)fN[q_.charCodeAt(pa)]=pa;var pa,jc=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function Kf(e){try{return e.contentDocument}catch{}}function va(e){try{return e.contentWindow}catch{}}var If=class{constructor(t){this.doc=t,this.unattachedDoc=null}parse(t){return this.parseWithConstructableStylesheet(t)||this.parseWithDetachedElement(t)}parseWithConstructableStylesheet(t){if(typeof CSSStyleSheet>"u"||typeof CSSStyleSheet.prototype.replaceSync!="function")return null;try{let r=new CSSStyleSheet;r.replaceSync(`x { ${t} }`);let n=r.cssRules[0];return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(t){let r=this.getUnattachedDoc().createElement("span");return r.setAttribute("style",t),r.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function K_(e){return"__ln"in e}var bf=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&K_(t.previousSibling)){let n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&K_(t.nextSibling)&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},X_=(e,t)=>`${e}@${t}`,xf=class{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,n=new bf,o=l=>{let c=l,d=ya;for(;d===ya;)c=c&&c.nextSibling,d=c&&this.mirror.getId(c);return d},i=l=>{if(!l.parentNode||!wv(l))return;let c=ma(l.parentNode)?this.mirror.getId(kv(l)):this.mirror.getId(l.parentNode),d=o(l);if(c===-1||d===-1)return n.addNode(l);let u=Oi(l,{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:p=>{bv(p,this.mirror)&&!Ft(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),xv(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Ef(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(p,f)=>{if(Ft(p,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(p,f);let m=va(p);m&&this.canvasManager.addWindow(m),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,f)=>{this.stylesheetManager.attachLinkElement(p,f)},onBlockedImageLoad:(p,f,{width:m,height:_})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:f.id,attributes:{style:{width:`${m}px`,height:`${_}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});u&&(t.push({parentId:c,nextId:d,node:u}),r.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet)J_(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||i(l);for(let l of this.addedSet)!Q_(this.droppedSet,l)&&!J_(this.removes,l,this.mirror)||Q_(this.movedSet,l)?i(l):this.droppedSet.add(l);let s=null;for(;n.length;){let l=null;if(s){let c=this.mirror.getId(s.value.parentNode),d=o(s.value);c!==-1&&d!==-1&&(l=s)}if(!l){let c=n.tail;for(;c;){let d=c;if(c=c.previous,d){let u=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(u!==-1){l=d;break}else{let f=d.value;if(f.parentNode&&f.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=f.parentNode.host;if(this.mirror.getId(m)!==-1){l=d;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}s=l.previous,n.removeNode(l.value),i(l.value)}let a={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{let{attributes:c}=l;if(typeof c.style=="string"){let d=JSON.stringify(l.styleDiff),u=JSON.stringify(l._unchangedStyles);d.length<c.style.length&&(d+u).split("var(").length===c.style.split("var(").length&&(c.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:c}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!ff(t.target,this.mirror))switch(t.type){case"characterData":{let r=t.target.textContent;!Ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Ui(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r,Tv(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,n=t.attributeName,o=t.target.getAttribute(n);if(n==="value"){let s=Gf(r),a=r.tagName;o=Hc(r,a,s);let l=Zc({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),c=Ui(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);o=Sa({isMasked:c,element:r,value:o,maskInputFn:this.maskInputFn})}if(Ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(o))if(!Kf(r))n="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Sv(r.tagName,n)&&(i.attributes[n]=gv(this.doc,Di(r.tagName),Di(n),o,r,this.maskAttributeFn),n==="style")){let s=t.oldValue?this.styleDeclarationParser.parse(t.oldValue):null;for(let a of Array.from(r.style)){let l=r.style.getPropertyValue(a),c=r.style.getPropertyPriority(a);l!==(s?.getPropertyValue(a)||"")||c!==(s?.getPropertyPriority(a)||"")?c===""?i.styleDiff[a]=l:i.styleDiff[a]=[l,c]:i._unchangedStyles[a]=[l,c]}if(s)for(let a of Array.from(s))r.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(Ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let n=this.mirror.getId(r),o=ma(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ft(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ff(r,this.mirror)||!iN(r,this.mirror)||(this.addedSet.has(r)?(kf(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Iv(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[X_(n,o)]?kf(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:ma(t.target)&&ha(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(ff(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[X_(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ft(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(n=>this.genAdds(n)),Ef(t)&&t.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}}}init(t){["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","ignoreCSSAttributes"].forEach(r=>{this[r]=t[r]}),this.styleDeclarationParser=new If(this.doc)}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 kf(e,t){e.delete(t),t.childNodes?.forEach(r=>kf(e,r))}function J_(e,t,r){return e.length===0?!1:mN(e,t,r)}function mN(e,t,r){let n=t.parentNode;for(;n;){let o=r.getId(n);if(e.some(i=>i.id===o))return!0;n=n.parentNode}return!1}function Q_(e,t){return e.size===0?!1:Rv(e,t)}function Rv(e,t){let{parentNode:r}=t;return r?e.has(r)?!0:Rv(e,r):!1}var Pi=[];function xa(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Nv(e,t){let r=new xf;Pi.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(n=window[o]);let i=new n(Q(s=>{e.onMutation&&e.onMutation(s)===!1||r.processMutations.bind(r)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function hN({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],a,l=_a(Q(u=>{let p=Date.now()-a;e(s.map(f=>(f.timeOffset-=p,f)),u),s=[],a=null}),i),c=Q(_a(Q(u=>{let p=xa(u),{clientX:f,clientY:m}=vf(u)?u.changedTouches[0]:u;a||(a=$c()),s.push({x:f,y:m,id:n.getId(p),timeOffset:$c()-a}),l(typeof DragEvent<"u"&&u instanceof DragEvent?z.Drag:u instanceof MouseEvent?z.MouseMove:z.TouchMove)}),o,{trailing:!1})),d=[St("mousemove",c,r),St("touchmove",c,r),St("drag",c,r)];return Q(()=>{d.forEach(u=>u())})}function gN({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[],c=null,d=u=>p=>{let f=xa(p);if(Ft(f,n,o,i,!0))return;let m=null,_=u;if("pointerType"in p){switch(p.pointerType){case"mouse":m=cn.Mouse;break;case"touch":m=cn.Touch;break;case"pen":m=cn.Pen;break}m===cn.Touch?gt[u]===gt.MouseDown?_="TouchStart":gt[u]===gt.MouseUp&&(_="TouchEnd"):cn.Pen}else vf(p)&&(m=cn.Touch);m!==null?(c=m,(_.startsWith("Touch")&&m===cn.Touch||_.startsWith("Mouse")&&m===cn.Mouse)&&(m=null)):gt[u]===gt.Click&&(m=c,c=null);let I=vf(p)?p.changedTouches[0]:p;if(!I)return;let g=r.getId(f),{clientX:h,clientY:S}=I;Q(e)({type:gt[_],id:g,x:h,y:S,...m!==null&&{pointerType:m}})};return Object.keys(gt).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&a[u]!==!1).forEach(u=>{let p=Di(u),f=d(u);if(window.PointerEvent)switch(gt[u]){case gt.MouseDown:case gt.MouseUp:p=p.replace("mouse","pointer");break;case gt.TouchStart:case gt.TouchEnd:return}l.push(St(p,f,t))}),Q(()=>{l.forEach(u=>u())})}function Cv({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:s}){let a=Q(_a(Q(l=>{let c=xa(l);if(!c||Ft(c,n,o,i,!0))return;let d=r.getId(c);if(c===t&&t.defaultView){let u=_v(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return St("scroll",a,t)}function SN({viewportResizeCb:e},{win:t}){let r=-1,n=-1,o=Q(_a(Q(()=>{let i=vv(),s=Ev();(r!==i||n!==s)&&(e({width:Number(s),height:Number(i)}),r=i,n=s)}),200));return St("resize",o,t)}var yN=["INPUT","TEXTAREA","SELECT"],Z_=new WeakMap;function _N({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:d,userTriggeredOnInput:u,maskTextClass:p,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:_}){function I(v){let x=xa(v),j=v.isTrusted,b=x&&yf(x.tagName);if(b==="OPTION"&&(x=x.parentElement),!x||!b||yN.indexOf(b)<0||Ft(x,n,o,i,!0))return;let P=x;if(P.classList.contains(s)||a&&P.matches(a))return;let Y=Gf(x),ee=Hc(P,b,Y),G=!1,Ue=Zc({maskInputOptions:l,tagName:b,type:Y}),ce=Ui(x,p,m,f,_,Ue);(Y==="radio"||Y==="checkbox")&&(G=x.checked),ee=Sa({isMasked:ce,element:x,value:ee,maskInputFn:c}),g(x,u?{text:ee,isChecked:G,userTriggered:j}:{text:ee,isChecked:G});let Se=x.name;Y==="radio"&&Se&&G&&t.querySelectorAll(`input[type="radio"][name="${Se}"]`).forEach(C=>{if(C!==x){let oe=Sa({isMasked:ce,element:C,value:Hc(C,b,Y),maskInputFn:c});g(C,u?{text:oe,isChecked:!G,userTriggered:!1}:{text:oe,isChecked:!G})}})}function g(v,x){let j=Z_.get(v);if(!j||j.text!==x.text||j.isChecked!==x.isChecked){Z_.set(v,x);let b=r.getId(v);Q(e)({...x,id:b})}}let S=(d.input==="last"?["change"]:["input","change"]).map(v=>St(v,Q(I),t)),T=t.defaultView;if(!T)return()=>{S.forEach(v=>v())};let R=T.Object.getOwnPropertyDescriptor(T.HTMLInputElement.prototype,"value"),k=[[T.HTMLInputElement.prototype,"value"],[T.HTMLInputElement.prototype,"checked"],[T.HTMLSelectElement.prototype,"value"],[T.HTMLTextAreaElement.prototype,"value"],[T.HTMLSelectElement.prototype,"selectedIndex"],[T.HTMLOptionElement.prototype,"selected"]];return R&&R.set&&S.push(...k.map(v=>yv(v[0],v[1],{set(){Q(I)({target:this,isTrusted:!1})}},!1,T))),Q(()=>{S.forEach(v=>v())})}function Wc(e){let t=[];function r(n,o){if(Oc("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||Oc("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||Oc("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||Oc("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let s=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(s)}else if(n.parentStyleSheet){let s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(s)}return o}return r(e,t)}function Dn(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function vN({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Q((d,u,p)=>{let[f,m]=p,{id:_,styleId:I}=Dn(u,t,r.styleMirror);return(_&&_!==-1||I&&I!==-1)&&e({id:_,styleId:I,adds:[{rule:f,index:m}]}),d.apply(u,p)})});let i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Q((d,u,p)=>{let[f]=p,{id:m,styleId:_}=Dn(u,t,r.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,removes:[{index:f}]}),d.apply(u,p)})});let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Q((d,u,p)=>{let[f]=p,{id:m,styleId:_}=Dn(u,t,r.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,replace:f}),d.apply(u,p)})}));let a;n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Q((d,u,p)=>{let[f]=p,{id:m,styleId:_}=Dn(u,t,r.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,replaceSync:f}),d.apply(u,p)})}));let l={};Pc("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Pc("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Pc("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Pc("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([d,u])=>{c[d]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(c[d].insertRule,{apply:Q((p,f,m)=>{let[_,I]=m,{id:g,styleId:h}=Dn(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,adds:[{rule:_,index:[...Wc(f),I||0]}]}),p.apply(f,m)})}),u.prototype.deleteRule=new Proxy(c[d].deleteRule,{apply:Q((p,f,m)=>{let[_]=m,{id:I,styleId:g}=Dn(f.parentStyleSheet,t,r.styleMirror);return(I&&I!==-1||g&&g!==-1)&&e({id:I,styleId:g,removes:[{index:[...Wc(f),_]}]}),p.apply(f,m)})})}),Q(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=i,s&&(n.CSSStyleSheet.prototype.replace=s),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([d,u])=>{u.prototype.insertRule=c[d].insertRule,u.prototype.deleteRule=c[d].deleteRule})})}function Av({mirror:e,stylesheetManager:t},r){let n=null;r.nodeName==="#document"?n=e.getId(r):n=e.getId(r.host);let o=r.nodeName==="#document"?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return n===null||n===-1||!o||!i?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){let a=i.set?.call(this,s);if(n!==null&&n!==-1)try{t.adoptStyleSheets(s,n)}catch{}return a}}),Q(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function EN({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Q((a,l,c)=>{let[d,u,p]=c;if(r.has(d))return i.apply(l,[d,u,p]);let{id:f,styleId:m}=Dn(l.parentRule?.parentStyleSheet,t,n.styleMirror);return(f&&f!==-1||m&&m!==-1)&&e({id:f,styleId:m,set:{property:d,value:u,priority:p},index:Wc(l.parentRule)}),a.apply(l,c)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Q((a,l,c)=>{let[d]=c;if(r.has(d))return s.apply(l,[d]);let{id:u,styleId:p}=Dn(l.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&u!==-1||p&&p!==-1)&&e({id:u,styleId:p,remove:{property:d},index:Wc(l.parentRule)}),a.apply(l,c)})}),Q(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function TN({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:o,sampling:i,doc:s}){let a=Q(c=>_a(Q(d=>{let u=xa(d);if(!u||Ft(u,t,r,n,!0))return;let{currentTime:p,volume:f,muted:m,playbackRate:_}=u;e({type:c,id:o.getId(u),currentTime:p,volume:f,muted:m,playbackRate:_})}),i.media||500)),l=[St("play",a(Ai.Play),s),St("pause",a(Ai.Pause),s),St("seeked",a(Ai.Seeked),s),St("volumechange",a(Ai.VolumeChange),s),St("ratechange",a(Ai.RateChange),s)];return Q(()=>{l.forEach(c=>c())})}function IN({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(l,c,d){let u=new i(l,c,d);return o.set(u,{family:l,buffer:typeof c!="string",descriptors:d,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),u};let s=Yf(t.fonts,"add",function(a){return function(l){return tu(Q(()=>{let c=o.get(l);c&&(e(c),o.delete(l))}),0),a.apply(this,[l])}});return n.push(()=>{r.FontFace=i}),n.push(s),Q(()=>{n.forEach(a=>a())})}function bN(e){let{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,selectionCb:s}=e,a=!0,l=Q(()=>{let c=t.getSelection();if(!c||a&&c?.isCollapsed)return;a=c.isCollapsed||!1;let d=[],u=c.rangeCount||0;for(let p=0;p<u;p++){let f=c.getRangeAt(p),{startContainer:m,startOffset:_,endContainer:I,endOffset:g}=f;Ft(m,n,o,i,!0)||Ft(I,n,o,i,!0)||d.push({start:r.getId(m),startOffset:_,end:r.getId(I),endOffset:g})}s({ranges:d})});return l(),St("selectionchange",l)}function xN({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Yf(r.customElements,"define",function(o){return function(i,s,a){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,a])}})}function kN(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=Nv(e,e.doc));let o=hN(e),i=gN(e),s=Cv(e),a=SN(e,{win:r}),l=_N(e),c=TN(e),d=()=>{},u=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(d=vN(e,{win:r}),u=Av(e,e.doc),p=EN(e,{win:r}),e.collectFonts&&(f=IN(e)));let m=bN(e),_=xN(e),I=[];for(let g of e.plugins)I.push(g.observer(g.callback,r,g.options));return Q(()=>{Pi.forEach(g=>g.reset()),n?.disconnect(),o(),i(),s(),a(),l(),c(),d(),u(),p(),f(),m(),_(),I.forEach(g=>g())})}function Oc(e){return typeof window[e]<"u"}function Pc(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Ea=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,n,o){let i=n||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t),a=i.get(r);return a||(a=this.generateIdFn(),i.set(r,a),s.set(a,r)),a}getIds(t,r){let n=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return r.map(i=>this.getId(t,i,n,o))}getRemoteId(t,r,n){let o=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let i=o.get(r);return i||-1}getRemoteIds(t,r){let n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getRemoteId(t,o,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},wf=class{constructor(){this.crossOriginIframeMirror=new Ea(Vf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},Rf=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ea(Vf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ea(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0);let r=va(t);r&&this.crossOriginIframeMap.set(r,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&va(t)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);let n=Kf(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let o=this.crossOriginIframeMap.get(t.source);if(!o)return;let i=this.transformCrossOriginEvent(o,r.data.event);i&&this.wrappedEmit(i,r.data.isCheckout)}transformCrossOriginEvent(t,r){switch(r.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:W.IncrementalSnapshot,data:{source:z.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case W.IncrementalSnapshot:switch(r.data.source){case z.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case z.Drag:case z.TouchMove:case z.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case z.ViewportResize:return!1;case z.MediaInteraction:case z.MouseInteraction:case z.Scroll:case z.CanvasMutation:case z.Input:return this.replaceIds(r.data,t,["id"]),r;case z.StyleSheetRule:case z.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case z.Font:return r;case z.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case z.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),r.data.styles?.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,n,o){for(let i of o)!Array.isArray(r[i])&&typeof r[i]!="number"||(Array.isArray(r[i])?r[i]=t.getIds(n,r[i]):r[i]=t.getId(n,r[i]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Pe.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},Nf=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},Cf=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ha(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);let n=Nv({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Cv({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),tu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Av({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){let r=Kf(t),n=va(t);!r||!n||this.patchAttachShadow(n.Element,r)}patchAttachShadow(t,r){let n=this;this.restoreHandlers.push(Yf(t.prototype,"attachShadow",function(o){return function(i){let s=o.call(this,i);return this.shadowRoot&&wv(this)&&n.addShadowRoot(this.shadowRoot,r),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},Af=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Tf,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let n={id:r,styleIds:[]},o=[];for(let i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,l)=>({rule:dv(a),index:l}))})),n.styleIds.push(s)}o.length>0&&(n.styles=o),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Mf=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,r){let n=this.nodeMap.get(t);return n&&Array.from(n).some(o=>o!==r)}add(t,r){this.active||(this.active=!0,cN(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},Ce,Gc;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var Tr=LR();function Ir(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:_,maskInputOptions:I,slimDOMOptions:g,maskAttributeFn:h,maskInputFn:S,maskTextFn:T,maxCanvasSize:R=null,packFn:k,sampling:v={},dataURLOptions:x={},mousemoveWait:j,recordDOM:b=!0,recordCanvas:P=!1,recordCrossOriginIframes:Y=!1,recordAfter:ee=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:G=!1,collectFonts:Ue=!1,inlineImages:ce=!1,plugins:Se,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:$,onMutation:q,getCanvasManager:de}=e;dN($);let pe=Y?window.parent===window:!0,Ot=!1;if(!pe)try{window.parent.document&&(Ot=!1)}catch{Ot=!0}if(pe&&!t)throw new Error("emit function is required");if(!pe&&!Ot)return()=>{};j!==void 0&&v.mousemove===void 0&&(v.mousemove=j),Tr.reset();let dr=_===!0?{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}:I!==void 0?I:{},Mr=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};sN();let Yr,so=0,hs=re=>{for(let pr of Se||[])pr.eventProcessor&&(re=pr.eventProcessor(re));return k&&!Ot&&(re=k(re)),re};Ce=(re,pr)=>{let K=re;if(K.timestamp=$c(),Pi[0]?.isFrozen()&&K.type!==W.FullSnapshot&&!(K.type===W.IncrementalSnapshot&&K.data.source===z.Mutation)&&Pi.forEach(Ve=>Ve.unfreeze()),pe)t?.(hs(K),pr);else if(Ot){let Ve={type:"rrweb",event:hs(K),origin:window.location.origin,isCheckout:pr};window.parent.postMessage(Ve,"*")}if(K.type===W.FullSnapshot)Yr=K,so=0;else if(K.type===W.IncrementalSnapshot){if(K.data.source===z.Mutation&&K.data.isAttachIframe)return;so++;let Ve=n&&so>=n,X=r&&Yr&&K.timestamp-Yr.timestamp>r;(Ve||X)&&Md(!0)}};let ao=re=>{Ce({type:W.IncrementalSnapshot,data:{source:z.Mutation,...re}})},Ng=re=>Ce({type:W.IncrementalSnapshot,data:{source:z.Scroll,...re}}),pb=re=>Ce({type:W.IncrementalSnapshot,data:{source:z.CanvasMutation,...re}}),fb=re=>Ce({type:W.IncrementalSnapshot,data:{source:z.AdoptedStyleSheet,...re}}),lo=new Af({mutationCb:ao,adoptedStyleSheetCb:fb}),co=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new wf:new Rf({mirror:Tr,mutationCb:ao,stylesheetManager:lo,recordCrossOriginIframes:Y,wrappedEmit:Ce});for(let re of Se||[])re.getMirror&&re.getMirror({nodeMirror:Tr,crossOriginIframeMirror:co.crossOriginIframeMirror,crossOriginIframeStyleMirror:co.crossOriginIframeStyleMirror});let Cd=new Mf,Ad=RN(de,{mirror:Tr,win:window,mutationCb:re=>Ce({type:W.IncrementalSnapshot,data:{source:z.CanvasMutation,...re}}),recordCanvas:P,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:R,sampling:v.canvas,dataURLOptions:x,errorHandler:$}),Il=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Nf:new Cf({mutationCb:ao,scrollCb:Ng,bypassOptions:{onMutation:q,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:dr,dataURLOptions:x,maskAttributeFn:h,maskTextFn:T,maskInputFn:S,recordCanvas:P,inlineImages:ce,sampling:v,slimDOMOptions:Mr,iframeManager:co,stylesheetManager:lo,canvasManager:Ad,keepIframeSrcFn:C,processedNodeManager:Cd,ignoreCSSAttributes:oe},mirror:Tr}),Md=(re=!1)=>{if(!b)return;Ce({type:W.Meta,data:{href:window.location.href,width:Ev(),height:vv()}},re),lo.reset(),Il.init(),Pi.forEach(K=>K.lock());let pr=oN(document,{mirror:Tr,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:dr,maskAttributeFn:h,maskInputFn:S,maskTextFn:T,slimDOM:Mr,dataURLOptions:x,recordCanvas:P,inlineImages:ce,onSerialize:K=>{bv(K,Tr)&&co.addIframe(K),xv(K,Tr)&&lo.trackLinkElement(K),Ef(K)&&Il.addShadowRoot(K.shadowRoot,document)},onIframeLoad:(K,Ve)=>{co.attachIframe(K,Ve);let X=va(K);X&&Ad.addWindow(X),Il.observeAttachShadow(K)},onStylesheetLoad:(K,Ve)=>{lo.attachLinkElement(K,Ve)},onBlockedImageLoad:(K,Ve,{width:X,height:gs})=>{ao({adds:[],removes:[],texts:[],attributes:[{id:Ve.id,attributes:{style:{width:`${X}px`,height:`${gs}px`}}}]})},keepIframeSrcFn:C,ignoreCSSAttributes:oe});if(!pr)return console.warn("Failed to snapshot the document");Ce({type:W.FullSnapshot,data:{node:pr,initialOffset:_v(window)}}),Pi.forEach(K=>K.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&lo.adoptStyleSheets(document.adoptedStyleSheets,Tr.getId(document))};Gc=Md;try{let re=[],pr=Ve=>Q(kN)({onMutation:q,mutationCb:ao,mousemoveCb:(X,gs)=>Ce({type:W.IncrementalSnapshot,data:{source:gs,positions:X}}),mouseInteractionCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.MouseInteraction,...X}}),scrollCb:Ng,viewportResizeCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.ViewportResize,...X}}),inputCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.Input,...X}}),mediaInteractionCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.MediaInteraction,...X}}),styleSheetRuleCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.StyleSheetRule,...X}}),styleDeclarationCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.StyleDeclaration,...X}}),canvasMutationCb:pb,fontCb:X=>Ce({type:W.IncrementalSnapshot,data:{source:z.Font,...X}}),selectionCb:X=>{Ce({type:W.IncrementalSnapshot,data:{source:z.Selection,...X}})},customElementCb:X=>{Ce({type:W.IncrementalSnapshot,data:{source:z.CustomElement,...X}})},blockClass:o,ignoreClass:a,ignoreSelector:l,maskAllText:c,maskTextClass:d,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:dr,inlineStylesheet:m,sampling:v,recordDOM:b,recordCanvas:P,inlineImages:ce,userTriggeredOnInput:G,collectFonts:Ue,doc:Ve,maskAttributeFn:h,maskInputFn:S,maskTextFn:T,keepIframeSrcFn:C,blockSelector:i,unblockSelector:s,slimDOMOptions:Mr,dataURLOptions:x,mirror:Tr,iframeManager:co,stylesheetManager:lo,shadowDomManager:Il,processedNodeManager:Cd,canvasManager:Ad,ignoreCSSAttributes:oe,plugins:Se?.filter(X=>X.observer)?.map(X=>({observer:X.observer,options:X.options,callback:gs=>Ce({type:W.Plugin,data:{plugin:X.name,payload:gs}})}))||[]},{});co.addLoadListener(Ve=>{try{re.push(pr(Ve.contentDocument))}catch(X){console.warn(X)}});let K=()=>{Md(),re.push(pr(document))};return document.readyState==="interactive"||document.readyState==="complete"?K():(re.push(St("DOMContentLoaded",()=>{Ce({type:W.DomContentLoaded,data:{}}),ee==="DOMContentLoaded"&&K()})),re.push(St("load",()=>{Ce({type:W.Load,data:{}}),ee==="load"&&K()},window))),()=>{re.forEach(Ve=>Ve()),Cd.destroy(),Gc=void 0,pN()}}catch(re){console.warn(re)}}function wN(e){if(!Gc)throw new Error("please take full snapshot after start recording");Gc(e)}Ir.mirror=Tr;Ir.takeFullSnapshot=wN;function RN(e,t){try{return e?e(t):new jc}catch{return console.warn("Unable to initialize CanvasManager"),new jc}}var ev;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ev||(ev={}));var NN=3,CN=5;function Xf(e){return e>9999999999?e:e*1e3}function mf(e){return e>9999999999?e/1e3:e}function ka(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:W.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:nt(t,10,1e3)}}),t.category==="console")))}var AN="button,a";function Mv(e){return e.closest(AN)||e}function Lv(e){let t=Ov(e);return!t||!(t instanceof Element)?t:Mv(t)}function Ov(e){return MN(e)?e.target:e}function MN(e){return typeof e=="object"&&!!e&&"target"in e}var Un;function LN(e){return Un||(Un=[],ON()),Un.push(e),()=>{let t=Un?Un.indexOf(e):-1;t>-1&&Un.splice(t,1)}}function ON(){Re(me,"open",function(e){return function(...t){if(Un)try{Un.forEach(r=>r())}catch{}return e.apply(me,t)}})}var PN=new Set([z.Mutation,z.StyleSheetRule,z.StyleDeclaration,z.AdoptedStyleSheet,z.CanvasMutation,z.Selection,z.MediaInteraction]);function DN(e,t,r){e.handleClick(t,r)}var Lf=class{constructor(t,r,n=ka){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scrollTimeout=r.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let t=LN(()=>{this._lastMutation=tv()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,r){if(BN(r,this._ignoreSelector)||!FN(t))return;let n={timestamp:mf(t.timestamp),clickBreadcrumb:t,clickCount:0,node:r};this._clicks.some(o=>o.node===n.node&&Math.abs(o.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=mf(t)}registerScroll(t=Date.now()){this._lastScroll=mf(t)}registerClick(t){let r=Mv(t);this._handleMultiClick(r)}_handleMultiClick(t){this._getClicks(t).forEach(r=>{r.clickCount++})}_getClicks(t){return this._clicks.filter(r=>r.node===t)}_checkClicks(){let t=[],r=tv();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<=r&&t.push(n)});for(let n of t){let o=this._clicks.indexOf(n);o>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let r=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!n&&!o,{clickCount:s,clickBreadcrumb:a}=t;if(i){let l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,c=l<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:me.location.href,route:r.getCurrentRoute(),timeAfterClickMs:l,endReason:c,clickCount:s||1}};this._addBreadcrumbEvent(r,d);return}if(s>1){let l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:me.location.href,route:r.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(r,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Oo(()=>this._checkClicks(),1e3)}},UN=["A","BUTTON","INPUT"];function BN(e,t){return!!(!UN.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function FN(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function tv(){return Date.now()/1e3}function HN(e,t){try{if(!zN(t))return;let{source:r}=t.data;if(PN.has(r)&&e.registerMutation(t.timestamp),r===z.Scroll&&e.registerScroll(t.timestamp),$N(t)){let{type:n,id:o}=t.data,i=Ir.mirror.getNode(o);i instanceof HTMLElement&&n===gt.Click&&e.registerClick(i)}}catch{}}function zN(e){return e.type===NN}function $N(e){return e.data.source===z.MouseInteraction}function Hr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ru=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ru||{}),jN=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function WN(e){let t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(let r in e)if(jN.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),t[n]=e[r]}return t}var GN=e=>t=>{if(!e.isEnabled())return;let r=VN(t);if(!r)return;let n=t.name==="click",o=n?t.event:void 0;n&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&DN(e.clickDetector,r,Lv(t.event)),ka(e,r)};function Pv(e,t){let r=Ir.mirror.getId(e),n=r&&Ir.mirror.getNode(r),o=n&&Ir.mirror.getMeta(n),i=o&&qN(o)?o:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===ru.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:WN(i.attributes)}}:{}}}function VN(e){let{target:t,message:r}=YN(e);return Hr({category:`ui.${e.name}`,...Pv(t,r)})}function YN(e){let t=e.name==="click",r,n=null;try{n=t?Lv(e.event):Ov(e.event),r=le(n,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:n,message:r}}function qN(e){return e.type===ru.Element}function KN(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=XN(t);r&&ka(e,r)}function XN(e){let{metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i,target:s}=e;if(!s||JN(s)||!i)return null;let a=t||n||o,l=i.length===1;if(!a&&l)return null;let c=le(s,{maxStringLength:200})||"<unknown>",d=Pv(s,c);return Hr({category:"ui.keyDown",message:c,data:{...d.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i}})}function JN(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var QN={resource:nC,paint:tC,navigation:rC};function hf(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function ZN(e){return e.map(eC).filter(Boolean)}function eC(e){let t=QN[e.entryType];return t?t(e):null}function Bi(e){return((ue()||me.performance.timeOrigin)+e)/1e3}function tC(e){let{duration:t,entryType:r,name:n,startTime:o}=e,i=Bi(o);return{type:r,name:n,start:i,end:i+t,data:void 0}}function rC(e){let{entryType:t,name:r,decodedBodySize:n,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:d,loadEventEnd:u,redirectCount:p,startTime:f,transferSize:m,type:_}=e;return o===0?null:{type:`${t}.${_}`,start:Bi(f),end:Bi(i),name:r,data:{size:m,decodedBodySize:n,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:d,loadEventEnd:u,domComplete:i,redirectCount:p}}}function nC(e){let{entryType:t,initiatorType:r,name:n,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:Bi(i),end:Bi(o),name:n,data:{size:c,statusCode:l,decodedBodySize:s,encodedBodySize:a}}}function oC(e){let t=e.entries[e.entries.length-1],r=t?.element?[t.element]:void 0;return Jf(e,"largest-contentful-paint",r)}function iC(e){return e.sources!==void 0}function sC(e){let t=[],r=[];for(let n of e.entries)if(iC(n)){let o=[];for(let i of n.sources)if(i.node){r.push(i.node);let s=Ir.mirror.getId(i.node);s&&o.push(s)}t.push({value:n.value,nodeIds:o.length?o:void 0})}return Jf(e,"cumulative-layout-shift",r,t)}function aC(e){let t=e.entries[e.entries.length-1],r=t?.target?[t.target]:void 0;return Jf(e,"interaction-to-next-paint",r)}function Jf(e,t,r,n){let o=e.value,i=e.rating,s=Bi(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:r?r.map(a=>Ir.mirror.getId(a)):void 0,attributions:n}}}function lC(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function r({entries:o}){o.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(o=>{n.push(vr(o,r))}),n.push(on(hf(oC,e)),nn(hf(sC,e)),Co(hf(aC,e))),()=>{n.forEach(o=>o())}}var F=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,cC='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=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(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=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}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return 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&&O(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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(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=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=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 B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[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});';function uC(){let e=new Blob([cC]);return URL.createObjectURL(e)}var rv=["log","warn","error"],Uc="[Replay] ";function gf(e,t="info"){Bt({category:"console",data:{logger:"replay"},level:t,message:`${Uc}${e}`},{level:t})}function dC(){let e=!1,t=!1,r={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return F?(rv.forEach(n=>{r[n]=(...o)=>{E[n](Uc,...o),t&&gf(o.join(""),vi(n))}}),r.exception=(n,...o)=>{o.length&&r.error&&r.error(...o),E.error(Uc,n),e?en(n,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&gf(n,"error")},r.infoTick=(...n)=>{E.log(Uc,...n),t&&setTimeout(()=>gf(n[0]),0)}):rv.forEach(n=>{r[n]=()=>{}}),r}var H=dC(),Ta=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Wf}.`)}},Vc=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let r=JSON.stringify(t).length;if(this._totalSize+=r,this._totalSize>Wf)throw new Ta;this.events.push(t)}finish(){return new Promise(t=>{let r=this.events;this.clear(),t(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(let{timestamp:r}of this.events)(t===null||r<t)&&(t=r);return t===null?t:Xf(t)}},Of=class{constructor(t){this._onMessage=({data:r})=>{let n=r;if(typeof n.id!="number")return;let o=this._pending.get(n.id);if(!(!o||o.method!==n.method)){if(this._pending.delete(n.id),!n.success){F&&H.error("Error in compression worker: ",n.response),o.reject(new Error("Error in compression worker"));return}o.resolve(n.response)}},this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,r)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():(F&&H.warn("Received worker message with unsuccessful status",n),r(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",n=>{F&&H.warn("Failed to load Replay compression worker",n),r(new Error(`Failed to load Replay compression worker: ${n instanceof ErrorEvent&&n.message?n.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){F&&H.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(t=>t.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(t,r){let n=this._getAndIncrementId();return new Promise((o,i)=>{this._pending.set(n,{method:t,resolve:o,reject:i});try{this._worker.postMessage({id:n,method:t,arg:r})}catch(s){this._pending.delete(n),i(s)}})}_getAndIncrementId(){return this._id++}},Pf=class{constructor(t){this._worker=new Of(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let r=Xf(t.timestamp);(!this._earliestTimestamp||r<this._earliestTimestamp)&&(this._earliestTimestamp=r);let n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>Wf?Promise.reject(new Ta):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{F&&H.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}},Df=class{constructor(t){this._fallback=new Vc,this._compression=new Pf(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){F&&H.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t,hasCheckout:r,waitForCheckout:n}=this._fallback,o=[];for(let i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=r,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){F&&H.exception(i,"Failed to add events when switching buffers.")}}};function pC({useCompression:e,workerUrl:t}){if(e&&window.Worker){let r=fC(t);if(r)return r}return F&&H.log("Using simple buffer"),new Vc}function fC(e){try{let t=e||mC();if(!t)return;F&&H.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new Df(r)}catch(t){F&&H.exception(t,"Failed to create compression worker")}}function mC(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?uC():""}function Qf(){try{return"sessionStorage"in me&&!!me.sessionStorage}catch{return!1}}function hC(e){gC(),e.session=void 0}function gC(){if(Qf())try{me.sessionStorage.removeItem($f)}catch{}}function Dv(e){return e===void 0?!1:Math.random()<e}function nu(e){if(Qf())try{me.sessionStorage.setItem($f,JSON.stringify(e))}catch{}}function Uv(e){let t=Date.now(),r=e.id||Ne(),n=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,a=e.previousSessionId,l=e.dirty||!1;return{id:r,started:n,lastActivity:o,segmentId:i,sampled:s,previousSessionId:a,dirty:l}}function SC(e,t){return Dv(e)?"session":t?"buffer":!1}function nv({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let o=SC(e,t),i=Uv({sampled:o,previousSessionId:n});return r&&nu(i),i}function yC(){if(!Qf())return null;try{let e=me.sessionStorage.getItem($f);if(!e)return null;let t=JSON.parse(e);return F&&H.infoTick("Loading existing session"),Uv(t)}catch{return null}}function Uf(e,t,r=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=r}function _C(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Uf(e.started,t,n)||Uf(e.lastActivity,r,n)}function Yc(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!(!_C(e,{sessionIdleExpire:t,maxReplayDuration:r})||e.sampled==="buffer"&&e.segmentId===0)}function Sf({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let o=n.stickySession&&yC();return o?Yc(o,{sessionIdleExpire:e,maxReplayDuration:t})?(F&&H.infoTick("Session in sessionStorage is expired, creating new one..."),nv(n,{previousSessionId:o.id})):o:(F&&H.infoTick("Creating new session"),nv(n,{previousSessionId:r}))}function vC(e){return e.type===W.Custom}function Zf(e,t,r){return Fv(e,t)?(Bv(e,t,r),!0):!1}function EC(e,t,r){return Fv(e,t)?Bv(e,t,r):Promise.resolve(null)}async function Bv(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let o=e.recordingMode==="buffer";try{r&&o&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let i=e.getOptions(),s=TC(t,i.beforeAddRecordingEvent);return s?await n.addEvent(s):void 0}catch(i){let s=i&&i instanceof Ta,a=s?"eventBufferOverflow":"eventBufferError",l=M();if(l){let c=s?"buffer_overflow":"internal_sdk_error";l.recordDroppedEvent(c,"replay")}if(s&&o)return n.clear(),n.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}function Fv(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=Xf(t.timestamp);return r+e.timeouts.sessionIdlePause<Date.now()?!1:r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(F&&H.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1):!0}function TC(e,t){try{if(typeof t=="function"&&vC(e))return t(e)}catch(r){return F&&H.exception(r,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function em(e){return!e.type}function Bf(e){return e.type==="transaction"}function IC(e){return e.type==="replay_event"}function ov(e){return e.type==="feedback"}function bC(e){return(t,r)=>{if(!e.isEnabled()||!em(t)&&!Bf(t))return;let n=r.statusCode;if(!(!n||n<200||n>=300)){if(Bf(t)){xC(e,t);return}kC(e,t)}}}function xC(e,t){let r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}function kC(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();typeof n=="function"&&!n(t)||Oo(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function wC(e){return t=>{!e.isEnabled()||!em(t)||RC(e,t)}}function RC(e,t){let r=t.exception?.values?.[0]?.value;if(typeof r=="string"&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let n=Hr({category:"replay.hydrate-error",data:{url:wt()}});ka(e,n)}}function NC(e){let t=M();t&&t.on("beforeAddBreadcrumb",r=>CC(e,r))}function CC(e,t){if(!e.isEnabled()||!Hv(t))return;let r=AC(t);r&&ka(e,r)}function AC(e){return!Hv(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?MC(e):Hr(e)}function MC(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Hr(e);let r=!1,n=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Lc?(r=!0,`${o.slice(0,Lc)}\u2026`):o;if(typeof o=="object")try{let i=nt(o,7);return JSON.stringify(i).length>Lc?(r=!0,`${JSON.stringify(i,null,2).slice(0,Lc)}\u2026`):i}catch{}return o});return Hr({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Hv(e){return!!e.category}function LC(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function qc(){let e=U().getPropagationContext().dsc;e&&delete e.replay_id;let t=ie();if(t){let r=Oe(t);delete r.replay_id}}function iv(e){let t=U().getPropagationContext().dsc;t&&(t.replay_id=e);let r=ie();if(r){let n=Oe(r);n.replay_id=e}}function OC(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:W.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function PC(e,t){return e.recordingMode!=="buffer"||t.message===jf||!t.exception||t.type?!1:Dv(e.getOptions().errorSampleRate)}function DC(e){return Object.assign((t,r)=>{if(e.session&&Yc(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&qc(),!e.isEnabled()||e.isPaused())return t;if(IC(t))return delete t.breadcrumbs,t;if(!em(t)&&!Bf(t)&&!ov(t))return t;if(!e.checkAndHandleExpiredSession())return qc(),t;if(ov(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),OC(e,t),t;if(LC(t,r)&&!e.getOptions()._experiments.captureExceptions)return F&&H.log("Ignoring error from rrweb internals",t),null;let o=PC(e,t);if((o||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),o&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){let s=e.session;s.dirty=!0,e.getOptions().stickySession&&nu(s)}return t},{id:"Replay"})}function ou(e,t){return t.map(({type:r,start:n,end:o,name:i,data:s})=>{let a=e.throttledAddEvent({type:W.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:i,startTimestamp:n,endTimestamp:o,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function UC(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}function BC(e){return t=>{if(!e.isEnabled())return;let r=UC(t);r!==null&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(ou(e,[r]),!1)))}}function FC(e,t){return F&&e.getOptions()._experiments.traceInternals?!1:xp(t,M())}function zv(e,t){e.isEnabled()&&t!==null&&(FC(e,t.name)||e.addUpdate(()=>(ou(e,[t]),!0)))}function iu(e){if(!e)return;let t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=Rc(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function $v(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Kc(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function jv(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:o,method:i,statusCode:s,request:a,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:o,data:{method:i,statusCode:s,request:a,response:l}}}function Ia(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Bn(e,t,r){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:o,warnings:i}=HC(r);return n.body=o,i?.length&&(n._meta={warnings:i}),n}function Ff(e,t){return Object.entries(e).reduce((r,[n,o])=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=o),r},{})}function HC(e){if(!e||typeof e!="string")return{body:e};let t=e.length>F_,r=zC(e);if(t){let n=e.slice(0,F_);return r?{body:n,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${n}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function zC(e){let t=e[0],r=e[e.length-1];return t==="["&&r==="]"||t==="{"&&r==="}"}function Xc(e,t){let r=$C(e);return qe(r,t)}function $C(e,t=me.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(me.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function jC(e,t,r){try{let n=await GC(e,t,r),o=jv("resource.fetch",n);zv(r.replay,o)}catch(n){F&&H.exception(n,"Failed to capture fetch breadcrumb")}}function WC(e,t){let{input:r,response:n}=t,o=r?Cc(r):void 0,i=iu(o),s=n?$v(n.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function GC(e,t,r){let n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n}=t,{url:s,method:a,status_code:l=0,request_body_size:c,response_body_size:d}=e.data,u=Xc(s,r.networkDetailAllowUrls)&&!Xc(s,r.networkDetailDenyUrls),p=u?VC(r,t.input,c):Ia(c),f=await YC(u,r,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:l,request:p,response:f}}function VC({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let o=r?XC(r,t):{};if(!e)return Bn(o,n,void 0);let i=Cc(r),[s,a]=Nc(i,H),l=Bn(o,n,s);return a?Kc(l,a):l}async function YC(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,o){if(!e&&o!==void 0)return Ia(o);let i=n?Wv(n.headers,r):{};if(!n||!t&&o!==void 0)return Bn(i,o,void 0);let[s,a]=await KC(n),l=qC(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return a?Kc(l,a):l}function qC(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:o}){try{let i=e?.length&&r===void 0?iu(e):r;return n?t?Bn(o,i,e):Bn(o,i,void 0):Ia(i)}catch(i){return F&&H.exception(i,"Failed to serialize response body"),Bn(o,r,void 0)}}async function KC(e){let t=JC(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await QC(t)]}catch(r){return r instanceof Error&&r.message.indexOf("Timeout")>-1?(F&&H.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(F&&H.exception(r,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Wv(e,t){let r={};return t.forEach(n=>{e.get(n)&&(r[n]=e.get(n))}),r}function XC(e,t){return e.length===1&&typeof e[0]!="string"?sv(e[0],t):e.length===2?sv(e[1],t):{}}function sv(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?Wv(r,t):Array.isArray(r)?{}:Ff(r,t):{}}function JC(e){try{return e.clone()}catch(t){F&&H.exception(t,"Failed to clone response body")}}function QC(e){return new Promise((t,r)=>{let n=Oo(()=>r(new Error("Timeout while trying to read response body")),500);ZC(e).then(o=>t(o),o=>r(o)).finally(()=>clearTimeout(n))})}async function ZC(e){return await e.text()}async function eA(e,t,r){try{let n=rA(e,t,r),o=jv("resource.xhr",n);zv(r.replay,o)}catch(n){F&&H.exception(n,"Failed to capture xhr breadcrumb")}}function tA(e,t){let{xhr:r,input:n}=t;if(!r)return;let o=iu(n),i=r.getResponseHeader("content-length")?$v(r.getResponseHeader("content-length")):iA(r.response,r.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function rA(e,t,r){let n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n,input:s,xhr:a}=t,{url:l,method:c,status_code:d=0,request_body_size:u,response_body_size:p}=e.data;if(!l)return null;if(!a||!Xc(l,r.networkDetailAllowUrls)||Xc(l,r.networkDetailDenyUrls)){let k=Ia(u),v=Ia(p);return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:d,request:k,response:v}}let f=a[Er],m=f?Ff(f.request_headers,r.networkRequestHeaders):{},_=Ff(ua(a),r.networkResponseHeaders),[I,g]=r.networkCaptureBodies?Nc(s,H):[void 0],[h,S]=r.networkCaptureBodies?nA(a):[void 0],T=Bn(m,u,I),R=Bn(_,p,h);return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:d,request:g?Kc(T,g):T,response:S?Kc(R,S):R}}function nA(e){let t=[];try{return[e.responseText]}catch(r){t.push(r)}try{return oA(e.response,e.responseType)}catch(r){t.push(r)}return F&&H.warn("Failed to get xhr response body",...t),[void 0]}function oA(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(r){return F&&H.exception(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return F&&H.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function iA(e,t){try{let r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return iu(r)}catch{return}}function sA(e){let t=M();try{let{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(l,c)=>aA(a,l,c))}catch{}}function aA(e,t,r){if(t.data)try{lA(t)&&uA(r)&&(tA(t,r),eA(t,r,e)),cA(t)&&dA(r)&&(WC(t,r),jC(t,r,e))}catch(n){F&&H.exception(n,"Error when enriching network breadcrumb")}}function lA(e){return e.category==="xhr"}function cA(e){return e.category==="fetch"}function uA(e){return e?.xhr}function dA(e){return e?.input!==void 0}function pA(e){let t=M();la(GN(e)),ln(BC(e)),NC(e),sA(e);let r=DC(e);qs(r),t&&(t.on("beforeSendEvent",wC(e)),t.on("afterSendEvent",bC(e)),t.on("createDsc",n=>{let o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(n.replay_id=o)}),t.on("spanStart",n=>{e.lastActiveSpan=n}),t.on("spanEnd",n=>{e.lastActiveSpan=n}),t.on("beforeSendFeedback",async(n,o)=>{let i=e.getSessionId();o?.includeReplay&&e.isEnabled()&&i&&n.contexts?.feedback&&(n.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),n.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function fA(e){try{return Promise.all(ou(e,[mA(me.performance.memory)]))}catch{return[]}}function mA(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function hA(e,t,r){return wp(e,t,{...r,setTimeoutImpl:Oo})}var Dc=L.navigator;function gA(){return/iPhone|iPad|iPod/i.test(Dc?.userAgent??"")||/Macintosh/i.test(Dc?.userAgent??"")&&Dc?.maxTouchPoints&&Dc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function SA(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession()){F&&H.warn("Received replay event after session expired.");return}let o=n||!t;t=!0,yA(r),e.clickDetector&&HN(e.clickDetector,r),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!Zf(e,r,o))return!0;if(!o)return!1;let i=e.session;if(vA(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){let s=e.eventBuffer.getEarliestTimestamp();s&&(F&&H.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&nu(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function yA(e){let t=e.data;if(!(e.type!==W.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==z.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(let r of t.attributes){let n=Ir.mirror.getNode(r.id),o=n&&Ir.mirror.getMeta(n);if(o?.type===ru.Element)for(let[i,s]of Object.entries(r.attributes))s===null?delete o.attributes[i]:o.attributes[i]=s}}function _A(e){let t=e.getOptions();return{type:W.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?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function vA(e,t){!t||e.session?.segmentId!==0||Zf(e,_A(e),!1)}function EA(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function TA(e,t,r,n){return mt($s(e,di(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function IA({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
|
|
31
|
-
`;if(typeof e=="string")r=`${n}${e}`;else{let i=new TextEncoder().encode(n);r=new Uint8Array(i.length+e.length),r.set(i),r.set(e,i.length)}return r}async function bA({client:e,scope:t,replayId:r,event:n}){let o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:r,integrations:o};e.emit("preprocessEvent",n,i);let s=await Gs(e.getOptions(),n,i,t,e,Te());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let a=e.getSdkMetadata(),{name:l,version:c,settings:d}=a?.sdk||{};return s.sdk={...s.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0",settings:d},s}async function xA({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:o,session:i}){let s=IA({recordingData:e,headers:{segment_id:r}}),{urls:a,errorIds:l,traceIds:c,initialTimestamp:d}=n,u=M(),p=U(),f=u?.getTransport(),m=u?.getDsn();if(!u||!f||!m||!i.sampled)return Promise.resolve({});let _={type:pR,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:l,trace_ids:c,urls:a,replay_id:t,segment_id:r,replay_type:i.sampled},I=await bA({scope:p,client:u,replayId:t,event:_});if(!I)return u.recordDroppedEvent("event_processor","replay"),F&&H.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete I.sdkProcessingMetadata;let g=TA(I,s,m,u.getOptions().tunnel),h;try{h=await f.send(g)}catch(T){let R=new Error(jf);try{R.cause=T}catch{}throw R}let S=Qs({},h);if(Js(S,"replay"))throw new ba(S);if(typeof h.statusCode=="number"&&(h.statusCode<200||h.statusCode>=300))throw new Jc(h.statusCode);return h}var Jc=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},ba=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}},Qc=class extends Error{constructor(){super("Session is too long, not sending replay")}};async function Gv(e,t={count:0,interval:yR}){let{recordingData:r,onError:n}=e;if(r.length)try{return await xA(e),!0}catch(o){if(o instanceof Jc||o instanceof ba)throw o;if(xo("Replays",{_retryCount:t.count}),n&&n(o),t.count>=_R){let i=new Error(`${jf} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{Oo(async()=>{try{await Gv(e,t),i(!0)}catch(a){s(a)}},t.interval)})}}var Vv="__THROTTLED",kA="__SKIPPED";function wA(e,t,r){let n=new Map,o=a=>{let l=a-r;n.forEach((c,d)=>{d<l&&n.delete(d)})},i=()=>[...n.values()].reduce((a,l)=>a+l,0),s=!1;return(...a)=>{let l=Math.floor(Date.now()/1e3);if(o(l),i()>=t){let d=s;return s=!0,d?kA:Vv}s=!1;let c=n.get(l)||0;return n.set(l,c+1),e(...a)}}var Hf=class{constructor({options:t,recordingOptions:r}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:fR,sessionIdleExpire:mR},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=r,this._options=t,this._debouncedFlush=hA(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=wA((s,a)=>EC(this,s,a),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:o}=this.getOptions(),i=n?{threshold:Math.min(vR,n),timeout:n,scrollTimeout:ER,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new Lf(this,i)),F){let s=t._experiments;H.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{me.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let s=Hr({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{let s=Hr({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{KN(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){F&&H.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){let{errorSampleRate:r,sessionSampleRate:n}=this._options,o=r<=0&&n<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){F&&H.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",F&&H.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){F&&H.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){F&&H.log("Buffering is in progress, call `flush()` to save the replay");return}F&&H.infoTick("Starting replay in session mode"),this._updateUserActivity();let t=Sf({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){F&&H.log("Buffering is in progress, call `flush()` to save the replay");return}F&&H.infoTick("Starting replay in buffer mode");let t=Sf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=Ir({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:SR}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:SA(this),...gA(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:r}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";let n=r??"manual";M()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{F&&H.log(`Stopping Replay triggered by ${n}`),qc(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,hC(this)}catch(o){this.handleException(o)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),F&&H.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),F&&H.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let r=Date.now();F&&H.log("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();!t||!n||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession(),iv(this.session.id)),this.startRecording())}addUpdate(t){let r=t();this.recordingMode==="buffer"||!this._isEnabled||r!==!0&&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 this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Uf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${me.location.pathname}${me.location.hash}${me.location.search}`,r=`${me.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(t,r){let n=this._throttledAddEvent(t,r);if(n===Vv){let o=Hr({category:"replay.throttled"});this.addUpdate(()=>!Zf(this,{type:CN,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return n}getCurrentRoute(){let t=this.lastActiveSpan||ie(),r=t&&te(t),o=(r&&B(r).data||{})[Be];if(!(!r||!o||!["route","custom"].includes(o)))return B(r).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=pC({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&M()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode==="session"&&this.session&&iv(this.session.id)}_initializeSessionForSampling(t){let r=this._options.errorSampleRate>0,n=Sf({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=n}_checkSession(){if(!this.session)return!1;let t=this.session;return Yc(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{me.document.addEventListener("visibilitychange",this._handleVisibilityChange),me.addEventListener("blur",this._handleWindowBlur),me.addEventListener("focus",this._handleWindowFocus),me.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(pA(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=lC(this)}_removeListeners(){try{me.document.removeEventListener("visibilitychange",this._handleVisibilityChange),me.removeEventListener("blur",this._handleWindowBlur),me.removeEventListener("focus",this._handleWindowFocus),me.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;if(Yc(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){qc();return}t&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){F&&H.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:W.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=ZN(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let r=this._context.initialTimestamp/1e3;t=t.filter(n=>n.start>=r)}return Promise.all(ou(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:r}=this;if(!t||!r||this._requiresManualStart||t.segmentId)return;let n=r.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let t={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(),t}async _runFlush(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){F&&H.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await fA(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Qc;let n=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await Gv({replayId:t,recordingData:i,segmentId:o,eventContext:n,session:this.session,timestamp:r,onError:s=>this.handleException(s)})}catch(r){this.handleException(r),this.stop({reason:"sendError"});let n=M();if(n){let o;r instanceof ba?o="ratelimit_backoff":r instanceof Qc?o="invalid":o="send_error",n.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){F&&H.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let r=this.session.started,o=Date.now()-r;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){F&&H.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&F&&H.log("Flushing initial segment without checkout.");let l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(c){this.handleException(c)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&nu(this.session)}_onMutationHandler(t){let{ignoreMutations:r}=this._options._experiments;if(r?.length&&t.some(a=>{let l=EA(a.target),c=r.join(",");return l?.matches(c)}))return!1;let n=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&n>o;if(n>i||s){let a=Hr({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}};function fa(e,t){return[...e,...t].join(",")}function RA({mask:e,unmask:t,block:r,unblock:n,ignore:o}){let i=["base","iframe[srcdoc]:not([src])"],s=fa(e,[".sentry-mask","[data-sentry-mask]"]),a=fa(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:fa(r,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:fa(n,[]),ignoreSelector:fa(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function NA({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:o,value:i}){if(o.unmaskTextSelector&&e.matches(o.unmaskTextSelector))return i;let s=r.includes(t),a=n&&t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"");return s||a?i.replace(/[\S]/g,"*"):i}var av='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',CA=["content-length","content-type","accept"],AA=Symbol.for("sentry__originalRequestBody"),lv=!1,cv=!1;function MA(){if(typeof Request>"u"||cv)return;let e=Request;try{let t=function(r,n){let o=new e(r,n);return n?.body!=null&&(o[AA]=n.body),o};t.prototype=e.prototype,L.Request=t,cv=!0}catch{}}var tm=(e=>new zf(e)),zf=class{constructor({flushMinDelay:t=hR,flushMaxDelay:r=gR,minReplayDuration:n=TR,maxReplayDuration:o=H_,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:l={},maskAllText:c=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:_=[],networkDetailAllowUrls:I=[],networkDetailDenyUrls:g=[],networkCaptureBodies:h=!0,networkRequestHeaders:S=[],networkResponseHeaders:T=[],mask:R=[],maskAttributes:k=["title","placeholder","aria-label"],unmask:v=[],block:x=[],unblock:j=[],ignore:b=[],maskFn:P,beforeAddRecordingEvent:Y,beforeErrorSampling:ee,onError:G,attachRawBodyFromRequest:Ue=!1}={}){this.name="Replay";let ce=RA({mask:R,unmask:v,block:x,unblock:j,ignore:b});if(this._recordingOptions={maskAllInputs:d,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:P,maskInputFn:P,maskAttributeFn:(Se,C,oe)=>NA({maskAttributes:k,maskAllText:c,privacyOptions:ce,key:Se,value:C,el:oe}),...ce,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Se=>{try{Se.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!l.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:r,minReplayDuration:Math.min(n,IR),maxReplayDuration:Math.min(o,H_),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:u,maskAllInputs:d,maskAllText:c,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:_,networkDetailAllowUrls:I,networkDetailDenyUrls:g,networkCaptureBodies:h,networkRequestHeaders:uv(S),networkResponseHeaders:uv(T),beforeAddRecordingEvent:Y,beforeErrorSampling:ee,onError:G,attachRawBodyFromRequest:Ue,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${av}`:av,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Zt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lv}set _isInitialized(t){lv=t}afterAllSetup(t){!Zt()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&MA(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(t){let r=this.getReplayId(!0);r&&An(t,{"sentry.replay_id":r})}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){let r=LA(this._initialOptions,t);this._replay=new Hf({options:r,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{let r=t.getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch{}}};function LA(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},o=Ut(r.replaysSessionSampleRate),i=Ut(r.replaysOnErrorSampleRate);return o==null&&i==null&&Ye(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(n.sessionSampleRate=o),i!=null&&(n.errorSampleRate=i),n}function uv(e){return[...CA,...e.map(t=>t.toLowerCase())]}function Yv(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function rm(e){try{return new URL(e,D.location.origin).href}catch{return}}function qv(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function nm(e){try{return new Headers(e)}catch{return}}var om={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Xv(e,t){let{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:s,onRequestSpanStart:a,onRequestSpanEnd:l}={...om,...t},c=typeof o=="function"?o:f=>!0,d=f=>PA(f,s),u={},p=e.getOptions().propagateTraceparent;r&&Ln(f=>{let m=Lp(f,c,d,u,{propagateTraceparent:p,onRequestSpanEnd:l});if(m){let _=rm(f.fetchData.url),I=_?Qt(_).host:void 0;m.setAttributes({"http.url":_?st(_):void 0,"server.address":I}),i&&Kv(m,e),a?.(m,{headers:f.headers})}}),n&&ca(f=>{let m=DA(f,c,d,u,p,l);m&&(i&&Kv(m,e),a?.(m,{headers:nm(f.xhr.__sentry_xhr_v3__?.request_headers)}))})}var OA=300;function Kv(e,t){let{url:r}=B(e).data;if(!r||typeof r!="string")return;let n=()=>{setTimeout(o)};if(Xe(t)){let i=e.end.bind(e);e.end=s=>{let a=s??ne(),l=!1,c=()=>{l||(l=!0,setTimeout(o),i(a),clearTimeout(d))};n=c;let d=setTimeout(c,OA)}}let o=vr("resource",({entries:i})=>{i.forEach(s=>{qv(s)&&s.name.endsWith(r)&&(e.setAttributes(sa(s)),n())})})}function PA(e,t){let r=wt();if(r){let n,o;try{n=new URL(e,r),o=new URL(r).origin}catch{return!1}let i=n.origin===o;return t?qe(n.toString(),t)||i&&qe(n.pathname,t):i}else{let n=!!e.match(/^\/(?!\/)/);return t?qe(e,t):n}}function DA(e,t,r,n,o,i){let s=e.xhr,a=s?.[Er];if(!s||s.__sentry_own_request__||!a)return;let{url:l,method:c}=a,d=Fe()&&t(l);if(e.endTimestamp){let h=s.__sentry_xhr_span_id__;if(!h)return;let S=n[h];S&&(d&&a.status_code!==void 0&&(ai(S,a.status_code),S.end(),i?.(S,{headers:nm(ua(s)),error:e.error})),delete n[h]);return}let u=rm(l),p=u?Qt(u):Qt(l),f=st(Xl(l)),m=M(),I=!!ie()||!!m&&Xe(m),g=d&&I?$e({name:`${c} ${f}`,attributes:{url:st(l),type:"xhr","http.method":c,"http.url":u?st(u):void 0,"server.address":p?.host,[J]:"auto.http.browser",[_e]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Ke;return d&&!I&&m?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=g.spanContext().spanId,n[s.__sentry_xhr_span_id__]=g,r(l)&&UA(s,Fe()&&I?g:void 0,o),m&&m.emit("beforeOutgoingRequestSpan",g,e),g}function UA(e,t,r){let{"sentry-trace":n,baggage:o,traceparent:i}=_i({span:t,propagateTraceparent:r});n&&BA(e,n,o,i)}function BA(e,t,r,n){let o=e.__sentry_xhr_v3__?.request_headers;if(!(o?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),n&&!o?.traceparent&&e.setRequestHeader("traceparent",n),r){let i=o?.baggage;(!i||!Yv(i))&&e.setRequestHeader("baggage",r)}}catch{}}var Jv=new WeakMap,Qv=new WeakMap,FA=9e4,HA=["text/event-stream","application/x-ndjson","application/stream+json"],Zv=()=>({name:"FetchStreamPerformance",setup(){cc(e=>{if(e.response){let t=Jv.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let r=Qv.get(e.response);r&&clearTimeout(r)}}}),Ln(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!HA.some(l=>t.startsWith(l)))return;let r=e.fetchData?.url||"",n=e.fetchData?.method||"GET",o=Pr(r),i=r.startsWith("data:")?st(r):o?mi(o):r,s=$e({name:`${n} ${i}`,startTime:e.endTimestamp,attributes:{url:st(r),"http.method":n,type:"fetch",[_e]:"http.client.stream",[J]:"auto.http.browser.stream"}});Jv.set(e.response,s);let a=setTimeout(()=>{s.isRecording()&&s.end()},FA);Qv.set(e.response,a)}})}});function eE(){D.document?D.document.addEventListener("visibilitychange",()=>{let e=ie();if(!e)return;let t=te(e);if(D.document.hidden&&t){let r="cancelled",{op:n,status:o}=B(t);be&&E.log(`[Tracing] Transaction: ${r} -> since tab moved to the background, op: ${n}`),o||t.setStatus({code:2,message:r}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):be&&E.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var zA=3600,tE="sentry_previous_trace",$A="sentry.previous_trace";function rE(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n=t==="session-storage",o=n?GA():void 0;e.on("spanStart",s=>{if(te(s)!==s)return;let a=U().getPropagationContext();o=jA(o,s,a),n&&WA(o)});let i=!0;r&&e.on("beforeSampling",s=>{if(!o)return;let a=U(),l=a.getPropagationContext();if(i&&l.parentSpanId){i=!1;return}a.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(o.sampleRate),sampled:String(im(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=im(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[ii]:o.sampleRate}})}function jA(e,t,r){let n=B(t);function o(){try{let a=Number(n.data?.[Xr]??r.dsc?.sample_rate);return Number.isNaN(a)?0:a}catch{return 0}}let i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:o(),sampleRand:r.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=zA&&(be&&E.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:n.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[Ol]:"previous_trace"}}),t.setAttribute($A,`${s.traceId}-${s.spanId}-${im(s)?1:0}`)),i)}function WA(e){try{D.sessionStorage.setItem(tE,JSON.stringify(e))}catch(t){be&&E.warn("Could not store previous trace in sessionStorage",t)}}function GA(){try{let e=D.sessionStorage?.getItem(tE);return JSON.parse(e)}catch{return}}function im(e){return e.traceFlags===1}var VA="BrowserTracing",YA=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function aE(){let e=D.navigator;return e?.userAgent?YA.test(e.userAgent):!1}var qA={...fi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...om},sm=((e={})=>{"enableElementTiming"in e&&Ye(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},r=D.document,{enableInp:n,enableLongTask:o,enableLongAnimationFrame:i,_experiments:{enableInteractions:s,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:l},beforeStartSpan:c,idleTimeout:d,finalTimeout:u,childSpanTimeout:p,markBackgroundSpan:f,traceFetch:m,traceXHR:_,trackFetchStreamPerformance:I,shouldCreateSpanForRequest:g,enableHTTPTimings:h,ignoreResourceSpans:S,ignorePerformanceApiSpans:T,instrumentPageLoad:R,instrumentNavigation:k,detectRedirects:v,linkPreviousTrace:x,consistentTraceSampling:j,enableReportPageLoaded:b,onRequestSpanStart:P,onRequestSpanEnd:Y}={...qA,...e},ee=aE(),G,Ue,ce;function Se(C,oe,$=!0){let q=oe.op==="pageload",de=oe.name,pe=c?c(oe):oe,Ot=pe.attributes||{};if(de!==pe.name&&(Ot[Be]="custom",pe.attributes=Ot),!$){let Yr=It();$e({...pe,startTime:Yr}).end(Yr);return}t.name=pe.name,t.source=Ot[Be];let dr=ql(pe,{idleTimeout:d,finalTimeout:u,childSpanTimeout:p,disableAutoFinish:q,beforeSpanEnd:Yr=>{G?.();let so=Xe(C);Jp(Yr,{recordClsOnPageloadSpan:!so&&!a,recordLcpOnPageloadSpan:!so&&!l,ignoreResourceSpans:S,ignorePerformanceApiSpans:T,spanStreamingEnabled:so}),iE(C,void 0);let hs=U(),ao=hs.getPropagationContext();hs.setPropagationContext({...ao,traceId:dr.spanContext().traceId,sampled:kt(dr),dsc:Oe(Yr)}),q&&(ce=void 0)},trimIdleSpanEndTimestamp:!b});q&&b&&(ce=dr),iE(C,dr);function Mr(){r&&["interactive","complete"].includes(r.readyState)&&C.emit("idleSpanEnableAutoFinish",dr)}q&&!b&&r&&(r.addEventListener("readystatechange",()=>{Mr()}),Mr())}return{name:VA,setup(C){if(ee){be&&E.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}zl();let oe=Xe(C);if(G=Yp({recordClsStandaloneSpans:oe?void 0:a||!1,recordLcpStandaloneSpans:oe?void 0:l||!1,client:C}),oe?(nf(C),of(C),n&&sf()):n&&ef(),i&&L.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?Kp():o&&qp(),s&&Xp(),v&&r){let q=()=>{Ue=ne()};addEventListener("click",q,{capture:!0}),addEventListener("keydown",q,{capture:!0,passive:!0})}function $(){let q=wa(C);q&&!B(q).timestamp&&(be&&E.log(`[Tracing] Finishing current active span with op: ${B(q).op}`),q.setAttribute(Jr,"cancelled"),q.end())}C.on("startNavigationSpan",(q,de)=>{if(M()!==C)return;if(de?.isRedirect){be&&E.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),Se(C,{op:"navigation.redirect",...q},!1);return}Ue=void 0,$(),Te().setPropagationContext({traceId:ft(),sampleRand:Math.random(),propagationSpanId:Fe()?void 0:ot()});let pe=U();pe.setPropagationContext({traceId:ft(),sampleRand:Math.random(),propagationSpanId:Fe()?void 0:ot()}),pe.setSDKProcessingMetadata({normalizedRequest:void 0}),Se(C,{op:"navigation",...q,parentSpan:null,forceTransaction:!0})}),C.on("startPageLoadSpan",(q,de={})=>{if(M()!==C)return;$();let pe=de.sentryTrace||nE("sentry-trace")||oE("sentry-trace"),Ot=de.baggage||nE("baggage")||oE("baggage"),dr=Jd(pe,Ot),Mr=U();Mr.setPropagationContext(dr),Fe()||(Mr.getPropagationContext().propagationSpanId=ot()),Mr.setSDKProcessingMetadata({normalizedRequest:Ti()}),Se(C,{op:"pageload",...q})}),C.on("endPageloadSpan",()=>{b&&ce&&(ce.setAttribute(Jr,"reportPageLoaded"),ce.end())})},afterAllSetup(C){if(ee)return;let oe=wt();if(x!=="off"&&rE(C,{linkPreviousTrace:x,consistentTraceSampling:j}),D.location){if(R){let $=ue();lE(C,{name:D.location.pathname,startTime:$?$/1e3:void 0,attributes:{[Be]:"url",[J]:"auto.pageload.browser"}})}k&&ln(({to:$,from:q})=>{if(q===void 0&&oe?.indexOf($)!==-1){oe=void 0;return}oe=void 0;let de=Pr($),pe=wa(C),Ot=pe&&v&&XA(pe,Ue);cE(C,{name:de?.pathname||D.location.pathname,attributes:{[Be]:"url",[J]:"auto.navigation.browser"}},{url:$,isRedirect:Ot})})}f&&eE(),s&&KA(C,d,u,p,t),n&&tf(),Xv(C,{traceFetch:m,traceXHR:_,tracePropagationTargets:C.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:h,onRequestSpanStart:P,onRequestSpanEnd:Y}),I&&C.addIntegration(Zv())}}});function lE(e,t,r){e.emit("startPageLoadSpan",t,r),U().setTransactionName(t.name);let n=wa(e);return n&&e.emit("afterStartPageLoadSpan",n),n}function cE(e,t,r){let{url:n,isRedirect:o}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});let i=U();return i.setTransactionName(t.name),n&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...Ti(),url:n}}),wa(e)}function nE(e){return D.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function oE(e){return D.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(n=>n.name===e)?.description}function KA(e,t,r,n,o){let i=D.document,s,a=()=>{let l="ui.action.click",c=wa(e);if(c){let d=B(c).op;if(["navigation","pageload"].includes(d)){be&&E.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Jr,"interactionInterrupted"),s.end(),s=void 0),!o.name){be&&E.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}s=ql({name:o.name,op:l,attributes:{[Be]:o.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n})};i&&addEventListener("click",a,{capture:!0})}var uE="_sentry_idleSpan";function wa(e){return e[uE]}function iE(e,t){ye(e,uE,t)}var sE=1.5;function XA(e,t){let r=B(e),n=It(),o=r.start_timestamp;return!(n-o>sE||t&&n-t<=sE)}var xE=fr(un(),1);function bE(e){return qt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function pm(e){let t={...e};ta(t,"react"),xo("react",{version:xE.version});let r=pf(t);return ni(pM),r}function pM(e){return bE(e)?"[SyntheticEvent]":da(e)}var kE=fr(un(),1);function fM(e){let t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function mM(e,t){let r=new WeakSet;function n(o,i){if(!r.has(o)){if(o.cause)return r.add(o),n(o.cause,i);o.cause=i}}n(e,t)}function wE(e,{componentStack:t},r){if(fM(kE.version)&&Yt(e)&&t){let n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,mM(e,n)}return Jt(n=>(n.setContext("react",{componentStack:t}),en(e,r)))}var Do=fr(un(),1);var RE=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var fm={componentStack:null,error:null,eventId:null},Na=class extends Do.Component{constructor(t){super(t),this.state=fm,this._openFallbackReportDialog=!0;let r=M();r&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=r.on("afterSendEvent",n=>{!n.type&&this._lastEventId&&n.event_id===this._lastEventId&&Mc({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,r){let{componentStack:n}=r,{beforeCapture:o,onError:i,showDialog:s,dialogOptions:a}=this.props;Jt(l=>{o&&o(l,t,n);let c=this.props.handled!=null?this.props.handled:!!this.props.fallback,d=wE(t,r,{mechanism:{handled:c,type:"auto.function.react.error_boundary"}});i&&i(t,n,d),s&&(this._lastEventId=d,this._openFallbackReportDialog&&Mc({...a,eventId:d})),this.setState({error:t,componentStack:n,eventId:d})})}componentDidMount(){let{onMount:t}=this.props;t&&t()}componentWillUnmount(){let{error:t,componentStack:r,eventId:n}=this.state,{onUnmount:o}=this.props;o&&(this.state===fm?o(null,null,null):o(t,r,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:t}=this.props,{error:r,componentStack:n,eventId:o}=this.state;t&&t(r,n,o),this.setState(fm)}render(){let{fallback:t,children:r}=this.props,n=this.state;if(n.componentStack===null)return typeof r=="function"?r():r;let o=typeof t=="function"?Do.createElement(t,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):t;return Do.isValidElement(o)?o:(t&&RE&&E.warn("fallback did not produce a valid ReactElement"),null)}};function mm(e,t){if(e==null||e==="")return t;let r=typeof e=="number"?e:Number(e);return Number.isFinite(r)&&r>=0&&r<=1?r:t}var dn=window.__vidfarmSentry,CE=dn?.dsn?.trim()||"";if(CE){let e=dn?.environment?.trim()||"development",t=e==="production"?.1:1,r=e==="production"?.1:1,n=["localhost",window.location.origin,`${window.location.origin}/api`],o=Array.from(new Set([...n,...dn?.tracePropagationTargets??[]].filter(Boolean)));pm({dsn:CE,environment:e,release:dn?.release?.trim()||void 0,integrations:[sm(),tm({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:mm(dn?.tracesSampleRate,t),tracePropagationTargets:o,replaysSessionSampleRate:mm(dn?.replaysSessionSampleRate,r),replaysOnErrorSampleRate:mm(dn?.replaysOnErrorSampleRate,1),enableLogs:dn?.enableLogs??!0,sendDefaultPii:dn?.sendDefaultPii??!0})}var In=fr(un(),1),ub=fr(JI(),1);var QI=e=>{let t,r=new Set,n=(c,d)=>{let u=typeof c=="function"?c(t):c;if(!Object.is(u,t)){let p=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),r.forEach(f=>f(t,p))}},o=()=>t,a={setState:n,getState:o,getInitialState:()=>l,subscribe:c=>(r.add(c),()=>r.delete(c))},l=t=e(n,o,a);return a},ZI=(e=>e?QI(e):QI);var El=fr(un(),1);var SL=e=>e;function Qo(e,t=SL){let r=El.default.useSyncExternalStore(e.subscribe,El.default.useCallback(()=>t(e.getState()),[e,t]),El.default.useCallback(()=>t(e.getInitialState()),[e,t]));return El.default.useDebugValue(r),r}var Vt=fr(un(),1);function Tn(e,t){if(!t||!e.startsWith("/"))return e;let r=new URL(e,"https://vidfarm.local");return r.pathname.startsWith("/u/")?`${r.pathname}${r.search}${r.hash}`:r.pathname==="/discover"||r.pathname.startsWith("/discover/")||r.pathname==="/help"?`${r.pathname}${r.search}${r.hash}`:`/u/${encodeURIComponent(t)}${r.pathname}${r.search}${r.hash}`}function eb(e){let t=e?.email?.trim()||"",r=e?.displayName?.trim()||"";return r||(t?t.split("@")[0].replace(/[._-]+/g," ").replace(/\b\w/g,n=>n.toUpperCase()):"")}function Rd(e){return!!(e&&/\.(mp4|webm|ogg|mov)(\?|#|$)/i.test(e))}var y=fr(Tl(),1);function ob(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("path",{d:"M10 3v4"}),(0,y.jsx)("path",{d:"M10 13v4"}),(0,y.jsx)("path",{d:"M3 10h4"}),(0,y.jsx)("path",{d:"M13 10h4"}),(0,y.jsx)("path",{d:"m5.8 5.8 2.3 2.3"}),(0,y.jsx)("path",{d:"m11.9 11.9 2.3 2.3"}),(0,y.jsx)("path",{d:"m14.2 5.8-2.3 2.3"}),(0,y.jsx)("path",{d:"m8.1 11.9-2.3 2.3"})]})}function bL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("path",{d:"M4.5 4.5h3v11h-3z"}),(0,y.jsx)("path",{d:"M8.7 4.5h3v11h-3z"}),(0,y.jsx)("path",{d:"m13.4 5.1 2.3-.6 2.2 10.7-2.3.6z"})]})}function xL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("circle",{cx:"10",cy:"10",r:"7.2"}),(0,y.jsx)("path",{d:"M10 6.3v4.1l2.8 1.7"})]})}function ib(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("path",{d:"M14.8 15.2a5.4 5.4 0 1 0-9.6 0"}),(0,y.jsx)("circle",{cx:"10",cy:"6.8",r:"3.1"})]})}function kL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"currentColor",children:[(0,y.jsx)("circle",{cx:"4.2",cy:"10",r:"1.45"}),(0,y.jsx)("circle",{cx:"10",cy:"10",r:"1.45"}),(0,y.jsx)("circle",{cx:"15.8",cy:"10",r:"1.45"})]})}function wL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",children:[(0,y.jsx)("path",{d:"M3.5 5.5h13"}),(0,y.jsx)("path",{d:"M3.5 10h13"}),(0,y.jsx)("path",{d:"M3.5 14.5h13"})]})}function RL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("circle",{cx:"8.5",cy:"8.5",r:"5.8"}),(0,y.jsx)("path",{d:"m13 13 4.2 4.2"})]})}function NL(){return(0,y.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:(0,y.jsx)("path",{d:"M6 3.8h8a1 1 0 0 1 1 1v11.4l-5-2.9-5 2.9V4.8a1 1 0 0 1 1-1Z"})})}function CL(e){let t=e?.trim();if(!(!t||typeof window>"u"))try{let r="vidfarm:agency:accounts:index",n=window.localStorage.getItem(r),o=n?JSON.parse(n):[];Array.isArray(o)&&window.localStorage.setItem(r,JSON.stringify(o.filter(i=>typeof i=="string"&&i!==t))),window.localStorage.removeItem(`vidfarm:agency:account_${t}`),window.localStorage.removeItem(`vidfarm:flockposter-cache:v1_${t}`),window.localStorage.removeItem(`vidfarm:discover-bookmarks:v1_${t}`)}catch{}}function AL({account:e}){let t=(0,Vt.useRef)(null),r=e.isLoggedIn?[{id:"discover",href:Tn("/discover",e.userId),label:"Studio",icon:(0,y.jsx)(ob,{})},{id:"library",href:Tn("/library",e.userId),label:"Library",icon:(0,y.jsx)(bL,{})},{id:"calendar",href:Tn("/calendar",e.userId),label:"Calendar",icon:(0,y.jsx)(xL,{})},{id:"settings",href:Tn("/settings",e.userId),label:"Settings",icon:(0,y.jsx)(ib,{})}]:[{id:"discover",href:"/discover",label:"Studio",icon:(0,y.jsx)(ob,{})},{id:"login",href:"/login",label:"Login",icon:(0,y.jsx)(ib,{})}],n=e.isLoggedIn?[{id:"job-runs",href:Tn("/job-runs",e.userId),label:"Run History"},{id:"inpaint",href:Tn("/inpaint",e.userId),label:"Inpaint"},{id:"help",href:"/help",label:"Help"},{id:"logout",action:"logout",label:"Log Out"}]:[{id:"help",href:"/help",label:"Help"},{id:"login",href:"/login",label:"Login"}],o=r.filter(i=>!n.some(s=>s.id===i.id));return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("nav",{className:"primary-nav","aria-label":"Primary",children:[r.map(i=>(0,y.jsxs)("a",{className:`nav-link${i.id==="discover"?" is-active":""}`,href:i.href,children:[(0,y.jsx)("span",{className:"nav-icon","aria-hidden":"true",children:i.icon}),(0,y.jsx)("span",{children:i.label})]},i.id)),n.map(i=>"href"in i?(0,y.jsx)("a",{className:"nav-link nav-mobile-extra",href:i.href,children:(0,y.jsx)("span",{children:i.label})},`mobile-${i.id}`):(0,y.jsx)("button",{type:"button",className:"nav-link nav-mobile-extra nav-action-link",onClick:()=>{t.current?.open||t.current?.showModal()},children:(0,y.jsx)("span",{children:i.label})},`mobile-${i.id}`)),n.length?(0,y.jsxs)("details",{className:"nav-menu",children:[(0,y.jsxs)("summary",{className:"nav-link nav-menu-trigger","aria-label":"Open navigation menu",children:[(0,y.jsx)("span",{className:"nav-icon nav-menu-desktop-icon","aria-hidden":"true",children:(0,y.jsx)(kL,{})}),(0,y.jsx)("span",{className:"nav-icon nav-menu-mobile-icon","aria-hidden":"true",children:(0,y.jsx)(wL,{})}),(0,y.jsx)("span",{className:"nav-menu-label",children:"Menu"})]}),(0,y.jsxs)("div",{className:"nav-menu-panel",role:"menu",children:[o.map(i=>(0,y.jsx)("a",{className:`nav-menu-item nav-menu-mobile-only${i.id==="discover"?" is-active":""}`,role:"menuitem",href:i.href,children:i.label},`menu-mobile-${i.id}`)),n.map(i=>"href"in i?(0,y.jsx)("a",{className:"nav-menu-item",role:"menuitem",href:i.href,children:i.label},i.id):(0,y.jsx)("button",{type:"button",className:"nav-menu-item nav-menu-button",role:"menuitem",onClick:()=>{t.current?.open||t.current?.showModal()},children:i.label},i.id))]})]}):null]}),e.isLoggedIn?(0,y.jsxs)("dialog",{className:"logout-dialog",ref:t,onClick:i=>{let s=t.current;if(!s)return;let a=s.getBoundingClientRect();(i.clientX<a.left||i.clientX>a.right||i.clientY<a.top||i.clientY>a.bottom)&&s.close()},children:[(0,y.jsxs)("div",{className:"logout-dialog-head",children:[(0,y.jsx)("div",{className:"label logout-dialog-kicker",children:"Log out"}),(0,y.jsx)("h3",{children:"Log out of this browser?"}),(0,y.jsx)("p",{children:"This clears the stored developer key, workspace access, and local session state for the current browser."})]}),(0,y.jsxs)("div",{className:"toolbar logout-dialog-actions",children:[(0,y.jsx)("button",{type:"button",className:"secondary",onClick:()=>t.current?.close(),children:"Cancel"}),(0,y.jsxs)("form",{method:"post",action:"/logout",onSubmit:()=>CL(e.userId),children:[(0,y.jsx)("input",{type:"hidden",name:"account",value:e.userId??""}),(0,y.jsx)("button",{type:"submit",className:"danger",children:"Yes, log out"})]})]})]}):null]})}function ML({account:e}){let t=e.email?.trim()||"",r=eb({displayName:e.displayName,email:e.email}),n=Tn("/discover",e.userId);return(0,y.jsxs)("a",{className:"brand-lockup",href:n,children:[(0,y.jsx)("img",{className:"brand-logo-image",src:"/assets/logo-vidfarm.png",alt:"VidFarm AI"}),(0,y.jsxs)("div",{className:"brand-copy",children:[(0,y.jsxs)("div",{className:"brand-title brand-title-static",children:["VidFarm",(0,y.jsx)("span",{className:"brand-title-mobile-hidden",children:" AI"})]}),t?(0,y.jsxs)("div",{className:"brand-account-meta",children:[r," ",(0,y.jsxs)("span",{children:["(",t,")"]})]}):null]})]})}function LL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",children:[(0,y.jsx)("path",{d:"m5 5 10 10"}),(0,y.jsx)("path",{d:"m15 5-10 10"})]})}function OL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("path",{d:"M10 3v9"}),(0,y.jsx)("path",{d:"m6.5 8.5 3.5 3.5 3.5-3.5"}),(0,y.jsx)("path",{d:"M4 16h12"})]})}function PL(){return(0,y.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,y.jsx)("path",{d:"M8.4 11.6a3.2 3.2 0 0 0 4.5 0l2.2-2.2a3.2 3.2 0 0 0-4.5-4.5L9.4 6.1"}),(0,y.jsx)("path",{d:"M11.6 8.4a3.2 3.2 0 0 0-4.5 0L4.9 10.6a3.2 3.2 0 0 0 4.5 4.5l1.2-1.2"})]})}function DL({src:e,controls:t=!0}){let r=(0,Vt.useRef)(null);return(0,Vt.useEffect)(()=>{let n=r.current;if(!n||n.src)return;let o=()=>{!n.dataset.src||n.getAttribute("src")||(n.setAttribute("src",n.dataset.src),n.load())};if(!("IntersectionObserver"in window)){o();return}let i=new IntersectionObserver(s=>{for(let a of s)a.isIntersecting&&(o(),i.unobserve(a.target))},{rootMargin:"240px 0px"});return i.observe(n),()=>i.disconnect()},[]),(0,y.jsx)("video",{ref:r,className:"preview","data-src":e,preload:"metadata",muted:!0,playsInline:!0,controls:t})}function sb({text:e,label:t}){let[r,n]=(0,Vt.useState)(""),o=async()=>{try{await navigator.clipboard.writeText(e),n("done")}catch{n("error")}window.setTimeout(()=>n(""),1600)};return(0,y.jsxs)("button",{className:"pill-tag copy-inline",type:"button","data-state":r,"aria-label":r==="done"?`${t} copied`:t,onClick:()=>{o()},children:[(0,y.jsx)("span",{className:"copy-inline-label",children:t}),(0,y.jsx)("span",{className:"copy-inline-feedback","aria-hidden":"true",children:r==="error"?"Couldn\u2019t copy":"Copied"})]})}function UL({templateId:e,accountUserId:t}){let r=e.startsWith("hyperframes:")?`/editor/${encodeURIComponent(e.replace(/^hyperframes:/,""))}${t?`?account=${encodeURIComponent(t)}`:""}`:Tn(`/templates/${encodeURIComponent(e)}/editor/docs`,t);return(0,y.jsx)("a",{className:"cta-button",href:r,children:"Editor"})}function BL(e){let t=`${e.isBookmarked?"Remove bookmark for ":"Bookmark "}${e.title}`;return(0,y.jsx)("button",{className:"bookmark-button",type:"button","data-active":e.isBookmarked?"true":"false","aria-label":t,"aria-pressed":e.isBookmarked,title:t,onClick:()=>e.onToggleBookmark?.(e.templateId),children:(0,y.jsx)(NL,{})})}function FL(e){return e.charAt(0).toUpperCase()+e.slice(1)}function HL(e){let t=typeof e.layerCount=="number"?e.layerCount:null,r=typeof e.sourceAssetCount=="number"?e.sourceAssetCount:null,n=typeof e.durationSeconds=="number"&&Number.isFinite(e.durationSeconds)?e.durationSeconds>=60?`${Math.floor(e.durationSeconds/60)}:${String(Math.round(e.durationSeconds%60)).padStart(2,"0")}`:`${e.durationSeconds.toFixed(e.durationSeconds>=10?1:2)}s`:null,o=[t===null?null:`${t} layer${t===1?"":"s"}`,r===null?null:`${r} source${r===1?"":"s"}`,n].filter(Boolean);return o.length?o.join(" / "):e.previewUrl?"Draft composition with editable layers.":"Layer recipe with editable timeline."}function zL(e){let{template:t}=e,r=t.previewUrl?Rd(t.previewUrl)?(0,y.jsx)(DL,{src:t.previewUrl,controls:!1}):(0,y.jsx)("img",{className:"preview",src:t.previewUrl,alt:`${t.title} preview`,loading:"lazy",decoding:"async"}):(0,y.jsx)("div",{className:"preview preview-empty",children:"No preview"});return(0,y.jsxs)("li",{className:"discover-card row","data-template-id":t.templateId,children:[t.previewUrl?(0,y.jsxs)("button",{className:"discover-card-media discover-card-media-button",type:"button","aria-label":`Open ${t.title} preview`,onClick:()=>e.onOpenPreview?.(t),children:[r,(0,y.jsx)("span",{className:"discover-card-media-affordance","aria-hidden":"true",children:"View"})]}):(0,y.jsx)("div",{className:"discover-card-media",children:r}),(0,y.jsxs)("div",{className:"discover-card-copy",children:[(0,y.jsxs)("div",{className:"discover-card-head",children:[(0,y.jsxs)("div",{className:"discover-card-title-wrap",children:[(0,y.jsx)("h2",{children:t.title}),(0,y.jsx)("p",{className:"discover-card-meta",children:HL(t)})]}),(0,y.jsxs)("div",{className:"discover-card-actions",children:[(0,y.jsx)(BL,{templateId:t.templateId,title:t.title,isBookmarked:e.isBookmarked,onToggleBookmark:e.onToggleBookmark}),(0,y.jsx)(UL,{templateId:t.templateId,accountUserId:e.accountUserId})]})]}),(0,y.jsx)("div",{className:"discover-card-body",children:(0,y.jsx)("p",{children:String(t.viralDna||"").trim()||"No layer strategy provided for this composition yet."})}),(0,y.jsxs)("div",{className:"discover-card-tags",children:[(0,y.jsx)("div",{className:"pill-tag difficulty-pill","data-difficulty":t.difficulty,children:FL(t.difficulty)}),(0,y.jsx)("div",{className:"pill-tag",children:t.sourceType||(Rd(t.previewUrl)?"Video source":"Image sequence")}),(0,y.jsx)(sb,{text:t.templateId,label:t.templateId}),(0,y.jsx)(sb,{text:t.slugId,label:t.slugId})]})]})]})}function $L(e){let{onClose:t,template:r}=e,n=r.previewUrl||"",o=Rd(n),[i,s]=(0,Vt.useState)(""),a=async()=>{try{await navigator.clipboard.writeText(n),s("done")}catch{s("error")}window.setTimeout(()=>s(""),1600)};return(0,Vt.useEffect)(()=>{let l=d=>{d.key==="Escape"&&t()},c=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",l),()=>{document.body.style.overflow=c,window.removeEventListener("keydown",l)}},[t]),(0,y.jsx)("div",{className:"discover-media-modal-backdrop",role:"presentation",onClick:t,children:(0,y.jsxs)("div",{className:"discover-media-modal",role:"dialog","aria-modal":"true","aria-labelledby":"discover-media-modal-title",onClick:l=>l.stopPropagation(),children:[(0,y.jsxs)("div",{className:"discover-media-modal-head",children:[(0,y.jsx)("h2",{id:"discover-media-modal-title",children:r.title}),(0,y.jsxs)("div",{className:"discover-media-modal-actions",children:[(0,y.jsx)("a",{className:"discover-media-modal-action",href:n,download:!0,"aria-label":`Download ${r.title} preview`,title:"Download",onClick:l=>l.stopPropagation(),children:(0,y.jsx)(OL,{})}),(0,y.jsx)("button",{className:"discover-media-modal-action",type:"button","data-state":i,"aria-label":i==="done"?"Media URL copied":i==="error"?"Unable to copy media URL":`Copy ${r.title} preview URL`,title:i==="done"?"Copied":i==="error"?"Copy failed":"Copy link",onClick:()=>{a()},children:(0,y.jsx)(PL,{})}),(0,y.jsx)("button",{className:"discover-media-modal-action",type:"button","aria-label":"Close preview",title:"Close",onClick:t,children:(0,y.jsx)(LL,{})})]})]}),(0,y.jsx)("div",{className:"discover-media-modal-stage",children:o?(0,y.jsx)("video",{src:n,controls:!0,autoPlay:!0,playsInline:!0,preload:"metadata"}):(0,y.jsx)("img",{src:n,alt:`${r.title} preview`})})]})})}function ab(e){let t=e.error||`${e.visibleTemplates.length} visible`,r=!e.loading&&!e.error&&e.templates.length>0&&e.visibleTemplates.length===0,[n,o]=(0,Vt.useState)(null),[i,s]=(0,Vt.useState)(!1),a=(0,Vt.useRef)(null);(0,Vt.useEffect)(()=>{if(!i)return;let c=u=>{a.current&&!a.current.contains(u.target)&&s(!1)},d=u=>{u.key==="Escape"&&s(!1)};return window.addEventListener("mousedown",c),window.addEventListener("keydown",d),()=>{window.removeEventListener("mousedown",c),window.removeEventListener("keydown",d)}},[i]);let l=e.account.isLoggedIn;return(0,y.jsxs)("section",{className:`frame discover-frame${l?" has-chat-rail":""}`,children:[(0,y.jsxs)("header",{className:"topbar",children:[(0,y.jsx)(ML,{account:e.account}),(0,y.jsx)("div",{className:"topbar-actions",children:(0,y.jsx)(AL,{account:e.account})})]}),(0,y.jsx)("div",{className:"frame-body",children:(0,y.jsxs)("section",{className:"discover-shell",children:[(0,y.jsxs)("div",{className:"discover-filter-bar",role:"toolbar","aria-label":"Composition filters",children:[(0,y.jsxs)("div",{className:"discover-filter-search search-field",children:[(0,y.jsx)("span",{className:"search-icon","aria-hidden":"true",children:(0,y.jsx)(RL,{})}),(0,y.jsx)("input",{id:"search",type:"search",placeholder:"Search compositions",autoComplete:"off",value:e.searchQuery,onChange:c=>e.onSearchQueryChange?.(c.target.value)})]}),(0,y.jsxs)("label",{className:"discover-filter-toggle",htmlFor:"bookmarks-only","data-active":e.bookmarksOnly?"true":"false",children:[(0,y.jsx)("span",{className:"discover-filter-toggle-label",children:"Saved"}),(0,y.jsxs)("span",{className:"switch-shell","data-active":e.bookmarksOnly?"true":"false",children:[(0,y.jsx)("input",{id:"bookmarks-only",className:"switch-input",type:"checkbox",checked:e.bookmarksOnly,onChange:c=>e.onBookmarksOnlyChange?.(c.target.checked)}),(0,y.jsx)("span",{className:"switch-knob"})]})]}),(0,y.jsxs)("div",{className:"discover-filter-more",ref:a,children:[(0,y.jsx)("button",{type:"button",className:"discover-filter-more-button","aria-expanded":i,"aria-haspopup":"true",onClick:()=>s(c=>!c),children:"More filters"}),i?(0,y.jsxs)("div",{className:"discover-filter-more-popover",role:"dialog","aria-label":"More filters",children:[(0,y.jsxs)("div",{className:"discover-filter-group",children:[(0,y.jsx)("label",{className:"label",htmlFor:"media-filter",children:"Media type"}),(0,y.jsx)("select",{id:"media-filter",disabled:!0,children:(0,y.jsx)("option",{children:"All compositions"})})]}),(0,y.jsx)("p",{className:"discover-filter-more-hint",children:"More filters coming soon."})]}):null]}),(0,y.jsx)("div",{className:"discover-filter-count",children:e.loading?"Loading\u2026":t})]}),(0,y.jsx)("section",{className:"discover-results",children:(0,y.jsx)("div",{className:"discover-results-scroll",children:(0,y.jsxs)("div",{className:"discover-list-scroll",children:[(0,y.jsx)("ul",{className:"discover-list",id:"template-list",children:e.loading?(0,y.jsx)("li",{className:"empty-state discover-loading-card",children:"Loading compositions..."}):e.error?(0,y.jsx)("li",{className:"empty-state discover-loading-card",children:"Unable to load compositions."}):e.templates.length===0?(0,y.jsx)("li",{className:"empty-state discover-loading-card",children:"No compositions available."}):e.visibleTemplates.map(c=>(0,y.jsx)(zL,{template:c,isBookmarked:e.bookmarks.has(c.templateId),onToggleBookmark:e.onToggleBookmark,onOpenPreview:o,accountUserId:e.account.userId},c.templateId))}),(0,y.jsx)("div",{className:"empty-state empty",id:"empty-state","data-visible":r?"true":"false",children:"No compositions match the current search and filter combination."})]})})})]})}),l?(0,y.jsx)("aside",{className:"editor-right-rail","aria-label":"Discover copilot",children:(0,y.jsx)("div",{className:"editor-chat-panel","data-template-editor-chat-root":!0})}):null,n?(0,y.jsx)($L,{template:n,onClose:()=>o(null)}):null]})}function lb(e){return ZI(t=>({templates:e.templates,searchQuery:"",bookmarksOnly:!1,bookmarks:new Set,loading:e.templates.length===0,error:null,setTemplates:r=>t({templates:r,loading:!1,error:null}),setSearchQuery:r=>t({searchQuery:r}),setBookmarksOnly:r=>t({bookmarksOnly:r}),setBookmarks:r=>t({bookmarks:new Set(r)}),toggleBookmark:r=>t(n=>{let o=new Set(n.bookmarks);return o.has(r)?o.delete(r):o.add(r),{bookmarks:o}}),setLoading:r=>t({loading:r}),setError:r=>t({error:r,loading:!1})}))}var Zo=fr(Tl(),1),jL="vidfarm:discover-bookmarks:v1",WL="public";function GL(){let e=document.getElementById("homepage-boot");return e?.textContent?JSON.parse(e.textContent):{templates:[],account:{isLoggedIn:!1},loadEndpoint:"/discover/feed",skillEndpointPrefix:"/discover/skills/"}}function db(e){return`${jL}_${e?.trim()||WL}`}function VL(e){try{let t=window.localStorage.getItem(db(e));if(!t)return new Set;let r=JSON.parse(t);return Array.isArray(r)?new Set(r.filter(n=>typeof n=="string")):new Set}catch{return new Set}}function YL(e,t){try{window.localStorage.setItem(db(t),JSON.stringify(Array.from(e)))}catch{}}function qL(e){let t=e.searchQuery.trim().toLowerCase();return e.templates.filter(r=>{let n=!t||`${r.templateId} ${r.title} ${r.slugId} ${r.difficulty}`.toLowerCase().includes(t),o=!e.bookmarksOnly||e.bookmarks.has(r.templateId);return n&&o})}function KL({boot:e}){let t=(0,In.useMemo)(()=>lb(e),[e]),r=Qo(t,u=>u.templates),n=Qo(t,u=>u.searchQuery),o=Qo(t,u=>u.bookmarksOnly),i=Qo(t,u=>u.bookmarks),s=Qo(t,u=>u.loading),a=Qo(t,u=>u.error),[l,c]=(0,In.useState)(!1),d=(0,In.useMemo)(()=>qL({templates:r,searchQuery:n,bookmarksOnly:o,bookmarks:i}),[r,n,o,i]);return(0,In.useEffect)(()=>{t.getState().setBookmarks(VL(e.account.userId)),c(!0)},[e.account.userId,t]),(0,In.useEffect)(()=>{l&&YL(i,e.account.userId)},[e.account.userId,i,l]),(0,In.useEffect)(()=>{if(e.templates.length>0)return;let u=!1;return t.getState().setLoading(!0),(async()=>{try{let p=await fetch(e.loadEndpoint,{credentials:"same-origin",headers:{Accept:"application/json"}}),f=await p.json().catch(()=>({}));if(!p.ok)throw new Error(typeof f.error=="string"&&f.error?f.error:"Unable to load formats.");if(u)return;t.getState().setTemplates(Array.isArray(f.templates)?f.templates:[])}catch(p){if(u)return;t.getState().setError(p instanceof Error?p.message:"Unable to load formats.")}})(),()=>{u=!0}},[e.loadEndpoint,e.templates.length,t]),(0,Zo.jsx)(ab,{account:e.account,templates:r,visibleTemplates:d,searchQuery:n,bookmarksOnly:o,bookmarks:i,loading:s,error:a,skillEndpointPrefix:e.skillEndpointPrefix,onSearchQueryChange:u=>t.getState().setSearchQuery(u),onBookmarksOnlyChange:u=>t.getState().setBookmarksOnly(u),onToggleBookmark:u=>t.getState().toggleBookmark(u)})}var XL=GL(),cb=document.getElementById("homepage-root");cb&&(0,ub.hydrateRoot)(cb,(0,Zo.jsx)(Na,{fallback:(0,Zo.jsx)(Zo.Fragment,{}),children:(0,Zo.jsx)(KL,{boot:XL})}));
|
|
32
|
-
/*! Bundled license information:
|
|
33
|
-
|
|
34
|
-
react/cjs/react.production.min.js:
|
|
35
|
-
(**
|
|
36
|
-
* @license React
|
|
37
|
-
* react.production.min.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*)
|
|
44
|
-
|
|
45
|
-
scheduler/cjs/scheduler.production.min.js:
|
|
46
|
-
(**
|
|
47
|
-
* @license React
|
|
48
|
-
* scheduler.production.min.js
|
|
49
|
-
*
|
|
50
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the MIT license found in the
|
|
53
|
-
* LICENSE file in the root directory of this source tree.
|
|
54
|
-
*)
|
|
55
|
-
|
|
56
|
-
react-dom/cjs/react-dom.production.min.js:
|
|
57
|
-
(**
|
|
58
|
-
* @license React
|
|
59
|
-
* react-dom.production.min.js
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*)
|
|
66
|
-
|
|
67
|
-
react/cjs/react-jsx-runtime.production.min.js:
|
|
68
|
-
(**
|
|
69
|
-
* @license React
|
|
70
|
-
* react-jsx-runtime.production.min.js
|
|
71
|
-
*
|
|
72
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*)
|
|
77
|
-
|
|
78
|
-
@sentry/core/build/esm/utils/env.js:
|
|
79
|
-
(*! __SENTRY_SDK_SOURCE__ *)
|
|
80
|
-
*/
|