(globalThis.webpackChunknotion_next=globalThis.webpackChunknotion_next||[]).push([[18960,57820],{12610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},14358:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0,t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let a="[Statsig] UnknownError";function i(e){return e instanceof Error?e:"string"==typeof e?Error(e):Error("An unknown error occurred.")}t.ErrorBoundary=class{constructor(e,t,n,r){this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=r,this._seen=new Set}wrap(e){try{(function(e){let t=new Set,n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).filter(e=>"function"==typeof(null==n?void 0:n[e])).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)})(e).forEach(t=>{let n=e[t];"$EB"in n||(e[t]=(...r)=>this._capture(t,()=>n.apply(e,r)),e[t].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){let e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=i(e))}_capture(e,t){try{let n=t();if(n&&n instanceof Promise)return n.catch(t=>this._onError(e,t));return n}catch(t){return this._onError(e,t),null}}_onError(e,o){try{n(668024).Log.warn(`Caught error in ${e}`,{error:o}),r(this,void 0,void 0,function*(){var r,l,s,u,c,f,d;let p=o||Error(a),h=p instanceof Error,g=h?p.name:"No Name",v=i(p);if(this._lastSeenError=v,this._seen.has(g))return;if(this._seen.add(g),null==(l=null==(r=this._options)?void 0:r.networkConfig)?void 0:l.preventAllNetworkTraffic){null==(s=this._emitter)||s.call(this,{name:"error",error:o,tag:e});return}let m=n(810686).SDKType._get(this._sdkKey),y=n(146512).StatsigMetadataProvider.get(),_=h?p.stack:function(e){try{return JSON.stringify(e)}catch(e){return a}}(p),b=Object.assign({tag:e,exception:g,info:_,statsigOptions:function(e){if(!e)return{};let t={};return Object.entries(e).forEach(([e,n])=>{switch(typeof n){case"number":case"bigint":case"boolean":t[String(e)]=n;break;case"string":n.length<50?t[String(e)]=n:t[String(e)]="set";break;case"object":"environment"===e?t.environment=n:"networkConfig"===e?t.networkConfig=n:t[String(e)]=null!=n?"set":"unset"}}),t}(this._options)},Object.assign(Object.assign({},y),{sdkType:m})),w=null!=(f=null==(c=null==(u=this._options)?void 0:u.networkConfig)?void 0:c.networkOverrideFunc)?f:fetch;yield w(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(m),"STATSIG-SDK-VERSION":String(y.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(b)}),null==(d=this._emitter)||d.call(this,{name:"error",error:o,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}},18107:(e,t,n)=>{"use strict";var r=n(746518),a=n(748981),i=n(326198),o=n(991291),l=n(206469);r({target:"Array",proto:!0},{at:function(e){var t=a(this),n=i(t),r=o(e),l=r>=0?r:n+r;return l<0||l>=n?void 0:t[l]}}),l("at")},32626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StableID=void 0;let r={},a={},i={};function o(e){return`statsig.stable_id.${(0,n(894681)._getStorageKey)(e)}`}function l(e,t){let r=o(t);try{(0,n(601638)._setObjectInStorage)(r,e)}catch(e){n(668024).Log.warn("Failed to save StableID to storage")}}function s(e,t){if(!a[t]||!document)return;let n=new Date;n.setFullYear(n.getFullYear()+1),document.cookie=`${u(t)}=${encodeURIComponent(e)}; expires=${n.toUTCString()}; path=/`}function u(e){return`statsig.stable_id.${(0,n(894681)._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{let t;if(i[e])return null;if(null!=r[e])return r[e];let c=null;return null!=(c=function(e){if(!a[e]||null==(0,n(600414)._getDocumentSafe)())return null;for(let t of document.cookie.split(";")){let[n,r]=t.trim().split("=");if(n===u(e))return decodeURIComponent(r)}return null}(e))?(r[e]=c,l(c,e)):(null==(t=o(e),c=(0,n(601638)._getObjectFromStorage)(t))&&(c=(0,n(537047).getUUID)()),l(c,e),s(c,e),r[e]=c),c},setOverride:(e,t)=>{r[t]=e,l(e,t),s(e,t)},_setCookiesEnabled:(e,t)=>{a[e]=t},_setDisabled:(e,t)=>{i[e]=t}}},36944:(e,t,n)=>{e.exports=n(873893)("round")},37253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;let n="statsig::config_exposure",r="statsig::gate_exposure",a="statsig::layer_exposure",i=(e,t,n,r,a)=>(n.bootstrapMetadata&&(r.bootstrapMetadata=n.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:l(n,r),secondaryExposures:a,time:Date.now()});function o(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}t._isExposureEvent=({eventName:e})=>e===r||e===n||e===a,t._createGateExposure=(e,t,n)=>{var a,l,s;let u={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null==(a=t.__evaluation)?void 0:a.version)!=null&&(u.configVersion=t.__evaluation.version),i(r,e,t.details,u,o(null!=(s=null==(l=t.__evaluation)?void 0:l.secondary_exposures)?s:[],n))},t._mapExposures=o,t._createConfigExposure=(e,t,r)=>{var a,l,s,u;let c={config:t.name,ruleID:t.ruleID};return(null==(a=t.__evaluation)?void 0:a.version)!=null&&(c.configVersion=t.__evaluation.version),(null==(l=t.__evaluation)?void 0:l.passed)!=null&&(c.rulePassed=String(t.__evaluation.passed)),i(n,e,t.details,c,o(null!=(u=null==(s=t.__evaluation)?void 0:s.secondary_exposures)?u:[],r))},t._createLayerParameterExposure=(e,t,n,r)=>{var l,s,u,c,f,d;let p=t.__evaluation,h=(null==(l=null==p?void 0:p.explicit_parameters)?void 0:l.includes(n))===!0,g="",v=null!=(s=null==p?void 0:p.undelegated_secondary_exposures)?s:[];h&&(g=null!=(u=p.allocated_experiment_name)?u:"",v=p.secondary_exposures);let m=null==(c=t.__evaluation)?void 0:c.parameter_rule_ids,y={config:t.name,parameterName:n,ruleID:null!=(f=null==m?void 0:m[n])?f:t.ruleID,allocatedExperiment:g,isExplicitParameter:String(h)};return(null==(d=t.__evaluation)?void 0:d.version)!=null&&(y.configVersion=t.__evaluation.version),i(a,e,t.details,y,o(v,r))};let l=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},38798:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>i,ob:()=>o});var r=n(296540);n(304146);var a="u"{"use strict";e.exports=n(322799)},54387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let r={disableExposureLog:!0};function a(e){return null==e||!1===e.disableExposureLog}function i(e,t){return null!=t&&!(0,n(636978)._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,o){return(l,s)=>{if(null==t)return s;let u=t[l];if(null==u||null!=s&&(0,n(636978)._typeOf)(s)!==u.param_type)return s;switch(u.ref_type){case"static":return u.value;case"gate":return e.getFeatureGate(u.gate_name,a(o)?void 0:r).value?u.pass_value:u.fail_value;case"dynamic_config":let c;return i(c=e.getDynamicConfig(u.config_name,a(o)?void 0:r).get(u.param_name),s)?s:c;case"experiment":let f;return i(f=e.getExperiment(u.experiment_name,a(o)?void 0:r).get(u.param_name),s)?s:f;case"layer":let d;return i(d=e.getLayer(u.layer_name,a(o)?void 0:r).get(u.param_name),s)?s:d;default:return s}}}},81570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0,t._normalizeUser=function(e,t,r){try{let n=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?n.statsigEnvironment=t.environment:null!=r&&(n.statsigEnvironment={tier:r}),n}catch(e){return n(668024).Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,n(483918)._DJB2Object)(e):null}},84351:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,n(843509),t.StatsigClientBase=class{constructor(e,t,r,a){var i,o,l,s;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const u=this.$emt.bind(this);(null==a?void 0:a.logLevel)!=null&&(n(668024).Log.level=a.logLevel),(null==a?void 0:a.disableStorage)&&n(601638).Storage._setDisabled(!0),(null==a?void 0:a.initialSessionID)&&n(339839).StatsigSession.overrideInitialSessionID(a.initialSessionID,e),(null==a?void 0:a.storageProvider)&&n(601638).Storage._setProvider(a.storageProvider),(null==a?void 0:a.enableCookies)&&n(32626).StableID._setCookiesEnabled(e,a.enableCookies),(null==a?void 0:a.disableStableID)&&n(32626).StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=a?a:{},this._memoCache={},this.overrideAdapter=null!=(i=null==a?void 0:a.overrideAdapter)?i:null,this._logger=new(n(85434)).EventLogger(e,u,r,a),this._errorBoundary=new(n(14358)).ErrorBoundary(e,a,u),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,a,r),this.storageProvider=n(601638).Storage,null==(s=null==(l=null==(o=this.overrideAdapter)?void 0:o.loadFromStorage)?void 0:l.call(o))||s.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,t){var r;if((0,n(600414)._isServerEnv)())return;let a=(0,n(843509)._getStatsigGlobal)(),i=null!=(r=a.instances)?r:{};null!=i[e]&&n(668024).Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),i[e]=t,a.firstInstance||(a.firstInstance=t),a.instances=i,__STATSIG__=a}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,n(601638).Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,n(32626).StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(n(647754).LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return r(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){let n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let r=t=>{try{t(e)}catch(r){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,r);n(668024).Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>r(e)),null==(t=this._listeners["*"])||t.forEach(r)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,n){(null==n?void 0:n.disableExposureLog)===!0?this._logger.incrementNonExposureCount(e):this._logger.enqueue(t)}_memoize(e,t){return(r,a)=>{if(this._options.disableEvaluationMemoization)return t(r,a);let i=(0,n(240843).createMemoKey)(e,r,a);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(r,a)),this._memoCache[i]):t(r,a)}}}},85434:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let a={},i="startup",o="gained_focus";class l{static _safeFlushAndForget(e){var t;null==(t=a[e])||t.flush().catch(()=>{})}static _safeRetryFailedLogs(e){var t;null==(t=a[e])||t._retryFailedLogs(o)}constructor(e,t,r,a){var i,o;this._sdkKey=e,this._emitter=t,this._network=r,this._options=a,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!=(i=null==a?void 0:a.loggingEnabled)?i:(null==a?void 0:a.disableLogging)===!0?n(647754).LoggingEnabledOption.disabled:n(647754).LoggingEnabledOption.browserOnly,(null==a?void 0:a.loggingEnabled)&&void 0!==a.disableLogging&&n(668024).Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!=(o=null==a?void 0:a.loggingBufferMaxSize)?o:100;const l=null==a?void 0:a.networkConfig;this._logEventUrlConfig=new(n(188873)).UrlConfiguration(n(12610).Endpoint._rgstr,null==l?void 0:l.logEventUrl,null==l?void 0:l.api,null==l?void 0:l.logEventFallbackUrls)}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e){this._loggingEnabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&l._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;let n=null!=(t=this._nonExposedChecks[e])?t:0;this._nonExposedChecks[e]=n+1}reset(){this._lastExposureTimeMap={}}start(){var e;let t=(0,n(600414)._isServerEnv)();t&&(null==(e=this._options)?void 0:e.loggingEnabled)!=="always"||(a[this._sdkKey]=this,t||(0,n(592701)._subscribeToVisiblityChanged)(e=>{"background"===e?l._safeFlushAndForget(this._sdkKey):"foreground"===e&&l._safeRetryFailedLogs(this._sdkKey)}),this._retryFailedLogs(i),this._startBackgroundFlushInterval())}stop(){return r(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete a[this._sdkKey],yield this.flush()})}flush(){return r(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let e=this._queue;this._queue=[],yield this._sendEvents(e)})}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout(()=>l._safeFlushAndForget(this._sdkKey),200))}_shouldLogEvent(e){var t;if((null==(t=this._options)?void 0:t.loggingEnabled)!=="always"&&(0,n(600414)._isServerEnv)())return!1;if(!(0,n(37253)._isExposureEvent)(e))return!0;let r=e.user?e.user:{statsigEnvironment:void 0},a=(0,n(894681)._getUserStorageKey)(this._sdkKey,r),i=e.metadata?e.metadata:{},o=[e.eventName,a,i.gate,i.config,i.ruleID,i.allocatedExperiment,i.parameterName,String(i.isExplicitParameter),i.reason].join("|"),l=this._lastExposureTimeMap[o],s=Date.now();return(!l||!(s-l<6e5))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[o]=s,!0)}_sendEvents(e){var t,a;return r(this,void 0,void 0,function*(){if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(e),!1;try{let r=(0,n(592701)._isUnloading)()&&this._network.isBeaconSupported()&&(null==(a=null==(t=this._options)?void 0:t.networkConfig)?void 0:a.networkOverrideFunc)==null;if(this._emitter({name:"pre_logs_flushed",events:e}),(r?yield this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success)return this._emitter({name:"logs_flushed",events:e}),!0;return n(668024).Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1}catch(e){return n(668024).Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(e){var t;return r(this,void 0,void 0,function*(){let n=yield this._network.post(this._getRequestData(e)),r=null!=(t=null==n?void 0:n.code)?t:-1;return{success:r>=200&&r<300}})}_sendEventsViaBeacon(e){return r(this,void 0,void 0,function*(){return{success:yield this._network.beacon(this._getRequestData(e))}})}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[n(12610).NetworkParam.EventCount]:String(e.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();let t=this._getStorageKey();try{(0,n(601638)._setObjectInStorage)(t,e)}catch(e){n(668024).Log.warn("Unable to save failed logs to storage")}}_retryFailedLogs(e){let t=this._getStorageKey();r(this,void 0,void 0,function*(){n(601638).Storage.isReady()||(yield n(601638).Storage.isReadyResolver());let r=(0,n(601638)._getObjectFromStorage)(t);!r||(e===i&&n(601638).Storage.removeItem(t),(yield this._sendEvents(r))&&e===o&&n(601638).Storage.removeItem(t))}).catch(()=>{n(668024).Log.warn("Failed to flush stored logs")})}_getStorageKey(){return`statsig.failed_logs.${(0,n(483918)._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);let t={},r=this._getCurrentPageUrl();r&&(t.statsigMetadata={currentPage:r});let a=Object.assign(Object.assign({},e),t);n(668024).Log.debug("Enqueued Event:",a),this._queue.push(a)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var e;if((null==(e=this._options)?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,n(600414)._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;let n=setInterval(()=>{let e=a[this._sdkKey];e&&e._flushIntervalId===n?l._safeFlushAndForget(this._sdkKey):clearInterval(n)},null!=(t=null==(e=this._options)?void 0:e.loggingIntervalMs)?t:1e4);this._flushIntervalId=n}}t.EventLogger=l},87677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this._sdkKey=e,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,n(636978)._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(e,t){var r;if(!e)return!1;let a=(0,n(636978)._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=a&&(this._source=e.source,(null==a?void 0:a.has_updates)!==!0||(this._rawValues=e.data,this._lcut=a.time,this._receivedAt=e.receivedAt,this._values=a,this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,a),e.source&&a.user&&this._setWarningState(t,a),n(636978).SDKFlags.setFlags(this._sdkKey,null!=(r=a.sdk_flags)?r:{}),!0))}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){var t;return this._getDetailedStoreResult(null==(t=this._values)?void 0:t.feature_gates,e)}getConfig(e){var t;return this._getDetailedStoreResult(null==(t=this._values)?void 0:t.dynamic_configs,e)}getLayer(e){var t;return this._getDetailedStoreResult(null==(t=this._values)?void 0:t.layer_configs,e)}getParamStore(e){var t;return this._getDetailedStoreResult(null==(t=this._values)?void 0:t.param_stores,e)}getSource(){return this._source}getExposureMapping(){var e;return null==(e=this._values)?void 0:e.exposures}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;let n={};return t.user&&(n.user=t.user),t.sdkInfo&&(n.generatorSDKInfo=t.sdkInfo),n.lcut=t.time,n}_getDetailedStoreResult(e,t){let r=null;return e&&(r=e[t]?e[t]:e[(0,n(636978)._DJB2)(t)]),{result:r,details:this._getDetails(null==r)}}_setWarningState(e,t){var r,a;let i=n(636978).StableID.get(this._sdkKey);if((null==(r=e.customIDs)?void 0:r.stableID)!==i&&((null==(a=e.customIDs)?void 0:a.stableID)||i))return void this._warnings.add("StableIDMismatch");if("user"in t){let r=t.user;(0,n(636978)._getFullUserHash)(e)!==(0,n(636978)._getFullUserHash)(r)&&this._warnings.add("PartialUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,n;let r=this.getCurrentSourceDetails(),a=r.reason,i=null!=(t=r.warnings)?t:[];"Bootstrap"===this._source&&i.length>0&&(a+=i[0]),"Uninitialized"!==a&&"NoValues"!==a&&(a=`${a}:${e?"Unrecognized":"Recognized"}`);let o="Bootstrap"===this._source&&null!=(n=this._bootstrapMetadata)?n:void 0;return o&&(r.bootstrapMetadata=o),Object.assign(Object.assign({},r),{reason:a})}}},94469:(e,t,n)=>{var r=Math.max,a=Math.min;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return -1;var l=o-1;return void 0!==i&&(l=n(761489)(i),l=i<0?r(o+l,0):a(l,o-1)),n(2523)(e,n(315389)(t,3),l,!0)}},99652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},105138:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0,t.StatsigClient=n(907686).default,a(n(636978),t),t.default=Object.assign((0,n(636978)._getStatsigGlobal)(),{StatsigClient:n(907686).default})},124184:(e,t,n)=>{"use strict";n.d(t,{HM:()=>o,JF:()=>l,bN:()=>u,yU:()=>s});var r=n(296540),a=n(569193),i=n(687683);function o(e){(0,a.V1)(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var l=(0,n(331635).Cl)((0,n(331635).Cl)({},i.JF),{textComponent:r.Fragment});function s(e){return function(t){return e(r.Children.toArray(t))}}function u(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){var a,i,o;function l(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",l),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&(a=e,i=l,o={once:!0},"function"==typeof a.on&&g(a,"error",i,o))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=s(e))>0&&o.length>a&&!o.warned){o.warned=!0;var a,i,o,u=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=c.bind(r);return a.listener=n,r.wrapFn=a,a}function d(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var o,l=Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else for(var u=s.length,c=h(s,u),n=0;n=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},146512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.17.1";let n={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>n,add:e=>{n=Object.assign(Object.assign({},n),e)}}},150104:(e,t,n)=>{function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(r.Cache||n(353661)),a}r.Cache=n(353661),e.exports=r},169982:(e,t,n)=>{"use strict";e.exports=n(307463)},183673:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t{"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){return(n(732268).isString(e)&&(e=g(e)),e instanceof r)?e.format():r.prototype.format.call(e)},t.Url=r;var a=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ",`\r`,` `," "])),s=["%","/","?",";","#"].concat(l),u=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g(e,t,a){if(e&&n(732268).isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,a),i}r.prototype.parse=function(e,t,r){if(!n(732268).isString(e))throw TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),g=-1!==i&&i127?L+="x":L+=N[T];if(!L.match(c)){var j=P.slice(0,E),M=P.slice(E+1),R=N.match(f);R&&(j.push(R[1]),M.unshift(R[2])),M.length&&(m="/"+M.join(".")+m),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n(361270).toASCII(this.hostname));var A=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+A,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!d[b])for(var E=0,D=l.length;E0)&&a.host.split("@");E&&(a.auth=E.shift(),a.host=a.hostname=E.shift())}return a.search=e.search,a.query=e.query,n(732268).isNull(a.pathname)&&n(732268).isNull(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.href=a.format(),a}if(!k.length)return a.pathname=null,a.search?a.path="/"+a.search:a.path=null,a.href=a.format(),a;for(var C=k.slice(-1)[0],O=(a.host||e.host||k.length>1)&&("."===C||".."===C)||""===C,P=0,D=k.length;D>=0;D--)"."===(C=k[D])?k.splice(D,1):".."===C?(k.splice(D,1),P++):P&&(k.splice(D,1),P--);if(!w&&!S)for(;P--;)k.unshift("..");w&&""!==k[0]&&(!k[0]||"/"!==k[0].charAt(0))&&k.unshift(""),O&&"/"!==k.join("/").substr(-1)&&k.push("");var N=""===k[0]||k[0]&&"/"===k[0].charAt(0);if(x){a.hostname=a.host=N?"":k.length?k.shift():"";var E=!!(a.host&&a.host.indexOf("@")>0)&&a.host.split("@");E&&(a.auth=E.shift(),a.host=a.hostname=E.shift())}return(w=w||a.host&&k.length)&&!N&&k.unshift(""),k.length?a.pathname=k.join("/"):(a.pathname=null,a.path=null),n(732268).isNull(a.pathname)&&n(732268).isNull(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.auth=e.auth||a.auth,a.slashes=a.slashes||e.slashes,a.href=a.format(),a},r.prototype.parseHost=function(){var e=this.host,t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},188873:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let r={[n(12610).Endpoint._initialize]:"i",[n(12610).Endpoint._rgstr]:"e",[n(12610).Endpoint._download_config_specs]:"d"};t.UrlConfiguration=class{constructor(e,t,a,i){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=r[e],t&&(this.customUrl=t),!t&&a&&(this.customUrl=a.endsWith("/")?`${a}${e}`:`${a}/${e}`),i&&(this.fallbackUrls=i);const o=n(12610).NetworkDefault[e];this.defaultUrl=`${o}/${e}`}getUrl(){var e;return null!=(e=this.customUrl)?e:this.defaultUrl}getChecksum(){var e;let t=(null!=(e=this.fallbackUrls)?e:[]).sort().join(",");return(0,n(483918)._DJB2)(this.customUrl+t)}}},204124:(e,t,n)=>{e.exports=n(745539)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})},214263:function(e,t,n){var r,a,i;!function(o){"use strict";a=[n(540343)],void 0===(i="function"==typeof(r=o)?r.apply(t,a):r)||(e.exports=i)}(function(e){"use strict";var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(` `).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;var a=this.extractLocation(r?r[1]:n);return new e({functionName:r&&n||void 0,fileName:["eval",""].indexOf(a[0])>-1?void 0:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split(` `).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),a=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(` `)>-1&&e.message.split(` `).length>e.stacktrace.split(` `).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(` `),a=[],i=2,o=r.length;i/,"$2").replace(/\([^)]*\)/g,"")||void 0;return i.match(/\(([^)]*)\)/)&&(n=i.replace(/^[^(]+\(([^)]*)\)$/,"$1")),new e({functionName:o,args:void 0===n||"[arguments not available]"===n?void 0:n.split(","),fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)}}})},221020:(e,t,n)=>{"use strict";var r=n(296540),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},227885:(e,t,n)=>{"use strict";n.d(t,{XU:()=>d,dT:()=>h,Gr:()=>p});var r,a,i,o,l=n(296540),s=n(706442);(i=r||(r={})).formatDate="FormattedDate",i.formatTime="FormattedTime",i.formatNumber="FormattedNumber",i.formatList="FormattedList",i.formatDisplayName="FormattedDisplayName",(o=a||(a={})).formatDate="FormattedDateParts",o.formatTime="FormattedTimeParts",o.formatNumber="FormattedNumberParts",o.formatList="FormattedListParts";var u=function(e){var t=(0,s.A)(),r=e.value,a=e.children,i=(0,n(331635).Tt)(e,["value","children"]);return a(t.formatNumberToParts(r,i))};function c(e){var t=function(t){var r=(0,s.A)(),a=t.value,i=t.children,o=(0,n(331635).Tt)(t,["value","children"]),l="string"==typeof a?new Date(a||0):a;return i("formatDate"===e?r.formatDateToParts(l,o):r.formatTimeToParts(l,o))};return t.displayName=a[e],t}function f(e){var t=function(t){var r=(0,s.A)(),a=t.value,i=t.children,o=(0,n(331635).Tt)(t,["value","children"]),u=r[e](a,o);if("function"==typeof i)return i(u);var c=r.textComponent||l.Fragment;return l.createElement(c,null,u)};return t.displayName=r[e],t}u.displayName="FormattedNumberParts",u.displayName="FormattedNumberParts";var d=f("formatDate");f("formatTime");var p=f("formatNumber"),h=f("formatList");f("formatDisplayName"),c("formatDate"),c("formatTime")},230882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let n=new Map,r="start";function a(e,t,n,r){return Object.assign({key:n,action:t,step:r,timestamp:Date.now()},e)}function i(e,t){var r;let a=null!=(r=n.get(e))?r:[];a.push(t),n.set(e,a)}function o(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>n.get(e),_markInitOverallStart:e=>{i(e,a({},r,"overall"))},_markInitOverallEnd:(e,t,n)=>{i(e,a({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{i(e,a(t,r,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{i(e,a(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{i(e,a({},r,"initialize","process"))},_markInitProcessEnd:(e,t)=>{i(e,a(t,"end","initialize","process"))},_clearMarkers:e=>{n.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:o(e,"code"),name:o(e,"name"),message:o(e,"message")}},_getDiagnosticsData(e,n,r,a){var i;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null==(i=null==e?void 0:e.headers)?void 0:i.get("x-statsig-region"),isDelta:!0===r.includes('"is_delta":true')||void 0,attempt:n,error:t.Diagnostics._formatError(a)}},_enqueueDiagnosticsEvent(e,n,r,a){let i=t.Diagnostics._getMarkers(r);if(null==i||i.length<=0)return -1;let o=i[i.length-1].timestamp-i[0].timestamp;t.Diagnostics._clearMarkers(r);let l={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:i.slice(),statsigOptions:a},time:Date.now()};return n.enqueue(l),o}}},240843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_layer:"l",_paramStore:"p"};let n=new Set([]),r=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,a){let i=`${e}|${t}`;if(!a)return i;for(let e of Object.keys(a)){if(r.has(e))return;n.has(e)?i+=`|${e}=true`:i+=`|${e}=${a[e]}`}return i}},244703:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,n(843509);let a=new Set([408,500,502,503,504,522,524,599]);t.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new(n(250052)).NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"u">typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){let e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){return r(this,void 0,void 0,function*(){if(!i(e))return!1;let t=this._getInternalRequestArgs("POST",e);yield this._tryToCompressBody(t);let n=yield this._getPopulatedURL(t),r=navigator;return r.sendBeacon.bind(r)(n,t.body)})}post(e){return r(this,void 0,void 0,function*(){let t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){var t,o,s,u;return r(this,void 0,void 0,function*(){var c,f,d,p,h;if(!i(e)||this._netConfig.preventAllNetworkTraffic)return null;let{method:g,body:v,retries:m,attempt:y}=e,_=e.urlConfig.endpoint;if(this._isRateLimited(_))return n(668024).Log.warn(`Request to ${_} was blocked because you are making requests too frequently.`),null;let b=null!=y?y:1,w="u">typeof AbortController?new AbortController:null,S=setTimeout(()=>{null==w||w.abort(`Timeout of ${this._timeout}ms expired.`)},this._timeout),k=yield this._getPopulatedURL(e),x=null,E=(0,n(592701)._isUnloading)();try{let r={method:g,body:v,headers:Object.assign({},e.headers),signal:null==w?void 0:w.signal,priority:e.priority,keepalive:E};c=e,f=b,c.urlConfig.endpoint===n(12610).Endpoint._initialize&&n(230882).Diagnostics._markInitNetworkReqStart(c.sdkKey,{attempt:f});let a=this._leakyBucket[_];a&&(a.lastRequestTime=Date.now(),this._leakyBucket[_]=a);let i=null!=(t=this._netConfig.networkOverrideFunc)?t:fetch;if(x=yield i(k,r),clearTimeout(S),!x.ok){let e=yield x.text().catch(()=>"No Text"),t=Error(`NetworkError: ${k} ${e}`);throw t.name="NetworkError",t}let o=yield x.text();return l(e,x,b,o),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:o,code:x.status}}catch(c){let t=(d=w,p=c,(null==d?void 0:d.signal.aborted)&&"string"==typeof d.signal.reason?d.signal.reason:"string"==typeof p?p:p instanceof Error?`${p.name}: ${p.message}`:"Unknown Error"),i=(null==(h=w)?void 0:h.signal.aborted)&&"string"==typeof h.signal.reason&&h.signal.reason.includes("Timeout")||!1;if(l(e,x,b,"",c),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,i))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!m||b>m||!a.has(null!=(o=null==x?void 0:x.status)?o:500)){null==(s=this._emitter)||s.call(this,{name:"error",error:c,tag:n(971180).ErrorTag.NetworkError,requestArgs:e});let r=`A networking error occurred during ${g} request to ${k}.`;return n(668024).Log.error(r,t,c),null==(u=this._errorBoundary)||u.attachErrorIfNoneExists(r),null}return yield function(e){return r(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(b),this._sendRequest(Object.assign(Object.assign({},e),{retries:m,attempt:b+1}))}})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||(null==e?void 0:e.disableCompression)!==!0||(t=n(647754).LogEventCompressionMode.Disabled),t||(t=n(647754).LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;let n=Date.now(),r=null!=(t=this._leakyBucket[e])?t:{count:0,lastRequestTime:n},a=Math.floor((n-r.lastRequestTime)*.05);return r.count=Math.max(0,r.count-a),r.count>=50||(r.count+=1,r.lastRequestTime=n,this._leakyBucket[e]=r,!1)}_getPopulatedURL(e){var t;return r(this,void 0,void 0,function*(){let r=null!=(t=e.fallbackUrl)?t:e.urlConfig.getUrl();(e.urlConfig.endpoint===n(12610).Endpoint._initialize||e.urlConfig.endpoint===n(12610).Endpoint._download_config_specs)&&(this._lastUsedInitUrl=r);let a=Object.assign({[n(12610).NetworkParam.SdkKey]:e.sdkKey,[n(12610).NetworkParam.SdkType]:n(810686).SDKType._get(e.sdkKey),[n(12610).NetworkParam.SdkVersion]:n(146512).SDK_VERSION,[n(12610).NetworkParam.Time]:String(Date.now()),[n(12610).NetworkParam.SessionID]:n(339839).SessionID.get(e.sdkKey)},e.params),i=Object.keys(a).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(a[e])}`).join("&");return`${r}${i?`?${i}`:""}`})}_tryEncodeBody(e){var t;let r=(0,n(600414)._getWindowSafe)(),a=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof a&&null==(0,n(843509)._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{e.body=r.btoa(a).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[n(12610).NetworkParam.StatsigEncoded]:"1"})}catch(t){n(668024).Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){var t;return r(this,void 0,void 0,function*(){let r=e.body;if("string"==typeof r&&function(e,t){if(!e.isCompressable||null!=(0,n(843509)._getStatsigGlobalFlag)("no-compress")||"u"e+t.length,0),f=new Uint8Array(c),d=0;for(let e of u)f.set(e,d),d+=e.length;e.body=f,e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[n(12610).NetworkParam.IsGzipped]:"1"})}catch(t){n(668024).Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}})}_getInternalRequestArgs(e,t){let n=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),r=Object.assign(Object.assign({},t),{method:e,fallbackUrl:n});return"data"in t&&o(r,t.data),r}};let i=e=>!!e.sdkKey||(n(668024).Log.warn("Unable to make request without an SDK key"),!1),o=(e,t)=>{let{sdkKey:r,fallbackUrl:a}=e,i=n(32626).StableID.get(r),o=n(339839).SessionID.get(r),l=n(810686).SDKType._get(r);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},n(146512).StatsigMetadataProvider.get()),{stableID:i,sessionID:o,sdkType:l,fallbackUrl:a})}))};function l(e,t,r,a,i){e.urlConfig.endpoint===n(12610).Endpoint._initialize&&n(230882).Diagnostics._markInitNetworkReqEnd(e.sdkKey,n(230882).Diagnostics._getDiagnosticsData(t,r,a,i))}},250052:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};function a(e,t){var n;let r=null!=(n=null==e?void 0:e.toLowerCase())?n:"";return t||r.includes("uncaught exception")||r.includes("failed to fetch")||r.includes("networkerror when attempting to fetch resource")}function i(e){return`statsig.network_fallback.${(0,n(483918)._DJB2)(e)}`}function o(e,t){let r=i(e);t&&0!==Object.keys(t).length?n(601638).Storage.setItem(r,JSON.stringify(t)):n(601638).Storage.removeItem(r)}Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0,t.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null==(t=e.networkConfig)?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var n;let r=null==(n=this._fallbackInfo)?void 0:n[t.endpoint];r&&(r.expiryTime=Date.now()+6048e5,o(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:r})))}getActiveFallbackUrl(e,t){var r,a;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let l=this._fallbackInfo;null==l&&(l=null!=(r=function(e){let t=i(e),r=n(601638).Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return n(668024).Log.error("Failed to parse FallbackInfo"),null}}(e))?r:{},this._fallbackInfo=l);let s=l[t.endpoint];return!s||Date.now()>(null!=(a=s.expiryTime)?a:0)||t.getChecksum()!==s.urlConfigChecksum?(delete l[t.endpoint],this._fallbackInfo=l,o(e,this._fallbackInfo),null):s.url?s.url:null}tryFetchUpdatedFallbackInfo(e,t,n,i){var o,l;return r(this,void 0,void 0,function*(){try{if(!a(n,i))return!1;let r=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,l=this._pickNewFallbackUrl(null==(o=this._fallbackInfo)?void 0:o[t.endpoint],r);if(!l)return!1;return this._updateFallbackInfoWithNewUrl(e,t,l),!0}catch(e){return null==(l=this._errorBoundary)||l.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,n){var r,a,i;let l={urlConfigChecksum:t.getChecksum(),url:n,expiryTime:Date.now()+6048e5,previous:[]},s=t.endpoint,u=null==(r=this._fallbackInfo)?void 0:r[s];u&&l.previous.push(...u.previous),l.previous.length>10&&(l.previous=[]);let c=null==(i=null==(a=this._fallbackInfo)?void 0:a[s])?void 0:i.url;null!=c&&l.previous.push(c),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[s]:l}),o(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){var t;return r(this,void 0,void 0,function*(){let r=this._dnsQueryCooldowns[e.endpoint];if(r&&Date.now()1){let e=n[1];e.endsWith("/")&&(e=e.slice(0,-1)),a.push(`https://${e}${o}`)}}return a})}_pickNewFallbackUrl(e,t){var n;if(null==t)return null;let r=new Set(null!=(n=null==e?void 0:e.previous)?n:[]),a=null==e?void 0:e.url,i=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!r.has(e)&&t!==a){i=t;break}}return i}},t._isDomainFailure=a},251148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0,t.createUpdateDetails=(e,t,n,r,a,i)=>({duration:n,source:t,success:e,error:r,sourceUrl:a,warnings:i}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},272669:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA256=void 0,t.SHA256=function(e){return new i().update(e)};let n=[-0x80000000,8388608,32768,128],r=[24,16,8,0],a=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];class i{constructor(){this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.lastByteIndex=-1}update(e){let t,n;if(this.finalized)return this;if("string"!=typeof e)throw Error('Must be of type "string"');let a=0,i=e.length,o=this.blocks;for(;a>2]|=t<>2]|=(192|t>>6)<=57344?o[n>>2]|=(224|t>>12)<>2]|=(240|t>>18)<>2]|=(128|t>>12&63)<>2]|=(128|t>>6&63)<>2]|=(128|63&t)<=64?(this.block=o[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}finalize(){if(this.finalized)return;this.finalized=!0;let e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}hash(){let e=this.blocks,t=this.h0,n=this.h1,r=this.h2,i=this.h3,o=this.h4,l=this.h5,s=this.h6,u=this.h7,c,f,d,p,h,g,v,m,y,_;for(c=16;c<64;++c)f=((h=e[c-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,d=((h=e[c-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,e[c]=e[c-16]+f+e[c-7]+d|0;for(c=0,_=n&r;c<64;c+=4)this.first?(v=0x2a01a605,u=(h=e[0]-0xc881298)-0x5ab00ac6|0,i=h+0x8909ae5|0,this.first=!1):(f=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),d=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),p=(v=t&n)^t&r^_,h=u+d+(o&l^~o&s)+a[c]+e[c],g=f+p,u=i+h|0,i=h+g|0),f=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),d=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),p=(m=i&t)^i&n^v,h=s+d+(u&o^~u&l)+a[c+1]+e[c+1],g=f+p,s=r+h|0,f=((r=h+g|0)>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),d=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),p=(y=r&i)^r&t^m,h=l+d+(s&u^~s&o)+a[c+2]+e[c+2],g=f+p,l=n+h|0,f=((n=h+g|0)>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),d=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7),p=(_=n&r)^n&i^y,h=o+d+(l&s^~l&u)+a[c+3]+e[c+3],g=f+p,o=t+h|0,t=h+g|0;this.h0=this.h0+t|0,this.h1=this.h1+n|0,this.h2=this.h2+r|0,this.h3=this.h3+i|0,this.h4=this.h4+o|0,this.h5=this.h5+l|0,this.h6=this.h6+s|0,this.h7=this.h7+u|0}arrayBuffer(){return this._getOutputs().buffer}dataView(){return this._getOutputs().dataView}_getOutputs(){this.finalize();let e=new ArrayBuffer(32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),t.setUint32(28,this.h7),{dataView:t,buffer:e}}}},286913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},296540:(e,t,n)=>{"use strict";e.exports=n(815287)},304146:(e,t,n)=>{"use strict";var r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n(44363).isMemo(e)?i:o[e.$$typeof]||r}o[n(44363).ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n(44363).Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var o=u(n);c&&(o=o.concat(c(n)));for(var h=l(t),g=l(n),v=0;v{e.exports=n(242e3)(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]})},307463:(e,t)=>{"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,a=e[r];if(0>>1;ri(s,n))ui(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else if(ui(c,n))e[r]=c,e[u]=n,r=u;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o,l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],f=[],d=1,p=null,h=3,g=!1,v=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,b="u">typeof setImmediate?setImmediate:null;function w(e){for(var t=r(f);null!==t;){if(null===t.callback)a(f);else if(t.startTime<=e)a(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function S(e){if(m=!1,w(e),!v)if(null!==r(c))v=!0,I(k);else{var t=r(f);null!==t&&j(S,t.startTime-e)}}function k(e,n){v=!1,m&&(m=!1,_(C),C=-1),g=!0;var i=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!D());){var o=p.callback;if("function"==typeof o){p.callback=null,h=p.priorityLevel;var l=o(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?p.callback=l:p===r(c)&&a(c),w(n)}else a(c);p=r(c)}if(null!==p)var s=!0;else{var u=r(f);null!==u&&j(S,u.startTime-n),s=!1}return s}finally{p=null,h=i,g=!1}}"u">typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x=!1,E=null,C=-1,O=5,P=-1;function D(){return!(t.unstable_now()-Ptypeof MessageChannel){var L=new MessageChannel,T=L.port2;L.port1.onmessage=N,o=function(){T.postMessage(null)}}else o=function(){y(N,0)};function I(e){E=e,x||(x=!0,o())}function j(e,n){C=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||g||(v=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125o?(e.sortIndex=i,n(f,e),null===r(c)&&e===r(f)&&(m?(_(C),C=-1):m=!0,j(S,i-o))):(e.sortIndex=l,n(c,e),v||g||(v=!0,I(k))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},320295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resultToLayerEval=t.resultToConfigEval=t.resultToGateEval=t.makeEvalResult=void 0,t.makeEvalResult=function(e){return Object.assign(Object.assign({},{unsupported:!1,bool_value:!1,rule_id:"",secondary_exposures:[],json_value:{},explicit_parameters:null,allocated_experiment_name:null,is_experiment_group:!1,group_name:null,undelegated_secondary_exposures:void 0}),e)},t.resultToGateEval=function(e,t){var n;return{name:e.name,id_type:e.idType,rule_id:t.rule_id,value:t.bool_value,secondary_exposures:t.secondary_exposures,version:null==(n=e.version)?void 0:n.toString()}},t.resultToConfigEval=function(e,t){var n,r,a;return{name:e.name,id_type:e.idType,rule_id:t.rule_id,value:t.json_value,secondary_exposures:t.secondary_exposures,group:null!=(n=t.group_name)?n:"",group_name:null!=(r=t.group_name)?r:void 0,is_device_based:!1,is_experiment_active:e.isActive,is_user_in_experiment:t.is_experiment_group,version:null==(a=e.version)?void 0:a.toString(),passed:t.bool_value}},t.resultToLayerEval=function(e,t,n){var r,a,i,o,l;return{name:e.name,rule_id:n.rule_id,value:n.json_value,secondary_exposures:n.secondary_exposures,undelegated_secondary_exposures:n.undelegated_secondary_exposures,allocated_experiment_name:null!=(r=n.allocated_experiment_name)?r:"",explicit_parameters:null!=(a=n.explicit_parameters)?a:[],group:null!=(i=n.group_name)?i:"",group_name:null!=(o=n.group_name)?o:void 0,is_device_based:!1,is_experiment_active:null==t?void 0:t.isActive,is_user_in_experiment:n.is_experiment_group,version:null==(l=e.version)?void 0:l.toString()}}},322799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case l:case o:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case g:case s:return e;default:return t}}case a:return t}}}function S(e){return w(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=g,t.Portal=a,t.Profiler=l,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===m)},t.typeOf=w},331635:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>p,C6:()=>a,Cl:()=>i,Ju:()=>u,N3:()=>d,Tt:()=>o,YH:()=>s,fX:()=>f,sH:()=>l,xN:()=>h,zs:()=>c});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function l(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var u=[l,s];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function f(e,t,n){if(n||2==arguments.length)for(var r,a=0,i=t.length;a1||l(e,t)})},t&&(r[e]=t(r[e])))}function l(e,t){try{var n;(n=a[e](t)).value instanceof d?Promise.resolve(n.value.v).then(s,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}}function s(e){l("next",e)}function u(e){l("throw",e)}function c(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function h(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){var i,o,l;i=r,o=a,l=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:l})},o)})}}}"function"==typeof SuppressedError&&SuppressedError},333031:(e,t,n)=>{e.exports=n(269302)(function(e,t){if(null==e)return[];var r=t.length;return r>1&&n(936800)(e,t[0],t[1])?t=[]:r>2&&n(936800)(t[0],t[1],t[2])&&(t=[t[0]]),n(146155)(e,n(983120)(t,1),[])})},336119:(e,t,n)=>{e.exports=function(e){return e&&e.length?n(17721)(e,n(383488)):0}},339839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let r={};function a(e,t){return setTimeout(()=>{var t;let r=null==(t=(0,n(843509)._getStatsigGlobal)())?void 0:t.instance(e);r&&r.$emt({name:"session_expired"})},t)}function i(e){return`statsig.session_id.${(0,n(894681)._getStorageKey)(e)}`}t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:e=>{var t;let o,l,s;return null==r[e]&&(r[e]=(l=(o=i(t=e),(0,n(601638)._getObjectFromStorage)(o)),s=Date.now(),l||(l={sessionID:(0,n(537047).getUUID)(),startTime:s,lastUpdate:s}),{data:l,sdkKey:t})),function(e){let t=Date.now(),r=e.data,o=e.sdkKey;if(function({lastUpdate:e}){return Date.now()-e>18e5}(r)||function({startTime:e}){return Date.now()-e>144e5}(r)){r.sessionID=(0,n(537047).getUUID)(),r.startTime=t;let e=null==__STATSIG__?void 0:__STATSIG__.instance(o);e&&e.$emt({name:"session_expired"})}r.lastUpdate=t,function(e,t){let r=i(t);try{(0,n(601638)._setObjectInStorage)(r,e)}catch(e){n(668024).Log.warn("Failed to save SessionID")}}(r,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);let l=t-r.startTime;return e.idleTimeoutID=a(o,18e5),e.ageTimeoutID=a(o,144e5-l),e}(r[e])},overrideInitialSessionID:(e,t)=>{var n,a;let i;r[t]=(n=e,a=t,{data:{sessionID:n,startTime:i=Date.now(),lastUpdate:i},sdkKey:a})}}},355083:(e,t,n)=>{e.exports=function(e){return n(182609)(e,n(383488))}},360895:(e,t,n)=>{e.exports=n(269302)(function(e,t,r){return n(420085)(e,n(399374)(t)||0,r)})},365694:(e,t,n)=>{"use strict";function r(e,t){null==e||e.forEach(e=>{delete t[e]})}Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0,t._resolveDeltasResponse=function(e,t){var a,i,o;let l=(0,n(636978)._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!l)return{hadBadDeltaChecksum:!0};let s=(r((o=(a=e,i=l,Object.assign(Object.assign(Object.assign({},a),i),{feature_gates:Object.assign(Object.assign({},a.feature_gates),i.feature_gates),layer_configs:Object.assign(Object.assign({},a.layer_configs),i.layer_configs),dynamic_configs:Object.assign(Object.assign({},a.dynamic_configs),i.dynamic_configs)}))).deleted_gates,o.feature_gates),delete o.deleted_gates,r(o.deleted_configs,o.dynamic_configs),delete o.deleted_configs,r(o.deleted_layers,o.layer_configs),delete o.deleted_layers,o),u=(0,n(636978)._DJB2Object)({feature_gates:s.feature_gates,dynamic_configs:s.dynamic_configs,layer_configs:s.layer_configs},2);return u!==l.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:u,badMergedConfigs:s,badFullResponse:l.deltas_full_response}:JSON.stringify(s)}},385638:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};function a(e,t,r,a){return{source:e,data:t,receivedAt:Date.now(),stableID:r,fullUserHash:(0,n(81570)._getFullUserHash)(a)}}Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0,t.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new i}attach(e,t,n){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,n(81570)._normalizeUser)(e,this._options),r=this._getCacheKey(t),a=this._inMemoryCache.get(r,t);if(a)return a;let i=this._loadFromCache(r);return i?(this._inMemoryCache.add(r,i),this._inMemoryCache.get(r,t)):null}setData(e,t){let r=t&&(0,n(81570)._normalizeUser)(t,this._options),i=this._getCacheKey(r);this._inMemoryCache.add(i,a("Bootstrap",e,null,r))}_getDataAsyncImpl(e,t,a){return r(this,void 0,void 0,function*(){n(601638).Storage.isReady()||(yield n(601638).Storage.isReadyResolver());let r=null!=e?e:this.getDataSync(t),i=[this._fetchAndPrepFromNetwork(r,t,a)];return(null==a?void 0:a.timeoutMs)&&i.push(new Promise(e=>setTimeout(e,a.timeoutMs)).then(()=>(n(668024).Log.debug("Fetching latest value timed out"),null))),yield Promise.race(i)})}_prefetchDataImpl(e,t){return r(this,void 0,void 0,function*(){let r=e&&(0,n(81570)._normalizeUser)(e,this._options),a=this._getCacheKey(r),i=yield this._getDataAsyncImpl(null,r,t);i&&this._inMemoryCache.add(a,Object.assign(Object.assign({},i),{source:"Prefetch"}))})}_fetchAndPrepFromNetwork(e,t,i){var o;return r(this,void 0,void 0,function*(){let r=null!=(o=null==e?void 0:e.data)?o:null,l=null!=e&&this._isCachedResultValidFor204(e,t),s=yield this._fetchFromNetwork(r,t,i,l);if(!s)return n(668024).Log.debug("No response returned for latest value"),null;let u=(0,n(953705)._typedJsonParse)(s,"has_updates","Response"),c=this._getSdkKey(),f=n(32626).StableID.get(c),d=null;if((null==u?void 0:u.has_updates)===!0)d=a("Network",s,f,t);else{if(!r||(null==u?void 0:u.has_updates)!==!1)return null;d=a("NetworkNotModified",r,f,t)}let p=this._getCacheKey(t);return this._inMemoryCache.add(p,d),this._writeToCache(p,d),d})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(n(668024).Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let r=null==(t=n(601638).Storage.getItem)?void 0:t.call(n(601638).Storage,e);if(null==r)return null;let a=(0,n(953705)._typedJsonParse)(r,"source","Cached Result");return a?Object.assign(Object.assign({},a),{source:"Cache"}):null}_writeToCache(e,t){n(601638).Storage.setItem(e,JSON.stringify(t)),this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e){var t;let r=null!=(t=(0,n(601638)._getObjectFromStorage)(this._lastModifiedStoreKey))?t:{};r[e]=Date.now();let a=o(r,10);a&&(delete r[a],n(601638).Storage.removeItem(a)),(0,n(601638)._setObjectInStorage)(this._lastModifiedStoreKey,r)}},t._makeDataAdapterResult=a;class i{constructor(){this._data={}}get(e,t){var r;let a=this._data[e],i=null==a?void 0:a.stableID,o=null==(r=null==t?void 0:t.customIDs)?void 0:r.stableID;return o&&i&&o!==i?(n(668024).Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):a}add(e,t){let n=o(this._data,9);n&&delete this._data[n],this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function o(e,t){let n=Object.keys(e);return n.length<=t?null:n.reduce((t,n)=>{let r=e[t],a=e[n];return"object"==typeof r&&"object"==typeof a?a.receivedAt{e.exports=function(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return n(223805)(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),n(738221)(e,t,{leading:a,maxWait:t,trailing:i})}},440961:(e,t,n)=>{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(822551)},454759:(e,t)=>{"use strict";function n(e){return e.setUTCHours(0,0,0,0),e.getTime()}Object.defineProperty(t,"__esModule",{value:!0}),t.default={compareNumbers(e,t,n){if(null==e||null==t)return!1;let r=Number(e),a=Number(t);if(isNaN(r)||isNaN(a))return!1;switch(n){case"gt":return e>t;case"gte":return e>=t;case"lt":return e{let t=e.indexOf("-");return -1!==t?e.substring(0,t):e};r=i(r);let o=((e,t)=>{let n=e.split(".").map(e=>parseInt(e)),r=t.split(".").map(e=>parseInt(e)),a=0;for(;at)return 1;a++}return 0})(r,a=i(a));switch(n){case"version_gt":return o>0;case"version_gte":return o>=0;case"version_lt":return o<0;case"version_lte":return o<=0;case"version_eq":return 0===o;case"version_neq":return 0!==o;default:return!1}},compareStringInArray(e,t,n){if(!Array.isArray(t))return!1;let r="any_case_sensitive"!==n&&"none_case_sensitive"!==n,a=-1!==t.findIndex(t=>{let a=String(e),i=String(t),o=r?a.toLowerCase():a,l=r?i.toLowerCase():i;switch(n){case"any":case"none":case"any_case_sensitive":case"none_case_sensitive":return o===l;case"str_starts_with_any":return o.startsWith(l);case"str_ends_with_any":return o.endsWith(l);case"str_contains_any":case"str_contains_none":return o.includes(l);default:return!1}});switch(n){case"none":case"none_case_sensitive":case"str_contains_none":return!a;default:return a}},compareStringWithRegEx(e,t){try{let n=String(e);if(n.length<1e3)return new RegExp(String(t)).test(n)}catch(e){}return!1},compareTime(e,t,r){if(null==e||null==t)return!1;try{let a=new Date(String(e));isNaN(a.getTime())&&(a=new Date(Number(e)));let i=new Date(String(t));isNaN(i.getTime())&&(i=new Date(Number(t)));let o=a.getTime(),l=i.getTime();if(isNaN(o)||isNaN(l))return!1;switch(r){case"before":return ol;case"on":return n(a)===n(i);default:return!1}}catch(e){return!1}},arrayHasValue(e,t){let n=new Set(e);for(let e=0;e{"use strict";e.exports=n(221020)},483918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0,t._DJB2=e=>{let t=0;for(let n=0;n>>0)},t._DJB2Object=(e,n)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,n))),t._getSortedObject=(e,r)=>{if(null==e)return null;let a=Object.keys(e).sort(),i={};return a.forEach(a=>{let o=e[a];if(0===r||"object"!==(0,n(690010)._typeOf)(o)){i[a]=o;return}i[a]=(0,t._getSortedObject)(o,null!=r?r-1:r)}),i}},494394:(e,t,n)=>{var r=Object.prototype.hasOwnProperty;e.exports=n(242e3)(function(e,t,a){r.call(e,a)?e[a].push(t):n(143360)(e,a,[t])})},504269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},512166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},512335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=void 0;let r=()=>n(320295);function a(e,t){var n,r,a;return"string"==typeof t&&"userid"!==t.toLowerCase()?null!=(r=null==(n=e.customIDs)?void 0:n[t])?r:null==(a=null==e?void 0:e.customIDs)?void 0:a[t.toLowerCase()]:e.userID}function i(e){return(0,n(766944).SHA256)(e).dataView().getBigUint64(0,!1)}function o(e){return null!=e&&"object"==typeof e}t.Evaluator=class{constructor(e){this._store=e}evaluateGate(e,t){let{spec:n,details:a}=this._getSpecAndDetails("gate",e);return n?{evaluation:(0,r().resultToGateEval)(n,this._evaluateSpec(n,t)),details:a}:{evaluation:null,details:a}}evaluateConfig(e,t){let{spec:n,details:a}=this._getSpecAndDetails("config",e);return n?{evaluation:(0,r().resultToConfigEval)(n,this._evaluateSpec(n,t)),details:a}:{evaluation:null,details:a}}evaluateLayer(e,t){var n;let{spec:a,details:i}=this._getSpecAndDetails("layer",e);if(!a)return{evaluation:null,details:i};let o=this._evaluateSpec(a,t),l=null!=(n=null==o?void 0:o.allocated_experiment_name)?n:"",s=this._store.getSpecAndSourceInfo("config",l).spec;return{evaluation:(0,r().resultToLayerEval)(a,s,o),details:i}}getParamStoreConfig(e){var t;let n=this._store.getParamStoreAndSourceInfo(e),r=this._getEvaluationDetails(n);return{config:null!=(t=n.paramStoreConfig)?t:null,details:r}}_getSpecAndDetails(e,t){let n=this._store.getSpecAndSourceInfo(e,t);return{details:this._getEvaluationDetails(n),spec:n.spec}}_getEvaluationDetails(e){let{source:t,lcut:n,receivedAt:r}=e;if("Uninitialized"===t||"NoValues"===t)return{reason:t};let a=("spec"in e?e.spec:e.paramStoreConfig)==null?"Unrecognized":"Recognized";return{reason:`${t}:${a}`,lcut:n,receivedAt:r}}_evaluateSpec(e,t){let n=o(e.defaultValue)?e.defaultValue:void 0;if(!e.enabled)return(0,r().makeEvalResult)({json_value:n,rule_id:"disabled"});let l=[];for(let o of e.rules){let s=this._evaluateRule(o,t);if(s.unsupported)return s;if(l.push(...s.secondary_exposures),!s.bool_value)continue;let u=this._evaluateDelegate(o.configDelegate,t,l);if(u)return u;let c=function(e,t,n){var r,o;return 100===e.passPercentage||0!==e.passPercentage&&Number(i(n.salt+"."+(null!=(r=e.salt)?r:e.id)+"."+(null!=(o=a(t,e.idType))?o:""))%BigInt(1e4))<100*e.passPercentage}(o,t,e);return(0,r().makeEvalResult)({rule_id:s.rule_id,bool_value:c,json_value:c?s.json_value:n,secondary_exposures:l,undelegated_secondary_exposures:l,is_experiment_group:s.is_experiment_group,group_name:s.group_name})}return(0,r().makeEvalResult)({json_value:n,secondary_exposures:l,undelegated_secondary_exposures:l,rule_id:"default"})}_evaluateRule(e,t){let n=[],a=!0;for(let r of e.conditions){let e=this._evaluateCondition(r,t);if(e.unsupported)return e;n.push(...e.secondary_exposures),e.bool_value||(a=!1)}return(0,r().makeEvalResult)({rule_id:e.id,bool_value:a,json_value:o(e.returnValue)?e.returnValue:void 0,secondary_exposures:n,is_experiment_group:!0===e.isExperimentGroup,group_name:e.groupName})}_evaluateCondition(e,t){var o,l,s,u,c,f,d,p,h,g,v,m,y,_,b,w;let S=null,k=!1,x=e.field,E=e.targetValue,C=e.idType,O=e.type;switch(O){case"public":return(0,r().makeEvalResult)({bool_value:!0});case"pass_gate":case"fail_gate":{let e=String(E),n=this._evaluateNestedGate(e,t);return(0,r().makeEvalResult)({bool_value:"fail_gate"===O?!n.bool_value:n.bool_value,secondary_exposures:n.secondary_exposures})}case"multi_pass_gate":case"multi_fail_gate":return this._evaluateMultiNestedGates(E,O,t);case"user_field":case"ip_based":case"ua_based":u=t,S=null==(c=x)||"object"!=typeof u||null==u?null:null!=(y=null!=(v=null!=(h=null!=(d=null!=(f=u[c])?f:u[c.toLowerCase()])?d:null==(p=null==u?void 0:u.custom)?void 0:p[c])?h:null==(g=null==u?void 0:u.custom)?void 0:g[c.toLowerCase()])?v:null==(m=null==u?void 0:u.privateAttributes)?void 0:m[c])?y:null==(_=null==u?void 0:u.privateAttributes)?void 0:_[c.toLowerCase()];break;case"environment_field":b=t,S=null==(w=x)?null:function(e,t){if(null==e)return;let n=t.toLowerCase(),r=Object.keys(e).find(e=>e.toLowerCase()===n);if(void 0!==r)return e[r]}(b.statsigEnvironment,w);break;case"current_time":S=Date.now();break;case"user_bucket":S=Number(i(String(null!=(l=null==(o=e.additionalValues)?void 0:o.salt)?l:"")+"."+(null!=(s=a(t,C))?s:""))%BigInt(1e3));break;case"unit_id":S=a(t,C);break;default:return(0,r().makeEvalResult)({unsupported:!0})}let P=e.operator;switch(P){case"gt":case"gte":case"lt":case"lte":k=n(454759).default.compareNumbers(S,E,P);break;case"version_gt":case"version_gte":case"version_lt":case"version_lte":case"version_eq":case"version_neq":k=n(454759).default.compareVersions(S,E,P);break;case"any":case"none":case"str_starts_with_any":case"str_ends_with_any":case"str_contains_any":case"str_contains_none":case"any_case_sensitive":case"none_case_sensitive":k=n(454759).default.compareStringInArray(S,E,P);break;case"str_matches":k=n(454759).default.compareStringWithRegEx(S,E);break;case"before":case"after":case"on":k=n(454759).default.compareTime(S,E,P);break;case"eq":k=S==E;break;case"neq":k=S!=E;break;case"in_segment_list":case"not_in_segment_list":return(0,r().makeEvalResult)({unsupported:!0});case"array_contains_any":case"array_contains_none":{if(!Array.isArray(E)||!Array.isArray(S)){k=!1;break}let e=n(454759).default.arrayHasValue(S,E);k="array_contains_any"===P?e:!e;break}case"array_contains_all":case"not_array_contains_all":{if(!Array.isArray(E)||!Array.isArray(S)){k=!1;break}let e=n(454759).default.arrayHasAllValues(S,E);k="array_contains_all"===P?e:!e}}return(0,r().makeEvalResult)({bool_value:k})}_evaluateDelegate(e,t,n){if(!e)return null;let{spec:a}=this._store.getSpecAndSourceInfo("config",e);if(!a)return null;let i=this._evaluateSpec(a,t);return(0,r().makeEvalResult)(Object.assign(Object.assign({},i),{allocated_experiment_name:e,explicit_parameters:a.explicitParameters,secondary_exposures:n.concat(i.secondary_exposures),undelegated_secondary_exposures:n}))}_evaluateNestedGate(e,t){let n=[],a=!1,{spec:i}=this._store.getSpecAndSourceInfo("gate",e);if(i){let r=this._evaluateSpec(i,t);if(r.unsupported)return r;a=r.bool_value,n.push(...r.secondary_exposures),n.push({gate:e,gateValue:String(a),ruleID:r.rule_id})}return(0,r().makeEvalResult)({bool_value:a,secondary_exposures:n})}_evaluateMultiNestedGates(e,t,n){if(!Array.isArray(e))return(0,r().makeEvalResult)({unsupported:!0});let a="multi_pass_gate"===t,i=[],o=!1;for(let t of e){if("string"!=typeof t)return(0,r().makeEvalResult)({unsupported:!0});let e=this._evaluateNestedGate(t,n);if(e.unsupported)return e;if(i.push(...e.secondary_exposures),a?!0===e.bool_value:!1===e.bool_value){o=!0;break}}return(0,r().makeEvalResult)({bool_value:o,secondary_exposures:i})}}},537047:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("u">typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Date().getTime(),t="u">typeof performance&&performance.now&&1e3*performance.now()||0,n="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${n}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,n=>{let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})}},539950:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.LocalOverrideAdapter=void 0;let a="LocalOverride:Recognized";function i(){return{gate:{},dynamicConfig:{},experiment:{},layer:{}}}t.LocalOverrideAdapter=class{constructor(e){this._overrides=i(),this._sdkKey=null!=e?e:null}_getLocalOverridesStorageKey(e){return`statsig.local-overrides.${(0,n(636978)._getStorageKey)(e)}`}loadFromStorage(){return r(this,void 0,void 0,function*(){var e;if(null==this._sdkKey)return;n(636978).Storage.isReady()||(yield n(636978).Storage.isReadyResolver());let t=this._getLocalOverridesStorageKey(this._sdkKey),r=n(636978).Storage.getItem(t),a=r?(0,n(636978)._typedJsonParse)(r,"gate","LocalOverrideAdapter overrides"):null,i=this._hasInMemoryOverrides();a&&(this._overrides=i?(e=this._overrides,{gate:Object.assign({},a.gate,e.gate),dynamicConfig:Object.assign({},a.dynamicConfig,e.dynamicConfig),experiment:Object.assign({},a.experiment,e.experiment),layer:Object.assign({},a.layer,e.layer)}):a),i&&this._saveOverridesToStorage()})}_saveOverridesToStorage(){if(null==this._sdkKey||!n(636978).Storage.isReady())return;let e=this._getLocalOverridesStorageKey(this._sdkKey);n(636978).Storage.setItem(e,JSON.stringify(this._overrides))}overrideGate(e,t){this._overrides.gate[e]=t,this._overrides.gate[(0,n(636978)._DJB2)(e)]=t,this._saveOverridesToStorage()}_warnIfStorageNotReady(){n(636978).Storage.isReady()||n(636978).Log.warn("Storage is not ready. Override removal may not persist.")}removeGateOverride(e){this._warnIfStorageNotReady(),delete this._overrides.gate[e],delete this._overrides.gate[(0,(0,n(636978))._DJB2)(e)],this._saveOverridesToStorage()}getGateOverride(e,t){var r;let i=null!=(r=this._overrides.gate[e.name])?r:this._overrides.gate[(0,n(636978)._DJB2)(e.name)];return null==i?null:Object.assign(Object.assign({},e),{value:i,details:Object.assign(Object.assign({},e.details),{reason:a})})}overrideDynamicConfig(e,t){this._overrides.dynamicConfig[e]=t,this._overrides.dynamicConfig[(0,n(636978)._DJB2)(e)]=t,this._saveOverridesToStorage()}removeDynamicConfigOverride(e){this._warnIfStorageNotReady(),delete this._overrides.dynamicConfig[e],delete this._overrides.dynamicConfig[(0,(0,n(636978))._DJB2)(e)],this._saveOverridesToStorage()}getDynamicConfigOverride(e,t){return this._getConfigOverride(e,this._overrides.dynamicConfig)}overrideExperiment(e,t){this._overrides.experiment[e]=t,this._overrides.experiment[(0,n(636978)._DJB2)(e)]=t,this._saveOverridesToStorage()}removeExperimentOverride(e){this._warnIfStorageNotReady(),delete this._overrides.experiment[e],delete this._overrides.experiment[(0,(0,n(636978))._DJB2)(e)],this._saveOverridesToStorage()}getExperimentOverride(e,t){return this._getConfigOverride(e,this._overrides.experiment)}overrideLayer(e,t){this._overrides.layer[e]=t,this._overrides.layer[(0,n(636978)._DJB2)(e)]=t,this._saveOverridesToStorage()}removeLayerOverride(e){this._warnIfStorageNotReady(),delete this._overrides.layer[e],delete this._overrides.layer[(0,(0,n(636978))._DJB2)(e)],this._saveOverridesToStorage()}getAllOverrides(){return JSON.parse(JSON.stringify(this._overrides))}removeAllOverrides(){this._warnIfStorageNotReady(),this._overrides=i(),this._saveOverridesToStorage()}getLayerOverride(e,t){var r;let i=null!=(r=this._overrides.layer[e.name])?r:this._overrides.layer[(0,n(636978)._DJB2)(e.name)];return null==i?null:Object.assign(Object.assign({},e),{__value:i,get:(0,n(636978)._makeTypedGet)(e.name,i),details:Object.assign(Object.assign({},e.details),{reason:a})})}_getConfigOverride(e,t){var r;let i=null!=(r=t[e.name])?r:t[(0,n(636978)._DJB2)(e.name)];return null==i?null:Object.assign(Object.assign({},e),{value:i,get:(0,n(636978)._makeTypedGet)(e.name,i),details:Object.assign(Object.assign({},e.details),{reason:a})})}_hasInMemoryOverrides(){return Object.keys(this._overrides.gate).length>0||Object.keys(this._overrides.dynamicConfig).length>0||Object.keys(this._overrides.experiment).length>0||Object.keys(this._overrides.layer).length>0}}},540343:function(e,t){var n,r,a;!function(i){"use strict";r=[],void 0===(a="function"==typeof(n=i)?n.apply(t,r):n)||(e.exports=a)}(function(){"use strict";function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],a=["fileName","functionName","source"],i=n.concat(r,a,["args"],["evalOrigin"]);function o(t){if(t)for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},547307:(e,t,n)=>{e.exports=function(e,t){return n(983120)(n(455378)(e,t),1)}},563528:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(908128),t)},569193:(e,t,n)=>{"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,{V1:()=>r})},590179:(e,t,n)=>{var r=()=>n(419931);e.exports=n(538816)(function(e,t){var a={};if(null==e)return a;var i=!1;t=n(634932)(t,function(t){return t=n(831769)(t,e),i||(i=t.length>1),t}),n(921791)(e,n(483349)(e),a),i&&(a=n(509999)(a,7,n(653138)));for(var o=t.length;o--;)r()(a,t[o]);return a})},592701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let r="foreground",a="background",i=[],o=r,l=!1;t._isCurrentlyVisible=()=>o===r,t._isUnloading=()=>l,t._subscribeToVisiblityChanged=e=>{i.unshift(e)},t._notifyVisibilityChanged=e=>{e!==o&&(o=e,i.forEach(t=>t(e)))},(0,n(600414)._addWindowEventListenerSafe)("focus",()=>{l=!1,(0,t._notifyVisibilityChanged)(r)}),(0,n(600414)._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(a)),(0,n(600414)._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?r:a)}),(0,n(600414)._addWindowEventListenerSafe)((0,n(600414)._getUnloadEvent)(),()=>{l=!0,(0,t._notifyVisibilityChanged)(a)})},600414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getUnloadEvent=t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0,t._getWindowSafe=()=>"u">typeof window?window:null,t._getDocumentSafe=()=>{var e;let n=(0,t._getWindowSafe)();return null!=(e=null==n?void 0:n.document)?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e="u">typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,n)=>{let r=(0,t._getWindowSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)},t._addDocumentEventListenerSafe=(e,n)=>{let r=(0,t._getDocumentSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)},t._getCurrentPageUrlSafe=()=>{var e;try{return null==(e=(0,t._getWindowSafe)())?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}},t._getUnloadEvent=()=>{let e=(0,t._getWindowSafe)();return e&&"onpagehide"in e?"pagehide":"beforeunload"}},601638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let r={},a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>r[e]?r[e]:null,setItem:(e,t)=>{r[e]=t},removeItem:e=>{delete r[e]},getAllKeys:()=>Object.keys(r)},i=null;try{let e=(0,n(600414)._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(i={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,n)=>e.localStorage.setItem(t,n),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){n(668024).Log.warn("Failed to setup localStorageProvider.")}let o=null!=i?i:a,l=o;function s(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(a),null;if(e instanceof Error&&"QuotaExceededError"===e.name){let n=t.Storage.getAllKeys().filter(e=>e.startsWith("statsig."));e.message=`${e.message}. Statsig Keys: ${n.length}`}throw e}}t.Storage={isReady:()=>l.isReady(),isReadyResolver:()=>l.isReadyResolver(),getProviderName:()=>l.getProviderName(),getItem:e=>s(()=>l.getItem(e)),setItem:(e,t)=>s(()=>l.setItem(e,t)),removeItem:e=>l.removeItem(e),getAllKeys:()=>l.getAllKeys(),_setProvider:e=>{o=e,l=e},_setDisabled:e=>{l=e?a:o}},t._getObjectFromStorage=function(e){let n=t.Storage.getItem(e);return JSON.parse(null!=n?n:"null")},t._setObjectInStorage=function(e,n){t.Storage.setItem(e,JSON.stringify(n))}},636978:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,n(843509),Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return n(230882).Diagnostics}}),Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return n(85434).EventLogger}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return n(668024).Log}}),Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return n(601638).Storage}}),a(n(843509),t),a(n(894681),t),a(n(658683),t),a(n(385638),t),a(n(230882),t),a(n(54387),t),a(n(14358),t),a(n(543194),t),a(n(286913),t),a(n(483918),t),a(n(757061),t),a(n(668024),t),a(n(240843),t),a(n(12610),t),a(n(244703),t),a(n(882509),t),a(n(905025),t),a(n(600414),t),a(n(810686),t),a(n(339839),t),a(n(32626),t),a(n(84351),t),a(n(971180),t),a(n(512166),t),a(n(37253),t),a(n(146512),t),a(n(647754),t),a(n(968474),t),a(n(709851),t),a(n(99652),t),a(n(81570),t),a(n(601638),t),a(n(953705),t),a(n(690010),t),a(n(188873),t),a(n(537047),t),a(n(592701),t),a(n(251148),t),a(n(895747),t),Object.assign((0,n(843509)._getStatsigGlobal)(),{Log:n(668024).Log,SDK_VERSION:n(146512).SDK_VERSION})},647754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},658683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},660457:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let r=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),a=["i","e","d"];t._fetchTxtRecords=function(e){return n(this,void 0,void 0,function*(){let t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:r});if(!t.ok){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}return function(e){let t=e.findIndex((t,n)=>n<200&&"="===String.fromCharCode(t)&&a.includes(String.fromCharCode(e[n-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let n="";for(let r=t-1;r{var r=/[\\^$.*+?()[\]{}|]/g,a=RegExp(r.source);e.exports=function(e){return(e=n(213222)(e))&&a.test(e)?e.replace(r,"\\$&"):e}},668024:(e,t)=>{"use strict";function n(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class r{static info(...e){r.level>=t.LogLevel.Info&&console.info(" INFO ",...n(e))}static debug(...e){r.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...n(e))}static warn(...e){r.level>=t.LogLevel.Warn&&console.warn(" WARN ",...n(e))}static error(...e){r.level>=t.LogLevel.Error&&console.error(" ERROR ",...n(e))}}t.Log=r,r.level=t.LogLevel.Warn},681335:(e,t,n)=>{"use strict";n.d(t,{LV:()=>d,p:()=>c});let r=Symbol("Comlink.proxy"),a=Symbol("Comlink.endpoint"),i=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),l=Symbol("Comlink.thrown"),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,u=new Map([["proxy",{canHandle:e=>s(e)&&e[r],serialize(e){let{port1:t,port2:n}=new MessageChannel;return c(e,t),[n,[n]]},deserialize:e=>(e.start(),d(e))}],["throw",{canHandle:e=>s(e)&&l in e,serialize:({value:e})=>[e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[]],deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value}}]]);function c(e,t=globalThis,n=["*"]){t.addEventListener("message",function a(i){let s;if(!i||!i.data)return;if(!function(e,t){for(let n of e)if(t===n||"*"===n||n instanceof RegExp&&n.test(t))return!0;return!1}(n,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);let{id:u,type:d,path:p}=Object.assign({path:[]},i.data),h=(i.data.argumentList||[]).map(b);try{var g,v,m;let t=p.slice(0,-1).reduce((e,t)=>e[t],e),n=p.reduce((e,t)=>e[t],e);switch(d){case"GET":s=n;break;case"SET":t[p.slice(-1)[0]]=b(i.data.value),s=!0;break;case"APPLY":s=n.apply(t,h);break;case"CONSTRUCT":g=new n(...h),s=Object.assign(g,{[r]:!0});break;case"ENDPOINT":{let{port1:t,port2:n}=new MessageChannel;c(e,n),v=t,m=[t],y.set(v,m),s=v}break;case"RELEASE":s=void 0;break;default:return}}catch(e){s={value:e,[l]:0}}Promise.resolve(s).catch(e=>({value:e,[l]:0})).then(n=>{let[r,i]=_(n);t.postMessage(Object.assign(Object.assign({},r),{id:u}),i),"RELEASE"===d&&(t.removeEventListener("message",a),f(t),o in e&&"function"==typeof e[o]&&e[o]())}).catch(e=>{let[n,r]=_({value:TypeError("Unserializable return value"),[l]:0});t.postMessage(Object.assign(Object.assign({},n),{id:u}),r)})}),t.start&&t.start()}function f(e){"MessagePort"===e.constructor.name&&e.close()}function d(e,t){let n=new Map;return e.addEventListener("message",function(e){let{data:t}=e;if(!t||!t.id)return;let r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}}),function e(t,n,r=[],o=function(){}){let l,s=!1,u=new Proxy(o,{get(a,o){if(p(s),o===i)return()=>{v&&v.unregister(u),h(t),n.clear(),s=!0};if("then"===o){if(0===r.length)return{then:()=>u};let e=w(t,n,{type:"GET",path:r.map(e=>e.toString())}).then(b);return e.then.bind(e)}return e(t,n,[...r,o])},set(e,a,i){p(s);let[o,l]=_(i);return w(t,n,{type:"SET",path:[...r,a].map(e=>e.toString()),value:o},l).then(b)},apply(i,o,l){p(s);let u=r[r.length-1];if(u===a)return w(t,n,{type:"ENDPOINT"}).then(b);if("bind"===u)return e(t,n,r.slice(0,-1));let[c,f]=m(l);return w(t,n,{type:"APPLY",path:r.map(e=>e.toString()),argumentList:c},f).then(b)},construct(e,a){p(s);let[i,o]=m(a);return w(t,n,{type:"CONSTRUCT",path:r.map(e=>e.toString()),argumentList:i},o).then(b)}});return l=(g.get(t)||0)+1,g.set(t,l),v&&v.register(u,t,u),u}(e,n,[],t)}function p(e){if(e)throw Error("Proxy has been released and is not useable")}function h(e){return w(e,new Map,{type:"RELEASE"}).then(()=>{f(e)})}let g=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(g.get(e)||0)-1;g.set(e,t),0===t&&h(e)});function m(e){var t;let n=e.map(_);return[n.map(e=>e[0]),(t=n.map(e=>e[1]),Array.prototype.concat.apply([],t))]}let y=new WeakMap;function _(e){for(let[t,n]of u)if(n.canHandle(e)){let[r,a]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},a]}return[{type:"RAW",value:e},y.get(e)||[]]}function b(e){switch(e.type){case"HANDLER":return u.get(e.name).deserialize(e.value);case"RAW":return e.value}}function w(e,t,n,r){return new Promise(a=>{let i=[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(i,a),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),r)})}},688055:(e,t,n)=>{e.exports=function(e){return n(509999)(e,5)}},690010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){let n=e=>Array.isArray(e)?"array":typeof e;return n(e)===n(t)}},706442:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(296540),a=n(38798),i=n(124184);function o(){var e=r.useContext(a.ob);return(0,i.HM)(e),e}},709851:(e,t,n)=>{"use strict";function r(e,t,n,r){var a;return{name:e,details:t,ruleID:null!=(a=null==n?void 0:n.rule_id)?a:"",__evaluation:n,value:r}}function a(e,t,n){var a;let o=null!=(a=null==n?void 0:n.value)?a:{};return Object.assign(Object.assign({},r(e,t,n,o)),{get:i(e,null==n?void 0:n.value)})}function i(e,t,r){return(a,i)=>{var o;let l=null!=(o=null==t?void 0:t[a])?o:null;return null==l?null!=i?i:null:null==i||(0,n(690010)._isTypeMatch)(l,i)?(null==r||r(a),l):(n(668024).Log.warn(`Parameter type mismatch. '${e}.${a}' was found to be type '${typeof l}' but fallback/return type is '${typeof i}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=i?i:null)}}Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0,t._makeFeatureGate=function(e,t,n){var a;return Object.assign(Object.assign({},r(e,t,n,(null==n?void 0:n.value)===!0)),{idType:null!=(a=null==n?void 0:n.id_type)?a:null})},t._makeDynamicConfig=a,t._makeExperiment=function(e,t,n){var r;return Object.assign(Object.assign({},a(e,t,n)),{groupName:null!=(r=null==n?void 0:n.group_name)?r:null})},t._makeLayer=function(e,t,n,a){var o,l;return Object.assign(Object.assign({},r(e,t,n,void 0)),{get:i(e,null==n?void 0:n.value,a),groupName:null!=(o=null==n?void 0:n.group_name)?o:null,__value:null!=(l=null==n?void 0:n.value)?l:{}})},t._mergeOverride=function(e,t,n,r){return Object.assign(Object.assign(Object.assign({},e),t),{get:i(e.name,n,r)})},t._makeTypedGet=i},717344:(e,t,n)=>{"use strict";var r;let a,i;function o(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function l(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function u(e,t){return e<<32-t|e>>>t}function c(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),o(e),e}n.d(t,{sc:()=>m});class f{clone(){return this._cloneInto()}}class d extends f{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=s(this.buffer)}update(e){l(this);let{view:t,buffer:n,blockLen:r}=this,a=(e=c(e)).length;for(let i=0;ia-u&&(this.process(r,0),u=0);for(let e=u;e>a&i),l=Number(n&i),s=4*!!r,u=4*!r;e.setUint32(t+s,o,r),e.setUint32(t+u,l,r)}(r,a-8,BigInt(8*this.length),i),this.process(r,0);let c=s(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=f/4,p=this.get();if(d>p.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e>>3,a=u(n,17)^u(n,19)^n>>>10;g[e]=a+g[e-7]+r+g[e-16]|0}let{A:n,B:r,C:a,D:i,E:o,F:l,G:s,H:c}=this;for(let e=0;e<64;e++){var f,d,h,v;let t=c+(u(o,6)^u(o,11)^u(o,25))+((f=o)&l^~f&s)+p[e]+g[e]|0,m=(u(n,2)^u(n,13)^u(n,22))+((d=n)&(h=r)^d&(v=a)^h&v)|0;c=s,s=l,l=o,o=i+t|0,i=a,a=r,r=n,n=t+m|0}n=n+this.A|0,r=r+this.B|0,a=a+this.C|0,i=i+this.D|0,o=o+this.E|0,l=l+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(n,r,a,i,o,l,s,c)}roundClean(){g.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let m=(r=()=>new v,(a=e=>r().update(c(e)).digest()).outputLen=(i=r()).outputLen,a.blockLen=i.blockLen,a.create=()=>r(),a)},719651:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.UserPersistentOverrideAdapter=void 0,t.UserPersistentOverrideAdapter=class{constructor(e){this.storage=e}loadUserPersistedValues(e,t){var n;let r=this._getStorageKey(e,t);return null!=(n=this.storage.load(r))?n:{}}loadUserPersistedValuesAsync(e,t){var n;return r(this,void 0,void 0,function*(){let r=this._getStorageKey(e,t);return null!=(n=yield this.storage.loadAsync(r))?n:{}})}getExperimentOverride(e,t,n){let r=e.__evaluation;if(null==r)return null;let a=null==n?void 0:n.userPersistedValues;if(!0!==r.is_experiment_active||null==a||"object"!=typeof a)return this._handleDelete(t,e.name,r.id_type),null;let i=a[e.name];return null!=i?this._makeStickyExperiment(r,i):(r.is_user_in_experiment&&this._handleSave(t,e,r),null)}_makeStickyExperiment(e,t){let{id_type:r,name:a}=e,{json_value:i,secondary_exposures:o,group_name:l,rule_id:s,time:u}=t;return(0,n(636978)._makeExperiment)(a,{reason:"Persisted",lcut:u},{value:i,secondary_exposures:o,group_name:null!=l?l:void 0,group:null!=l?l:"",rule_id:s,id_type:r,name:a,is_device_based:e.is_device_based})}_handleDelete(e,t,n){let r=this._getStorageKey(e,n),a=this.storage.load(r);null!=a&&(delete a[t],this.storage.delete(r,t))}_handleSave(e,t,n){var r;let a=this._getStorageKey(e,n.id_type),i={value:!0,rule_id:n.rule_id,json_value:n.value,secondary_exposures:n.secondary_exposures,group_name:n.group,time:null!=(r=t.details.lcut)?r:0};this.storage.save(a,t.name,JSON.stringify(i))}_getStorageKey(e,t){var n,r,a,i,o;return`${String((n=e,"string"==typeof(r=t)&&"userid"!==r.toLowerCase()?null!=(i=null==(a=n.customIDs)?void 0:a[r])?i:null==(o=null==n?void 0:n.customIDs)?void 0:o[r.toLowerCase()]:n.userID))}:${t}`}}},729094:(e,t,n)=>{"use strict";function r(e){return(0,n(636978)._typedJsonParse)(e,"has_updates","DownloadConfigSpecsResponse")}Object.defineProperty(t,"__esModule",{value:!0}),t.SpecStore=void 0,t.SpecStore=class{constructor(){this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._defaultEnvironment=null}getValues(){return this._rawValues?r(this._rawValues):null}getSource(){return this._source}getDefaultEnvironment(){return this._defaultEnvironment}setValuesFromDataAdapter(e){var t;if(!e)return;let n=r(e.data);(null==n?void 0:n.has_updates)===!0&&(this._lcut=n.time,this._receivedAt=e.receivedAt,this._source=e.source,this._values=n,this._rawValues=e.data,this._defaultEnvironment=null!=(t=n.default_environment)?t:null)}reset(){this._values=null,this._rawValues=null,this._source="Loading"}finalize(){this._values||(this._source="NoValues")}getSpecAndSourceInfo(e,t){var n;let r=this._getSpecs(e);return{spec:null!=(n=null==r?void 0:r.find(e=>e.name===t))?n:null,source:this._source,lcut:this._lcut,receivedAt:this._receivedAt}}getParamStoreAndSourceInfo(e){var t,n,r;let a=null==(t=this._values)?void 0:t.param_stores;return{paramStoreConfig:null!=(r=null==(n=null==a?void 0:a[e])?void 0:n.parameters)?r:null,source:this._source,lcut:this._lcut,receivedAt:this._receivedAt}}_getSpecs(e){var t,n,r;switch(e){case"gate":return null==(t=this._values)?void 0:t.feature_gates;case"config":return null==(n=this._values)?void 0:n.dynamic_configs;case"layer":return null==(r=this._values)?void 0:r.layer_configs}}}},737530:(e,t,n)=>{e.exports=function(e,t,r){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&n(936800)(e,t,r)?(t=0,r=a):(t=null==t?0:n(761489)(t),r=void 0===r?a:n(761489)(r)),n(225160)(e,t,r)):[]}},738221:(e,t,n)=>{var r=Math.max,a=Math.min;e.exports=function(e,t,i){var o,l,s,u,c,f,d=0,p=!1,h=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=o,r=l;return o=l=void 0,d=t,u=e.apply(r,n)}function m(e){var n=e-f,r=e-d;return void 0===f||n>=t||n<0||h&&r>=s}function y(){var e,r,i,o=n(10124)();if(m(o))return _(o);c=setTimeout(y,(e=o-f,r=o-d,i=t-e,h?a(i,s-r):i))}function _(e){return(c=void 0,g&&o)?v(e):(o=l=void 0,u)}function b(){var e,r=n(10124)(),a=m(r);if(o=arguments,l=this,f=r,a){if(void 0===c)return d=e=f,c=setTimeout(y,t),p?v(e):u;if(h)return clearTimeout(c),c=setTimeout(y,t),v(f)}return void 0===c&&(c=setTimeout(y,t)),u}return t=n(399374)(t)||0,n(223805)(i)&&(p=!!i.leading,s=(h="maxWait"in i)?r(n(399374)(i.maxWait)||0,t):s,g="trailing"in i?!!i.trailing:g),b.cancel=function(){void 0!==c&&clearTimeout(c),d=0,o=f=l=c=void 0},b.flush=function(){return void 0===c?u:_(n(10124)())},b}},757061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},763375:(e,t,n)=>{e.exports=function(e){return e&&e.length?n(855765)(e):[]}},766944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA256=void 0,Object.defineProperty(t,"SHA256",{enumerable:!0,get:function(){return n(272669).SHA256}})},775084:(e,t)=>{"use strict";t.wE=function(e,t={}){let{encode:r=encodeURIComponent,delimiter:a="/"}=t,i=function e(t,r,a){let i=t.map(t=>(function(t,r,a){if("text"===t.type)return()=>[t.value];if("group"===t.type){let n=e(t.tokens,r,a);return e=>{let[t,...r]=n(e);return r.length?[""]:[t]}}let i=a||n;return"wildcard"===t.type&&!1!==a?e=>{let n=e[t.name];if(null==n)return["",t.name];if(!Array.isArray(n)||0===n.length)throw TypeError(`Expected "${t.name}" to be a non-empty array`);return[n.map((e,n)=>{if("string"!=typeof e)throw TypeError(`Expected "${t.name}/${n}" to be a string`);return i(e)}).join(r)]}:e=>{let n=e[t.name];if(null==n)return["",t.name];if("string"!=typeof n)throw TypeError(`Expected "${t.name}" to be a string`);return[i(n)]}})(t,r,a));return e=>{let t=[""];for(let n of i){let[r,...a]=n(e);t[0]+=r,t.push(...a)}return t}}((e instanceof u?e:c(e,t)).tokens,a,r);return function(e={}){let[t,...n]=i(e);if(n.length)throw TypeError(`Missing parameters: ${n.join(", ")}`);return t}},t.YW=function(e,t={}){let{decode:r=decodeURIComponent,delimiter:a="/"}=t,{regexp:o,keys:s}=function(e,t={}){let{delimiter:n="/",end:r=!0,sensitive:a=!1,trailing:o=!0}=t,s=[],f=[];for(let{tokens:r}of(Array.isArray(e)?e:[e]).map(e=>e instanceof u?e:c(e,t)))for(let e of function* e(t,n,r){if(n===t.length)return yield r;let a=t[n];if("group"===a.type){let i=r.slice();for(let r of e(a.tokens,0,i))yield*e(t,n+1,r)}else r.push(a);yield*e(t,n+1,r)}(r,0,[])){let t=function(e,t,n){let r="",a="",o=!0;for(let c=0;c!1===r?n:"param"===e.type?r:e=>e.split(a).map(r));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;ee,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,i="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function l(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class s{constructor(e){this.tokens=e}peek(){if(!this._peek){let e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){let t=this.peek();if(t.type===e)return this._peek=void 0,t.value}consume(e){let t=this.tryConsume(e);if(void 0!==t)return t;let{type:n,index:r}=this.peek();throw TypeError(`Unexpected ${n} at ${r}, expected ${e}: ${i}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}class u{constructor(e){this.tokens=e}}function c(e,t={}){let{encodePath:l=n}=t,f=new s(function*(e){let t=[...e],n=0;function l(){let e="";if(r.test(t[++n]))for(e+=t[n];a.test(t[++n]);)e+=t[n];else if('"'===t[n]){let r=n;for(;nn(636978);class i extends a().NetworkCore{constructor(e,t){super(e,t);const n=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new(a()).UrlConfiguration(a().Endpoint._initialize,null==n?void 0:n.initializeUrl,null==n?void 0:n.api,null==n?void 0:n.initializeFallbackUrls)}fetchEvaluations(e,t,n,i,o){var l,s,u,c,f,d;return r(this,void 0,void 0,function*(){let r=t?(0,a()._typedJsonParse)(t,"has_updates","InitializeResponse"):null,p={user:i,hash:null!=(u=null==(s=null==(l=this._option)?void 0:l.networkConfig)?void 0:s.initializeHashAlgorithm)?u:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==r?void 0:r.has_updates){let e=(null==r?void 0:r.hash_used)!==(null!=(d=null==(f=null==(c=this._option)?void 0:c.networkConfig)?void 0:f.initializeHashAlgorithm)?d:"djb2");p=Object.assign(Object.assign({},p),{sinceTime:o&&!e?r.time:0,previousDerivedFields:"derived_fields"in r&&o?r.derived_fields:{},deltasResponseRequested:!0,full_checksum:r.full_checksum,partialUserMatchSinceTime:e?0:r.time})}return this._fetchEvaluations(e,r,p,n)})}_fetchEvaluations(e,t,a,i){var o,l;return r(this,void 0,void 0,function*(){let r=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:a,retries:2,isStatsigEncodable:!0,priority:i});if((null==r?void 0:r.code)===204)return'{"has_updates": false}';if((null==r?void 0:r.code)!==200)return null!=(o=null==r?void 0:r.body)?o:null;if((null==t?void 0:t.has_updates)!==!0||(null==(l=r.body)?void 0:l.includes('"is_delta":true'))!==!0||!0!==a.deltasResponseRequested)return r.body;let s=(0,n(365694)._resolveDeltasResponse)(t,r.body);return"string"==typeof s?s:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},a),s),{deltasResponseRequested:!1}),i)})}}t.default=i},788238:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(539950),t)},810686:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let r={};t.SDKType={_get:e=>{var t;return(null!=(t=r[e])?t:"js-mono")+(null!=n?n:"")},_setClientType(e,t){r[e]=t},_setBindingType(e){n&&"-react"!==n||(n="-"+e)}}},814628:(e,t,n)=>{"use strict";var r=n(746518),a=n(836043);r({target:"Promise",stat:!0},{withResolvers:function(){var e=a.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},815287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=_.prototype=new y;b.constructor=_,g(b,m.prototype),b.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var a,i={},o=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)S.call(t,a)&&!x.hasOwnProperty(a)&&(i[a]=t[a]);var s=arguments.length-2;if(1===s)i.children=r;else if(1{var r=()=>n(225160),a=Math.ceil,i=Math.max;e.exports=function(e,t,o){t=(o?n(936800)(e,t,o):void 0===t)?1:i(n(761489)(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var s=0,u=0,c=Array(a(l/t));s{"use strict";var r,a,i,o,l,s,u=n(296540);function c(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;ntypeof window&&void 0!==window.document&&void 0!==window.document.createElement,v=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},_={};function b(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];w[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new b(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){w[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){w[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){w[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){w[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){w[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function k(e){return e[1].toUpperCase()}function x(e,t,n,r){var a,i=w.hasOwnProperty(t)?w[t]:null;(null!==i?0!==i.type:r||!(2t}return!1}(t,n,i,r)&&(n=null),r||null===i?(a=t,(v.call(_,a)||!v.call(y,a)&&(m.test(a)?_[a]=!0:(y[a]=!0,!1)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(S,k);w[t]=new b(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(S,k);w[t]=new b(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(S,k);w[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){w[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});var E=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),O=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),T=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var F=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var $,B=Object.assign;function V(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return` `+$+e}var K=!1;function W(e,t){if(!e||K)return"";K=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split(` `),i=r.stack.split(` `),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(1!==o||1!==l)do if(o--,0>--l||a[o]!==i[l]){var s=` `+a[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l)break}}}finally{K=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("u">typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:n=q(null!=t.value?t.value:n),controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ee(e,t){Z(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?en(e,t.type,n):t.hasOwnProperty("defaultValue")&&en(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function et(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&(void 0===t.value||null===t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function en(e,t,n){("number"!==t||J(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var er=Array.isArray;function ea(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ed.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"u">typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ef(e,t,n,r)})}:ef);function eh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var eg={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},ev=["Webkit","ms","Moz","O"];function em(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||eg.hasOwnProperty(e)&&eg[e]?(""+t).trim():t+"px"}function ey(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=em(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(eg).forEach(function(e){ev.forEach(function(t){eg[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=eg[e]})});var e_=B({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 eb(e,t){if(t){if(e_[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(c(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(c(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(c(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(c(62))}}function ew(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 eS=null;function ek(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ex=null,eE=null,eC=null;function eO(e){if(e=rM(e)){if("function"!=typeof ex)throw Error(c(280));var t=e.stateNode;t&&(t=rA(t),ex(e.stateNode,e.type,t))}}function eP(e){eE?eC?eC.push(e):eC=[e]:eE=e}function eD(){if(eE){var e=eE,t=eC;if(eC=eE=null,eO(e),t)for(e=0;e>>=0)?32:31-(e9(e)/e7|0)|0},e9=Math.log,e7=Math.LN2,te=64,tt=4194304;function tn(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 4194240&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:case 0x4000000:return 0x7c00000&e;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0x40000000;default:return e}}function tr(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=0xfffffff&n;if(0!==o){var l=o&~a;0!==l?r=tn(l):0!=(i&=o)&&(r=tn(i))}else 0!=(o=n&~a)?r=tn(o):0!==i&&(r=tn(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,0x20000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-e5(t)]=n}function ts(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-e5(n),a=1<=nf),nh=!1;function ng(e,t){switch(e){case"keyup":return -1!==nu.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nv(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nm=!1,ny={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 n_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ny[e.type]:"textarea"===t}function nb(e,t,n,r){eP(r),0<(t=rs(t,"onChange")).length&&(n=new tZ("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nw=null,nS=null;function nk(e){re(e,0)}function nx(e){if(Q(rR(e)))return e}function nE(e,t){if("change"===e)return t}var nC=!1;if(g){if(g){var nO="oninput"in document;if(!nO){var nP=document.createElement("div");nP.setAttribute("oninput","return;"),nO="function"==typeof nP.oninput}r=nO}else r=!1;nC=r&&(!document.documentMode||9=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=nA(r)}}function nz(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=J(e.document)}return t}function nU(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var n$=g&&"documentMode"in document&&11>=document.documentMode,nB=null,nV=null,nK=null,nW=!1;function nq(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nW||null==nB||nB!==J(r)||(r="selectionStart"in(r=nB)&&nU(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nK&&nR(nK,r)||(nK=r,0<(r=rs(nV,"onSelect")).length&&(t=new tZ("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nB)))}function nH(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nG={animationend:nH("Animation","AnimationEnd"),animationiteration:nH("Animation","AnimationIteration"),animationstart:nH("Animation","AnimationStart"),transitionend:nH("Transition","TransitionEnd")},nQ={},nJ={};function nY(e){if(nQ[e])return nQ[e];if(!nG[e])return e;var t,n=nG[e];for(t in n)if(n.hasOwnProperty(t)&&t in nJ)return nQ[e]=n[t];return e}g&&(nJ=document.createElement("div").style,"AnimationEvent"in window||(delete nG.animationend.animation,delete nG.animationiteration.animation,delete nG.animationstart.animation),"TransitionEvent"in window||delete nG.transitionend.transition);var nX=nY("animationend"),nZ=nY("animationiteration"),n0=nY("animationstart"),n1=nY("transitionend"),n2=new Map,n6="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 n3(e,t){n2.set(e,t),p(t,[e])}for(var n8=0;n8rz||(e.current=rF[rz],rF[rz]=null,rz--)}function rB(e,t){rF[++rz]=e.current,e.current=t}var rV={},rK=rU(rV),rW=rU(!1),rq=rV;function rH(e,t){var n=e.type.contextTypes;if(!n)return rV;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rG(e){return null!=(e=e.childContextTypes)}function rQ(){r$(rW),r$(rK)}function rJ(e,t,n){if(rK.current!==rV)throw Error(c(168));rB(rK,t),rB(rW,n)}function rY(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(c(108,function(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=(e=t.render).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 function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case P:return"Fragment";case O:return"Portal";case N:return"Profiler";case D:return"StrictMode";case j:return"Suspense";case M:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case T:return(t.displayName||"Context")+".Consumer";case L:return(t._context.displayName||"Context")+".Provider";case I:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case R:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case A:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===D?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",a));return B({},n,r)}function rX(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rV,rq=rK.current,rB(rK,e),rB(rW,rW.current),!0}function rZ(e,t,n){var r=e.stateNode;if(!r)throw Error(c(169));n?(r.__reactInternalMemoizedMergedChildContext=e=rY(e,t,rq),r$(rW),r$(rK),rB(rK,e)):r$(rW),rB(rW,n)}var r0=null,r1=!1,r2=!1;function r6(e){null===r0?r0=[e]:r0.push(e)}function r3(){if(!r2&&null!==r0){r2=!0;var e=0,t=tu;try{var n=r0;for(tu=1;e>=o,a-=o,an=1<<32-e5(t)+a|n<g?(v=f,f=null):v=f.sibling;var m=p(a,f,l[g],s);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(a,f),o=i(m,o,g),null===c?u=m:c.sibling=m,c=m,f=v}if(g===l.length)return n(a,f),ac&&aa(a,g),u;if(null===f){for(;gv?(m=g,g=null):m=g.sibling;var _=p(a,g,y.value,s);if(null===_){null===g&&(g=m);break}e&&g&&null===_.alternate&&t(a,g),o=i(_,o,v),null===f?u=_:f.sibling=_,f=_,g=m}if(y.done)return n(a,g),ac&&aa(a,v),u;if(null===g){for(;!y.done;v++,y=l.next())null!==(y=d(a,y.value,s))&&(o=i(y,o,v),null===f?u=y:f.sibling=y,f=y);return ac&&aa(a,v),u}for(g=r(a,g);!y.done;v++,y=l.next())null!==(y=h(g,a,v,y.value,s))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),o=i(y,o,v),null===f?u=y:f.sibling=y,f=y);return e&&g.forEach(function(e){return t(a,e)}),ac&&aa(a,v),u}(s,u,f,g);aZ(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==u&&6===u.tag?(n(s,u.sibling),(u=a(u,f)).return=s):(n(s,u),(u=l0(f,s.mode,g)).return=s),o(s=u)):n(s,u)}}var a2=a1(!0),a6=a1(!1),a3={},a8=rU(a3),a4=rU(a3),a5=rU(a3);function a9(e){if(e===a3)throw Error(c(174));return e}function a7(e,t){switch(rB(a5,t),rB(a4,e),rB(a8,a3),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ec(null,"");break;default:t=ec(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}r$(a8),rB(a8,t)}function ie(){r$(a8),r$(a4),r$(a5)}function it(e){a9(a5.current);var t=a9(a8.current),n=ec(t,e.type);t!==n&&(rB(a4,e),rB(a8,n))}function ir(e){a4.current===e&&(r$(a8),r$(a4))}var ia=rU(0);function ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=[];function il(){for(var e=0;en?n:4,e(!0);var r=iu.transition;iu.transition={};try{e(!1),t()}finally{tu=n,iu.transition=r}}function iY(){return ix().memoizedState}function iX(e,t,n){var r=lw(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i0(e)?i1(t,n):null!==(n=aj(e,t,n,r))&&(lS(n,e,r,lb()),i2(n,t,r))}function iZ(e,t,n){var r=lw(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i0(e))i1(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,nM(l,o)){var s=t.interleaved;null===s?(a.next=a,aI(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch(e){}finally{}null!==(n=aj(e,t,a,r))&&(lS(n,e,r,a=lb()),i2(n,t,r))}}function i0(e){var t=e.alternate;return e===id||null!==t&&t===id}function i1(e,t){iv=ig=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i2(e,t,n){if(0!=(4194240&n)){var r=t.lanes;r&=e.pendingLanes,t.lanes=n|=r,ts(e,n)}}var i6={readContext:aL,useCallback:i_,useContext:i_,useEffect:i_,useImperativeHandle:i_,useInsertionEffect:i_,useLayoutEffect:i_,useMemo:i_,useReducer:i_,useRef:i_,useState:i_,useDebugValue:i_,useDeferredValue:i_,useTransition:i_,useMutableSource:i_,useSyncExternalStore:i_,useId:i_,unstable_isNewReconciler:!1},i3={readContext:aL,useCallback:function(e,t){return ik().memoizedState=[e,void 0===t?null:t],e},useContext:aL,useEffect:iU,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,iF(4194308,4,iK.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iF(4194308,4,e,t)},useInsertionEffect:function(e,t){return iF(4,2,e,t)},useMemo:function(e,t){return t=void 0===t?null:t,ik().memoizedState=[e=e(),t],e},useReducer:function(e,t,n){var r=ik();return r.memoizedState=r.baseState=t=void 0!==n?n(t):t,r.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=iX.bind(null,id,e),[r.memoizedState,e]},useRef:function(e){return ik().memoizedState={current:e}},useState:iM,useDebugValue:iq,useDeferredValue:function(e){return ik().memoizedState=e},useTransition:function(){var e=iM(!1),t=e[0];return e=iJ.bind(null,e[1]),ik().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=id,a=ik();if(ac){if(void 0===n)throw Error(c(407));n=n()}else{if(n=t(),null===o8)throw Error(c(349));0!=(30&ic)||iN(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,iU(iT.bind(null,r,i,e),[e]),r.flags|=2048,iR(9,iL.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ik(),t=o8.identifierPrefix;if(ac){var n=ar,r=an;t=":"+t+"R"+(n=(r&~(1<<32-e5(r)-1)).toString(32)+n),0<(n=im++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=iy++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},i8={readContext:aL,useCallback:iH,useContext:aL,useEffect:i$,useImperativeHandle:iW,useInsertionEffect:iB,useLayoutEffect:iV,useMemo:iG,useReducer:iC,useRef:iA,useState:function(){return iC(iE)},useDebugValue:iq,useDeferredValue:function(e){return iQ(ix(),ip.memoizedState,e)},useTransition:function(){return[iC(iE)[0],ix().memoizedState]},useMutableSource:iP,useSyncExternalStore:iD,useId:iY,unstable_isNewReconciler:!1},i4={readContext:aL,useCallback:iH,useContext:aL,useEffect:i$,useImperativeHandle:iW,useInsertionEffect:iB,useLayoutEffect:iV,useMemo:iG,useReducer:iO,useRef:iA,useState:function(){return iO(iE)},useDebugValue:iq,useDeferredValue:function(e){var t=ix();return null===ip?t.memoizedState=e:iQ(t,ip.memoizedState,e)},useTransition:function(){return[iO(iE)[0],ix().memoizedState]},useMutableSource:iP,useSyncExternalStore:iD,useId:iY,unstable_isNewReconciler:!1};function i5(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 1:return W(e.type,!0);default:return""}}(r),r=r.return;while(r)var a=n}catch(e){a=` Error generating stack: `+e.message+` `+e.stack}return{value:e,source:t,stack:a,digest:null}}function i9(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function i7(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var oe="function"==typeof WeakMap?WeakMap:Map;function ot(e,t,n){(n=az(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lc||(lc=!0,lf=r),i7(e,t)},n}function on(e,t,n){(n=az(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){i7(e,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){i7(e,t),"function"!=typeof r&&(null===ld?ld=new Set([this]):ld.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function or(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new oe;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=lV.bind(null,e,t,n),t.then(e,e))}function oa(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e)return null}function oi(e,t,n,r,a){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=az(-1,1)).tag=2,aU(n,t,1))),n.lanes|=1):(e.flags|=65536,e.lanes=a),e}var oo=E.ReactCurrentOwner,ol=!1;function os(e,t,n,r){t.child=null===e?a6(t,null,n,r):a2(t,e.child,n,r)}function ou(e,t,n,r,a){n=n.render;var i=t.ref;return(aN(t,a),r=iw(e,t,n,r,i,a),n=iS(),null===e||ol)?(ac&&n&&ao(t),t.flags|=1,os(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,oP(e,t,a))}function oc(e,t,n,r,a){if(null===e){var i=n.type;return"function"!=typeof i||lQ(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=lY(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,of(e,t,i,r,a))}if(i=e.child,0==(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:nR)(o,r)&&e.ref===t.ref)return oP(e,t,a)}return t.flags|=1,(e=lJ(i,r)).ref=t.ref,e.return=t,t.child=e}function of(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(nR(i,r)&&e.ref===t.ref)if(ol=!1,t.pendingProps=r=i,0==(e.lanes&a))return t.lanes=e.lanes,oP(e,t,a);else 0!=(131072&e.flags)&&(ol=!0)}return oh(e,t,n,r,a)}function od(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rB(o7,o9),o9|=n;else{if(0==(0x40000000&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=0x40000000,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rB(o7,o9),o9|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,rB(o7,o9),o9|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,rB(o7,o9),o9|=r;return os(e,t,a,n),t.child}function op(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oh(e,t,n,r,a){var i=rG(n)?rq:rK.current;return(i=rH(t,i),aN(t,a),n=iw(e,t,n,r,i,a),r=iS(),null===e||ol)?(ac&&r&&ao(t),t.flags|=1,os(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,oP(e,t,a))}function og(e,t,n,r,a){if(rG(n)){var i=!0;rX(t)}else i=!1;if(aN(t,a),null===t.stateNode)oO(e,t),aQ(t,n,r),aY(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;u="object"==typeof u&&null!==u?aL(u):rH(t,u=rG(n)?rq:rK.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==u)&&aJ(t,o,r,u),aR=!1;var d=t.memoizedState;o.state=d,aV(t,r,o,a),s=t.memoizedState,l!==r||d!==s||rW.current||aR?("function"==typeof c&&(aq(t,n,c,r),s=t.memoizedState),(l=aR||aG(t,n,l,r,d,s,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,aF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:aS(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s="object"==typeof(s=n.contextType)&&null!==s?aL(s):rH(t,s=rG(n)?rq:rK.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==f||d!==s)&&aJ(t,o,r,s),aR=!1,d=t.memoizedState,o.state=d,aV(t,r,o,a);var h=t.memoizedState;l!==f||d!==h||rW.current||aR?("function"==typeof p&&(aq(t,n,p,r),h=t.memoizedState),(u=aR||aG(t,n,u,r,d,h,s)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ov(e,t,n,r,i,a)}function ov(e,t,n,r,a,i){op(e,t);var o=0!=(128&t.flags);if(!r&&!o)return a&&rZ(t,n,!1),oP(e,t,i);r=t.stateNode,oo.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=a2(t,e.child,null,i),t.child=a2(t,null,l,i)):os(e,t,l,i),t.memoizedState=r.state,a&&rZ(t,n,!0),t.child}function om(e){var t=e.stateNode;t.pendingContext?rJ(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rJ(e,t.context,!1),a7(e,t.containerInfo)}function oy(e,t,n,r,a){return a_(),ab(a),t.flags|=256,os(e,t,n,r),t.child}var o_={dehydrated:null,treeContext:null,retryLane:0};function ob(e){return{baseLanes:e,cachePool:null,transitions:null}}function ow(e,t,n){var r,a=t.pendingProps,i=ia.current,o=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(o=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(i|=1),rB(ia,1&i),null===e)return(ag(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=0x40000000,null):(l=a.children,e=a.fallback,o?(a=t.mode,o=t.child,l={mode:"hidden",children:l},0==(1&a)&&null!==o?(o.childLanes=0,o.pendingProps=l):o=lZ(l,a,0,null),e=lX(e,a,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ob(n),t.memoizedState=o_,e):oS(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated)){var s=e,u=t,f=l,d=a,p=r,h=i,g=n;if(f)return 256&u.flags?(u.flags&=-257,ok(s,u,g,d=i9(Error(c(422))))):null!==u.memoizedState?(u.child=s.child,u.flags|=128,null):(h=d.fallback,p=u.mode,d=lZ({mode:"visible",children:d.children},p,0,null),h=lX(h,p,g,null),h.flags|=2,d.return=u,h.return=u,d.sibling=h,u.child=d,0!=(1&u.mode)&&a2(u,s.child,null,g),u.child.memoizedState=ob(g),u.memoizedState=o_,h);if(0==(1&u.mode))return ok(s,u,g,null);if("$!"===p.data){if(d=p.nextSibling&&p.nextSibling.dataset)var v=d.dgst;return d=v,ok(s,u,g,d=i9(h=Error(c(419)),d,void 0))}if(v=0!=(g&s.childLanes),ol||v){if(null!==(d=o8)){switch(g&-g){case 4:p=2;break;case 16:p=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 0x1000000:case 0x2000000:case 0x4000000:p=32;break;case 0x20000000:p=0x10000000;break;default:p=0}0!==(p=0!=(p&(d.suspendedLanes|g))?0:p)&&p!==h.retryLane&&(h.retryLane=p,aM(s,p),lS(d,s,p,-1))}return lM(),ok(s,u,g,d=i9(Error(c(421))))}return"$?"===p.data?(u.flags|=128,u.child=s.child,u=lW.bind(null,s),p._reactRetry=u,null):(s=h.treeContext,au=rE(p.nextSibling),as=u,ac=!0,af=null,null!==s&&(r7[ae++]=an,r7[ae++]=ar,r7[ae++]=at,an=s.id,ar=s.overflow,at=u),u=oS(u,d.children),u.flags|=4096,u)}if(o){o=a.fallback,l=t.mode,r=(i=e.child).sibling;var m={mode:"hidden",children:a.children};return 0==(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=m,t.deletions=null):(a=lJ(i,m)).subtreeFlags=0xe00000&i.subtreeFlags,null!==r?o=lJ(r,o):(o=lX(o,l,n,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,l=null===(l=e.child.memoizedState)?ob(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=o_,a}return e=(o=e.child).sibling,a=lJ(o,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function oS(e,t){return(t=lZ({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ok(e,t,n,r){return null!==r&&ab(r),a2(t,e.child,null,n),e=oS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ox(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),aD(e.return,t,n)}function oE(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function oC(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(os(e,t,r.children,n),0!=(2&(r=ia.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ox(e,n,t);else if(19===e.tag)ox(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rB(ia,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(a=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===ii(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),oE(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ii(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}oE(t,!0,n,null,i);break;case"together":oE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oO(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oP(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ln|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(c(153));if(null!==t.child){for(n=lJ(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=lJ(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oD(e,t){if(!ac)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oN(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=0xe00000&a.subtreeFlags,r|=0xe00000&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}a=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},i=function(){},o=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,a9(a8.current);var i,o=null;switch(n){case"input":a=Y(e,a),r=Y(e,r),o=[];break;case"select":a=B({},a,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":a=ei(e,a),r=ei(e,r),o=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=rg)}for(u in eb(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(d.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(o=o||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(o=o||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(d.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&rt("scroll",e),o||l===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},l=function(e,t,n,r){n!==r&&(t.flags|=4)};var oL=!1,oT=!1,oI="function"==typeof WeakSet?WeakSet:Set,oj=null;function oM(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){lB(e,t,n)}else n.current=null}function oR(e,t,n){try{n()}catch(n){lB(e,t,n)}}var oA=!1;function oF(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&oR(t,n,i)}a=a.next}while(a!==r)}}function oz(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oU(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function o$(e){return 5===e.tag||3===e.tag||4===e.tag}function oB(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||o$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var oV=null,oK=!1;function oW(e,t,n){for(n=n.child;null!==n;)oq(e,t,n),n=n.sibling}function oq(e,t,n){if(e4&&"function"==typeof e4.onCommitFiberUnmount)try{e4.onCommitFiberUnmount(e8,n)}catch(e){}switch(n.tag){case 5:oT||oM(n,t);case 6:var r=oV,a=oK;oV=null,oW(e,t,n),oV=r,oK=a,null!==oV&&(oK?(e=oV,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):oV.removeChild(n.stateNode));break;case 18:null!==oV&&(oK?(e=oV,n=n.stateNode,8===e.nodeType?rx(e.parentNode,n):1===e.nodeType&&rx(e,n),tT(e)):rx(oV,n.stateNode));break;case 4:r=oV,a=oK,oV=n.stateNode.containerInfo,oK=!0,oW(e,t,n),oV=r,oK=a;break;case 0:case 11:case 14:case 15:if(!oT&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(0!=(2&i)?oR(n,t,o):0!=(4&i)&&oR(n,t,o)),a=a.next}while(a!==r)}oW(e,t,n);break;case 1:if(!oT&&(oM(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){lB(n,t,e)}oW(e,t,n);break;case 21:default:oW(e,t,n);break;case 22:1&n.mode?(oT=(r=oT)||null!==n.memoizedState,oW(e,t,n),oT=r):oW(e,t,n)}}function oH(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new oI),t.forEach(function(t){var r=lq.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function oG(e,t){var n=t.deletions;if(null!==n)for(var r=0;ra&&(a=o),r&=~i}if(r=a,10<(r=(120>(r=eX()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o0(r/1960))-r)){e.timeoutHandle=r_(lz.bind(null,e,lo,lu),r);break}lz(e,lo,lu);break;default:throw Error(c(329))}}}return lk(e,eX()),e.callbackNode===n?lx.bind(null,e):null}function lE(e,t){var n=li;return e.current.memoizedState.isDehydrated&&(lT(e,t).flags|=256),2!==(e=lR(e,t))&&(t=lo,lo=n,null!==t&&lC(t)),e}function lC(e){null===lo?lo=e:lo.push.apply(lo,e)}function lO(e,t){for(t&=~la,t&=~lr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=f.createElement(n,{is:r.is}):(e=f.createElement(n),"select"===n&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,n),e[rP]=t,e[rD]=r,a(e,t,!1,!1),t.stateNode=e;e:{switch(f=ew(n,r),n){case"dialog":rt("cancel",e),rt("close",e),s=r;break;case"iframe":case"object":case"embed":rt("load",e),s=r;break;case"video":case"audio":for(s=0;sls&&(t.flags|=128,r=!0,oD(u,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ii(f))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),oD(u,!0),null===u.tail&&"hidden"===u.tailMode&&!f.alternate&&!ac)return oN(t),null}else 2*eX()-u.renderingStartTime>ls&&0x40000000!==n&&(t.flags|=128,r=!0,oD(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(null!==(n=u.last)?n.sibling=f:t.child=f,u.last=f)}if(null!==u.tail)return t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=eX(),t.sibling=null,n=ia.current,rB(ia,r?1&n|2:1&n),t;return oN(t),null;case 22:case 23:return lL(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(0x40000000&o9)&&(oN(t),6&t.subtreeFlags&&(t.flags|=8192)):oN(t),null;case 24:case 25:return null}throw Error(c(156,t.tag))}(n,t,o9))){o4=n;return}}else{if(null!==(n=function(e,t){switch(al(t),t.tag){case 1:return rG(t.type)&&rQ(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ie(),r$(rW),r$(rK),il(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ir(t),null;case 13:if(r$(ia),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(c(340));a_()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return r$(ia),null;case 4:return ie(),null;case 10:return aP(t.type._context),null;case 22:case 23:return lL(),null;default:return null}}(n,t))){n.flags&=32767,o4=n;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,o4=null;return}}if(null!==(t=t.sibling)){o4=t;return}o4=t=e}while(null!==t)0===le&&(le=5)}function lz(e,t,n){var r=tu,a=o6.transition;try{o6.transition=null,tu=1,function(e,t,n,r){do lU();while(null!==lh)if(0!=(6&o3))throw Error(c(327));n=e.finishedWork;var a=e.finishedLanes;if(null!==n){if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(c(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes,o=e,l=i,s=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var u=o.eventTimes;for(o=o.expirationTimes;0r&&(a=r,r=i,i=a),a=nF(n,i);var o=nF(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;ne?16:e,null===lh)var r=!1;else{if(e=lh,lh=null,lg=0,0!=(6&o3))throw Error(c(331));var a=o3;for(o3|=4,oj=e.current;null!==oj;){var i=oj,o=i.child;if(0!=(16&oj.flags)){var l=i.deletions;if(null!==l){for(var s=0;seX()-ll?lT(e,0):la|=n),lk(e,t)}function lK(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tt,0==(0x7c00000&(tt<<=1))&&(tt=4194304)));var n=lb();null!==(e=aM(e,t))&&(tl(e,t,n),lk(e,n))}function lW(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),lK(e,n)}function lq(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(c(314))}null!==r&&r.delete(t),lK(e,n)}function lH(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lG(e,t,n,r){return new lH(e,t,n,r)}function lQ(e){return!(!(e=e.prototype)||!e.isReactComponent)}function lJ(e,t){var n=e.alternate;return null===n?((n=lG(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=0xe00000&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lY(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)lQ(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case P:return lX(n.children,a,i,t);case D:o=8,a|=8;break;case N:return(e=lG(12,n,t,2|a)).elementType=N,e.lanes=i,e;case j:return(e=lG(13,n,t,a)).elementType=j,e.lanes=i,e;case M:return(e=lG(19,n,t,a)).elementType=M,e.lanes=i,e;case F:return lZ(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case L:o=10;break e;case T:o=9;break e;case I:o=11;break e;case R:o=14;break e;case A:o=16,r=null;break e}throw Error(c(130,null==e?e:typeof e,""))}return(t=lG(o,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function lX(e,t,n,r){return(e=lG(7,e,r,t)).lanes=n,e}function lZ(e,t,n,r){return(e=lG(22,e,r,t)).elementType=F,e.lanes=n,e.stateNode={isHidden:!1},e}function l0(e,t,n){return(e=lG(6,e,null,t)).lanes=n,e}function l1(e,t,n){return(t=lG(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l2(e,t,n,r,a){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=to(0),this.expirationTimes=to(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=to(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function l6(e,t,n,r,a,i,o,l,s){return e=new l2(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=lG(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},aA(i),e}function l3(e){if(!e)return rV;e=e._reactInternals;e:{if(eK(e)!==e||1!==e.tag)throw Error(c(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rG(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t)throw Error(c(171))}if(1===e.tag){var n=e.type;if(rG(n))return rY(e,n,t)}return t}function l8(e,t,n,r,a,i,o,l,s){return(e=l6(n,r,!0,e,a,i,o,l,s)).context=l3(null),n=e.current,(i=az(r=lb(),a=lw(n))).callback=null!=t?t:null,aU(n,i,a),e.current.lanes=a,tl(e,a,r),lk(e,r),e}function l4(e,t,n,r){var a=t.current,i=lb(),o=lw(a);return n=l3(n),null===t.context?t.context=n:t.pendingContext=n,(t=az(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=aU(a,t,o))&&(lS(e,a,o,i),a$(e,a,o)),o}function l5(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function l9(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&ntypeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{e8=su.inject(ss),e4=su}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={usingClientEntryPoint:!1,Events:[rM,rR,rA,eP,eD,lD]},t.createPortal=function(e,t){var n=2{"use strict";var r=n(479306),a=TypeError,i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new a("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},842451:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let a=()=>n(636978);class i extends a().DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,r){super.attach(e,t,r),null!==r&&r instanceof n(782944).default?this._network=r:this._network=new(n(782944)).default(null!=t?t:{})}getDataAsync(e,t,n){return this._getDataAsyncImpl(e,(0,a()._normalizeUser)(t,this._options),n)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,a()._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):a().Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,n,a){var i;return r(this,void 0,void 0,function*(){let r=yield null==(i=this._network)?void 0:i.fetchEvaluations(this._getSdkKey(),e,null==n?void 0:n.priority,t,a);return null!=r?r:null})}_getCacheKey(e){var t;let n=(0,a()._getStorageKey)(this._getSdkKey(),e,null==(t=this._options)?void 0:t.customUserCacheKeyFunc);return`${a().DataAdapterCachePrefix}.${this._cacheSuffix}.${n}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,a()._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=i},843509:(e,t,n)=>{"use strict";var r,a,i;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0,t._getStatsigGlobal=()=>{try{return"u">typeof __STATSIG__?__STATSIG__:c}catch(e){return c}},t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let r=(0,t._getStatsigGlobal)();return e?r.instances&&r.instances[e]:(r.instances&&Object.keys(r.instances).length>1&&n(668024).Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),r.firstInstance)};let o="__STATSIG__",l="u">typeof window?window:{},s=void 0!==n.g?n.g:{},u="u">typeof globalThis?globalThis:{},c=null!=(i=null!=(a=null!=(r=l[o])?r:s[o])?a:u[o])?i:{instance:t._getInstance};l[o]=c,s[o]=c,u[o]=c},858156:(e,t,n)=>{e.exports=function(e,t,r){var a=null==e?void 0:n(47422)(e,t);return void 0===a?r:a}},882509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},891648:(e,t,n)=>{e.exports=n(269302)(function(e,t){return n(683693)(e)?n(983915)(e,t):[]})},894681:(e,t,n)=>{"use strict";function r(e,t,r){var a;if(r)return r(e,t);let i=t&&t.customIDs?t.customIDs:{},o=[`uid:${null!=(a=null==t?void 0:t.userID)?a:""}`,`cids:${Object.keys(i).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${i[e]}`).join(",")}`,`k:${e}`];return(0,n(483918)._DJB2)(o.join("|"))}Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0,t._getUserStorageKey=r,t._getStorageKey=function(e,t,a){return t?r(e,t,a):(0,n(483918)._DJB2)(`k:${e}`)}},895747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;let n={};t.SDKFlags={setFlags:(e,t)=>{n[e]=t},get:(e,t)=>{var r,a;return null!=(a=null==(r=n[e])?void 0:r[t])&&a}}},905025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},906745:(e,t,n)=>{"use strict";n.d(t,{DateTime:()=>r().A,IX:()=>i().A,R2:()=>o().A,dw:()=>a().Ay,oh:()=>l().A,wB:()=>s().A});var r=()=>n(204979),a=()=>n(81269),i=()=>n(759376),o=()=>n(520585),l=()=>n(519784),s=()=>n(321584)},907686:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}s((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let a=()=>n(636978);class i extends a().StatsigClientBase{static instance(e){let t=(0,a()._getStatsigGlobal)().instance(e);return t instanceof i?t:(a().Log.warn((0,a()._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new i(null!=e?e:"",{}))}constructor(e,t,r=null){var i,o;a().SDKType._setClientType(e,"javascript-client");const l=new(n(782944)).default(r,e=>{this.$emt(e)});for(const s of(super(e,null!=(i=null==r?void 0:r.dataAdapter)?i:new(n(842451)).StatsigEvaluationsDataAdapter,l,r),this.getFeatureGate=this._memoize(a().MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(a().MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(a().MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getLayer=this._memoize(a().MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(a().MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new(n(87677)).default(e),this._network=l,this._user=this._configureUser(t,r),null!=(o=null==r?void 0:r.plugins)?o:[]))s.bind(this)}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,a().createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!=(t=this._store.getWarnings())?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return r(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){var n;let r=performance.now(),i=[...null!=(n=this._store.getWarnings())?n:[]];this._resetForUser(e);let o=this.dataAdapter.getDataSync(this._user);null==o&&i.push("NoCachedValues"),this._store.setValues(o,this._user),this._finalizeUpdate(o);let l=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===l||null==l&&(null==o?void 0:o.source)==="Bootstrap"||this._runPostUpdate(null!=o?o:null,this._user),(0,a().createUpdateDetails)(!0,this._store.getSource(),performance.now()-r,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),i)}updateUserAsync(e,t){return r(this,void 0,void 0,function*(){this._resetForUser(e);let n=this._user;a().Diagnostics._markInitOverallStart(this._sdkKey);let r=this.dataAdapter.getDataSync(n);if(this._store.setValues(r,this._user),this._setStatus("Loading",r),r=yield this.dataAdapter.getDataAsync(r,n,t),n!==this._user)return(0,a().createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let i=!1;null!=r&&(a().Diagnostics._markInitProcessStart(this._sdkKey),i=this._store.setValues(r,this._user),a().Diagnostics._markInitProcessEnd(this._sdkKey,{success:i})),this._finalizeUpdate(r),i||(this._errorBoundary.attachErrorIfNoneExists(a().UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),a().Diagnostics._markInitOverallEnd(this._sdkKey,i,this._store.getCurrentSourceDetails());let o=a().Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,a().createUpdateDetails)(i,this._store.getSource(),o,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:a().StatsigSession.get(this._sdkKey),stableID:a().StableID.get(this._sdkKey)}}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,n){let r="string"==typeof e?{eventName:e,value:t,metadata:n}:e;this.$emt({name:"log_event_called",event:r}),this._logger.enqueue(Object.assign(Object.assign({},r),{user:this._user,time:Date.now()}))}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return r(this,void 0,void 0,function*(){return a().Storage.isReady()||(yield a().Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{a().Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var n;let r=(0,a()._normalizeUser)(e,t),i=null==(n=r.customIDs)?void 0:n.stableID;return i&&a().StableID.setOverride(i,this._sdkKey),r}_getFeatureGateImpl(e,t){var n,r;let{result:i,details:o}=this._store.getGate(e),l=(0,a()._makeFeatureGate)(e,o,i),s=null==(r=null==(n=this.overrideAdapter)?void 0:n.getGateOverride)?void 0:r.call(n,l,this._user,t),u=null!=s?s:l;return this._enqueueExposure(e,(0,a()._createGateExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:u}),u}_getDynamicConfigImpl(e,t){var n,r;let{result:i,details:o}=this._store.getConfig(e),l=(0,a()._makeDynamicConfig)(e,o,i),s=null==(r=null==(n=this.overrideAdapter)?void 0:n.getDynamicConfigOverride)?void 0:r.call(n,l,this._user,t),u=null!=s?s:l;return this._enqueueExposure(e,(0,a()._createConfigExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:u}),u}_getExperimentImpl(e,t){var n,r,i,o;let{result:l,details:s}=this._store.getConfig(e),u=(0,a()._makeExperiment)(e,s,l);null!=u.__evaluation&&(u.__evaluation.secondary_exposures=(0,a()._mapExposures)(null!=(r=null==(n=u.__evaluation)?void 0:n.secondary_exposures)?r:[],this._store.getExposureMapping()));let c=null==(o=null==(i=this.overrideAdapter)?void 0:i.getExperimentOverride)?void 0:o.call(i,u,this._user,t),f=null!=c?c:u;return this._enqueueExposure(e,(0,a()._createConfigExposure)(this._user,f,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:f}),f}_getLayerImpl(e,t){var n,r,i;let{result:o,details:l}=this._store.getLayer(e),s=(0,a()._makeLayer)(e,l,o),u=null==(r=null==(n=this.overrideAdapter)?void 0:n.getLayerOverride)?void 0:r.call(n,s,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);let c=(0,a()._mergeOverride)(s,u,null!=(i=null==u?void 0:u.__value)?i:s.__value,n=>{null!=t&&t.disableExposureLog||this._enqueueExposure(e,(0,a()._createLayerParameterExposure)(this._user,c,n,this._store.getExposureMapping()),t)});return this.$emt({name:"layer_evaluation",layer:c}),c}_getParameterStoreImpl(e,t){var r,a;let{result:i,details:o}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);let l={name:e,details:o,__configuration:i,get:(0,n(79999)._makeParamStoreGetter)(this,i,t)},s=null==(a=null==(r=this.overrideAdapter)?void 0:r.getParamStoreOverride)?void 0:a.call(r,l,t);return null!=s&&(l.__configuration=s.config,l.details=s.details,l.get=(0,n(79999)._makeParamStoreGetter)(this,s.config,t)),l}}t.default=i},908128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnDeviceEvalAdapter=void 0,t.OnDeviceEvalAdapter=class{constructor(e){this._store=new(n(982026)).SpecStore,this._evaluator=new(n(982026)).Evaluator(this._store),null!=e&&this.setData(e)}setData(e){let t=(0,n(636978)._makeDataAdapterResult)("Bootstrap",e,null);this._store.setValuesFromDataAdapter(t)}getGateOverride(e,t,r){return this._evaluate(e,t,this._evaluator.evaluateGate.bind(this._evaluator),n(636978)._makeFeatureGate)}getDynamicConfigOverride(e,t,r){return this._evaluate(e,t,this._evaluator.evaluateConfig.bind(this._evaluator),n(636978)._makeDynamicConfig)}getExperimentOverride(e,t,r){return this._evaluate(e,t,this._evaluator.evaluateConfig.bind(this._evaluator),n(636978)._makeExperiment)}getLayerOverride(e,t,r){return this._evaluate(e,t,this._evaluator.evaluateLayer.bind(this._evaluator),n(636978)._makeLayer)}getParamStoreOverride(e,t){if(!this._shouldTryOnDeviceEval(e.details))return null;let{config:n,details:r}=this._evaluator.getParamStoreConfig(e.name);return r.reason="[OnDevice]"+r.reason,{config:null!=n?n:{},details:r}}_evaluate(e,t,n,r){if(!this._shouldTryOnDeviceEval(e.details))return null;let a=e.name,{evaluation:i,details:o}=n(a,t);return o.reason="[OnDevice]"+o.reason,r(a,o,i)}_shouldTryOnDeviceEval(e){let t=this._store.getValues();return null!=t&&(!e.lcut||t.time>e.lcut)}}},933426:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(719651),t),a(n(504269),t)},942265:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(687683),a=n(296540),i=n(124184),o=n(38798),l=n(152694);function s(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}let u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,r.MT)(),t.state={cache:t.cache,intl:(0,l.E)(s(t.props),t.cache),prevConfig:s(t.props)},t}return(0,n(331635).C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,a=s(e);return(0,i.bN)(n,a)?null:{intl:(0,l.E)(a,r),prevConfig:a}},t.prototype.render=function(){return(0,i.HM)(this.state.intl),a.createElement(o.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=i.JF,t}(a.PureComponent)},950014:(e,t,n)=>{e.exports=function(e,t){return e&&e.length?n(855765)(e,n(315389)(t,2)):[]}},952224:e=>{"use strict";e.exports=function(e){return String(e).replace(n,"$1�$2").replace(t,encodeURI)};var t=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,n=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g},953705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0,t._typedJsonParse=function(e,t,r){try{let n=JSON.parse(e);if(n&&"object"==typeof n&&t in n)return n}catch(e){}return n(668024).Log.error(`Failed to parse ${r}`),null}},958065:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(296540),a=n(706442),i=n(124184);function o(e){var t=(0,a.A)(),n=t.formatMessage,i=t.textComponent,o=void 0===i?r.Fragment:i,l=e.id,s=e.description,u=e.defaultMessage,c=e.values,f=e.children,d=e.tagName,p=void 0===d?o:d,h=n({id:l,description:s,defaultMessage:u},c,{ignoreTag:e.ignoreTag});return"function"==typeof f?f(Array.isArray(h)?h:[h]):p?r.createElement(p,null,r.Children.toArray(h)):r.createElement(r.Fragment,null,h)}o.displayName="FormattedMessage";var l=r.memo(o,function(e,t){var r=e.values,a=(0,n(331635).Tt)(e,["values"]),o=t.values,l=(0,n(331635).Tt)(t,["values"]);return(0,i.bN)(o,r)&&(0,i.bN)(a,l)});l.displayName="MemoizedFormattedMessage";let s=l},962193:(e,t,n)=>{var r=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(n(864894)(e)&&(n(956449)(e)||"string"==typeof e||"function"==typeof e.splice||n(3656)(e)||n(137167)(e)||n(872428)(e)))return!e.length;var t=n(405861)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(n(255527)(e))return!n(988984)(e).length;for(var a in e)if(r.call(e,a))return!1;return!0}},967357:(e,t,n)=>{"use strict";var r=n(746518),a=n(179504),i=n(567750),o=n(991291),l=n(500655),s=n(779039),u=a("".charAt);r({target:"String",proto:!0,forced:s(function(){return"\uD842"!=="𠮷".at(-2)})},{at:function(e){var t=l(i(this)),n=t.length,r=o(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:u(t,a)}})},968474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},971180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},976135:(e,t,n)=>{e.exports=n(539754)},982026:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(512335),t),a(n(729094),t)},984058:(e,t,n)=>{e.exports=n(745539)(function(e,t,r){return t=t.toLowerCase(),e+(r?n(314792)(t):t)})}}]);