/*! For license information please see bitbucket.js.LICENSE.txt */ (self.bxpChunk=self.bxpChunk||[]).push([[6832],{20974:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>A});var n=r(4942),i=r(90250),o=r(56387);const s="@all-features";class a{constructor(){(0,n.Z)(this,"eventToValue",new Map),this.emitter=new o.EventEmitter2}onGateUpdated(t,e,r,n){const i=r(t,{...n,fireGateExposure:!1});void 0===this.eventToValue.get(e)&&this.eventToValue.set(e,i);const o=()=>{const i=r(t,{...n,fireGateExposure:!1});this.eventToValue.get(e)!==i&&(this.eventToValue.set(e,i),e(i))};return this.emitter.on(t,o),()=>{this.emitter.off(t,o)}}onExperimentValueUpdated(t,e,r,n,i,o){const s=`${t}.${e}`,a=i(t,e,r,{...o,fireExperimentExposure:!1});void 0===this.eventToValue.get(n)&&this.eventToValue.set(n,a);const u=()=>{const s=i(t,e,r,{...o,fireExperimentExposure:!1});this.eventToValue.get(n)!==s&&(this.eventToValue.set(n,s),n(s))};return this.emitter.on(s,u),()=>{this.emitter.off(s,u)}}onAnyUpdated(t){return this.emitter.on(s,t),()=>{this.emitter.off(s,t)}}anyUpdated(){this.emitter.emit(s),this.emitter.eventNames().filter((t=>t!==s)).forEach((t=>{this.emitter.emit(t)}))}}var u=r(46002),l=r(28417),c=r(84488),h=r(67819),f=r(38586);class d extends Error{constructor(t){super(t)}}class p{static async fetchClientSdk(t){const{targetApp:e}=t,r=`/api/v2/frontend/clientSdkKey/${e}`;try{return await this.fetchRequest(r,"GET",t)}catch(t){if(t instanceof Error)throw t;throw Error("Failed to retrieve client sdk key")}}static async fetchExperimentValues(t,e,r){const n={identifiers:e,customAttributes:r,targetApp:t.targetApp};try{return await this.fetchRequest("/api/v2/frontend/experimentValues","POST",t,n)}catch(t){if(t instanceof Error)throw t;throw Error("Failed to retrieve experiment values")}}static async handleResponseError(t){if(!t.ok){const e=await t.text();throw new d(`Non 2xx response status received, status: ${t.status}, body: ${JSON.stringify(e)}`)}if(204===t.status)throw new d("Unexpected 204 response")}static async extractResponseBody(t){const e=await t.text();return JSON.parse(e)}static getBaseUrl(t,e=!1,r){if(e)return"/gateway/api/flags";if(r===h.Au.FEDRAMP_MODERATE)switch(t){case h.kA.Production:return"https://api.atlassian-us-gov-mod.com/flags";case h.kA.Staging:return"https://api.stg.atlassian-us-gov-mod.com/flags";default:throw new Error(`Invalid environment "${t}" for "${r}" perimeter`)}else{if(r!==h.Au.COMMERCIAL)throw new Error(`Invalid perimeter "${r}"`);switch(t){case h.kA.Development:return"https://api.dev.atlassian.com/flags";case h.kA.Staging:return"https://api.stg.atlassian.com/flags";default:return"https://api.atlassian.com/flags"}}}static async fetchRequest(t,e,r,n){const i=p.getBaseUrl(r.environment,r.useGatewayURL,r.perimeter),o=r.fetchTimeoutMs||5e3;let s;if(AbortSignal.timeout)s=AbortSignal.timeout(o);else if(AbortController){const t=new AbortController;s=t.signal,setTimeout((()=>t.abort()),o)}const a=await fetch(`${i}${t}`,{method:e,headers:{"Content-Type":"application/json","X-Client-Name":"feature-gate-js-client","X-Client-Version":f.R,"X-API-KEY":r.apiKey},signal:s,...n&&{body:JSON.stringify(n)}});return await this.handleResponseError(a),await this.extractResponseBody(a)}}class g extends i.DataAdapterCore{constructor(){super("NoFetchDataAdapter","nofetch"),(0,n.Z)(this,"bootstrapResult",null)}setBootstrapData(t){this.bootstrapResult=t?{source:"Bootstrap",data:JSON.stringify(t),receivedAt:Date.now(),stableID:i.StableID.get(this._getSdkKey()),fullUserHash:null}:null}async prefetchData(t,e){}async getDataAsync(t,e,r){return this.bootstrapResult&&{...this.bootstrapResult,fullUserHash:(0,i._getFullUserHash)(e)}}getDataSync(t){return this.bootstrapResult&&{...this.bootstrapResult,fullUserHash:(0,i._getFullUserHash)(t)}}async _fetchFromNetwork(t,e,r){return null}_getCacheKey(t){const e=(0,i._getStorageKey)(this._getSdkKey(),t);return`${i.DataAdapterCachePrefix}.${this._cacheSuffix}.${e}`}_isCachedResultValidFor204(t,e){return!1}setDataLegacy(t,e){super.setData(t,e)}toJSON(){const t={...this};return delete t._options,delete t._inMemoryCache,delete t.bootstrapResult,t}}var v=r(13328);const y="LocalOverride:Recognized",m="STATSIG_JS_LITE_LOCAL_OVERRIDES",_=(t,e)=>e+":"+t;class b{constructor(t){this._overrides={gates:{},configs:{},layers:{}},this._djb2Map=new Map,this._localStorageKey=t}parseStoredOverrides(t){try{const e=window.localStorage.getItem(t);return e?JSON.parse(e):{gates:{},configs:{},layers:{}}}catch{return{gates:{},configs:{},layers:{}}}}mergeOverrides(...t){const e={gates:{},configs:{},layers:{}};for(const o of t){for(const[t,n]of Object.entries(null!==(r=o.gates)&&void 0!==r?r:{})){var r;e.gates[t]=n}for(const[t,r]of Object.entries(null!==(n=o.configs)&&void 0!==n?n:{})){var n;e.configs[t]=r}for(const[t,r]of Object.entries(null!==(i=o.layers)&&void 0!==i?i:{})){var i;e.layers[t]=r}}return e}initFromStoredOverrides(){const t=this.mergeOverrides(this._overrides,this.parseStoredOverrides(m),this.parseStoredOverrides(this._localStorageKey));try{window.localStorage.removeItem(m)}catch{}for(const e of Object.values(t)){const t=new Set(Object.keys(e));for(const r of t){const n=(0,v._DJB2)(r);t.has(n)&&delete e[n]}}this.applyOverrides(t)}saveOverrides(){try{window.localStorage.setItem(this._localStorageKey,JSON.stringify(this._overrides))}catch{}}getOverrides(){return this.mergeOverrides(this._overrides)}applyOverrides(t){const e={gates:{},configs:{},layers:{},...t};this._djb2Map.clear();for(const[t,r]of Object.entries(e))for(const[e,n]of Object.entries(r))this._djb2Map.set(_((0,v._DJB2)(e),t),n);this._overrides=e}setOverrides(t){this.applyOverrides(t),this.saveOverrides()}overrideGate(t,e){this._overrides.gates[t]=e,this._djb2Map.set(_((0,v._DJB2)(t),"gates"),e),this.saveOverrides()}removeGateOverride(t){delete this._overrides.gates[t],this._djb2Map.delete(_((0,v._DJB2)(t),"gates")),this.saveOverrides()}getGateOverride(t,e){var r;const n=null!==(r=this._overrides.gates[t.name])&&void 0!==r?r:this._djb2Map.get(_(t.name,"gates"));return null==n?null:{...t,value:n,details:{...t.details,reason:y}}}overrideDynamicConfig(t,e){this._overrides.configs[t]=e,this._djb2Map.set(_((0,v._DJB2)(t),"configs"),e),this.saveOverrides()}removeDynamicConfigOverride(t){delete this._overrides.configs[t],this._djb2Map.delete(_((0,v._DJB2)(t),"configs")),this.saveOverrides()}getDynamicConfigOverride(t,e){return this._getConfigOverride(t,this._overrides.configs)}overrideExperiment(t,e){this._overrides.configs[t]=e,this._djb2Map.set(_((0,v._DJB2)(t),"configs"),e),this.saveOverrides()}removeExperimentOverride(t){delete this._overrides.configs[t],this._djb2Map.delete(_((0,v._DJB2)(t),"configs")),this.saveOverrides()}getExperimentOverride(t,e){return this._getConfigOverride(t,this._overrides.configs)}overrideLayer(t,e){this._overrides.layers[t]=e,this._djb2Map.set(_((0,v._DJB2)(t),"layers"),e),this.saveOverrides()}removeLayerOverride(t){delete this._overrides.layers[t],this._djb2Map.delete(_((0,v._DJB2)(t),"layers")),this.saveOverrides()}removeAllOverrides(){this._overrides={gates:{},configs:{},layers:{}};try{window.localStorage.removeItem(this._localStorageKey)}catch{}}getLayerOverride(t,e){var r;const n=null!==(r=this._overrides.layers[t.name])&&void 0!==r?r:this._djb2Map.get(_(t.name,"layers"));return null==n?null:{...t,__value:n,get:(0,v._makeTypedGet)(t.name,n),details:{...t.details,reason:y}}}_getConfigOverride(t,e){var r;const n=null!==(r=e[t.name])&&void 0!==r?r:this._djb2Map.get(_(t.name,"configs"));return null==n?null:{...t,value:n,get:(0,v._makeTypedGet)(t.name,n),details:{...t.details,reason:y}}}}var w=r(73821);const S="client-default-key";var E;class O{static isGateExists(t){return this.client.isGateExist(t)}static isExperimentExists(t){return this.client.isExperimentExist(t)}}E=O,(0,n.Z)(O,"client",new class{constructor({localStorageKey:t="STATSIG_OVERRIDES"}={}){(0,n.Z)(this,"initPromise",null),(0,n.Z)(this,"initCompleted",!1),(0,n.Z)(this,"initWithDefaults",!1),(0,n.Z)(this,"hasCheckGateErrorOccurred",!1),(0,n.Z)(this,"hasGetExperimentErrorOccurred",!1),(0,n.Z)(this,"hasGetExperimentValueErrorOccurred",!1),(0,n.Z)(this,"hasGetLayerErrorOccurred",!1),(0,n.Z)(this,"hasGetLayerValueErrorOccurred",!1),(0,n.Z)(this,"subscriptions",new a),(0,n.Z)(this,"dataAdapter",new g),(0,n.Z)(this,"statsigValuesUpdated",(()=>{this.user&&this.statsigClient.updateUserSync(this.user,{disableBackgroundCacheRefresh:!0}),this.subscriptions.anyUpdated()})),this.overrideAdapter=new b(t)}async initialize(t,e,r){const n=(0,w.bN)(t);if(this.initPromise)return(0,w.Ak)(n,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),this.initPromise;const i=performance.now();return this.initOptions=n,this.initPromise=this.init(n,e,r).then((()=>{this.initCompleted=!0,this.initWithDefaults=!0})).finally((()=>{const t=performance.now()-i;this.fireClientEvent(i,t,"initialize",this.initCompleted,n.apiKey)})),this.initPromise}async initializeWithProvider(t,e,r,n){const i=(0,w.bN)(t);if(this.initPromise)return(0,w.Ak)(i,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),this.initPromise;const o=performance.now();return this.initOptions=i,this.provider=e,this.provider.setClientVersion(f.R),this.provider.setApplyUpdateCallback&&this.provider.setApplyUpdateCallback(this.applyUpdateCallback.bind(this)),this.initPromise=this.initWithProvider(i,e,r,n).then((()=>{this.initCompleted=!0,this.initWithDefaults=!0})).finally((()=>{const t=performance.now()-o;this.fireClientEvent(o,t,"initializeWithProvider",this.initCompleted,e.getApiKey?e.getApiKey():void 0)})),this.initPromise}applyUpdateCallback(t){try{(this.initCompleted||this.initWithDefaults)&&(this.assertInitialized(this.statsigClient),this.dataAdapter.setBootstrapData(t.experimentValues),this.dataAdapter.setData(JSON.stringify(t.experimentValues)),this.statsigValuesUpdated())}catch(t){console.warn("Error when attempting to apply update",t)}}fireClientEvent(t,e,r,n,i=void 0){var o;null===(o=this.initOptions.analyticsWebClient)||void 0===o||o.then((o=>{const s={targetApp:this.initOptions.targetApp,clientVersion:f.R,success:n,startTime:t,totalTime:e,...i&&{apiKey:i}};o.sendOperationalEvent({action:r,actionSubject:"featureGatesClient",attributes:s,tags:["measurement"],source:"@atlaskit/feature-gate-js-client"})})).catch((t=>{this.initOptions.environment!==h.kA.Production&&console.error("Analytics web client promise did not resolve",t)}))}async initializeFromValues(t,e,r,n={}){const i=(0,w.bN)(t);if(this.initPromise)return(0,w.Ak)(i,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),this.initPromise;Object.prototype.hasOwnProperty.call(n,"has_updates")||(n.has_updates=!0);const o=performance.now();return this.initOptions=i,this.initPromise=this.initFromValues(i,e,r,n).then((()=>{this.initCompleted=!0,this.initWithDefaults=!0})).finally((()=>{const t=performance.now()-o;this.fireClientEvent(o,t,"initializeFromValues",this.initCompleted)})),this.initPromise}assertInitialized(t){if(!t)throw new Error("Client must be initialized before using this method")}async updateUser(t,e,r){this.assertInitialized(this.statsigClient);const n=(0,w.bN)(t);await this.updateUserUsingInitializeValuesProducer((()=>p.fetchExperimentValues(n,e,r).then((({experimentValues:t,customAttributes:e})=>({experimentValues:t,customAttributesFromFetch:e})))),e,r)}async updateUserWithProvider(t,e){if(this.assertInitialized(this.statsigClient),!this.provider)throw new Error("Cannot update user using provider as the client was not initialised with a provider");await this.provider.setProfile(this.initOptions,t,e),await this.updateUserUsingInitializeValuesProducer((()=>this.provider.getExperimentValues()),t,e)}async updateUserWithValues(t,e,r={}){this.assertInitialized(this.statsigClient),await this.updateUserUsingInitializeValuesProducer((()=>Promise.resolve({experimentValues:r,customAttributesFromFetch:e})),t,e)}initializeCalled(){return null!=this.initPromise}initializeCompleted(){return this.initCompleted}checkGate(t,e={}){try{this.assertInitialized(this.statsigClient);const{fireGateExposure:r=!0}=e;return this.statsigClient.checkGate(t,{disableExposureLog:!r})}catch(e){return this.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate. Only the first occurrence of this error is logged.",gateName:t,error:e}),this.hasCheckGateErrorOccurred=!0),!1}}isGateExist(t){try{return this.assertInitialized(this.statsigClient),!this.statsigClient.getFeatureGate(t,{disableExposureLog:!0}).details.reason.includes("Unrecognized")}catch(t){return console.error(`Error occurred when trying to check FeatureGate: ${t}`),!0}}isExperimentExist(t){try{return this.assertInitialized(this.statsigClient),!this.statsigClient.getExperiment(t,{disableExposureLog:!0}).details.reason.includes("Unrecognized")}catch(t){return console.error(`Error occurred when trying to check Experiment: ${t}`),!0}}manuallyLogGateExposure(t){this.assertInitialized(this.statsigClient),this.statsigClient.checkGate(t)}getExperiment(t,e={}){try{this.assertInitialized(this.statsigClient);const{fireExperimentExposure:r=!0}=e;return u.z.fromExperiment(this.statsigClient.getExperiment(t,{disableExposureLog:!r}))}catch(e){return this.hasGetExperimentErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment. Only the first occurrence of this error is logged.",experimentName:t,error:e}),this.hasGetExperimentErrorOccurred=!0),new u.z(t,{},"",{time:Date.now(),reason:c.p.Error})}}getExperimentValue(t,e,r,n={}){const i=this.getExperiment(t,n);try{const{typeGuard:t}=n;return i.get(e,r,t)}catch(e){return this.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value. Only the first occurrence of this error is logged.",experimentName:t,defaultValue:r,options:n,error:e}),this.hasGetExperimentValueErrorOccurred=!0),r}}manuallyLogExperimentExposure(t){this.assertInitialized(this.statsigClient),this.statsigClient.getExperiment(t)}manuallyLogLayerExposure(t,e){var r;this.assertInitialized(this.statsigClient),null===(r=this.statsigClient.getLayer(t))||void 0===r||r.get(e)}shutdownStatsig(){this.assertInitialized(this.statsigClient),this.statsigClient.shutdown()}overrideGate(t,e){var r;this.overrideAdapter.overrideGate(t,e),this.user&&(null===(r=this.statsigClient)||void 0===r||r.updateUserSync(this.user,{disableBackgroundCacheRefresh:!0})),this.statsigValuesUpdated()}clearGateOverride(t){this.overrideAdapter.removeGateOverride(t),this.statsigValuesUpdated()}overrideConfig(t,e){this.overrideAdapter.overrideDynamicConfig(t,e),this.statsigValuesUpdated()}clearConfigOverride(t){this.overrideAdapter.removeDynamicConfigOverride(t),this.statsigValuesUpdated()}setOverrides(t){this.overrideAdapter.setOverrides(t),this.statsigValuesUpdated()}getOverrides(){return this.overrideAdapter.getOverrides()}clearAllOverrides(){this.overrideAdapter.removeAllOverrides(),this.statsigValuesUpdated()}isCurrentUser(t,e){return(0,w.Ak)(this.currentIdentifiers,t)&&(0,w.Ak)(this.currentAttributes,e)}onGateUpdated(t,e,r={}){return this.subscriptions.onGateUpdated(t,(n=>{const{fireGateExposure:i=!0}=r;i&&this.manuallyLogGateExposure(t);try{e(n)}catch(e){console.warn(`Error calling callback for gate ${t} with value ${n}`,e)}}),this.checkGate.bind(this),r)}onExperimentValueUpdated(t,e,r,n,i={}){return this.subscriptions.onExperimentValueUpdated(t,e,r,(e=>{const{fireExperimentExposure:r=!0}=i;r&&this.manuallyLogExperimentExposure(t);try{n(e)}catch(r){console.warn(`Error calling callback for experiment ${t} with value ${e}`,r)}}),this.getExperimentValue.bind(this),i)}onAnyUpdated(t){return this.subscriptions.onAnyUpdated(t)}async init(t,e,r){const n={...t};let i,o;try{const s=p.fetchClientSdk(t).then((t=>n.sdkKey=t.clientSdkKey)),a=p.fetchExperimentValues(t,e,r),[,u]=await Promise.all([s,a]);i=u.experimentValues,o=u.customAttributes}catch(t){throw t instanceof Error&&console.error(`Error occurred when trying to fetch the Feature Gates client values, error: ${null==t?void 0:t.message}`),console.warn("Initialising Statsig client without values"),await this.initFromValues(n,e,r),t}return this.initFromValues(n,e,o,i)}async initWithProvider(t,e,r,n){const i={...t,disableCurrentPageLogging:!0};let o,s;try{await e.setProfile(t,r,n);const a=e.getClientSdkKey().then((t=>i.sdkKey=t)),u=e.getExperimentValues(),[,l]=await Promise.all([a,u]);o=l.experimentValues,s=l.customAttributesFromFetch}catch(t){throw t instanceof Error&&console.error(`Error occurred when trying to fetch the Feature Gates client values, error: ${null==t?void 0:t.message}`),console.warn("Initialising Statsig client without values"),await this.initFromValues(i,r,n),t}return this.initFromValues(i,r,s,o)}async initFromValues(t,e,r,n={}){var o;this.overrideAdapter.initFromStoredOverrides(),this.currentIdentifiers=e,this.currentAttributes=r;const s=(0,w.Lb)(t);s.sdkKey||(s.sdkKey=S),null!==(o=s.networkConfig)&&void 0!==o&&o.logEventUrl||(s.networkConfig={...s.networkConfig,logEventUrl:"https://xp.atlassian.com/v1/rgstr"}),s.perimeter===h.Au.FEDRAMP_MODERATE&&(s.disableLogging=!0);const{sdkKey:a,environment:u,updateUserCompletionCallback:l,perimeter:c,...f}=s;this.sdkKey=a,this.user=(0,w.at)(e,r,this.sdkKey);const d={...f,environment:{tier:u},includeCurrentPageUrlWithEvents:!1,dataAdapter:this.dataAdapter,overrideAdapter:this.overrideAdapter};try{this.statsigClient=new i.StatsigClient(a,this.user,d),this.dataAdapter.setBootstrapData(n),await this.statsigClient.initializeAsync()}catch(t){throw t instanceof Error&&console.error(`Error occurred when trying to initialise the Statsig client, error: ${null==t?void 0:t.message}`),console.warn("Initialising Statsig client with default sdk key and without values"),this.statsigClient=new i.StatsigClient(S,this.user,d),this.dataAdapter.setBootstrapData(),await this.statsigClient.initializeAsync(),this.initWithDefaults=!0,t}}async updateUserUsingInitializeValuesProducer(t,e,r){if(this.assertInitialized(this.statsigClient),!this.initPromise)throw new Error("The client must be initialized before you can update the user.");if(this.isCurrentUser(e,r))return this.initPromise;const n=this.initPromise;try{await this.initPromise}catch(t){}const i=t(),o=this.updateStatsigClientUser(i,e,r);return this.initPromise=o.catch((async()=>{this.initPromise=n,this.provider&&await this.provider.setProfile(this.initOptions,this.currentIdentifiers,this.currentAttributes)})),o}async updateStatsigClientUser(t,e,r){var n,i;let o,s;this.assertInitialized(this.statsigClient);try{o=await t,s=(0,w.at)(e,o.customAttributesFromFetch,this.sdkKey)}catch(t){var a,u;const e=t instanceof Error?t.message:JSON.stringify(t);throw null===(a=(u=this.initOptions).updateUserCompletionCallback)||void 0===a||a.call(u,!1,e),t}let l=!0,c=null;try{this.dataAdapter.setBootstrapData(o.experimentValues),this.user=s,await this.statsigClient.updateUserAsync(this.user)}catch(t){l=!1,c=String(t)}if(null===(n=this.initOptions)||void 0===n||null===(i=n.updateUserCompletionCallback)||void 0===i||i.call(n,l,c),!l)throw new Error("Failed to update user. An unexpected error occured.");this.currentIdentifiers=e,this.currentAttributes=r,this.subscriptions.anyUpdated()}getPackageVersion(){return f.R}getLayer(t,e={}){try{this.assertInitialized(this.statsigClient);const{fireLayerExposure:r=!0}=e;return l.m.fromLayer(this.statsigClient.getLayer(t,{disableExposureLog:!r}))}catch(e){return this.hasGetLayerErrorOccurred||(console.warn({msg:"An error has occurred getting the layer. Only the first occurrence of this error is logged.",layerName:t,error:e}),this.hasGetLayerErrorOccurred=!0),l.m.fromLayer((0,i._makeLayer)(t,{reason:"Error"},null))}}getLayerValue(t,e,r,n={}){const i=this.getLayer(t,n);try{const{typeGuard:t}=n;return i.get(e,r,t)}catch(e){return this.hasGetLayerValueErrorOccurred||(console.warn({msg:"An error has occurred getting the layer value. Only the first occurrence of this error is logged.",layerName:t,defaultValue:r,options:n,error:e}),this.hasGetLayerValueErrorOccurred=!0),r}}}),(0,n.Z)(O,"hasCheckGateErrorOccurred",!1),(0,n.Z)(O,"hasGetExperimentValueErrorOccurred",!1),(0,n.Z)(O,"checkGate",((t,e)=>{try{if("undefined"!=typeof window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getFeatureFlagOverride){const e=window.__CRITERION__.getFeatureFlagOverride(t);if(void 0!==e)return e}}catch(e){E.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate from criterion override. Only the first occurrence of this error is logged.",gateName:t,error:e}),E.hasCheckGateErrorOccurred=!0)}return E.client.checkGate(t,e)})),(0,n.Z)(O,"getExperimentValue",((t,e,r,n)=>{try{if("undefined"!=typeof window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getExperimentValueOverride){const r=window.__CRITERION__.getExperimentValueOverride(t,e);if(null!=r)return r}}catch(e){return E.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value from criterion override. Only the first occurrence of this error is logged.",experimentName:t,defaultValue:r,options:n,error:e}),E.hasGetExperimentValueErrorOccurred=!0),r}return E.client.getExperimentValue(t,e,r,n)})),(0,n.Z)(O,"initializeCalled",E.client.initializeCalled.bind(E.client)),(0,n.Z)(O,"initializeCompleted",E.client.initializeCompleted.bind(E.client)),(0,n.Z)(O,"initialize",E.client.initialize.bind(E.client)),(0,n.Z)(O,"initializeWithProvider",E.client.initializeWithProvider.bind(E.client)),(0,n.Z)(O,"initializeFromValues",E.client.initializeFromValues.bind(E.client)),(0,n.Z)(O,"manuallyLogGateExposure",E.client.manuallyLogGateExposure.bind(E.client)),(0,n.Z)(O,"getExperiment",E.client.getExperiment.bind(E.client)),(0,n.Z)(O,"manuallyLogExperimentExposure",E.client.manuallyLogExperimentExposure.bind(E.client)),(0,n.Z)(O,"manuallyLogLayerExposure",E.client.manuallyLogLayerExposure.bind(E.client)),(0,n.Z)(O,"shutdownStatsig",E.client.shutdownStatsig.bind(E.client)),(0,n.Z)(O,"overrideGate",E.client.overrideGate.bind(E.client)),(0,n.Z)(O,"clearGateOverride",E.client.clearGateOverride.bind(E.client)),(0,n.Z)(O,"overrideConfig",E.client.overrideConfig.bind(E.client)),(0,n.Z)(O,"clearConfigOverride",E.client.clearConfigOverride.bind(E.client)),(0,n.Z)(O,"setOverrides",E.client.setOverrides.bind(E.client)),(0,n.Z)(O,"getOverrides",E.client.getOverrides.bind(E.client)),(0,n.Z)(O,"clearAllOverrides",E.client.clearAllOverrides.bind(E.client)),(0,n.Z)(O,"isCurrentUser",E.client.isCurrentUser.bind(E.client)),(0,n.Z)(O,"onGateUpdated",E.client.onGateUpdated.bind(E.client)),(0,n.Z)(O,"onExperimentValueUpdated",E.client.onExperimentValueUpdated.bind(E.client)),(0,n.Z)(O,"onAnyUpdated",E.client.onAnyUpdated.bind(E.client)),(0,n.Z)(O,"updateUser",E.client.updateUser.bind(E.client)),(0,n.Z)(O,"updateUserWithProvider",E.client.updateUserWithProvider.bind(E.client)),(0,n.Z)(O,"updateUserWithValues",E.client.updateUserWithValues.bind(E.client)),(0,n.Z)(O,"getPackageVersion",E.client.getPackageVersion.bind(E.client)),(0,n.Z)(O,"getLayer",E.client.getLayer.bind(E.client)),(0,n.Z)(O,"getLayerValue",E.client.getLayerValue.bind(E.client));let k=O;if("undefined"!=typeof window)if(void 0===window.__FEATUREGATES_JS__)window.__FEATUREGATES_JS__=O;else{var x,P;k=window.__FEATUREGATES_JS__;const t=(null===(x=k)||void 0===x||null===(P=x.getPackageVersion)||void 0===P?void 0:P.call(x))||"4.10.0 or earlier";if(t!==f.R){const e=`Multiple versions of FeatureGateClients found on the current page.\n The currently bound version is ${t} when module version ${f.R} was loading.`;console.warn(e)}}const A=k},46002:(t,e,r)=>{"use strict";r.d(e,{z:()=>i});var n=r(73821);class i{static fromExperiment(t){var e,r;const o=new i(t.name,t.value,t.ruleID,(0,n.qX)(t.details),null===(e=t.__evaluation)||void 0===e?void 0:e.secondary_exposures,null!==(r=t.groupName)&&void 0!==r?r:void 0);return o.experiment=t,o}constructor(t,e,r,n,i=[],o="",s=null){this.value=e,this._name=t,this._ruleID=r,this._secondaryExposures=i,this._allocatedExperimentName=o,this._evaluationDetails=n,this._onDefaultValueFallback=s}get(t,e,r){var n;const i=this.getValue(t,e);if(null==i)return e;const o=Array.isArray(e)?"array":typeof e,s=Array.isArray(i)?"array":typeof i;var a;return r?r(i)?(this.fireExposure(t),i):(null===(a=this._onDefaultValueFallback)||void 0===a||a.call(this,this,t,o,s),e):null==e||o===s?(this.fireExposure(t),i):(null===(n=this._onDefaultValueFallback)||void 0===n||n.call(this,this,t,o,s),e)}getValue(t,e){return null==t?this.value:(null==e&&(e=null),null==this.value[t]?e:(this.fireExposure(t),this.value[t]))}fireExposure(t){this.experiment&&this.experiment.get(t)}}},28417:(t,e,r)=>{"use strict";r.d(e,{m:()=>i});var n=r(73821);class i{static fromLayer(t){var e,r,o,s;return new i(t.name,t.__value,t.ruleID,(0,n.qX)(t.details),((e,r)=>t.get(r)),null===(e=t.__evaluation)||void 0===e?void 0:e.secondary_exposures,null===(r=t.__evaluation)||void 0===r?void 0:r.undelegated_secondary_exposures,null===(o=t.__evaluation)||void 0===o?void 0:o.allocated_experiment_name,null===(s=t.__evaluation)||void 0===s?void 0:s.explicit_parameters)}constructor(t,e,r,n,i=null,o=[],s=[],a="",u=[]){this._logParameterFunction=i,this._name=t,this._value=JSON.parse(JSON.stringify(null!=e?e:{})),this._ruleID=null!=r?r:"",this._evaluationDetails=n,this._secondaryExposures=o,this._undelegatedSecondaryExposures=s,this._allocatedExperimentName=a,this._explicitParameters=u}get(t,e,r){const n=this._value[t];if(null==n)return e;const i=()=>(this._logLayerParameterExposure(t),n);return r?r(n)?i():e:null==e||typeof n==typeof e&&Array.isArray(e)===Array.isArray(n)?i():e}getValue(t,e){null==e&&(e=null);const r=this._value[t];return null!=r&&this._logLayerParameterExposure(t),null!=r?r:e}_logLayerParameterExposure(t){var e;null===(e=this._logParameterFunction)||void 0===e||e.call(this,this,t)}}},84488:(t,e,r)=>{"use strict";r.d(e,{p:()=>n});let n=function(t){return t.Error="Error",t.LocalOverride="LocalOverride",t.Unrecognized="Unrecognized",t.Uninitialized="Uninitialized",t.NetworkNotModified="NetworkNotModified",t.Network="Network",t.InvalidBootstrap="InvalidBootstrap",t.Bootstrap="Bootstrap",t.Cache="Cache",t.Unknown="Unknown",t}({})},67819:(t,e,r)=>{"use strict";r.d(e,{Au:()=>i,kA:()=>n});let n=function(t){return t.Development="development",t.Staging="staging",t.Production="production",t}({}),i=function(t){return t.COMMERCIAL="commercial",t.FEDRAMP_MODERATE="fedramp-moderate",t}({})},73821:(t,e,r)=>{"use strict";r.d(e,{bN:()=>a,qX:()=>f,Lb:()=>c,Ak:()=>u,at:()=>l});var n=r(90250);function i(){var t,e;const r=globalThis,n=r.MICROS_PERIMETER||r.UNSAFE_ATL_CONTEXT_BOUNDARY;if(n)return"fedramp-moderate"===n;const i=null===(t=r.location)||void 0===t||null===(e=t.hostname)||void 0===e?void 0:e.match(/atlassian-us-gov-mod\.(com|net)|atlassian-us-gov\.(com|net)|atlassian-fex\.(com|net)|atlassian-stg-fedm\.(com|net)/);return!!i&&i.length>0}var o=r(84488),s=r(67819);const a=t=>({perimeter:i()?s.Au.FEDRAMP_MODERATE:s.Au.COMMERCIAL,...t}),u=(t,e)=>{if(!t&&!e)return!0;if(!t||!e)return!1;const r=Object.entries(t),n=Object.entries(e);if(r.length!==n.length)return!1;const i=([t],[e])=>t.localeCompare(e);r.sort(i),n.sort(i);for(let t=0;t{const i={customIDs:null!=e&&e.stableID||!r?t:{stableID:n.StableID.get(r),...t},custom:e};return t.atlassianAccountId&&(i.userID=t.atlassianAccountId),i},c=t=>{const{api:e,disableCurrentPageLogging:r,loggingIntervalMillis:n,loggingBufferMaxSize:i,localMode:o,eventLoggingApi:s,eventLoggingApiForRetries:a,disableLocalStorage:u,ignoreWindowUndefined:l,disableAllLogging:c,initTimeoutMs:h,disableNetworkKeepalive:f,overrideStableID:d,disableErrorLogging:p,disableAutoMetricsLogging:g,...v}=t;return{...v,networkConfig:{api:e,logEventUrl:s?s+"rgstr":void 0,logEventFallbackUrls:a?[a]:void 0,preventAllNetworkTraffic:o||!l&&"undefined"==typeof window},includeCurrentPageUrlWithEvents:!r,loggingIntervalMs:n,loggingBufferMaxSize:i,disableStorage:void 0===u?o:u,disableLogging:void 0===c?o:c}},h=Object.entries(o.p).map((([t,e])=>[t.toLowerCase(),e])),f=t=>{var e,r,n;const i=t.reason.toLowerCase();return{reason:null!==(e=null===(r=h.find((([t])=>i.includes(t))))||void 0===r?void 0:r[1])&&void 0!==e?e:o.p.Unknown,time:null!==(n=t.receivedAt)&&void 0!==n?n:Date.now()}}},38586:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});const n="4.26.5"},36879:(t,e,r)=>{"use strict";r.d(e,{Gd:()=>y});var n=r(68907),i=r(62844),o=r(21170),s=r(12343),a=r(82991),u=r(72176),l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,c=r(46769),h=r(20535),f=function(){function t(t){this.errors=0,this.sid=(0,i.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,o.ph)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return(0,h.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),d=4,p=function(){function t(t,e,r){void 0===e&&(e=new c.s),void 0===r&&(r=d),this._version=r,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version{"use strict";r.d(e,{c:()=>c,s:()=>u});var n=r(68907),i=r(67597),o=r(21170),s=r(96893),a=r(82991),u=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var r=new t;return e&&(r._breadcrumbs=(0,n.fl)(e._breadcrumbs),r._tags=(0,n.pi)({},e._tags),r._extra=(0,n.pi)({},e._extra),r._contexts=(0,n.pi)({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=(0,n.fl)(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=(0,n.pi)((0,n.pi)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var r;return this._tags=(0,n.pi)((0,n.pi)({},this._tags),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=(0,n.pi)((0,n.pi)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var r;return this._extra=(0,n.pi)((0,n.pi)({},this._extra),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var r;return null===e?delete this._contexts[t]:this._contexts=(0,n.pi)((0,n.pi)({},this._contexts),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=(0,n.pi)((0,n.pi)({},this._tags),e._tags),this._extra=(0,n.pi)((0,n.pi)({},this._extra),e._extra),this._contexts=(0,n.pi)((0,n.pi)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,i.PO)(e)&&(this._tags=(0,n.pi)((0,n.pi)({},this._tags),e.tags),this._extra=(0,n.pi)((0,n.pi)({},this._extra),e.extra),this._contexts=(0,n.pi)((0,n.pi)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var r="number"==typeof e?Math.min(e,100):100;if(r<=0)return this;var i=(0,n.pi)({timestamp:(0,o.yW)()},t);return this._breadcrumbs=(0,n.fl)(this._breadcrumbs,[i]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=(0,n.pi)((0,n.pi)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=(0,n.pi)((0,n.pi)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=(0,n.pi)((0,n.pi)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=(0,n.pi)((0,n.pi)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=(0,n.pi)({trace:this._span.getTraceContext()},t.contexts);var r=this._span.transaction&&this._span.transaction.name;r&&(t.tags=(0,n.pi)({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=(0,n.fl)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,n.fl)(l(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=(0,n.pi)((0,n.pi)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,r,o){var a=this;return void 0===o&&(o=0),new s.cW((function(s,u){var l=t[o];if(null===e||"function"!=typeof l)s(e);else{var c=l((0,n.pi)({},e),r);(0,i.J8)(c)?c.then((function(e){return a._notifyEventProcessors(t,e,r,o+1).then(s)})).then(null,u):a._notifyEventProcessors(t,c,r,o+1).then(s).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function l(){return(0,a.Y)("globalEventProcessors",(function(){return[]}))}function c(t){l().push(t)}},68907:(t,e,r)=>{"use strict";r.d(e,{fl:()=>o,pi:()=>n});var n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function o(){for(var t=[],e=0;e{"use strict";r.d(e,{Tb:()=>a,uT:()=>u,e:()=>l,rJ:()=>c,$e:()=>h});var n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}var o=r(36879);function s(t){for(var e=[],r=1;r{"use strict";var n;r.d(e,{z:()=>n}),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(n||(n={}))},58464:(t,e,r)=>{"use strict";r.d(e,{R:()=>o,l:()=>a});var n=r(82991),i=r(67597);function o(t,e){try{for(var r=t,n=[],i=0,o=0,a=void 0;r&&i++<5&&!("html"===(a=s(r,e))||i>1&&o+3*n.length+a.length>=80);)n.push(a),o+=a.length,r=r.parentNode;return n.reverse().join(" > ")}catch(t){return""}}function s(t,e){var r,n,o,s,a,u=t,l=[];if(!u||!u.tagName)return"";l.push(u.tagName.toLowerCase());var c=e&&e.length?e.filter((function(t){return u.getAttribute(t)})).map((function(t){return[t,u.getAttribute(t)]})):null;if(c&&c.length)c.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(u.id&&l.push("#"+u.id),(r=u.className)&&(0,i.HD)(r))for(n=r.split(/\s+/),a=0;a{"use strict";r.d(e,{h:()=>n});var n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},82991:(t,e,r)=>{"use strict";r.d(e,{R:()=>o,Y:()=>s});var n=r(72176),i={};function o(){return(0,n.KV)()?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function s(t,e,r){var n=r||o(),i=n.__SENTRY__=n.__SENTRY__||{};return i[t]||(i[t]=e())}},67597:(t,e,r)=>{"use strict";r.d(e,{Cy:()=>v,HD:()=>l,J8:()=>g,Kj:()=>p,PO:()=>h,TX:()=>a,V9:()=>m,VW:()=>s,VZ:()=>i,cO:()=>f,fm:()=>u,i2:()=>y,kK:()=>d,pt:()=>c});var n=Object.prototype.toString;function i(t){switch(n.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(t,Error)}}function o(t,e){return n.call(t)==="[object "+e+"]"}function s(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function u(t){return o(t,"DOMException")}function l(t){return o(t,"String")}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function h(t){return o(t,"Object")}function f(t){return"undefined"!=typeof Event&&m(t,Event)}function d(t){return"undefined"!=typeof Element&&m(t,Element)}function p(t){return o(t,"RegExp")}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function v(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function y(t){return"number"==typeof t&&t!=t}function m(t,e){try{return t instanceof e}catch(t){return!1}}},12343:(t,e,r)=>{"use strict";r.d(e,{Cf:()=>l,RU:()=>u,kg:()=>n});var n,i=r(50832),o=r(88795),s=r(82991),a=(0,s.R)(),u=["debug","info","warn","error","log","assert"];function l(t){var e=(0,s.R)();if(!("console"in e))return t();var r=e.console,n={};u.forEach((function(t){var i=r[t]&&r[t].__sentry_original__;t in e.console&&i&&(n[t]=r[t],r[t]=i)}));try{return t()}finally{Object.keys(n).forEach((function(t){r[t]=n[t]}))}}function c(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return o.h?u.forEach((function(r){e[r]=function(){for(var e=[],n=0;n{"use strict";r.d(e,{DM:()=>s,Db:()=>c,EG:()=>h,YO:()=>f,en:()=>a,jH:()=>l});var n=r(50832),i=r(82991),o=r(20535);function s(){var t=(0,i.R)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function a(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+r+n}}function u(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function l(t){var e=t.message,r=t.event_id;if(e)return e;var n=u(t);return n?n.type&&n.value?n.type+": "+n.value:n.type||n.value||r||"":r||""}function c(t,e,r){var n=t.exception=t.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=r||"Error")}function h(t,e){var r=u(t);if(r){var i=r.mechanism;if(r.mechanism=(0,n.pi)((0,n.pi)((0,n.pi)({},{type:"generic",handled:!0}),i),e),e&&"data"in e){var o=(0,n.pi)((0,n.pi)({},i&&i.data),e.data);r.mechanism.data=o}}}function f(t){if(t&&t.__sentry_captured__)return!0;try{(0,o.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}},72176:(t,e,r)=>{"use strict";function n(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!=={}?{}:0)}function i(t,e){return t.require(e)}r.d(e,{l$:()=>i,KV:()=>n}),t=r.hmd(t)},20535:(t,e,r)=>{"use strict";r.d(e,{$Q:()=>l,HK:()=>c,Jr:()=>v,Sh:()=>f,_j:()=>h,hl:()=>a,xp:()=>u,zf:()=>g});var n=r(50832),i=r(58464),o=r(67597),s=r(57321);function a(t,e,r){if(e in t){var n=t[e],i=r(n);if("function"==typeof i)try{l(i,n)}catch(t){}t[e]=i}}function u(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}function l(t,e){var r=e.prototype||{};t.prototype=e.prototype=r,u(t,"__sentry_original__",e)}function c(t){return t.__sentry_original__}function h(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function f(t){var e=t;if((0,o.VZ)(t))e=(0,n.pi)({message:t.message,name:t.name,stack:t.stack},p(t));else if((0,o.cO)(t)){var r=t;e=(0,n.pi)({type:r.type,target:d(r.target),currentTarget:d(r.currentTarget)},p(r)),"undefined"!=typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(e.detail=r.detail)}return e}function d(t){try{return(0,o.kK)(t)?(0,i.R)(t):Object.prototype.toString.call(t)}catch(t){return""}}function p(t){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function g(t,e){void 0===e&&(e=40);var r=Object.keys(f(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return(0,s.$G)(r[0],e);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>e))return n===r.length?i:(0,s.$G)(i,e)}return""}function v(t){var e,r;if((0,o.PO)(t)){var i={};try{for(var s=(0,n.XA)(Object.keys(t)),a=s.next();!a.done;a=s.next()){var u=a.value;void 0!==t[u]&&(i[u]=v(t[u]))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return i}return Array.isArray(t)?t.map(v):t}},57321:(t,e,r)=>{"use strict";r.d(e,{$G:()=>i,nK:()=>o,zC:()=>s});var n=r(67597);function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){if(!Array.isArray(t))return"";for(var r=[],n=0;n{"use strict";r.d(e,{$2:()=>o,WD:()=>i,cW:()=>s});var n=r(67597);function i(t){return new s((function(e){e(t)}))}function o(t){return new s((function(e,r){r(t)}))}var s=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,r){0===e._state&&((0,n.J8)(r)?r.then(e._resolve,e._reject):(e._state=t,e._value=r,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,r){var n=this;return new t((function(t,i){n._handlers.push([!1,function(r){if(e)try{t(e(r))}catch(t){i(t)}else t(r)},function(e){if(r)try{t(r(e))}catch(t){i(t)}else i(e)}]),n._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var r=this;return new t((function(t,n){var i,o;return r.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?n(i):t(i)}))}))},t}()},21170:(t,e,r)=>{"use strict";r.d(e,{ph:()=>l,yW:()=>u});var n=r(82991),i=r(72176);t=r.hmd(t);var o={nowSeconds:function(){return Date.now()/1e3}},s=(0,i.KV)()?function(){try{return(0,i.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=(0,n.R)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),a=void 0===s?o:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=o.nowSeconds.bind(o),l=a.nowSeconds.bind(a);!function(){var t=(0,n.R)().performance;if(t&&t.now){var e=36e5,r=t.now(),i=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-i):e,s=o{"use strict";r.d(e,{CR:()=>a,XA:()=>s,ZT:()=>i,fl:()=>u,pi:()=>o});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var t=[],e=0;e{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],u=o[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,u)),c=0,h=u>0?s-4:s;for(r=0;r>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[c++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,l=n-i;al?l:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:(t,e,r)=>{"use strict";var n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|g(t,e),n=a(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(z(t,Uint8Array)){var e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(z(t,ArrayBuffer)||t&&z(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(z(t,SharedArrayBuffer)||t&&z(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||G(t.length)?a(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return c(t),a(t<0?0:0|p(t))}function f(t){for(var e=t.length<0?0:0|p(t.length),r=a(e),n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(t).length;default:if(i)return n?-1:B(t).length;e=(""+e).toLowerCase(),i=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return A(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),G(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:_(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;fi&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn.length?u.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(z(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(n,i),c=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return S(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function A(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function I(t,e,r,n,o){return e=+e,r>>>=0,o||D(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function R(t,e,r,n,o){return e=+e,r>>>=0,o||D(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||L(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||U(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,n||U(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);U(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);U(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function M(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function G(t){return t!=t}var V=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},56387:(t,e,r)=>{var n;!function(i){var o=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=10;function a(){this._events={},this._conf&&u.call(this,this._conf)}function u(t){t?(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),this._maxListeners=t.maxListeners!==i?t.maxListeners:s,t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this.newListener=t.newListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=s}function l(t,e){var r="(node) warning: possible EventEmitter memory leak detected. "+t+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+e+"."),void 0!=={}&&{}.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=t,{}.emitWarning(n)}else console.error(r),console.trace&&console.trace()}function c(t){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,u.call(this,t)}function h(t,e,r,n){if(!r)return[];var i,o,s,a,u,l,c,f=[],d=e.length,p=e[n],g=e[n+1];if(n===d&&r._listeners){if("function"==typeof r._listeners)return t&&t.push(r._listeners),[r];for(i=0,o=r._listeners.length;i0&&o._listeners.length>this._maxListeners&&(o._listeners.warned=!0,l.call(this,o._listeners.length,s))):o._listeners=e,!0;s=t.shift()}return!0}c.EventEmitter2=c,c.prototype.delimiter=".",c.prototype.setMaxListeners=function(t){t!==i&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},c.prototype.event="",c.prototype.once=function(t,e){return this._once(t,e,!1)},c.prototype.prependOnceListener=function(t,e){return this._once(t,e,!0)},c.prototype._once=function(t,e,r){return this._many(t,1,e,r),this},c.prototype.many=function(t,e,r){return this._many(t,e,r,!1)},c.prototype.prependMany=function(t,e,r){return this._many(t,e,r,!0)},c.prototype._many=function(t,e,r,n){var i=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function o(){return 0==--e&&i.off(t,o),r.apply(this,arguments)}return o._origin=r,this._on(t,o,n),i},c.prototype.emit=function(){this._events||a.call(this);var t=arguments[0];if("newListener"===t&&!this.newListener&&!this._events.newListener)return!1;var e,r,n,i,o,s=arguments.length;if(this._all&&this._all.length){if(o=this._all.slice(),s>3)for(e=new Array(s),i=0;i3)for(e=new Array(s-1),i=1;i3)for(e=new Array(u),i=1;i3)for(e=new Array(u-1),i=1;i0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,l.call(this,this._events[t].length,t))):this._events[t]=e,this)},c.prototype.off=function(t,e){if("function"!=typeof e)throw new Error("removeListener only takes instances of Function");var r,n=[];if(this.wildcard){var s="string"==typeof t?t.split(this.delimiter):t.slice();n=h.call(this,null,s,this.listenerTree,0)}else{if(!this._events[t])return this;r=this._events[t],n.push({_listeners:r})}for(var a=0;a0&&t(e[o]),0===Object.keys(s).length&&delete e[o])}}}(this.listenerTree),this},c.prototype.offAny=function(t){var e,r=0,n=0;if(t&&this._all&&this._all.length>0){for(r=0,n=(e=this._all).length;r{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=l}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[r+d]=255&s,d+=p,s/=256,l-=8);t[r+d-p]|=128*g}},49208:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={stgWacInternalUrl:"https://wac.stg.internal.atlassian.com"}},8975:(t,e,r)=>{"use strict";var n=r(65311),i=r(28784),o=r(27706);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){for(var r=0;r{"use strict";r.d(e,{EK:()=>d,JW:()=>f,L9:()=>p,Wh:()=>g,ol:()=>c});var n=r(71371),i=r(13819);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=[],l=function(){Promise.all(u.map((function(t){return t()})))},c=function(t){return t.replace(/(([^\/]*@[^\/]*\.[^\/]*)|([^\/]*%40[^\/]*\.[^\/]*))/g,"[REDACTED]")},h=function(){try{n.uT("Analytics wrapper errored",i.z.Error)}catch(t){}},f=function t(e,r,n){try{"undefined"!=typeof ace?ace.analytics.GASv3.sendTrackEvent("exposed","feature",e,{eventContainer:e,group:r},!1):(u.push((function(){return new Promise((function(r){t(e,n),r(null)}))})),window.segmentPageReady=l)}catch(t){h()}},d=function t(e,r){try{"undefined"!=typeof ace?ace.analytics.GASv3.sendUIEvent(e,function(t){for(var e=1;e{"use strict";r.d(e,{Z:()=>f});var n=r(49208);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var r=0;r1?t[2]:"":t[1]}},{key:"isStagingPublicEnvironment",value:function(){return this.getWindowLocation().hostname.indexOf("wac.stg.internal.atlassian")>-1||this.getWindowLocation().hostname.indexOf("qa-wac.atlassian")>-1}},{key:"getEnvironment",value:function(){if(window.location.search.includes("forceProdTesting=true"))return h;switch(this.getSubdomain()){case"wac":case"qa-wac":case"author":case"proof":default:return c;case"localhost":case"local":return"dev";case"truth":case"www":case"atlassian":case"bitbucket":case"sourcetreeapp":case"agile":case"git":case"software":return h}}},{key:"getInternationalSubdomain",value:function(){var t=this.getSubdomain();return-1!==["cn","cs","de","es","fr","it","ko","hu","nl","ja","pl","br","ro","fi","ru"].indexOf(t)&&t}},{key:"getInternationalSubdirectory",value:function(){var t=this.getSubdirectory();return-1!==["zh","cs","de","es","fr","it","ko","hu","nl","ja","pl","br","ro","fi","ru"].indexOf(t)&&t}},{key:"isInternationalSubdomain",value:function(){return!!this.getInternationalSubdomain()}},{key:"production",value:function(){return h}},{key:"staging",value:function(){return c}},{key:"dev",value:function(){return"dev"}},{key:"author",value:function(){return"author"}},{key:"isProduction",value:function(){return this.getEnvironment()===this.production()}},{key:"isStaging",value:function(){return this.getEnvironment()===this.staging()}},{key:"isDev",value:function(){return this.getEnvironment()===this.dev()}},{key:"isAuthor",value:function(){return this.getSubdomain()===this.author()}},{key:"getIdentityBaseUrl",value:function(){return this.isStaging()||this.isDev()?"https://id.stg.internal.atlassian.com":"https://id.atlassian.com"}},{key:"getLoginUrl",value:function(t){var e=this.getWindowLocation().href;return t?"".concat(this.getIdentityBaseUrl(),"/login?continue=").concat(e):"".concat(this.getIdentityBaseUrl(),"/login?continue=").concat(encodeURIComponent(e))}},{key:"getLogoutUrl",value:function(){var t=this.getWindowLocation().href;return"".concat(this.getIdentityBaseUrl(),"/logout?continue=").concat(encodeURIComponent(t))}},{key:"getSwitchAccountURL",value:function(t){var e=t||this.getWindowLocation().href;return"".concat(this.getIdentityBaseUrl(),"/login/select-account?continue=").concat(encodeURIComponent(e))}},{key:"getManageProfileUrl",value:function(t){var e=encodeURIComponent("wac"),r=encodeURIComponent("".concat(this.getIdentityBaseUrl(),"/manage-profile")),n=encodeURIComponent(t);return"".concat(this.getIdentityBaseUrl(),"/login?application=").concat(e,"&continue=").concat(r,"&login_hint=").concat(n)}},{key:"getMacUrl",value:function(){return this.isStaging()||this.isDev()?"https://my.stg.internal.atlassian.com":"https://my.atlassian.com"}},{key:"getStartUrl",value:function(){return this.isStaging()||this.isDev()?"https://start.stg.atlassian.com":"https://start.atlassian.com"}},{key:"getAPIPrivateURL",value:function(){return this.isStaging()||this.isDev()?"https://wac.stg.internal.atlassian.com/gateway/api":"https://www.atlassian.com/gateway/api"}},{key:"getMyAdminAtlasBaseURL",value:function(){return this.isStaging()||this.isDev()?"https://admin.stg.atlassian.com":"https://admin.atlassian.com"}},{key:"getBaseURL",value:function(){return this.isStaging()||this.isDev()?"https://wac.stg.internal.atlassian.com":"https://www.atlassian.com"}},{key:"getWacIntegrationUrl",value:function(){if(this.isStaging()||this.isDev()){var t=window.location.hostname.indexOf("qa-wac")>-1||window.location.hostname.indexOf("author")>-1;return"".concat(t?"https://qa-wac.internal.atlassian.com":n.Z.stgWacInternalUrl)}return"https://www.atlassian.com"}},{key:"getBBIntegrationUrl",value:function(){return this.isStaging()||this.isDev()?"https://integration.bb-inf.net":"https://bitbucket.org"}}],null&&o(e.prototype,null),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();a=f,l=function(){return f.getEnvironment()===h?".atlassian.net":".jira-dev.com"},(u=s(u="getProductTld"))in a?Object.defineProperty(a,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[u]=l},804:(t,e,r)=>{"use strict";r.d(e,{Z:()=>c});var n=r(24048),i=["value"];function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){for(var r=0;r=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,i);return e&&(e=e.replace(/\r?\n|\r/g,"")),function(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,s=this.processAttributes(i);n.trackAllPlatforms.forEach((function(n){n.track({category:t,action:e,label:r,attributes:s,isNonInteraction:o})}))}}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}())},24048:(t,e,r)=>{"use strict";r.r(e),r.d(e,{GASv2:()=>u,GASv3:()=>h,GoogleAnalytics:()=>p,Segment:()=>E,trackAllPlatforms:()=>O});var n=r(238),i=r(68332).Z.isDev();const o="https://mgas.prod.public.atl-paas.net/v1/event";function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){for(var r=0;r=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(o,y),u=function(t){for(var e=1;e{"use strict";r.d(e,{Z:()=>U});var n,i,o,s=r(81641),a=r(73874),u=r(47619),l=r(16722),c=r(27706),h=r(33838),f=r(26913),d=r(61174),p=r(41412),g=r(67819),v=r(20974),y=r(68332);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function _(){_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var o=e&&e.prototype instanceof f?e:f,s=Object.create(o.prototype),a=new P(i||[]);return n(s,"_invoke",{value:E(t,r,a)}),s}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function f(){}function d(){}function p(){}var g={};u(g,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(A([])));y&&y!==e&&r.call(y,o)&&(g=y);var b=p.prototype=f.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function i(n,o,s,a){var u=c(t[n],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==m(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,a)}))}a(u.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=O(s,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function b(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,i)}var w=function(){switch(y.Z.getEnvironment()){case y.Z.production():return{apiKey:"b9a5d4ea-66db-4082-8e75-963afd1dd6ba",environment:g.kA.Production};case y.Z.staging():return{apiKey:"b5aed4e1-3366-49e8-9089-c9da89200d7b",environment:g.kA.Staging};case y.Z.dev():default:return{apiKey:"9a4301e9-b660-44be-998f-257208d5cffb",environment:g.kA.Development}}},S=null!==(n=new URLSearchParams(null===(i=window)||void 0===i||null===(o=i.location)||void 0===o?void 0:o.search).get("cloudId"))&&void 0!==n?n:void 0,E=function(){var t,e=(t=_().mark((function t(){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,console.info("Initializing FeatureGates client"),t.next=4,v.ZP.initialize({apiKey:w().apiKey,environment:w().environment,targetApp:"bxp-magnolia_web",eventLoggingApi:"https://xp.atlassian.com/v1/"},{analyticsAnonymousId:(void 0,decodeURIComponent(null!==(m=d.Z.getCookie("ajs_anonymous_id"))&&void 0!==m?m:"").replace(/['"]+/g,"")||void 0),atlassianAccountId:(void 0,(null!==(y=d.Z.getCookie("__aid_user_id"))&&void 0!==y?y:"").replace(/\"/g,"")||void 0),tenantId:S},(e=void 0,r=void 0,n=void 0,i=void 0,o=void 0,s=void 0,a=void 0,u=void 0,l=void 0,c=void 0,h=void 0,f=void 0,p=void 0,g=void 0,a=d.Z.getCookie("cloud.session.token")||d.Z.getCookie("cloud.session.token.stg"),u=function(){var t,e,r,n,i,o=null===(t=window)||void 0===t||null===(e=t.navigator)||void 0===e?void 0:e.userAgent,s=/tablet/i.test(o),a=/mobile/i.test(o);return{isTablet:s,isMobile:a,isDesktop:!s&&!a,browserName:(null===(r=o.match(/(firefox|msie|chrome|safari|trident)/i))||void 0===r?void 0:r[0])||"unknown",browserVersion:(null===(n=o.match(/(firefox|msie|chrome|safari|trident)[\/\s](\d+)/i))||void 0===n?void 0:n[2])||"unknown",osName:(null===(i=o.match(/(windows|macintosh|linux|android|ios)/i))||void 0===i?void 0:i[0])||"unknown"}}(),l=u.isTablet,c=u.isMobile,h=u.isDesktop,f=u.browserName,p=u.browserVersion,g=u.osName,{platform:"magnolia",loginUserDetected:void 0!==a,requestPath:null===(e=window)||void 0===e||null===(r=e.location)||void 0===r?void 0:r.pathname,queryParams:null===(n=window)||void 0===n||null===(i=n.location)||void 0===i?void 0:i.search,locale:null===(o=document)||void 0===o||null===(s=o.documentElement)||void 0===s?void 0:s.lang,browserOS:g,browserName:f,browserVersion:p,isMobile:c,isTablet:l,isDesktop:h}));case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Failed to initialize FeatureGates client.",t.t0);case 9:case"end":return t.stop()}var e,r,n,i,o,s,a,u,l,c,h,f,p,g,y,m}),t,null,[[0,6]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){b(o,n,i,s,a,"next",t)}function a(t){b(o,n,i,s,a,"throw",t)}s(void 0)}))});return function(){return e.apply(this,arguments)}}();function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function k(){k=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var o=e&&e.prototype instanceof f?e:f,s=Object.create(o.prototype),a=new P(i||[]);return n(s,"_invoke",{value:w(t,r,a)}),s}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function f(){}function d(){}function p(){}var g={};u(g,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(A([])));y&&y!==e&&r.call(y,o)&&(g=y);var m=p.prototype=f.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(n,o,s,a){var u=c(t[n],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==O(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,a)}))}a(u.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function w(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=S(s,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=c(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function x(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,i)}function P(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){x(o,n,i,s,a,"next",t)}function a(t){x(o,n,i,s,a,"throw",t)}s(void 0)}))}}var A,C,j,T,L=window.imkt=window.imkt||{core:{init:(T=P(k().mark((function t(e){var n,i,o;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,this.featureDetect(),t.next=4,r.e(9994).then(r.bind(r,49994));case 4:i=t.sent.default,o=new i,$("script[type='text/x-component']",e).each((function(t,e){var r=JSON.parse(e.innerHTML.trim()),i=e.parentNode,s=r.params,a=s.productKey,u=s.productKeyArray,l=s.period,c=s.offeringSku,h=s.countryISOCodeReq;a&&(r.params.pricing=o.getPricingPromise(a,l)),c&&(r.params.pricing=o.getPricingPromise(null,l,null,null,c)),u&&(r.params.pricingObject=u.map((function(t){return o.getPricingPromise(t.key,t.period,t.identifiers,t.customCurrency,t.offeringSku)}))),h&&(r.params.countryISOCodePromise=o.getLocale());try{n.componentInit.call(n,i,r)}catch(t){console.log(t)}})),o.resolvePricingPromises(),$("script[type='text/x-component-translate']",e).each((function(t,e){var r=e.innerHTML.trim().replace("/* */","").replace("/* */",""),i=JSON.parse(r),o=e.parentNode;n.componentInit.call(n,o,i)})),$(document).trigger("appInitialized"),this.appInitialized=!0;case 11:case"end":return t.stop()}}),t,this)}))),function(t){return T.apply(this,arguments)}),onInitialized:function(t){this.appInitialized?t():$(document).on("appInitialized",t)},featureDetect:function(){var t=[];this.supports.svg()||t.push("no-svg"),this.supports.backgroundSize()||t.push("no-backgroundsize"),this.supports.flexBox()||t.push("no-flexbox"),$("body").addClass(t.join(" "))},extend:function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(){};for(r in i.prototype=t.prototype,e.prototype=new i,n)e.prototype[r]=n[r];e.prototype.constructor=t},resolve:function(t,e){var r=window;if(!t)return null;if("function"==typeof t)return t;var n,i,o,s=r,a=t.split(".");for(i=0,o=a.length;i=o?(console.error("Feature Gate initialization timed out"),t()):setTimeout(e,100)}()}));case 8:return t.next=10,v.ZP.getExperimentValue(e,r,n,i);case 10:return a=t.sent,t.abrupt("return",a);case 12:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return C.apply(this,arguments)}),checkGate:(A=P(k().mark((function t(e){var r,n,i;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=1e4,n=Date.now(),v.ZP.initializeCalled()){t.next=5;break}return t.next=5,E();case 5:if(v.ZP.initializeCompleted()){t.next=8;break}return t.next=8,new Promise((function(t){!function e(){v.ZP.initializeCompleted()?t():Date.now()-n>=r?(console.error("Feature Gate initialization timed out"),t()):setTimeout(e,100)}()}));case 8:return t.next=10,v.ZP.checkGate(e);case 10:return i=t.sent,t.abrupt("return",i);case 12:case"end":return t.stop()}}),t)}))),function(t){return A.apply(this,arguments)})}},wpl:{globals:{mediaQueries:{xs:{minWidth:0,maxWidth:539},sm:{minWidth:540,maxWidth:767},md:{minWidth:768,maxWidth:1023},lg:{minWidth:1024,maxWidth:1439},xl:{minWidth:1440,maxWidth:null}}}},common:{},wac:{},landing:{},experts:{},legal:{},components:{},software:{},bxp:{},customers:{},pages:{},teamPatterns:{}};const U=L},81641:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(49208),i=r(28784);const o={urls:{apiGetAuthToken:{public:"https://www.atlassian.com/hamlet/1.0/auth/xsrf/html?domain=atlassian.com",staging:"".concat(window.location.hostname.indexOf("qa-wac")>-1?"https://qa-wac.internal.atlassian.com":n.Z.stgWacInternalUrl,"/apis/stg/hamlet/1.0/auth/xsrf/html?domain=atlassian.com"),dev:""},apiGetSites:{public:"https://api-private.atlassian.com/available-sites",staging:"https://api-private.stg.atlassian.com/available-sites",dev:""},apiGetUser:{public:"https://api-private.atlassian.com/me",staging:"https://api-private.stg.atlassian.com/me",dev:""}},getUrl:function(t){var e=i.Z.constants.public?"public":"staging";return void 0!==this.urls[t]?this.urls[t][e]:""}}},73874:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(28784);const i={getBrowserOs:function(){var t=navigator.userAgent,e=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var r in e){var n=e[r];if(n.r.test(t))return n.s}return"unknown"},isWindows:function(){return this.getBrowserOs().indexOf("Windows")>-1},isMobile:function(){return n.Z.core.supports.touch()&&screen.width&&screen.width<=n.Z.constants.mobileBreakpoint}}},27706:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={randomString:function(t){for(var e="";e.length0;){var r=Math.random();e+=r<.1?Math.floor(100*r):String.fromCharCode(Math.floor(26*r)+(r>.5?97:65))}return e},numberWithCommas:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},elementInViewport:function(t){for(var e=t.offsetTop,r=t.offsetLeft,n=t.offsetWidth,i=t.offsetHeight;t.offsetParent;)e+=(t=t.offsetParent).offsetTop,r+=t.offsetLeft;return e>=window.pageYOffset&&r>=window.pageXOffset&&e+i<=window.pageYOffset+window.innerHeight&&r+n<=window.pageXOffset+window.innerWidth}}},47619:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(65311),i=r(28784),o=n.Deferred(),s=n.Deferred(),a=n.Deferred();const u={datepicker:function(t){return void 0===o?(o=n.getScript(i.Z.constants.libPath+"air-datepicker.js"+i.Z.constants.cdnVersionQuery),function(t,e){if(!(void 0===t||e.hasOwnProperty("id")&&n("head").find("#"+e.id).length)){var r={rel:"stylesheet",media:"screen",href:t};n.isPlainObject(e)&&(r=Object.assign({},r,e));var i=n("").attr(r);n("head").append(i)}}(i.Z.constants.libPath+"air-datepicker.css"+i.Z.constants.cdnVersionQuery,{id:"datepicker-style"})):o.resolve(),n.when(o).then(t),this},select2:function(t){return void 0===s?s=n.getScript(i.Z.constants.libPath+"select2.js"+i.Z.constants.cdnVersionQuery):s.resolve(),n.when(s).then(t),this},underscore:function(t){return void 0===a?a=n.getScript(i.Z.constants.libPath+"underscore.js"+i.Z.constants.cdnVersionQuery):a.resolve(),n.when(a).then(t),this}}},33838:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={supportsHistory:function(){return window.history&&window.history.pushState},pushState:function(t,e,r){this.supportsHistory()&&(window.history.pushState(t,e,r),"undefined"!=typeof analytics&&analytics.page())},pushStateNoTracking:function(t,e,r){this.supportsHistory()&&window.history.pushState(t,e,r)}}},61174:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={hasStorage:localStorage&&"function"==typeof localStorage.getItem,getLocalStorage:function(t){return this.hasStorage?localStorage.getItem(t):this.getCookie(t)},setLocalStorage:function(t,e){this.hasStorage||this.setCookie(t,e);try{localStorage.setItem(t,e)}catch(t){console.log("Local Storage failed, check if browsing in Safari private window.")}},removeLocalStorage:function(t){this.hasStorage||this.removeCookie(t);try{localStorage.removeItem(t)}catch(t){console.log("Local Storage failed, check if browsing in Safari private window.")}},getSessionStorage:function(t){return this.hasStorage?sessionStorage.getItem(t):this.getCookie(t)},setSessionStorage:function(t,e){this.hasStorage||this.setCookie(t,e);try{sessionStorage.setItem(t,e)}catch(t){console.log("Session Storage failed, check if browsing in Safari private window.")}},removeSessionStorage:function(t){this.hasStorage||this.removeCookie(t);try{sessionStorage.removeItem(t)}catch(t){console.log("Session Storage failed, check if browsing in Safari private window.")}},getCookie:function(t){var e=encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&"),r=new RegExp("(?:(?:^|.*;)\\s*"+e+"\\s*\\=\\s*([^;]*).*$)|^.*$");return decodeURIComponent(document.cookie.replace(r,"$1"))||null},setCookie:function(t,e,r,n,i){var o="",s="";i&&(s="; domain=".concat(i));var a=!!n&&n.toLowerCase(),u="samesite=".concat(a&&"strict"==a||"lax"==a?a:"none");if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),o="; expires="+l.toGMTString()}document.cookie=t+"="+e+";path=/;"+u+o+s},removeCookie:function(t){this.setCookie(t,"",-1)}}},26913:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>i,lp:()=>o,oM:()=>s});var n=r(27706);const i={reverse:function(t){return"string"!=typeof t?"":""===t.trim()?t:t.split("").reverse().join("")}};var o=function(t,e,r){return Object.keys(r).reduce((function(e,r){return t[r]?e.replace("{{".concat(r,"}}"),t[r]):e}),e)},s=function(t){return n.Z.numberWithCommas(t.toString())}},16722:(t,e,r)=>{"use strict";r.d(e,{Z:()=>l});var n=r(61746),i=r(804),o=r(24048);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){for(var r=0;r{"use strict";r.d(e,{Z:()=>u});var n=r(33838);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e-1?e:t.length)},getUnhashedUrl:function(t){var e;return e=(t=t||window.location.href).indexOf("#"),t.substring(0,e>-1?e:t.length)},getProtocol:function(t){var e,r="";return(e=(t=this.getBareUrl(t||window.location.href)).indexOf("://"))>-1&&(r=t.substring(0,e)),r},getHostname:function(t){var e,r;return t=this.getBareUrl(t||window.location.href),r=(e=this.getProtocol(t))?e.length+3:0,t.substring(r,t.indexOf("/",r))},getQueryString:function(t){var e,r=window.location.search.substring(1,window.location.search.length);return t&&(r=(e=(t=this.getUnhashedUrl(t)).indexOf("?"))>-1?t.substring(e+1):""),r},updateQueryStringParam:function(t,e){var r=[location.protocol,"//",location.host,location.pathname].join(""),i=document.location.search,o=t+"="+e,s="?"+o;if(i){var a=new RegExp("([?&])"+t+"[^&]*");s=null!==i.match(a)?i.replace(a,"$1"+o):i+"&"+o}n.Z.pushState({},"",r+s)},getPathname:function(t){var e,r;return t=t||window.location.href,e=this.getHostname(t),r=t.indexOf("?"),t.substring(t.indexOf(e)+e.length,r>-1?r:t.length)},serialize:function(t){var e,r=[];for(var n in t)null!==t[n]&&((e=[n]).push("="),e.push(encodeURIComponent(t[n])),r.push(e.join("")));return r.join("&")},htmlEscape:function(t){return String(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")},getUrlParams:function(t){var e,r,n,i=null,o=0;if(e=this.getQueryString(t))for(r=e.split("&");o1?this.htmlEscape(decodeURIComponent(n[1])):null;return i},addUrlParams:function(t,e){var r,n=[];return e=e||window.location.href,n.push(this.getBareUrl(e)),t=s(s({},this.getUrlParams(e)),t),(r=this.serialize(t))&&(n.push("?"),n.push(r)),n.join("")},removeUrlParams:function(t,e){var r,n=[];e=e||window.location.href,n.push(this.getBareUrl(e));for(var i=this.getUrlParams(e),o=t.length-1;o>=0;o--)void 0!==i[t[o]]&&delete i[t[o]];return(r=this.serialize(i))&&(n.push("?"),n.push(r)),n.join("")},getSimpleUrl:function(t,e){t=t||window.location.href;var r=this.getBareUrl(t),n=r.split("#"),i="";r=n[0],n.length>1&&(i="#"+n[1]);var o=r.replace(/^((https?|):\/\/)?(www\.)?/,"").replace(/\/$/,"");if(e){var s=this.getQueryString(t);s&&(o+="?"+s),o+=i}return o}}},65311:t=>{"use strict";t.exports=jQuery},375:(t,e,r)=>{"use strict";var n,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e._getInstance=e._getStatsigGlobalFlag=e._getStatsigGlobal=void 0;const s=r(99025);e._getStatsigGlobal=()=>__STATSIG__||h,e._getStatsigGlobalFlag=t=>(0,e._getStatsigGlobal)()[t],e._getInstance=t=>{const r=(0,e._getStatsigGlobal)();return t?r.instances&&r.instances[t]:(r.instances&&Object.keys(r.instances).length>1&&s.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)};const a="__STATSIG__",u="undefined"!=typeof window?window:{},l=void 0!==r.g?r.g:{},c="undefined"!=typeof globalThis?globalThis:{},h=null!==(o=null!==(i=null!==(n=u[a])&&void 0!==n?n:l[a])&&void 0!==i?i:c[a])&&void 0!==o?o:{instance:e._getInstance};u[a]=h,l[a]=h,c[a]=h},61867:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._getStorageKey=e._getUserStorageKey=void 0;const n=r(56152);function i(t,e,r){var i;if(r)return r(t,e);const o=e&&e.customIDs?e.customIDs:{},s=[`uid:${null!==(i=null==e?void 0:e.userID)&&void 0!==i?i:""}`,`cids:${Object.keys(o).sort(((t,e)=>t.localeCompare(e))).map((t=>`${t}-${o[t]}`)).join(",")}`,`k:${t}`];return(0,n._DJB2)(s.join("|"))}e._getUserStorageKey=i,e._getStorageKey=function(t,e,r){return e?i(t,e,r):(0,n._DJB2)(`k:${t}`)}},394:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},53183:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e._makeDataAdapterResult=e.DataAdapterCore=void 0;const i=r(99025),o=r(33463),s=r(89063),a=r(38614),u=r(53111);function l(t,e,r,n){return{source:t,data:e,receivedAt:Date.now(),stableID:r,fullUserHash:(0,s._getFullUserHash)(n)}}e.DataAdapterCore=class{constructor(t,e){this._adapterName=t,this._cacheSuffix=e,this._options=null,this._sdkKey=null,this._lastModifiedStoreKey=`statsig.last_modified_time.${e}`,this._inMemoryCache=new c}attach(t,e){this._sdkKey=t,this._options=e}getDataSync(t){const e=t&&(0,s._normalizeUser)(t,this._options),r=this._getCacheKey(e),n=this._inMemoryCache.get(r,e);if(n)return n;const i=this._loadFromCache(r);return i?(this._inMemoryCache.add(r,i),this._inMemoryCache.get(r,e)):null}setData(t,e){const r=e&&(0,s._normalizeUser)(e,this._options),n=this._getCacheKey(r);this._inMemoryCache.add(n,l("Bootstrap",t,null,r))}_getDataAsyncImpl(t,e,r){return n(this,void 0,void 0,(function*(){a.Storage.isReady()||(yield a.Storage.isReadyResolver());const n=null!=t?t:this.getDataSync(e),o=[this._fetchAndPrepFromNetwork(n,e,r)];return(null==r?void 0:r.timeoutMs)&&o.push(new Promise((t=>setTimeout(t,r.timeoutMs))).then((()=>(i.Log.debug("Fetching latest value timed out"),null)))),yield Promise.race(o)}))}_prefetchDataImpl(t,e){return n(this,void 0,void 0,(function*(){const r=t&&(0,s._normalizeUser)(t,this._options),n=this._getCacheKey(r),i=yield this._getDataAsyncImpl(null,r,e);i&&this._inMemoryCache.add(n,Object.assign(Object.assign({},i),{source:"Prefetch"}))}))}_fetchAndPrepFromNetwork(t,e,r){var s;return n(this,void 0,void 0,(function*(){const n=null!==(s=null==t?void 0:t.data)&&void 0!==s?s:null,a=null!=t&&this._isCachedResultValidFor204(t,e),c=yield this._fetchFromNetwork(n,e,r,a);if(!c)return i.Log.debug("No response returned for latest value"),null;const h=(0,u._typedJsonParse)(c,"has_updates","Response"),f=this._getSdkKey(),d=o.StableID.get(f);let p=null;if(!0===(null==h?void 0:h.has_updates))p=l("Network",c,d,e);else{if(!n||!1!==(null==h?void 0:h.has_updates))return null;p=l("NetworkNotModified",n,d,e)}const g=this._getCacheKey(e);return this._inMemoryCache.add(g,p),this._writeToCache(g,p),p}))}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(i.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(t){var e;const r=null===(e=a.Storage.getItem)||void 0===e?void 0:e.call(a.Storage,t);if(null==r)return null;const n=(0,u._typedJsonParse)(r,"source","Cached Result");return n?Object.assign(Object.assign({},n),{source:"Cache"}):null}_writeToCache(t,e){a.Storage.setItem(t,JSON.stringify(e)),this._runLocalStorageCacheEviction(t)}_runLocalStorageCacheEviction(t){var e;const r=null!==(e=(0,a._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==e?e:{};r[t]=Date.now();const n=h(r,10);n&&(delete r[n],a.Storage.removeItem(n)),(0,a._setObjectInStorage)(this._lastModifiedStoreKey,r)}},e._makeDataAdapterResult=l;class c{constructor(){this._data={}}get(t,e){var r;const n=this._data[t],o=null==n?void 0:n.stableID,s=null===(r=null==e?void 0:e.customIDs)||void 0===r?void 0:r.stableID;return s&&o&&s!==o?(i.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):n}add(t,e){const r=h(this._data,9);r&&delete this._data[r],this._data[t]=e}merge(t){this._data=Object.assign(Object.assign({},this._data),t)}}function h(t,e){const r=Object.keys(t);return r.length<=e?null:r.reduce(((e,r)=>{const n=t[e],i=t[r];return"object"==typeof n&&"object"==typeof i?i.receivedAt{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Diagnostics=void 0;const r=new Map,n="start",i="end";function o(t,e,r,n){return Object.assign({key:r,action:e,step:n,timestamp:Date.now()},t)}function s(t,e){var n;const i=null!==(n=r.get(t))&&void 0!==n?n:[];i.push(e),r.set(t,i)}function a(t,e){if(e in t)return t[e]}e.Diagnostics={_getMarkers:t=>r.get(t),_markInitOverallStart:t=>{s(t,o({},n,"overall"))},_markInitOverallEnd:(t,e,r)=>{s(t,o({success:e,error:e?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:r},i,"overall"))},_markInitNetworkReqStart:(t,e)=>{s(t,o(e,n,"initialize","network_request"))},_markInitNetworkReqEnd:(t,e)=>{s(t,o(e,i,"initialize","network_request"))},_markInitProcessStart:t=>{s(t,o({},n,"initialize","process"))},_markInitProcessEnd:(t,e)=>{s(t,o(e,i,"initialize","process"))},_clearMarkers:t=>{r.delete(t)},_formatError(t){if(t&&"object"==typeof t)return{code:a(t,"code"),name:a(t,"name"),message:a(t,"message")}},_getDiagnosticsData(t,r,n,i){var o;return{success:!0===(null==t?void 0:t.ok),statusCode:null==t?void 0:t.status,sdkRegion:null===(o=null==t?void 0:t.headers)||void 0===o?void 0:o.get("x-statsig-region"),isDelta:!0===n.includes('"is_delta":true')||void 0,attempt:r,error:e.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(t,r,n,i){const o=e.Diagnostics._getMarkers(n);if(null==o||o.length<=0)return-1;const s=o[o.length-1].timestamp-o[0].timestamp;e.Diagnostics._clearMarkers(n);const a=function(t,e){return{eventName:"statsig::diagnostics",user:t,value:null,metadata:e,time:Date.now()}}(t,{context:"initialize",markers:o.slice(),statsigOptions:i});return r.enqueue(a),s}}},9549:function(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e._fetchTxtRecords=void 0;const n=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]),i=["i","e","d"];e._fetchTxtRecords=function(t){return r(this,void 0,void 0,(function*(){const e=yield t("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:n});if(!e.ok){const t=new Error("Failed to fetch TXT records from DNS");throw t.name="DnsTxtFetchError",t}const r=yield e.arrayBuffer();return function(t){const e=t.findIndex(((e,r)=>r<200&&"="===String.fromCharCode(e)&&i.includes(String.fromCharCode(t[r-1]))));if(-1===e){const t=new Error("Failed to parse TXT records from DNS");throw t.name="DnsTxtParseError",t}let r="";for(let n=e-1;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},68896:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=e.EXCEPTION_ENDPOINT=void 0;const i=r(99025),o=r(95881),s=r(56801);e.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const a="[Statsig] UnknownError";function u(t){return t instanceof Error?t:"string"==typeof t?new Error(t):new Error("An unknown error occurred.")}e.ErrorBoundary=class{constructor(t,e,r,n){this._sdkKey=t,this._options=e,this._emitter=r,this._lastSeenError=n,this._seen=new Set}wrap(t){try{const e=t;(function(t){const e=new Set;let r=Object.getPrototypeOf(t);for(;r&&r!==Object.prototype;)Object.getOwnPropertyNames(r).filter((t=>"function"==typeof(null==r?void 0:r[t]))).forEach((t=>e.add(t))),r=Object.getPrototypeOf(r);return Array.from(e)})(e).forEach((r=>{const n=e[r];"$EB"in n||(e[r]=(...e)=>this._capture(r,(()=>n.apply(t,e))),e[r].$EB=!0)}))}catch(t){this._onError("eb:wrap",t)}}logError(t,e){this._onError(t,e)}getLastSeenErrorAndReset(){const t=this._lastSeenError;return this._lastSeenError=void 0,null!=t?t:null}attachErrorIfNoneExists(t){this._lastSeenError||(this._lastSeenError=u(t))}_capture(t,e){try{const r=e();return r&&r instanceof Promise?r.catch((e=>this._onError(t,e))):r}catch(e){return this._onError(t,e),null}}_onError(t,r){try{i.Log.warn(`Caught error in ${t}`,{error:r}),(()=>n(this,void 0,void 0,(function*(){var n,i,l,c,h,f,d;const p=r||Error(a),g=p instanceof Error,v=g?p.name:"No Name",y=u(p);if(this._lastSeenError=y,this._seen.has(v))return;if(this._seen.add(v),null===(i=null===(n=this._options)||void 0===n?void 0:n.networkConfig)||void 0===i?void 0:i.preventAllNetworkTraffic)return void(null===(l=this._emitter)||void 0===l||l.call(this,{name:"error",error:r,tag:t}));const m=o.SDKType._get(this._sdkKey),_=s.StatsigMetadataProvider.get(),b=g?p.stack:function(t){try{return JSON.stringify(t)}catch(t){return a}}(p),w=JSON.stringify(Object.assign({tag:t,exception:v,info:b},Object.assign(Object.assign({},_),{sdkType:m}))),S=null!==(f=null===(h=null===(c=this._options)||void 0===c?void 0:c.networkConfig)||void 0===h?void 0:h.networkOverrideFunc)&&void 0!==f?f:fetch;yield S(e.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(m),"STATSIG-SDK-VERSION":String(_.sdkVersion),"Content-Type":"application/json"},body:w}),null===(d=this._emitter)||void 0===d||d.call(this,{name:"error",error:r,tag:t})})))().then((()=>{})).catch((()=>{}))}catch(t){}}}},80624:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},21335:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},16156:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.EventLogger=void 0;const i=r(61867),o=r(56152),s=r(99025),a=r(33975),u=r(37631),l=r(19817),c=r(38614),h=r(40801),f=r(65260),d={},p="startup",g="gained_focus";class v{static _safeFlushAndForget(t){var e;null===(e=d[t])||void 0===e||e.flush().catch((()=>{}))}static _safeRetryFailedLogs(t){var e;null===(e=d[t])||void 0===e||e._retryFailedLogs(g)}constructor(t,e,r,n){var i;this._sdkKey=t,this._emitter=e,this._network=r,this._options=n,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._isLoggingDisabled=!0===(null==n?void 0:n.disableLogging),this._maxQueueSize=null!==(i=null==n?void 0:n.loggingBufferMaxSize)&&void 0!==i?i:100;const o=null==n?void 0:n.networkConfig;this._logEventUrlConfig=new h.UrlConfiguration(a.Endpoint._rgstr,null==o?void 0:o.logEventUrl,null==o?void 0:o.api,null==o?void 0:o.logEventFallbackUrls)}setLoggingDisabled(t){this._isLoggingDisabled=t}enqueue(t){this._shouldLogEvent(t)&&(this._normalizeAndAppendEvent(t),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&v._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(t){var e;const r=null!==(e=this._nonExposedChecks[t])&&void 0!==e?e:0;this._nonExposedChecks[t]=r+1}reset(){this._lastExposureTimeMap={}}start(){(0,u._isServerEnv)()||(d[this._sdkKey]=this,(0,f._subscribeToVisiblityChanged)((t=>{"background"===t?v._safeFlushAndForget(this._sdkKey):"foreground"===t&&v._safeRetryFailedLogs(this._sdkKey)})),this._retryFailedLogs(p),this._startBackgroundFlushInterval())}stop(){return n(this,void 0,void 0,(function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete d[this._sdkKey],yield this.flush()}))}flush(){return n(this,void 0,void 0,(function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;const t=this._queue;this._queue=[],yield this._sendEvents(t)}))}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout((()=>v._safeFlushAndForget(this._sdkKey)),200))}_shouldLogEvent(t){if((0,u._isServerEnv)())return!1;if(!(0,l._isExposureEvent)(t))return!0;const e=t.user?t.user:{statsigEnvironment:void 0},r=(0,i._getUserStorageKey)(this._sdkKey,e),n=t.metadata?t.metadata:{},o=[t.eventName,r,n.gate,n.config,n.ruleID,n.allocatedExperiment,n.parameterName,String(n.isExplicitParameter),n.reason].join("|"),s=this._lastExposureTimeMap[o],a=Date.now();return!(s&&a-s<6e5||(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[o]=a,0))}_sendEvents(t){var e,r;return n(this,void 0,void 0,(function*(){if(this._isLoggingDisabled)return this._saveFailedLogsToStorage(t),!1;try{const n=(0,f._isUnloading)()&&this._network.isBeaconSupported()&&null==(null===(r=null===(e=this._options)||void 0===e?void 0:e.networkConfig)||void 0===r?void 0:r.networkOverrideFunc);return this._emitter({name:"pre_logs_flushed",events:t}),(n?yield this._sendEventsViaBeacon(t):yield this._sendEventsViaPost(t)).success?(this._emitter({name:"logs_flushed",events:t}),!0):(s.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(t),!1)}catch(t){return s.Log.warn("Failed to flush events."),!1}}))}_sendEventsViaPost(t){var e;return n(this,void 0,void 0,(function*(){const r=yield this._network.post(this._getRequestData(t)),n=null!==(e=null==r?void 0:r.code)&&void 0!==e?e:-1;return{success:n>=200&&n<300}}))}_sendEventsViaBeacon(t){return n(this,void 0,void 0,(function*(){return{success:yield this._network.beacon(this._getRequestData(t))}}))}_getRequestData(t){return{sdkKey:this._sdkKey,data:{events:t},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[a.NetworkParam.EventCount]:String(t.length)}}}_saveFailedLogsToStorage(t){for(;t.length>500;)t.shift();const e=this._getStorageKey();try{(0,c._setObjectInStorage)(e,t)}catch(t){s.Log.warn("Unable to save failed logs to storage")}}_retryFailedLogs(t){const e=this._getStorageKey();(()=>n(this,void 0,void 0,(function*(){c.Storage.isReady()||(yield c.Storage.isReadyResolver());const r=(0,c._getObjectFromStorage)(e);r&&(t===p&&c.Storage.removeItem(e),(yield this._sendEvents(r))&&t===g&&c.Storage.removeItem(e))})))().catch((()=>{s.Log.warn("Failed to flush stored logs")}))}_getStorageKey(){return`statsig.failed_logs.${(0,o._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(t){t.user&&(t.user=Object.assign({},t.user),delete t.user.privateAttributes);const e={},r=this._getCurrentPageUrl();r&&(e.statsigMetadata={currentPage:r});const n=Object.assign(Object.assign({},t),e);s.Log.debug("Enqueued Event:",n),this._queue.push(n)}_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 t;if(!1!==(null===(t=this._options)||void 0===t?void 0:t.includeCurrentPageUrlWithEvents))return(0,u._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var t,e;const r=null!==(e=null===(t=this._options)||void 0===t?void 0:t.loggingIntervalMs)&&void 0!==e?e:1e4,n=setInterval((()=>{const t=d[this._sdkKey];t&&t._flushIntervalId===n?v._safeFlushAndForget(this._sdkKey):clearInterval(n)}),r);this._flushIntervalId=n}}e.EventLogger=v},56152:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._getSortedObject=e._DJB2Object=e._DJB2=void 0;const n=r(38687);e._DJB2=t=>{let e=0;for(let r=0;r>>0)},e._DJB2Object=(t,r)=>(0,e._DJB2)(JSON.stringify((0,e._getSortedObject)(t,r))),e._getSortedObject=(t,r)=>{if(null==t)return null;const i=Object.keys(t).sort(),o={};return i.forEach((i=>{const s=t[i];0!==r&&"object"===(0,n._typeOf)(s)?o[i]=(0,e._getSortedObject)(s,null!=r?r-1:r):o[i]=s})),o}},76724:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},99025:(t,e)=>{"use strict";function r(t){return t.unshift("[Statsig]"),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Log=e.LogLevel=void 0,e.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...t){n.level>=e.LogLevel.Info&&console.info(" INFO ",...r(t))}static debug(...t){n.level>=e.LogLevel.Debug&&console.debug(" DEBUG ",...r(t))}static warn(...t){n.level>=e.LogLevel.Warn&&console.warn(" WARN ",...r(t))}static error(...t){n.level>=e.LogLevel.Error&&console.error(" ERROR ",...r(t))}}e.Log=n,n.level=e.LogLevel.Warn},41231:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createMemoKey=e.MemoPrefix=void 0,e.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_layer:"l",_paramStore:"p"};const r=new Set([]),n=new Set(["userPersistedValues"]);e.createMemoKey=function(t,e,i){let o=`${t}|${e}`;if(!i)return o;for(const t of Object.keys(i)){if(n.has(t))return;r.has(t)?o+=`|${t}=true`:o+=`|${t}=${i[t]}`}return o}},33975:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkParam=e.NetworkDefault=e.Endpoint=void 0,e.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},e.NetworkDefault={[e.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[e.Endpoint._initialize]:"https://featureassets.org/v1",[e.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},e.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},3284:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkCore=void 0,r(375);const i=r(375),o=r(60642),s=r(99025),a=r(33975),u=r(74930),l=r(11753),c=r(95881),h=r(37631),f=r(27995),d=r(33463),p=r(86478),g=r(56801),v=r(65260),y=new Set([408,500,502,503,504,522,524,599]);e.NetworkCore=class{constructor(t,e){this._emitter=e,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,t&&(this._options=t),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new u.NetworkFallbackResolver(this._options)}setErrorBoundary(t){this._errorBoundary=t,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(t)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){const t=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,t}beacon(t){return n(this,void 0,void 0,(function*(){if(!m(t))return!1;const e=this._getInternalRequestArgs("POST",t);yield this._tryToCompressBody(e);const r=yield this._getPopulatedURL(e),n=navigator;return n.sendBeacon.bind(n)(r,e.body)}))}post(t){return n(this,void 0,void 0,(function*(){const e=this._getInternalRequestArgs("POST",t);return this._tryEncodeBody(e),yield this._tryToCompressBody(e),this._sendRequest(e)}))}get(t){const e=this._getInternalRequestArgs("GET",t);return this._sendRequest(e)}_sendRequest(t){var e,r,i,u;return n(this,void 0,void 0,(function*(){if(!m(t))return null;if(this._netConfig.preventAllNetworkTraffic)return null;const{method:l,body:c,retries:h,attempt:f}=t,d=t.urlConfig.endpoint;if(this._isRateLimited(d))return s.Log.warn(`Request to ${d} was blocked because you are making requests too frequently.`),null;const g=null!=f?f:1,_="undefined"!=typeof AbortController?new AbortController:null,w=setTimeout((()=>{null==_||_.abort(`Timeout of ${this._timeout}ms expired.`)}),this._timeout),S=yield this._getPopulatedURL(t);let E=null;const O=(0,v._isUnloading)();try{const r={method:l,body:c,headers:Object.assign({},t.headers),signal:null==_?void 0:_.signal,priority:t.priority,keepalive:O};!function(t,e){t.urlConfig.endpoint===a.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqStart(t.sdkKey,{attempt:e})}(t,g);const n=this._leakyBucket[d];n&&(n.lastRequestTime=Date.now(),this._leakyBucket[d]=n);const i=null!==(e=this._netConfig.networkOverrideFunc)&&void 0!==e?e:fetch;if(E=yield i(S,r),clearTimeout(w),!E.ok){const t=yield E.text().catch((()=>"No Text")),e=new Error(`NetworkError: ${S} ${t}`);throw e.name="NetworkError",e}const s=yield E.text();return b(t,E,g,s),this._fallbackResolver.tryBumpExpiryTime(t.sdkKey,t.urlConfig),{body:s,code:E.status}}catch(e){const o=function(t,e){return(null==t?void 0:t.signal.aborted)&&"string"==typeof t.signal.reason?t.signal.reason:"string"==typeof e?e:e instanceof Error?`${e.name}: ${e.message}`:"Unknown Error"}(_,e),a=(null==(k=_)?void 0:k.signal.aborted)&&"string"==typeof k.signal.reason&&k.signal.reason.includes("Timeout")||!1;if(b(t,E,g,"",e),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(t.sdkKey,t.urlConfig,o,a))&&(t.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig)),!h||g>h||!y.has(null!==(r=null==E?void 0:E.status)&&void 0!==r?r:500)){null===(i=this._emitter)||void 0===i||i.call(this,{name:"error",error:e,tag:p.ErrorTag.NetworkError,requestArgs:t});const r=`A networking error occurred during ${l} request to ${S}.`;return s.Log.error(r,o,e),null===(u=this._errorBoundary)||void 0===u||u.attachErrorIfNoneExists(r),null}return yield function(t){return n(this,void 0,void 0,(function*(){yield new Promise((e=>setTimeout(e,Math.min(t*t*500,3e4))))}))}(g),this._sendRequest(Object.assign(Object.assign({},t),{retries:h,attempt:g+1}))}var k}))}_isRateLimited(t){var e;const r=Date.now(),n=null!==(e=this._leakyBucket[t])&&void 0!==e?e:{count:0,lastRequestTime:r},i=r-n.lastRequestTime,o=Math.floor(.05*i);return n.count=Math.max(0,n.count-o),n.count>=50||(n.count+=1,n.lastRequestTime=r,this._leakyBucket[t]=n,!1)}_getPopulatedURL(t){var e;return n(this,void 0,void 0,(function*(){const r=null!==(e=t.fallbackUrl)&&void 0!==e?e:t.urlConfig.getUrl();t.urlConfig.endpoint!==a.Endpoint._initialize&&t.urlConfig.endpoint!==a.Endpoint._download_config_specs||(this._lastUsedInitUrl=r);const n=Object.assign({[a.NetworkParam.SdkKey]:t.sdkKey,[a.NetworkParam.SdkType]:c.SDKType._get(t.sdkKey),[a.NetworkParam.SdkVersion]:g.SDK_VERSION,[a.NetworkParam.Time]:String(Date.now()),[a.NetworkParam.SessionID]:f.SessionID.get(t.sdkKey)},t.params),i=Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");return`${r}${i?`?${i}`:""}`}))}_tryEncodeBody(t){var e;const r=(0,h._getWindowSafe)(),n=t.body;if(t.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof n&&null==(0,i._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{t.body=r.btoa(n).split("").reverse().join(""),t.params=Object.assign(Object.assign({},null!==(e=t.params)&&void 0!==e?e:{}),{[a.NetworkParam.StatsigEncoded]:"1"})}catch(e){s.Log.warn(`Request encoding failed for ${t.urlConfig.getUrl()}`,e)}}_tryToCompressBody(t){var e;return n(this,void 0,void 0,(function*(){const r=t.body;if(t.isCompressable&&!this._options.disableCompression&&"string"==typeof r&&!0===l.SDKFlags.get(t.sdkKey,"enable_log_event_compression")&&null==(0,i._getStatsigGlobalFlag)("no-compress")&&"undefined"!=typeof CompressionStream&&"undefined"!=typeof TextEncoder)try{const n=(new TextEncoder).encode(r),i=new CompressionStream("gzip"),o=i.writable.getWriter();o.write(n).catch(s.Log.error),o.close().catch(s.Log.error);const u=i.readable.getReader(),l=[];let c;for(;!(c=yield u.read()).done;)l.push(c.value);const h=l.reduce(((t,e)=>t+e.length),0),f=new Uint8Array(h);let d=0;for(const t of l)f.set(t,d),d+=t.length;t.body=f,t.params=Object.assign(Object.assign({},null!==(e=t.params)&&void 0!==e?e:{}),{[a.NetworkParam.IsGzipped]:"1"})}catch(e){s.Log.warn(`Request compression failed for ${t.urlConfig.getUrl()}`,e)}}))}_getInternalRequestArgs(t,e){const r=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig),n=Object.assign(Object.assign({},e),{method:t,fallbackUrl:r});return"data"in e&&_(n,e.data),n}};const m=t=>!!t.sdkKey||(s.Log.warn("Unable to make request without an SDK key"),!1),_=(t,e)=>{const{sdkKey:r,fallbackUrl:n}=t,i=d.StableID.get(r),o=f.SessionID.get(r),s=c.SDKType._get(r);t.body=JSON.stringify(Object.assign(Object.assign({},e),{statsigMetadata:Object.assign(Object.assign({},g.StatsigMetadataProvider.get()),{stableID:i,sessionID:o,sdkType:s,fallbackUrl:n})}))};function b(t,e,r,n,i){t.urlConfig.endpoint===a.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqEnd(t.sdkKey,o.Diagnostics._getDiagnosticsData(e,r,n,i))}},74930:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e._isDomainFailure=e.NetworkFallbackResolver=void 0;const i=r(9549),o=r(56152),s=r(99025),a=r(38614),u=6048e5;function l(t,e){var r;const n=null!==(r=null==t?void 0:t.toLowerCase())&&void 0!==r?r:"";return e||n.includes("uncaught exception")||n.includes("failed to fetch")||n.includes("networkerror when attempting to fetch resource")}function c(t){return`statsig.network_fallback.${(0,o._DJB2)(t)}`}function h(t,e){const r=c(t);e&&0!==Object.keys(e).length?a.Storage.setItem(r,JSON.stringify(e)):a.Storage.removeItem(r)}function f(t){try{return new URL(t).pathname}catch(t){return null}}e.NetworkFallbackResolver=class{constructor(t){var e;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(e=t.networkConfig)||void 0===e?void 0:e.networkOverrideFunc}setErrorBoundary(t){this._errorBoundary=t}tryBumpExpiryTime(t,e){var r;const n=null===(r=this._fallbackInfo)||void 0===r?void 0:r[e.endpoint];n&&(n.expiryTime=Date.now()+u,h(t,Object.assign(Object.assign({},this._fallbackInfo),{[e.endpoint]:n})))}getActiveFallbackUrl(t,e){var r,n;let i=this._fallbackInfo;null==i&&(i=null!==(r=function(t){const e=c(t),r=a.Storage.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch(t){return s.Log.error("Failed to parse FallbackInfo"),null}}(t))&&void 0!==r?r:{},this._fallbackInfo=i);const o=i[e.endpoint];return!o||Date.now()>(null!==(n=o.expiryTime)&&void 0!==n?n:0)?(delete i[e.endpoint],this._fallbackInfo=i,h(t,this._fallbackInfo),null):o.url?o.url:null}getFallbackFromProvided(t){const e=f(t);return e?t.replace(e,""):null}tryFetchUpdatedFallbackInfo(t,e,r,i){var o,s;return n(this,void 0,void 0,(function*(){try{if(!l(r,i))return!1;const n=null==e.customUrl&&null==e.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(e):e.fallbackUrls,s=this._pickNewFallbackUrl(null===(o=this._fallbackInfo)||void 0===o?void 0:o[e.endpoint],n);return!!s&&(this._updateFallbackInfoWithNewUrl(t,e.endpoint,s),!0)}catch(t){return null===(s=this._errorBoundary)||void 0===s||s.logError("tryFetchUpdatedFallbackInfo",t),!1}}))}_updateFallbackInfoWithNewUrl(t,e,r){var n,i,o;const s={url:r,expiryTime:Date.now()+u,previous:[]},a=null===(n=this._fallbackInfo)||void 0===n?void 0:n[e];a&&s.previous.push(...a.previous),s.previous.length>10&&(s.previous=[]);const l=null===(o=null===(i=this._fallbackInfo)||void 0===i?void 0:i[e])||void 0===o?void 0:o.url;null!=l&&s.previous.push(l),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[e]:s}),h(t,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(t){var e;return n(this,void 0,void 0,(function*(){const r=this._dnsQueryCooldowns[t.endpoint];if(r&&Date.now()1){let t=r[1];t.endsWith("/")&&(t=t.slice(0,-1)),n.push(`https://${t}${s}`)}}return n}))}_pickNewFallbackUrl(t,e){var r;if(null==e)return null;const n=new Set(null!==(r=null==t?void 0:t.previous)&&void 0!==r?r:[]),i=null==t?void 0:t.url;let o=null;for(const t of e){const e=t.endsWith("/")?t.slice(0,-1):t;if(!n.has(t)&&e!==i){o=e;break}}return o}},e._isDomainFailure=l},30034:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},4632:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},11753:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDKFlags=void 0;const r={};e.SDKFlags={setFlags:(t,e)=>{r[t]=e},get:(t,e)=>{var n,i;return null!==(i=null===(n=r[t])||void 0===n?void 0:n[e])&&void 0!==i&&i}}},95881:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDKType=void 0;const r={};let n;e.SDKType={_get:t=>{var e;return(null!==(e=r[t])&&void 0!==e?e:"js-mono")+(null!=n?n:"")},_setClientType(t,e){r[t]=e},_setBindingType(t){n&&"-react"!==n||(n="-"+t)}}},37631:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._getCurrentPageUrlSafe=e._addDocumentEventListenerSafe=e._addWindowEventListenerSafe=e._isServerEnv=e._getDocumentSafe=e._getWindowSafe=void 0,e._getWindowSafe=()=>"undefined"!=typeof window?window:null,e._getDocumentSafe=()=>{var t;const r=(0,e._getWindowSafe)();return null!==(t=null==r?void 0:r.document)&&void 0!==t?t:null},e._isServerEnv=()=>{if(null!==(0,e._getDocumentSafe)())return!1;const t=void 0!=={}&&null!={}.versions&&null!={}.versions.node;return"string"==typeof EdgeRuntime||t},e._addWindowEventListenerSafe=(t,r)=>{const n=(0,e._getWindowSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(t,r)},e._addDocumentEventListenerSafe=(t,r)=>{const n=(0,e._getDocumentSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(t,r)},e._getCurrentPageUrlSafe=()=>{var t;try{return null===(t=(0,e._getWindowSafe)())||void 0===t?void 0:t.location.href.split(/[?#]/)[0]}catch(t){return}}},27995:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigSession=e.SessionID=void 0;const n=r(61867),i=r(99025),o=r(38614),s=r(99382),a=18e5,u=144e5,l={};function c(t,e){return setTimeout((()=>{const e=null===__STATSIG__||void 0===__STATSIG__?void 0:__STATSIG__.instance(t);e&&e.$emt({name:"session_expired"})}),e)}function h(t){return`statsig.session_id.${(0,n._getStorageKey)(t)}`}e.SessionID={get:t=>e.StatsigSession.get(t).data.sessionID},e.StatsigSession={get:t=>(null==l[t]&&(l[t]=function(t){let e=function(t){const e=h(t);return(0,o._getObjectFromStorage)(e)}(t);const r=Date.now();return e||(e={sessionID:(0,s.getUUID)(),startTime:r,lastUpdate:r}),{data:e,sdkKey:t}}(t)),function(t){const e=Date.now(),r=t.data;(function({lastUpdate:t}){return Date.now()-t>a}(r)||function({startTime:t}){return Date.now()-t>u}(r))&&(r.sessionID=(0,s.getUUID)(),r.startTime=e),r.lastUpdate=e,function(t,e){const r=h(e);try{(0,o._setObjectInStorage)(r,t)}catch(t){i.Log.warn("Failed to save SessionID")}}(r,t.sdkKey),clearTimeout(t.idleTimeoutID),clearTimeout(t.ageTimeoutID);const n=e-r.startTime,l=t.sdkKey;return t.idleTimeoutID=c(l,a),t.ageTimeoutID=c(l,u-n),t}(l[t])),overrideInitialSessionID:(t,e)=>{l[e]=function(t,e){const r=Date.now();return{data:{sessionID:t,startTime:r,lastUpdate:r},sdkKey:e}}(t,e)}}},33463:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StableID=void 0;const n=r(61867),i=r(99025),o=r(38614),s=r(99382),a={};function u(t){return`statsig.stable_id.${(0,n._getStorageKey)(t)}`}function l(t,e){const r=u(e);try{(0,o._setObjectInStorage)(r,t)}catch(t){i.Log.warn("Failed to save StableID")}}e.StableID={get:t=>{if(null==a[t]){let e=function(t){const e=u(t);return(0,o._getObjectFromStorage)(e)}(t);null==e&&(e=(0,s.getUUID)(),l(e,t)),a[t]=e}return a[t]},setOverride:(t,e)=>{a[e]=t,l(t,e)}}},44850:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigClientBase=void 0,r(375);const i=r(375),o=r(68896),s=r(16156),a=r(99025),u=r(41231),l=r(37631),c=r(27995),h=r(38614);e.StatsigClientBase=class{constructor(t,e,r,n){var u;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const f=this.$emt.bind(this);null!=(null==n?void 0:n.logLevel)&&(a.Log.level=n.logLevel),(null==n?void 0:n.disableStorage)&&h.Storage._setDisabled(!0),(null==n?void 0:n.initialSessionID)&&c.StatsigSession.overrideInitialSessionID(n.initialSessionID,t),(null==n?void 0:n.storageProvider)&&h.Storage._setProvider(n.storageProvider),this._sdkKey=t,this._options=null!=n?n:{},this._memoCache={},this.overrideAdapter=null!==(u=null==n?void 0:n.overrideAdapter)&&void 0!==u?u:null,this._logger=new s.EventLogger(t,f,r,n),this._errorBoundary=new o.ErrorBoundary(t,n,f),this._errorBoundary.wrap(this),this._errorBoundary.wrap(e),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=e,this.dataAdapter.attach(t,n),this.storageProvider=h.Storage,this._primeReadyRipcord(),function(t,e){var r;if((0,l._isServerEnv)())return;const n=(0,i._getStatsigGlobal)(),o=null!==(r=n.instances)&&void 0!==r?r:{},s=e;null!=o[t]&&a.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys."),o[t]=s,n.firstInstance||(n.firstInstance=s),n.instances=o,__STATSIG__=n}(t,this)}updateRuntimeOptions(t){null!=t.disableLogging&&(this._options.disableLogging=t.disableLogging,this._logger.setLoggingDisabled(t.disableLogging)),null!=t.disableStorage&&(this._options.disableStorage=t.disableStorage,h.Storage._setDisabled(t.disableStorage))}flush(){return this._logger.flush()}shutdown(){return n(this,void 0,void 0,(function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()}))}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){if(this._listeners[t]){const r=this._listeners[t].indexOf(e);-1!==r&&this._listeners[t].splice(r,1)}}$on(t,e){e.__isInternal=!0,this.on(t,e)}$emt(t){var e;const r=e=>{try{e(t)}catch(r){if(!0===e.__isInternal)return void this._errorBoundary.logError(`__emit:${t.name}`,r);a.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",t)}};this._listeners[t.name]&&this._listeners[t.name].forEach((t=>r(t))),null===(e=this._listeners["*"])||void 0===e||e.forEach(r)}_setStatus(t,e){this.loadingStatus=t,this._memoCache={},this.$emt({name:"values_updated",status:t,values:e})}_enqueueExposure(t,e,r){!0!==(null==r?void 0:r.disableExposureLog)?this._logger.enqueue(e):this._logger.incrementNonExposureCount(t)}_memoize(t,e){return(r,n)=>{if(this._options.disableEvaluationMemoization)return e(r,n);const i=(0,u.createMemoKey)(t,r,n);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=e(r,n)),this._memoCache[i]):e(r,n)}}}},86478:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorTag=void 0,e.ErrorTag={NetworkError:"NetworkError"}},80712:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataAdapterCachePrefix=void 0,e.DataAdapterCachePrefix="statsig.cached"},19817:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._createLayerParameterExposure=e._createConfigExposure=e._mapExposures=e._createGateExposure=e._isExposureEvent=void 0;const r="statsig::config_exposure",n="statsig::gate_exposure",i="statsig::layer_exposure",o=(t,e,r,n,i)=>(r.bootstrapMetadata&&(n.bootstrapMetadata=r.bootstrapMetadata),{eventName:t,user:e,value:null,metadata:a(r,n),secondaryExposures:i,time:Date.now()});function s(t,e){return t.map((t=>"string"==typeof t?(null!=e?e:{})[t]:t)).filter((t=>null!=t))}e._isExposureEvent=({eventName:t})=>t===n||t===r||t===i,e._createGateExposure=(t,e,r)=>{var i,a,u;const l={gate:e.name,gateValue:String(e.value),ruleID:e.ruleID};return null!=(null===(i=e.__evaluation)||void 0===i?void 0:i.version)&&(l.configVersion=e.__evaluation.version),o(n,t,e.details,l,s(null!==(u=null===(a=e.__evaluation)||void 0===a?void 0:a.secondary_exposures)&&void 0!==u?u:[],r))},e._mapExposures=s,e._createConfigExposure=(t,e,n)=>{var i,a,u,l;const c={config:e.name,ruleID:e.ruleID};return null!=(null===(i=e.__evaluation)||void 0===i?void 0:i.version)&&(c.configVersion=e.__evaluation.version),null!=(null===(a=e.__evaluation)||void 0===a?void 0:a.passed)&&(c.rulePassed=String(e.__evaluation.passed)),o(r,t,e.details,c,s(null!==(l=null===(u=e.__evaluation)||void 0===u?void 0:u.secondary_exposures)&&void 0!==l?l:[],n))},e._createLayerParameterExposure=(t,e,r,n)=>{var a,u,l,c;const h=e.__evaluation,f=!0===(null===(a=null==h?void 0:h.explicit_parameters)||void 0===a?void 0:a.includes(r));let d="",p=null!==(u=null==h?void 0:h.undelegated_secondary_exposures)&&void 0!==u?u:[];f&&(d=null!==(l=h.allocated_experiment_name)&&void 0!==l?l:"",p=h.secondary_exposures);const g={config:e.name,parameterName:r,ruleID:e.ruleID,allocatedExperiment:d,isExplicitParameter:String(f)};return null!=(null===(c=e.__evaluation)||void 0===c?void 0:c.version)&&(g.configVersion=e.__evaluation.version),o(i,t,e.details,g,s(p,n))};const a=(t,e)=>(e.reason=t.reason,t.lcut&&(e.lcut=String(t.lcut)),t.receivedAt&&(e.receivedAt=String(t.receivedAt)),e)},56801:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigMetadataProvider=e.SDK_VERSION=void 0,e.SDK_VERSION="3.12.1";let r={sdkVersion:e.SDK_VERSION,sdkType:"js-mono"};e.StatsigMetadataProvider={get:()=>r,add:t=>{r=Object.assign(Object.assign({},r),t)}}},16790:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},11497:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},78431:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._makeTypedGet=e._mergeOverride=e._makeLayer=e._makeExperiment=e._makeDynamicConfig=e._makeFeatureGate=void 0;const n=r(99025),i=r(38687),o="default";function s(t,e,r,n){var i;return{name:t,details:e,ruleID:null!==(i=null==r?void 0:r.rule_id)&&void 0!==i?i:o,__evaluation:r,value:n}}function a(t,e,r){var n;const i=null!==(n=null==r?void 0:r.value)&&void 0!==n?n:{};return Object.assign(Object.assign({},s(t,e,r,i)),{get:u(t,null==r?void 0:r.value)})}function u(t,e,r){return(o,s)=>{var a;const u=null!==(a=null==e?void 0:e[o])&&void 0!==a?a:null;return null==u?null!=s?s:null:null==s||(0,i._isTypeMatch)(u,s)?(null==r||r(o),u):(n.Log.warn(`Parameter type mismatch. '${t}.${o}' was found to be type '${typeof u}' but fallback/return type is '${typeof s}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=s?s:null)}}e._makeFeatureGate=function(t,e,r){return s(t,e,r,!0===(null==r?void 0:r.value))},e._makeDynamicConfig=a,e._makeExperiment=function(t,e,r){var n;const i=a(t,e,r);return Object.assign(Object.assign({},i),{groupName:null!==(n=null==r?void 0:r.group_name)&&void 0!==n?n:null})},e._makeLayer=function(t,e,r,n){var i,o;return Object.assign(Object.assign({},s(t,e,r,void 0)),{get:u(t,null==r?void 0:r.value,n),groupName:null!==(i=null==r?void 0:r.group_name)&&void 0!==i?i:null,__value:null!==(o=null==r?void 0:r.value)&&void 0!==o?o:{}})},e._mergeOverride=function(t,e,r,n){return Object.assign(Object.assign(Object.assign({},t),e),{get:u(t.name,r,n)})},e._makeTypedGet=u},87963:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},45051:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPDATE_DETAIL_ERROR_MESSAGES=e.createUpdateDetails=void 0,e.createUpdateDetails=(t,e,r,n,i,o)=>({duration:r,source:e,success:t,error:n,sourceUrl:i,warnings:o}),e.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."}},89063:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._getFullUserHash=e._normalizeUser=void 0;const n=r(56152),i=r(99025);e._normalizeUser=function(t,e,r){try{const n=JSON.parse(JSON.stringify(t));return null!=e&&null!=e.environment?n.statsigEnvironment=e.environment:null!=r&&(n.statsigEnvironment={tier:r}),n}catch(t){return i.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},e._getFullUserHash=function(t){return t?(0,n._DJB2Object)(t):null}},38614:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._setObjectInStorage=e._getObjectFromStorage=e.Storage=void 0;const n=r(99025),i=r(37631),o={},s={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:t=>o[t]?o[t]:null,setItem:(t,e)=>{o[t]=e},removeItem:t=>{delete o[t]},getAllKeys:()=>Object.keys(o)};let a=null;try{const t=(0,i._getWindowSafe)();t&&t.localStorage&&"function"==typeof t.localStorage.getItem&&(a={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:e=>t.localStorage.getItem(e),setItem:(e,r)=>t.localStorage.setItem(e,r),removeItem:e=>t.localStorage.removeItem(e),getAllKeys:()=>Object.keys(t.localStorage)})}catch(t){n.Log.warn("Failed to setup localStorageProvider.")}let u=null!=a?a:s,l=u;e.Storage={isReady:()=>l.isReady(),isReadyResolver:()=>l.isReadyResolver(),getProviderName:()=>l.getProviderName(),getItem:t=>function(r){try{return l.getItem(t)}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return e.Storage._setProvider(s),null;throw t}}(),setItem:(t,e)=>l.setItem(t,e),removeItem:t=>l.removeItem(t),getAllKeys:()=>l.getAllKeys(),_setProvider:t=>{u=t,l=t},_setDisabled:t=>{l=t?s:u}},e._getObjectFromStorage=function(t){const r=e.Storage.getItem(t);return JSON.parse(null!=r?r:"null")},e._setObjectInStorage=function(t,r){e.Storage.setItem(t,JSON.stringify(r))}},53111:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._typedJsonParse=void 0;const n=r(99025);e._typedJsonParse=function(t,e,r){try{const r=JSON.parse(t);if(r&&"object"==typeof r&&e in r)return r}catch(t){}return n.Log.error(`Failed to parse ${r}`),null}},38687:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._isTypeMatch=e._typeOf=void 0,e._typeOf=function(t){return Array.isArray(t)?"array":typeof t},e._isTypeMatch=function(t,e){const r=t=>Array.isArray(t)?"array":typeof t;return r(t)===r(e)}},99382:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUUID=void 0,e.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let t=(new Date).getTime(),e="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(4*Math.random())]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,(r=>{let n=16*Math.random();return t>0?(n=(t+n)%16|0,t=Math.floor(t/16)):(n=(e+n)%16|0,e=Math.floor(e/16)),("x"===r?n:7&n|8).toString(16)}))}},40801:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UrlConfiguration=void 0;const n=r(33975),i={[n.Endpoint._initialize]:"i",[n.Endpoint._rgstr]:"e",[n.Endpoint._download_config_specs]:"d"};e.UrlConfiguration=class{constructor(t,e,r,o){this.customUrl=null,this.fallbackUrls=null,this.endpoint=t,this.endpointDnsKey=i[t],e&&(this.customUrl=e),!e&&r&&(this.customUrl=r.endsWith("/")?`${r}${t}`:`${r}/${t}`),o&&(this.fallbackUrls=o);const s=n.NetworkDefault[t];this.defaultUrl=`${s}/${t}`}getUrl(){var t;return null!==(t=this.customUrl)&&void 0!==t?t:this.defaultUrl}}},65260:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._notifyVisibilityChanged=e._subscribeToVisiblityChanged=e._isUnloading=e._isCurrentlyVisible=void 0;const n=r(37631),i="foreground",o="background",s=[];let a=i,u=!1;e._isCurrentlyVisible=()=>a===i,e._isUnloading=()=>u,e._subscribeToVisiblityChanged=t=>{s.unshift(t)},e._notifyVisibilityChanged=t=>{t!==a&&(a=t,s.forEach((e=>e(t))))},(0,n._addWindowEventListenerSafe)("focus",(()=>{u=!1,(0,e._notifyVisibilityChanged)(i)})),(0,n._addWindowEventListenerSafe)("blur",(()=>(0,e._notifyVisibilityChanged)(o))),(0,n._addWindowEventListenerSafe)("beforeunload",(()=>{u=!0,(0,e._notifyVisibilityChanged)(o)})),(0,n._addDocumentEventListenerSafe)("visibilitychange",(()=>{(0,e._notifyVisibilityChanged)("visible"===document.visibilityState?i:o)}))},13328:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Storage=e.Log=e.EventLogger=e.Diagnostics=void 0,r(375);const o=r(60642);Object.defineProperty(e,"Diagnostics",{enumerable:!0,get:function(){return o.Diagnostics}});const s=r(16156);Object.defineProperty(e,"EventLogger",{enumerable:!0,get:function(){return s.EventLogger}});const a=r(99025);Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return a.Log}});const u=r(56801),l=r(38614);Object.defineProperty(e,"Storage",{enumerable:!0,get:function(){return l.Storage}}),i(r(375),e),i(r(61867),e),i(r(394),e),i(r(53183),e),i(r(60642),e),i(r(36831),e),i(r(68896),e),i(r(80624),e),i(r(21335),e),i(r(56152),e),i(r(76724),e),i(r(99025),e),i(r(41231),e),i(r(33975),e),i(r(3284),e),i(r(30034),e),i(r(4632),e),i(r(37631),e),i(r(95881),e),i(r(27995),e),i(r(33463),e),i(r(44850),e),i(r(86478),e),i(r(80712),e),i(r(19817),e),i(r(56801),e),i(r(16790),e),i(r(11497),e),i(r(78431),e),i(r(87963),e),i(r(89063),e),i(r(38614),e),i(r(53111),e),i(r(38687),e),i(r(40801),e),i(r(99382),e),i(r(65260),e),i(r(45051),e),i(r(11753),e),__STATSIG__=Object.assign(Object.assign({},null!==__STATSIG__&&void 0!==__STATSIG__?__STATSIG__:{}),{Log:a.Log,SDK_VERSION:u.SDK_VERSION})},33815:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._resolveDeltasResponse=void 0;const n=r(13328);function i(t,e){null==t||t.forEach((t=>{delete e[t]}))}e._resolveDeltasResponse=function(t,e){const r=(0,n._typedJsonParse)(e,"checksum","DeltasEvaluationResponse");if(!r)return{hadBadDeltaChecksum:!0};const o=function(t){const e=t;return i(t.deleted_gates,e.feature_gates),delete e.deleted_gates,i(t.deleted_configs,e.dynamic_configs),delete e.deleted_configs,i(t.deleted_layers,e.layer_configs),delete e.deleted_layers,e}(function(t,e){return Object.assign(Object.assign(Object.assign({},t),e),{feature_gates:Object.assign(Object.assign({},t.feature_gates),e.feature_gates),layer_configs:Object.assign(Object.assign({},t.layer_configs),e.layer_configs),dynamic_configs:Object.assign(Object.assign({},t.dynamic_configs),e.dynamic_configs)})}(t,r)),s=(0,n._DJB2Object)({feature_gates:o.feature_gates,dynamic_configs:o.dynamic_configs,layer_configs:o.layer_configs},2);return s===r.checksumV2?JSON.stringify(o):{hadBadDeltaChecksum:!0,badChecksum:s,badMergedConfigs:o,badFullResponse:r.deltas_full_response}}},44228:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(13328);e.default=class{constructor(t){this._sdkKey=t,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._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(t,e){var r;if(!t)return!1;const i=(0,n._typedJsonParse)(t.data,"has_updates","EvaluationResponse");return null!=i&&(this._source=t.source,!0!==(null==i?void 0:i.has_updates)||(this._rawValues=t.data,this._lcut=i.time,this._receivedAt=t.receivedAt,this._values=i,this._bootstrapMetadata=this._extractBootstrapMetadata(t.source,i),t.source&&i.user&&this._setWarningState(e,i),n.SDKFlags.setFlags(this._sdkKey,null!==(r=i.sdk_flags)&&void 0!==r?r:{})),!0)}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(t){var e;return this._getDetailedStoreResult(null===(e=this._values)||void 0===e?void 0:e.feature_gates,t)}getConfig(t){var e;return this._getDetailedStoreResult(null===(e=this._values)||void 0===e?void 0:e.dynamic_configs,t)}getLayer(t){var e;return this._getDetailedStoreResult(null===(e=this._values)||void 0===e?void 0:e.layer_configs,t)}getParamStore(t){var e;return this._getDetailedStoreResult(null===(e=this._values)||void 0===e?void 0:e.param_stores,t)}getSource(){return this._source}getExposureMapping(){var t;return null===(t=this._values)||void 0===t?void 0:t.exposures}_extractBootstrapMetadata(t,e){if("Bootstrap"!==t)return null;const r={};return e.user&&(r.user=e.user),e.sdkInfo&&(r.generatorSDKInfo=e.sdkInfo),r.lcut=e.time,r}_getDetailedStoreResult(t,e){let r=null;return t&&(r=t[e]?t[e]:t[(0,n._DJB2)(e)]),{result:r,details:this._getDetails(null==r)}}_setWarningState(t,e){var r;const i=n.StableID.get(this._sdkKey);if((null===(r=t.customIDs)||void 0===r?void 0:r.stableID)===i){if("user"in e){const r=e.user;(0,n._getFullUserHash)(t)!==(0,n._getFullUserHash)(r)&&this._warnings.add("PartialUserMatch")}}else this._warnings.add("StableIDMismatch")}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};const t={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(t.warnings=Array.from(this._warnings)),t}_getDetails(t){var e,r;const n=this.getCurrentSourceDetails();let i=n.reason;const o=null!==(e=n.warnings)&&void 0!==e?e:[];"Bootstrap"===this._source&&o.length>0&&(i+=o[0]),"Uninitialized"!==i&&"NoValues"!==i&&(i=`${i}:${t?"Unrecognized":"Recognized"}`);const s="Bootstrap"===this._source&&null!==(r=this._bootstrapMetadata)&&void 0!==r?r:void 0;return s&&(n.bootstrapMetadata=s),Object.assign(Object.assign({},n),{reason:i})}}},70226:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const i=r(13328),o=r(33815);class s extends i.NetworkCore{constructor(t,e){super(t,e);const r=null==t?void 0:t.networkConfig;this._initializeUrlConfig=new i.UrlConfiguration(i.Endpoint._initialize,null==r?void 0:r.initializeUrl,null==r?void 0:r.api,null==r?void 0:r.initializeFallbackUrls)}fetchEvaluations(t,e,r,o,s){return n(this,void 0,void 0,(function*(){const n=e?(0,i._typedJsonParse)(e,"has_updates","InitializeResponse"):null;let a={user:o,hash:"djb2",deltasResponseRequested:!1,full_checksum:null};return(null==n?void 0:n.has_updates)&&(a=Object.assign(Object.assign({},a),{sinceTime:s?n.time:0,previousDerivedFields:"derived_fields"in n&&s?n.derived_fields:{},deltasResponseRequested:!0,full_checksum:n.full_checksum})),this._fetchEvaluations(t,n,a,r)}))}_fetchEvaluations(t,e,r,i){var s,a;return n(this,void 0,void 0,(function*(){const n=yield this.post({sdkKey:t,urlConfig:this._initializeUrlConfig,data:r,retries:2,isStatsigEncodable:!0,priority:i});if(204===(null==n?void 0:n.code))return'{"has_updates": false}';if(200!==(null==n?void 0:n.code))return null!==(s=null==n?void 0:n.body)&&void 0!==s?s:null;if(!0!==(null==e?void 0:e.has_updates)||!0!==(null===(a=n.body)||void 0===a?void 0:a.includes('"is_delta":true'))||!0!==r.deltasResponseRequested)return n.body;const u=(0,o._resolveDeltasResponse)(e,n.body);return"string"==typeof u?u:this._fetchEvaluations(t,e,Object.assign(Object.assign(Object.assign({},r),u),{deltasResponseRequested:!1}),i)}))}}e.default=s},50866:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._makeParamStoreGetter=void 0;const n=r(13328),i={disableExposureLog:!0};function o(t){return null==t||!1===t.disableExposureLog}function s(t,e){return null!=e&&!(0,n._isTypeMatch)(t,e)}e._makeParamStoreGetter=function(t,e,r){return(a,u)=>{if(null==e)return u;const l=e[a];if(null==l||null!=u&&(0,n._typeOf)(u)!==l.param_type)return u;switch(l.ref_type){case"static":return function(t,e){return t.value}(l);case"gate":return function(t,e,r){return t.getFeatureGate(e.gate_name,o(r)?void 0:i).value?e.pass_value:e.fail_value}(t,l,r);case"dynamic_config":return function(t,e,r,n){const a=t.getDynamicConfig(e.config_name,i).get(e.param_name);return s(a,r)?r:(o(n)&&t.getDynamicConfig(e.config_name),a)}(t,l,u,r);case"experiment":return function(t,e,r,n){const a=t.getExperiment(e.experiment_name,i).get(e.param_name);return s(a,r)?r:(o(n)&&t.getExperiment(e.experiment_name),a)}(t,l,u,r);case"layer":return function(t,e,r,n){const a=t.getLayer(e.layer_name,i).get(e.param_name);return s(a,r)?r:(o(n)&&t.getLayer(e.layer_name).get(e.param_name),a)}(t,l,u,r);default:return u}}}},74620:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const i=r(13328),o=r(44228),s=r(70226),a=r(50866),u=r(95231);class l extends i.StatsigClientBase{static instance(t){const e=(0,i._getStatsigGlobal)().instance(t);return e instanceof l?e:(i.Log.warn((0,i._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new l(null!=t?t:"",{}))}constructor(t,e,r=null){var n,a;i.SDKType._setClientType(t,"javascript-client");const l=new s.default(r,(t=>{this.$emt(t)}));super(t,null!==(n=null==r?void 0:r.dataAdapter)&&void 0!==n?n:new u.StatsigEvaluationsDataAdapter,l,r),this.getFeatureGate=this._memoize(i.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(i.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(i.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getLayer=this._memoize(i.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(i.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new o.default(t),this._network=l,this._user=this._configureUser(e,r);const c=null!==(a=null==r?void 0:r.plugins)&&void 0!==a?a:[];for(const t of c)t.bind(this)}initializeSync(t){var e;return"Uninitialized"!==this.loadingStatus?(0,i.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!==(e=this._store.getWarnings())&&void 0!==e?e:[]]):(this._logger.start(),this.updateUserSync(this._user,t))}initializeAsync(t){return n(this,void 0,void 0,(function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(t)),this._initializePromise}))}updateUserSync(t,e){var r;const n=performance.now(),o=[...null!==(r=this._store.getWarnings())&&void 0!==r?r:[]];this._resetForUser(t);const s=this.dataAdapter.getDataSync(this._user);null==s&&o.push("NoCachedValues"),this._store.setValues(s,this._user),this._finalizeUpdate(s);const a=null==e?void 0:e.disableBackgroundCacheRefresh;return!0===a||null==a&&"Bootstrap"===(null==s?void 0:s.source)||this._runPostUpdate(null!=s?s:null,this._user),(0,i.createUpdateDetails)(!0,this._store.getSource(),performance.now()-n,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),o)}updateUserAsync(t,e){return n(this,void 0,void 0,(function*(){this._resetForUser(t);const r=this._user;i.Diagnostics._markInitOverallStart(this._sdkKey);let n=this.dataAdapter.getDataSync(r);if(this._store.setValues(n,this._user),this._setStatus("Loading",n),n=yield this.dataAdapter.getDataAsync(n,r,e),r!==this._user)return(0,i.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let o=!1;null!=n&&(i.Diagnostics._markInitProcessStart(this._sdkKey),o=this._store.setValues(n,this._user),i.Diagnostics._markInitProcessEnd(this._sdkKey,{success:o})),this._finalizeUpdate(n),o||(this._errorBoundary.attachErrorIfNoneExists(i.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),i.Diagnostics._markInitOverallEnd(this._sdkKey,o,this._store.getCurrentSourceDetails());const s=i.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,i.createUpdateDetails)(o,this._store.getSource(),s,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:i.StatsigSession.get(this._sdkKey),stableID:i.StableID.get(this._sdkKey)}}checkGate(t,e){return this.getFeatureGate(t,e).value}logEvent(t,e,r){const n="string"==typeof t?{eventName:t,value:e,metadata:r}:t;this._logger.enqueue(Object.assign(Object.assign({},n),{user:this._user,time:Date.now()}))}_primeReadyRipcord(){this.$on("error",(()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)}))}_initializeAsyncImpl(t){return n(this,void 0,void 0,(function*(){return i.Storage.isReady()||(yield i.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,t)}))}_finalizeUpdate(t){this._store.finalize(),this._setStatus("Ready",t)}_runPostUpdate(t,e){this.dataAdapter.getDataAsync(t,e,{priority:"low"}).catch((t=>{i.Log.error("An error occurred after update.",t)}))}_resetForUser(t){this._logger.reset(),this._store.reset(),this._user=this._configureUser(t,this._options)}_configureUser(t,e){var r;const n=(0,i._normalizeUser)(t,e),o=null===(r=n.customIDs)||void 0===r?void 0:r.stableID;return o&&i.StableID.setOverride(o,this._sdkKey),n}_getFeatureGateImpl(t,e){var r,n;const{result:o,details:s}=this._store.getGate(t),a=(0,i._makeFeatureGate)(t,s,o),u=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getGateOverride)||void 0===n?void 0:n.call(r,a,this._user,e),l=null!=u?u:a;return this._enqueueExposure(t,(0,i._createGateExposure)(this._user,l,this._store.getExposureMapping()),e),this.$emt({name:"gate_evaluation",gate:l}),l}_getDynamicConfigImpl(t,e){var r,n;const{result:o,details:s}=this._store.getConfig(t),a=(0,i._makeDynamicConfig)(t,s,o),u=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getDynamicConfigOverride)||void 0===n?void 0:n.call(r,a,this._user,e),l=null!=u?u:a;return this._enqueueExposure(t,(0,i._createConfigExposure)(this._user,l,this._store.getExposureMapping()),e),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:l}),l}_getExperimentImpl(t,e){var r,n,o,s;const{result:a,details:u}=this._store.getConfig(t),l=(0,i._makeExperiment)(t,u,a);null!=l.__evaluation&&(l.__evaluation.secondary_exposures=(0,i._mapExposures)(null!==(n=null===(r=l.__evaluation)||void 0===r?void 0:r.secondary_exposures)&&void 0!==n?n:[],this._store.getExposureMapping()));const c=null===(s=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getExperimentOverride)||void 0===s?void 0:s.call(o,l,this._user,e),h=null!=c?c:l;return this._enqueueExposure(t,(0,i._createConfigExposure)(this._user,h,this._store.getExposureMapping()),e),this.$emt({name:"experiment_evaluation",experiment:h}),h}_getLayerImpl(t,e){var r,n,o;const{result:s,details:a}=this._store.getLayer(t),u=(0,i._makeLayer)(t,a,s),l=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getLayerOverride)||void 0===n?void 0:n.call(r,u,this._user,e);(null==e?void 0:e.disableExposureLog)&&this._logger.incrementNonExposureCount(t);const c=(0,i._mergeOverride)(u,l,null!==(o=null==l?void 0:l.__value)&&void 0!==o?o:u.__value,(r=>{(null==e?void 0:e.disableExposureLog)||this._enqueueExposure(t,(0,i._createLayerParameterExposure)(this._user,c,r,this._store.getExposureMapping()),e)}));return this.$emt({name:"layer_evaluation",layer:c}),c}_getParameterStoreImpl(t,e){var r,n;const{result:i,details:o}=this._store.getParamStore(t);this._logger.incrementNonExposureCount(t);const s={name:t,details:o,__configuration:i,get:(0,a._makeParamStoreGetter)(this,i,e)},u=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getParamStoreOverride)||void 0===n?void 0:n.call(r,s,e);return null!=u&&(s.__configuration=u.config,s.details=u.details,s.get=(0,a._makeParamStoreGetter)(this,u.config,e)),s}}e.default=l},95231:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigEvaluationsDataAdapter=void 0;const i=r(13328),o=r(70226);class s extends i.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(t,e){super.attach(t,e),this._network=new o.default(null!=e?e:{})}getDataAsync(t,e,r){return this._getDataAsyncImpl(t,(0,i._normalizeUser)(e,this._options),r)}prefetchData(t,e){return this._prefetchDataImpl(t,e)}setData(t){const e=(0,i._typedJsonParse)(t,"has_updates","data");e&&"user"in e?super.setData(t,e.user):i.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(t,e){super.setData(t,e)}_fetchFromNetwork(t,e,r,i){var o;return n(this,void 0,void 0,(function*(){const n=yield null===(o=this._network)||void 0===o?void 0:o.fetchEvaluations(this._getSdkKey(),t,null==r?void 0:r.priority,e,i);return null!=n?n:null}))}_getCacheKey(t){var e;const r=(0,i._getStorageKey)(this._getSdkKey(),t,null===(e=this._options)||void 0===e?void 0:e.customUserCacheKeyFunc);return`${i.DataAdapterCachePrefix}.${this._cacheSuffix}.${r}`}_isCachedResultValidFor204(t,e){return null!=t.fullUserHash&&t.fullUserHash===(0,i._getFullUserHash)(e)}}e.StatsigEvaluationsDataAdapter=s},90250:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigClient=void 0;const o=r(74620);e.StatsigClient=o.default,i(r(13328),e),__STATSIG__=Object.assign(Object.assign({},null!==__STATSIG__&&void 0!==__STATSIG__?__STATSIG__:{}),{StatsigClient:o.default}),e.default=__STATSIG__},4942:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(49142);function i(t,e,r){return(e=(0,n.Z)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},49142:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(71002);function i(t){var e=function(t,e){if("object"!=(0,n.Z)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,n.Z)(e)?e:e+""}},71002:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})},238:(t,e,r)=>{"use strict";r.d(e,{Z:()=>ye});var n={};function i(t,e){return function(){return t.apply(e,arguments)}}r.r(n),r.d(n,{hasBrowserEnv:()=>ht,hasStandardBrowserEnv:()=>dt,hasStandardBrowserWebWorkerEnv:()=>pt,navigator:()=>ft,origin:()=>gt});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,a=(u=Object.create(null),t=>{const e=o.call(t);return u[e]||(u[e]=e.slice(8,-1).toLowerCase())});var u;const l=t=>(t=t.toLowerCase(),e=>a(e)===t),c=t=>e=>typeof e===t,{isArray:h}=Array,f=c("undefined"),d=l("ArrayBuffer"),p=c("string"),g=c("function"),v=c("number"),y=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==a(t))return!1;const e=s(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=l("Date"),b=l("File"),w=l("Blob"),S=l("FileList"),E=l("URLSearchParams"),[O,k,x,P]=["ReadableStream","Request","Response","Headers"].map(l);function A(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,i;if("object"!=typeof t&&(t=[t]),h(t))for(n=0,i=t.length;n0;)if(n=r[i],e===n.toLowerCase())return n;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!f(t)&&t!==j,L=(U="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>U&&t instanceof U);var U;const D=l("HTMLFormElement"),I=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),R=l("RegExp"),N=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};A(r,((r,i)=>{let o;!1!==(o=e(r,i,t))&&(n[i]=o||r)})),Object.defineProperties(t,n)},B=l("AsyncFunction"),M=(F="function"==typeof setImmediate,z=g(j.postMessage),F?setImmediate:z?(G=`axios@${Math.random()}`,V=[],j.addEventListener("message",(({source:t,data:e})=>{t===j&&e===G&&V.length&&V.shift()()}),!1),t=>{V.push(t),j.postMessage(G,"*")}):t=>setTimeout(t));var F,z,G,V;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):void 0!=={}&&{}.nextTick||M,W={isArray:h,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=a(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:p,isNumber:v,isBoolean:t=>!0===t||!1===t,isObject:y,isPlainObject:m,isReadableStream:O,isRequest:k,isResponse:x,isHeaders:P,isUndefined:f,isDate:_,isFile:b,isBlob:w,isRegExp:R,isFunction:g,isStream:t=>y(t)&&g(t.pipe),isURLSearchParams:E,isTypedArray:L,isFileList:S,forEach:A,merge:function t(){const{caseless:e}=T(this)&&this||{},r={},n=(n,i)=>{const o=e&&C(r,i)||i;m(r[o])&&m(n)?r[o]=t(r[o],n):m(n)?r[o]=t({},n):h(n)?r[o]=n.slice():r[o]=n};for(let t=0,e=arguments.length;t(A(e,((e,n)=>{r&&g(e)?t[n]=i(e,r):t[n]=e}),{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let i,o,a;const u={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],n&&!n(a,t,e)||u[a]||(e[a]=t[a],u[a]=!0);t=!1!==r&&s(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:l,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!v(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:D,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:N,freezeMethods:t=>{N(t,((e,r)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return h(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:C,global:j,isContextDefined:T,isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const i=h(t)?[]:{};return A(t,((t,e)=>{const o=r(t,n+1);!f(o)&&(i[e]=o)})),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:B,isThenable:t=>t&&(y(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:M,asap:K};function q(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}W.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const $=q.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Z[t]={value:t}})),Object.defineProperties(q,Z),Object.defineProperty($,"isAxiosError",{value:!0}),q.from=(t,e,r,n,i,o)=>{const s=Object.create($);return W.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),q.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const J=q;var H=r(48764).lW;function Y(t){return W.isPlainObject(t)||W.isArray(t)}function X(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function Q(t,e,r){return t?t.concat(e).map((function(t,e){return t=X(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const tt=W.toFlatObject(W,{},null,(function(t){return/^is[A-Z]/.test(t)})),et=function(t,e,r){if(!W.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!W.isUndefined(e[t])}))).metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(W.isDate(t))return t.toISOString();if(!a&&W.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(t)||W.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):H.from(t):t}function l(t,r,i){let a=t;if(t&&!i&&"object"==typeof t)if(W.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(W.isArray(t)&&function(t){return W.isArray(t)&&!t.some(Y)}(t)||(W.isFileList(t)||W.endsWith(r,"[]"))&&(a=W.toArray(t)))return r=X(r),a.forEach((function(t,n){!W.isUndefined(t)&&null!==t&&e.append(!0===s?Q([r],n,o):null===s?r:r+"[]",u(t))})),!1;return!!Y(t)||(e.append(Q(i,r,o),u(t)),!1)}const c=[],h=Object.assign(tt,{defaultVisitor:l,convertValue:u,isVisitable:Y});if(!W.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!W.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),W.forEach(r,(function(r,o){!0===(!(W.isUndefined(r)||null===r)&&i.call(e,r,W.isString(o)?o.trim():o,n,h))&&t(r,n?n.concat(o):[o])})),c.pop()}}(t),e};function rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function nt(t,e){this._pairs=[],t&&et(t,this,e)}const it=nt.prototype;it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,rt)}:rt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const ot=nt;function st(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function at(t,e,r){if(!e)return t;const n=r&&r.encode||st;W.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(o=i?i(e,r):W.isURLSearchParams(e)?e.toString():new ot(e,r).toString(n),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}const ut=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},lt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ht="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,dt=ht&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gt=ht&&window.location.href||"http://localhost",vt={...n,...ct},yt=function(t){function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=t.length;return o=!o&&W.isArray(n)?n.length:o,a?(W.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s):(n[o]&&W.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&W.isArray(n[o])&&(n[o]=function(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n{e(function(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null},mt={transitional:lt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=W.isObject(t);if(i&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return n?JSON.stringify(yt(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return et(t,new vt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return vt.isNode&&W.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return et(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),function(t,e,r){if(W.isString(t))try{return(0,JSON.parse)(t),W.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||mt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],(t=>{mt.headers[t]={}}));const _t=mt,bt=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wt=Symbol("internals");function St(t){return t&&String(t).trim().toLowerCase()}function Et(t){return!1===t||null==t?t:W.isArray(t)?t.map(Et):String(t)}function Ot(t,e,r,n,i){return W.isFunction(n)?n.call(this,e,r):(i&&(e=r),W.isString(e)?W.isString(n)?-1!==e.indexOf(n):W.isRegExp(n)?n.test(e):void 0:void 0)}class kt{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function i(t,e,r){const i=St(e);if(!i)throw new Error("header name must be a non-empty string");const o=W.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||e]=Et(t))}const o=(t,e)=>W.forEach(t,((t,r)=>i(t,r,e)));if(W.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(W.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const e={};let r,n,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),r=t.substring(0,i).trim().toLowerCase(),n=t.substring(i+1).trim(),!r||e[r]&&bt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e);else if(W.isHeaders(t))for(const[e,n]of t.entries())i(n,e,r);else null!=t&&i(e,t,r);return this}get(t,e){if(t=St(t)){const r=W.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(W.isFunction(e))return e.call(this,t,r);if(W.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=St(t)){const r=W.findKey(this,t);return!(!r||void 0===this[r]||e&&!Ot(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function i(t){if(t=St(t)){const i=W.findKey(r,t);!i||e&&!Ot(0,r[i],i,e)||(delete r[i],n=!0)}}return W.isArray(t)?t.forEach(i):i(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];t&&!Ot(0,this[i],i,t,!0)||(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return W.forEach(this,((n,i)=>{const o=W.findKey(r,i);if(o)return e[o]=Et(n),void delete e[i];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(i):String(i).trim();s!==i&&delete e[i],e[s]=Et(n),r[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return W.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&W.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[wt]=this[wt]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=St(t);e[n]||(function(t,e){const r=W.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})}))}(r,t),e[n]=!0)}return W.isArray(t)?t.forEach(n):n(t),this}}kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(kt.prototype,(({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}})),W.freezeMethods(kt);const xt=kt;function Pt(t,e){const r=this||_t,n=e||r,i=xt.from(n.headers);let o=n.data;return W.forEach(t,(function(t){o=t.call(r,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function At(t){return!(!t||!t.__CANCEL__)}function Ct(t,e,r){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,r),this.name="CanceledError"}W.inherits(Ct,J,{__CANCEL__:!0});const jt=Ct;function Tt(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}const Lt=(t,e,r=3)=>{let n=0;const i=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),l=n[s];i||(i=u),r[o]=a,n[o]=u;let c=s,h=0;for(;c!==o;)h+=r[c++],c%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i{i=o,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(r=t,n||(n=setTimeout((()=>{n=null,s(r)}),o-a)))},()=>r&&s(r)]}((r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,u=i(a);n=o,t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&o<=s?(s-o)/u:void 0,event:r,lengthComputable:null!=s,[e?"download":"upload"]:!0})}),r)},Ut=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Dt=t=>(...e)=>W.asap((()=>t(...e))),It=vt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,vt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,Rt=vt.hasStandardBrowserEnv?{write(t,e,r,n,i,o){const s=[t+"="+encodeURIComponent(e)];W.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),W.isString(n)&&s.push("path="+n),W.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Nt(t,e,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&n||0==r?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Bt=t=>t instanceof xt?{...t}:t;function Mt(t,e){e=e||{};const r={};function n(t,e,r,n){return W.isPlainObject(t)&&W.isPlainObject(e)?W.merge.call({caseless:n},t,e):W.isPlainObject(e)?W.merge({},e):W.isArray(e)?e.slice():e}function i(t,e,r,i){return W.isUndefined(e)?W.isUndefined(t)?void 0:n(void 0,t,0,i):n(t,e,0,i)}function o(t,e){if(!W.isUndefined(e))return n(void 0,e)}function s(t,e){return W.isUndefined(e)?W.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,i,o){return o in e?n(r,i):o in t?n(void 0,r):void 0}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,r)=>i(Bt(t),Bt(e),0,!0)};return W.forEach(Object.keys(Object.assign({},t,e)),(function(n){const o=u[n]||i,s=o(t[n],e[n],n);W.isUndefined(s)&&o!==a||(r[n]=s)})),r}const Ft=t=>{const e=Mt({},t);let r,{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:u}=e;if(e.headers=a=xt.from(a),e.url=at(Nt(e.baseURL,e.url),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),W.isFormData(n))if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(vt.hasStandardBrowserEnv&&(i&&W.isFunction(i)&&(i=i(e)),i||!1!==i&&It(e.url))){const t=o&&s&&Rt.read(s);t&&a.set(o,t)}return e},zt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){const n=Ft(t);let i=n.data;const o=xt.from(n.headers).normalize();let s,a,u,l,c,{responseType:h,onUploadProgress:f,onDownloadProgress:d}=n;function p(){l&&l(),c&&c(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function v(){if(!g)return;const n=xt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Tt((function(t){e(t),p()}),(function(t){r(t),p()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:t,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(r(new J("Request aborted",J.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||lt;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new J(e,i.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,g)),g=null},void 0===i&&o.setContentType(null),"setRequestHeader"in g&&W.forEach(o.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),W.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),h&&"json"!==h&&(g.responseType=n.responseType),d&&([u,c]=Lt(d,!0),g.addEventListener("progress",u)),f&&g.upload&&([a,l]=Lt(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(s=e=>{g&&(r(!e||e.type?new jt(null,t,g):e),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);y&&-1===vt.protocols.indexOf(y)?r(new J("Unsupported protocol "+y+":",J.ERR_BAD_REQUEST,t)):g.send(i||null)}))},Gt=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const i=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof J?e:new jt(e instanceof Error?e.message:e))}};let o=e&&setTimeout((()=>{o=null,i(new J(`timeout ${e} of ms exceeded`,J.ETIMEDOUT))}),e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)})),t=null)};t.forEach((t=>t.addEventListener("abort",i)));const{signal:a}=n;return a.unsubscribe=()=>W.asap(s),a}},Vt=function*(t,e){let r=t.byteLength;if(!e||r{const i=async function*(t,e){for await(const r of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}}(t))yield*Vt(r,e)}(t,e);let o,s=0,a=t=>{o||(o=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await i.next();if(e)return a(),void t.close();let o=n.byteLength;if(r){let t=s+=o;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),i.return())},{highWaterMark:2})},Wt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qt=Wt&&"function"==typeof ReadableStream,$t=Wt&&("function"==typeof TextEncoder?(Zt=new TextEncoder,t=>Zt.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Zt;const Jt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Ht=qt&&Jt((()=>{let t=!1;const e=new Request(vt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),Yt=qt&&Jt((()=>W.isReadableStream(new Response("").body))),Xt={stream:Yt&&(t=>t.body)};var Qt;Wt&&(Qt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Xt[t]&&(Xt[t]=W.isFunction(Qt[t])?e=>e[t]():(e,r)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,r)})})));const te={http:null,xhr:zt,fetch:Wt&&(async t=>{let{url:e,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:l,headers:c,withCredentials:h="same-origin",fetchOptions:f}=Ft(t);l=l?(l+"").toLowerCase():"text";let d,p=Gt([i,o&&o.toAbortSignal()],s);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(u&&Ht&&"get"!==r&&"head"!==r&&0!==(v=await(async(t,e)=>{const r=W.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(W.isBlob(t))return t.size;if(W.isSpecCompliantForm(t)){const e=new Request(vt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return W.isArrayBufferView(t)||W.isArrayBuffer(t)?t.byteLength:(W.isURLSearchParams(t)&&(t+=""),W.isString(t)?(await $t(t)).byteLength:void 0)})(e):r})(c,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(W.isFormData(n)&&(t=r.headers.get("content-type"))&&c.setContentType(t),r.body){const[t,e]=Ut(v,Lt(Dt(u)));n=Kt(r.body,65536,t,e)}}W.isString(h)||(h=h?"include":"omit");const i="credentials"in Request.prototype;d=new Request(e,{...f,signal:p,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:i?h:void 0});let o=await fetch(d);const s=Yt&&("stream"===l||"response"===l);if(Yt&&(a||s&&g)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=W.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&Ut(e,Lt(Dt(a),!0))||[];o=new Response(Kt(o.body,65536,r,(()=>{n&&n(),g&&g()})),t)}l=l||"text";let y=await Xt[W.findKey(Xt,l)||"text"](o,t);return!s&&g&&g(),await new Promise(((e,r)=>{Tt(e,r,{data:y,headers:xt.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:d})}))}catch(e){if(g&&g(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,t,d),{cause:e.cause||e});throw J.from(e,e&&e.code,t,d)}})};W.forEach(te,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const ee=t=>`- ${t}`,re=t=>W.isFunction(t)||null===t||!1===t,ne=t=>{t=W.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let o=0;o`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let r=e?t.length>1?"since :\n"+t.map(ee).join("\n"):" "+ee(t[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function ie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new jt(null,t)}function oe(t){return ie(t),t.headers=xt.from(t.headers),t.data=Pt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ne(t.adapter||_t.adapter)(t).then((function(e){return ie(t),e.data=Pt.call(t,t.transformResponse,e),e.headers=xt.from(e.headers),e}),(function(e){return At(e)||(ie(t),e&&e.response&&(e.response.data=Pt.call(t,t.transformResponse,e.response),e.response.headers=xt.from(e.response.headers))),Promise.reject(e)}))}const se={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{se[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const ae={};se.transitional=function(t,e,r){function n(t,e){return"[Axios v1.8.2] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,i,o)=>{if(!1===t)throw new J(n(i," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!ae[i]&&(ae[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,i,o)}},se.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};const ue={assertOptions:function(t,e,r){if("object"!=typeof t)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],s=e[o];if(s){const e=t[o],r=void 0===e||s(e,o,t);if(!0!==r)throw new J("option "+o+" must be "+r,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:se},le=ue.validators;class ce{constructor(t){this.defaults=t,this.interceptors={request:new ut,response:new ut}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Mt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:i}=e;void 0!==r&&ue.assertOptions(r,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean)},!1),null!=n&&(W.isFunction(n)?e.paramsSerializer={serialize:n}:ue.assertOptions(n,{encode:le.function,serialize:le.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ue.assertOptions(e,{baseUrl:le.spelling("baseURL"),withXsrfToken:le.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&W.merge(i.common,i[e.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=xt.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const u=[];let l;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let c,h=0;if(!a){const t=[oe.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,u),c=t.length,l=Promise.resolve(e);h{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,i){r.reason||(r.reason=new jt(t,n,i),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new fe((function(e){t=e})),cancel:t}}}const de=fe,pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach((([t,e])=>{pe[e]=t}));const ge=pe,ve=function t(e){const r=new he(e),n=i(he.prototype.request,r);return W.extend(n,he.prototype,r,{allOwnKeys:!0}),W.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Mt(e,r))},n}(_t);ve.Axios=he,ve.CanceledError=jt,ve.CancelToken=de,ve.isCancel=At,ve.VERSION="1.8.2",ve.toFormData=et,ve.AxiosError=J,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=function(t){return function(e){return t.apply(null,e)}},ve.isAxiosError=function(t){return W.isObject(t)&&!0===t.isAxiosError},ve.mergeConfig=Mt,ve.AxiosHeaders=xt,ve.formToJSON=t=>yt(W.isHTMLForm(t)?new FormData(t):t),ve.getAdapter=ne,ve.HttpStatusCode=ge,ve.default=ve;const ye=ve}},t=>{var e=e=>t(t.s=e);e(85813),e(8975)}]); //# sourceMappingURL=/static/master/9671/assets/build/js/ad-hoc/bitbucket/bitbucket.js.map