@atlassian/aui 9.13.4 → 9.14.0-23d5f7605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/aui/aui-prototyping-design-tokens-api-full.js +3 -3
- package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +3 -3
- package/dist/aui/aui-prototyping-design-tokens-api.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js +2 -2
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js.map +1 -1
- package/dist/aui/aui-prototyping.css +1 -1
- package/dist/aui/aui-prototyping.js +6 -8
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +6 -8
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/dist/aui/themes/dark-future.js +1 -1
- package/dist/aui/themes/dark-future.js.map +1 -1
- package/dist/aui/themes/legacy-dark.js +1 -1
- package/dist/aui/themes/legacy-dark.js.map +1 -1
- package/dist/aui/themes/legacy-light.js +1 -1
- package/dist/aui/themes/legacy-light.js.map +1 -1
- package/dist/aui/themes/light-future.js +1 -1
- package/dist/aui/themes/light-future.js.map +1 -1
- package/dist/aui/themes/light.js +1 -1
- package/dist/aui/themes/light.js.map +1 -1
- package/dist/aui/themes/spacing.js +1 -1
- package/dist/aui/themes/spacing.js.map +1 -1
- package/dist/aui/themes/typography-adg3.js +1 -1
- package/dist/aui/themes/typography-adg3.js.map +1 -1
- package/dist/aui/themes/typography-modernized.js +1 -1
- package/dist/aui/themes/typography-modernized.js.map +1 -1
- package/dist/aui/themes/typography-refreshed.js +1 -1
- package/dist/aui/themes/typography-refreshed.js.map +1 -1
- package/package.json +4 -4
- package/src/js/aui/design-tokens/design-tokens-testing-theme.js +3 -3
- package/src/js/aui/dropdown2.js +1 -1
- package/src/js/aui/messages.js +7 -7
- package/src/js/aui/tooltip.js +13 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!!
|
|
2
2
|
* @atlassian/aui - Atlassian User Interface library
|
|
3
|
-
* @version v9.
|
|
3
|
+
* @version v9.14.0-23d5f7605
|
|
4
4
|
* @link https://aui.atlassian.com
|
|
5
5
|
* @license Apache-2.0
|
|
6
6
|
* @author Atlassian Pty Ltd.
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@atlassian/aui",[],t):"object"==typeof exports?exports["@atlassian/aui"]=t():(e.AJS=e.AJS||{},e.AJS.DesignTokens=t())}(window,(()=>(()=>{var e,t,r={
|
|
8
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@atlassian/aui",[],t):"object"==typeof exports?exports["@atlassian/aui"]=t():(e.AJS=e.AJS||{},e.AJS.DesignTokens=t())}(window,(()=>(()=>{var e,t,r={6572:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var o=r(1634);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,r){var i=t.map((function(t){var i=function(e,t){return null==t?e:n(n({},e),{options:n(n({},a(t)),a(e.options))})}(t,r);return(0,o.bind)(e,i)}));return function(){i.forEach((function(e){return e()}))}}},1634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var r=t.type,n=t.listener,o=t.options;return e.addEventListener(r,n,o),function(){e.removeEventListener(r,n,o)}}},1833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=t.bind=void 0;var n=r(1634);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return n.bind}});var o=r(6572);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return o.bindAll}})},7553:(e,t,r)=>{var n;
|
|
9
9
|
/*!
|
|
10
10
|
* EventEmitter2
|
|
11
11
|
* https://github.com/hij1nx/EventEmitter2
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) 2013 hij1nx
|
|
14
14
|
* Licensed under the MIT license.
|
|
15
|
-
*/!function(o){var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(){this._events={},this._conf&&s.call(this,this._conf)}function s(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=e.maxListeners!==o?e.maxListeners:10,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this.newListener=e.newListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=10}function c(e,t){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=e,process.emitWarning(n)}else console.error(r),console.trace&&console.trace()}function l(e){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,s.call(this,e)}function u(e,t,r,n){if(!r)return[];var o,a,i,s,c,l,d,h=[],p=t.length,f=t[n],g=t[n+1];if(n===p&&r._listeners){if("function"==typeof r._listeners)return e&&e.push(r._listeners),[r];for(o=0,a=r._listeners.length;o<a;o++)e&&e.push(r._listeners[o]);return[r]}if("*"===f||"**"===f||r[f]){if("*"===f){for(i in r)"_listeners"!==i&&r.hasOwnProperty(i)&&(h=h.concat(u(e,t,r[i],n+1)));return h}if("**"===f){for(i in(d=n+1===p||n+2===p&&"*"===g)&&r._listeners&&(h=h.concat(u(e,t,r,p))),r)"_listeners"!==i&&r.hasOwnProperty(i)&&("*"===i||"**"===i?(r[i]._listeners&&!d&&(h=h.concat(u(e,t,r[i],p))),h=h.concat(u(e,t,r[i],n))):h=i===g?h.concat(u(e,t,r[i],n+2)):h.concat(u(e,t,r[i],n)));return h}h=h.concat(u(e,t,r[f],n+1))}if((s=r["*"])&&u(e,t,s,n+1),c=r["**"])if(n<p)for(i in c._listeners&&u(e,t,c,p),c)"_listeners"!==i&&c.hasOwnProperty(i)&&(i===g?u(e,t,c[i],n+2):i===f?u(e,t,c[i],n+1):((l={})[i]=c[i],u(e,t,{"**":l},n+1)));else c._listeners?u(e,t,c,p):c["*"]&&c["*"]._listeners&&u(e,t,c["*"],p);return h}function d(e,t){for(var r=0,n=(e="string"==typeof e?e.split(this.delimiter):e.slice()).length;r+1<n;r++)if("**"===e[r]&&"**"===e[r+1])return;for(var a=this.listenerTree,i=e.shift();i!==o;){if(a[i]||(a[i]={}),a=a[i],0===e.length)return a._listeners?("function"==typeof a._listeners&&(a._listeners=[a._listeners]),a._listeners.push(t),!a._listeners.warned&&this._maxListeners>0&&a._listeners.length>this._maxListeners&&(a._listeners.warned=!0,c.call(this,a._listeners.length,i))):a._listeners=t,!0;i=e.shift()}return!0}l.EventEmitter2=l,l.prototype.delimiter=".",l.prototype.setMaxListeners=function(e){e!==o&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},l.prototype.event="",l.prototype.once=function(e,t){return this._once(e,t,!1)},l.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},l.prototype._once=function(e,t,r){return this._many(e,1,t,r),this},l.prototype.many=function(e,t,r){return this._many(e,t,r,!1)},l.prototype.prependMany=function(e,t,r){return this._many(e,t,r,!0)},l.prototype._many=function(e,t,r,n){var o=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),r.apply(this,arguments)}return a._origin=r,this._on(e,a,n),o},l.prototype.emit=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return!1;var t,r,n,o,a,s=arguments.length;if(this._all&&this._all.length){if(a=this._all.slice(),s>3)for(t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this,e);break;case 2:a[n].call(this,e,arguments[1]);break;case 3:a[n].call(this,e,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}}if(this.wildcard){a=[];var c="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,c,this.listenerTree,0)}else{if("function"==typeof(a=this._events[e])){switch(this.event=e,s){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];a.apply(this,t)}return!0}a&&(a=a.slice())}if(a&&a.length){if(s>3)for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this);break;case 2:a[n].call(this,arguments[1]);break;case 3:a[n].call(this,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},l.prototype.emitAsync=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return Promise.resolve([!1]);var t,r,n,o,a,s=[],c=arguments.length;if(this._all){if(c>3)for(t=new Array(c),o=1;o<c;o++)t[o]=arguments[o];for(n=0,r=this._all.length;n<r;n++)switch(this.event=e,c){case 1:s.push(this._all[n].call(this,e));break;case 2:s.push(this._all[n].call(this,e,arguments[1]));break;case 3:s.push(this._all[n].call(this,e,arguments[1],arguments[2]));break;default:s.push(this._all[n].apply(this,t))}}if(this.wildcard){a=[];var l="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,l,this.listenerTree,0)}else a=this._events[e];if("function"==typeof a)switch(this.event=e,c){case 1:s.push(a.call(this));break;case 2:s.push(a.call(this,arguments[1]));break;case 3:s.push(a.call(this,arguments[1],arguments[2]));break;default:for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];s.push(a.apply(this,t))}else if(a&&a.length){if(a=a.slice(),c>3)for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,c){case 1:s.push(a[n].call(this));break;case 2:s.push(a[n].call(this,arguments[1]));break;case 3:s.push(a[n].call(this,arguments[1],arguments[2]));break;default:s.push(a[n].apply(this,t))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(s)},l.prototype.on=function(e,t){return this._on(e,t,!1)},l.prototype.prependListener=function(e,t){return this._on(e,t,!0)},l.prototype.onAny=function(e){return this._onAny(e,!1)},l.prototype.prependAny=function(e){return this._onAny(e,!0)},l.prototype.addListener=l.prototype.on,l.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},l.prototype._on=function(e,t,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||i.call(this),this.emit("newListener",e,t),this.wildcard?(d.call(this,e,t),this):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,c.call(this,this._events[e].length,e))):this._events[e]=t,this)},l.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var r,n=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();n=u.call(this,null,i,this.listenerTree,0)}else{if(!this._events[e])return this;r=this._events[e],n.push({_listeners:r})}for(var s=0;s<n.length;s++){var c=n[s];if(r=c._listeners,a(r)){for(var l=-1,d=0,h=r.length;d<h;d++)if(r[d]===t||r[d].listener&&r[d].listener===t||r[d]._origin&&r[d]._origin===t){l=d;break}if(l<0)continue;return this.wildcard?c._listeners.splice(l,1):this._events[e].splice(l,1),0===r.length&&(this.wildcard?delete c._listeners:delete this._events[e]),this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete c._listeners:delete this._events[e],this.emit("removeListener",e,t))}return function e(t){if(t!==o){var r=Object.keys(t);for(var n in r){var a=r[n],i=t[a];i instanceof Function||"object"!=typeof i||null===i||(Object.keys(i).length>0&&e(t[a]),0===Object.keys(i).length&&delete t[a])}}}(this.listenerTree),this},l.prototype.offAny=function(e){var t,r=0,n=0;if(e&&this._all&&this._all.length>0){for(r=0,n=(t=this._all).length;r<n;r++)if(e===t[r])return t.splice(r,1),this.emit("removeListenerAny",e),this}else{for(r=0,n=(t=this._all).length;r<n;r++)this.emit("removeListenerAny",t[r]);this._all=[]}return this},l.prototype.removeListener=l.prototype.off,l.prototype.removeAllListeners=function(e){if(0===arguments.length)return!this._events||i.call(this),this;if(this.wildcard)for(var t="string"==typeof e?e.split(this.delimiter):e.slice(),r=u.call(this,null,t,this.listenerTree,0),n=0;n<r.length;n++){r[n]._listeners=null}else this._events&&(this._events[e]=null);return this},l.prototype.listeners=function(e){if(this.wildcard){var t=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return u.call(this,t,r,this.listenerTree,0),t}return this._events||i.call(this),this._events[e]||(this._events[e]=[]),a(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},l.prototype.eventNames=function(){return Object.keys(this._events)},l.prototype.listenerCount=function(e){return this.listeners(e).length},l.prototype.listenersAny=function(){return this._all?this._all:[]},(n=function(){return l}.call(t,r,t,e))===o||(e.exports=n)}()},572:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var o=r(634);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,r){var i=t.map((function(t){var i=function(e,t){return null==t?e:n(n({},e),{options:n(n({},a(t)),a(e.options))})}(t,r);return(0,o.bind)(e,i)}));return function(){i.forEach((function(e){return e()}))}}},634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var r=t.type,n=t.listener,o=t.options;return e.addEventListener(r,n,o),function(){e.removeEventListener(r,n,o)}}},833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=t.bind=void 0;var n=r(634);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return n.bind}});var o=r(572);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return o.bindAll}})},913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,n,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=""),void 0===i&&(i=null),this._onDefaultValueFallback=null,this.value=JSON.parse(JSON.stringify(null!=t?t:{})),this._name=e,this._ruleID=null!=r?r:"",this._secondaryExposures=o,this._allocatedExperimentName=a,this._evaluationDetails=n,this._onDefaultValueFallback=i}return e.prototype.get=function(e,t,r){var n,o,a=this.getValue(e,t);if(null==a)return t;var i=Array.isArray(t)?"array":typeof t,s=Array.isArray(a)?"array":typeof a;return r?r(a)?a:(null===(n=this._onDefaultValueFallback)||void 0===n||n.call(this,this,e,i,s),t):null==t||i===s?a:(null===(o=this._onDefaultValueFallback)||void 0===o||o.call(this,this,e,i,s),t)},e.prototype.getValue=function(e,t){return null==e?this.value:(null==t&&(t=null),null==this.value[e]?t:this.value[e])},e}();t.default=r},718:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExceptionEndpoint=void 0;var a=r(95);t.ExceptionEndpoint="https://statsigapi.net/v1/sdk_exception";var i=function(){function e(e,t){this._seen=new Set,this._sdkKey=e,this._options=t}return e.prototype._setStatsigMetadata=function(e){this._statsigMetadata=e},e.prototype._swallow=function(e,t){this._capture(e,t,(function(){}))},e.prototype._capture=function(e,t,r,n){var o=this;try{var a=t();return a instanceof Promise?a.catch((function(t){return o._onCaught(e,t,r,n)})):a}catch(t){return this._onCaught(e,t,r,n)}},e.prototype._logError=function(e,r,a){var i=this;if(!this._options.disableAllLogging)try{n(i,void 0,void 0,(function(){var n,i,s,c,l,u,d,h,p;return o(this,(function(o){switch(o.label){case 0:return"function"!=typeof a?[3,2]:[4,a()];case 1:return i=o.sent(),[3,3];case 2:i=null,o.label=3;case 3:return n=i,s=null!=r?r:Error("[Statsig] Error was empty"),c=s instanceof Error,l=c?s.name:"No Name",this._seen.has(l)?[2]:(this._seen.add(l),u=c?s.stack:this._getDescription(s),d=null!==(p=this._statsigMetadata)&&void 0!==p?p:{},h=JSON.stringify({tag:e,exception:l,info:u,statsigMetadata:d,extra:null!=n?n:{}}),[2,fetch(t.ExceptionEndpoint,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(d.sdkType),"STATSIG-SDK-VERSION":String(d.sdkVersion),"Content-Type":"application/json","Content-Length":"".concat(h.length)},body:h})])}}))})).then((function(){})).catch((function(){}))}catch(e){}},e.prototype._onCaught=function(e,t,r,n){if(t instanceof a.StatsigUninitializedError||t instanceof a.StatsigInvalidArgumentError)throw t;return console.error("[Statsig] An unexpected exception occurred.",t),this._logError(e,t,n),r()},e.prototype._getDescription=function(e){try{return JSON.stringify(e)}catch(e){return"[Statsig] Failed to get string for error."}},e}();t.default=i},95:function(e,t){"use strict";var r,n,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSDKKeyMismatchError=t.StatsigInvalidArgumentError=t.StatsigUninitializedError=t.StatsigErrorMessage=void 0,function(e){e.REQUIRE_ASYNC_INITIALIZE="Call initialize() first.",e.REQUIRE_SYNC_INITIALIZE="Call and wait for initialize() to finish first.",e.REQUIRE_INITIALIZE_FOR_LOG_EVENT="Must initialize() before logging events."}(n=t.StatsigErrorMessage||(t.StatsigErrorMessage={}));var a=function(e){function t(r){var o=e.call(this,null!=r?r:n.REQUIRE_SYNC_INITIALIZE)||this;return Object.setPrototypeOf(o,t.prototype),o}return o(t,e),t}(Error);t.StatsigUninitializedError=a;var i=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.StatsigInvalidArgumentError=i;var s=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.StatsigSDKKeyMismatchError=s},755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,n,o,a,i,s,c){void 0===o&&(o=null),void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===s&&(s=""),void 0===c&&(c=[]),this._logParameterFunction=o,this._name=e,this._value=JSON.parse(JSON.stringify(null!=t?t:{})),this._ruleID=null!=r?r:"",this._evaluationDetails=n,this._secondaryExposures=a,this._undelegatedSecondaryExposures=i,this._allocatedExperimentName=s,this._explicitParameters=c}return e._create=function(t,r,n,o,a,i,s,c,l){return void 0===a&&(a=null),void 0===i&&(i=[]),void 0===s&&(s=[]),void 0===c&&(c=""),void 0===l&&(l=[]),new e(t,r,n,o,a,i,s,c,l)},e.prototype.get=function(e,t,r){var n=this,o=this._value[e];if(null==o)return t;var a=function(){return n._logLayerParameterExposure(e),o};return r?r(o)?a():t:null==t||typeof o==typeof t&&Array.isArray(t)===Array.isArray(o)?a():t},e.prototype.getValue=function(e,t){null==t&&(t=null);var r=this._value[e];return null!=r&&this._logLayerParameterExposure(e),null!=r?r:t},e.prototype._logLayerParameterExposure=function(e){var t;null===(t=this._logParameterFunction)||void 0===t||t.call(this,this,e)},e}();t.default=r},424:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.saveOverridesToLocalStorage=t.loadOverridesFromLocalStorage=t.makeEmptyOverrides=t.STORAGE_KEY=void 0;var o=n(r(139));function a(){return{gates:{},configs:{},layers:{}}}t.STORAGE_KEY="STATSIG_JS_LITE_LOCAL_OVERRIDES",t.makeEmptyOverrides=a,t.loadOverridesFromLocalStorage=function(){var e=o.default.getItem(t.STORAGE_KEY);if(e)try{return JSON.parse(e)}catch(e){}return{gates:{},configs:{},layers:{}}},t.saveOverridesToLocalStorage=function(e){o.default.setItem(t.STORAGE_KEY,JSON.stringify(e))}},226:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,a,i){void 0===o&&(o=null),void 0===a&&(a=null);var s=t;return(null==s?void 0:s.privateAttributes)&&delete(s=r({},t)).privateAttributes,{time:Date.now(),eventName:e,statsigMetadata:n,user:s,value:o,metadata:a,secondaryExposures:i}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.6.0"},966:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return a(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=l(r(913)),d=l(r(718)),h=r(95),p=l(r(755)),f=l(r(27)),g=l(r(261)),b=l(r(763)),v=l(r(951)),y=i(r(812)),m=r(182),_=l(r(139)),k=r(944),w=l(r(226)),E=r(424),x=function(){function e(e,t,r){var n=this;if(this._initCalled=!1,this._pendingInitPromise=null,this._sdkKey=null,this._logLayerParameterExposureForLayer=function(e,t,r){void 0===r&&(r=!1);var o="",a=e._undelegatedSecondaryExposures,i=e._explicitParameters.includes(t);i&&(o=e._allocatedExperimentName,a=e._secondaryExposures),n._logger.logLayerExposure(n._identity._user,e._name,e._ruleID,a,o,t,i,e._evaluationDetails,r,n._store.getBootstrapMetadata())},!0!==(null==r?void 0:r.localMode)&&("string"!=typeof e||!e.startsWith("client-")))throw new h.StatsigInvalidArgumentError("Invalid key provided. You must use a Client SDK Key from the Statsig console to initialize the sdk");this._sdkKey=e,this._startTime=(0,k.now)(),this._options=new v.default(r),this._errorBoundary=new d.default(e,this._options),this._ready=!1,_.default.disabled=this._options.disableLocalStorage,this._overrides=(0,E.loadOverridesFromLocalStorage)(),this._identity=new f.default(e,this._normalizeUser(null!=t?t:null),this._options.overrideStableID),this._network=new b.default(this._options,this._identity,this._errorBoundary),this._logger=new g.default(this._options,this._identity,this._network,this._errorBoundary),this._store=new y.default(this._identity,this._logger.logConfigDefaultValueFallback,this._options.initializeValues),this._errorBoundary._setStatsigMetadata(this._identity._statsigMetadata),null!=this._options.initializeValues&&(this._ready=!0,this._initCalled=!0,setTimeout((function(){return n._delayedSetup()}),20))}return e.prototype.setInitializeValues=function(e){var t=this;this._errorBoundary._capture("setInitializeValues",(function(){t._store.bootstrap(e),t._ready||(t._ready=!0,t._initCalled=!0),t._logger.sendSavedRequests()}),(function(){t._ready=!0,t._initCalled=!0}))},e.prototype.initializeAsync=function(){return s(this,void 0,void 0,(function(){var e=this;return c(this,(function(t){return[2,this._errorBoundary._capture("initializeAsync",(function(){return s(e,void 0,void 0,(function(){var e,t=this;return c(this,(function(r){return null!=this._pendingInitPromise?[2,this._pendingInitPromise]:this._ready?[2,Promise.resolve()]:(this._initCalled=!0,this._options.localMode?[2,Promise.resolve()]:(e=this._identity._user,this._pendingInitPromise=this._fetchAndSaveValues(e,this._options.initTimeoutMs).then((function(){})).catch((function(e){return t._errorBoundary._logError("initializeAsync:fetchAndSaveValues",e),{success:!1,message:e.message}})).then((function(){})).finally((function(){return s(t,void 0,void 0,(function(){return c(this,(function(e){return this._pendingInitPromise=null,this._ready=!0,this._delayedSetup(),[2]}))}))})),[2,this._pendingInitPromise]))}))}))}),(function(){return e._ready=!0,e._initCalled=!0,Promise.resolve()}))]}))}))},e.prototype.getEvaluationDetails=function(){var e=this;return this._errorBoundary._capture("getEvaluationDetails",(function(){return e._store.getGlobalEvaluationDetails()}),(function(){return{time:Date.now(),reason:y.EvaluationReason.Error}}))},e.prototype.checkGate=function(e){return this._checkGateImpl(e,"checkGate")},e.prototype.checkGateWithExposureLoggingDisabled=function(e){return this._checkGateImpl(e,"checkGateWithExposureLoggingDisabled")},e.prototype.logGateExposure=function(e){var t=this;this._errorBoundary._swallow("logGateExposure",(function(){t._logGateExposureImpl(e)}))},e.prototype.getConfig=function(e){return this._getConfigImpl(e,"getConfig")},e.prototype.getConfigWithExposureLoggingDisabled=function(e){return this._getConfigImpl(e,"getConfigWithExposureLoggingDisabled")},e.prototype.logConfigExposure=function(e){var t=this;this._errorBoundary._swallow("logConfigExposure",(function(){t._logConfigExposureImpl(e)}))},e.prototype.getExperiment=function(e){return this.getConfig(e)},e.prototype.getExperimentWithExposureLoggingDisabled=function(e){return this.getConfigWithExposureLoggingDisabled(e)},e.prototype.logExperimentExposure=function(e){this.logConfigExposure(e)},e.prototype.getLayer=function(e){return this._getLayerImpl(e,"getLayer")},e.prototype.getLayerWithExposureLoggingDisabled=function(e){return this._getLayerImpl(e,"getLayerWithExposureLoggingDisabled")},e.prototype.logLayerParameterExposure=function(e,t){var r=this;this._errorBoundary._swallow("logLayerParameterExposure",(function(){var n=r._getLayerFromStore(null,e);r._logLayerParameterExposureForLayer(n,t,!0)}))},e.prototype.logEvent=function(e,t,r){var n=this;void 0===t&&(t=null),void 0===r&&(r=null),this._errorBoundary._swallow("logEvent",(function(){if(!n._logger||!n._identity._sdkKey)throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_INITIALIZE_FOR_LOG_EVENT);if("string"==typeof e&&0!==e.length){var o=(0,w.default)(e,n._identity._user,n._identity._statsigMetadata,t,r);n._logger.log(o)}}))},e.prototype.updateUserWithValues=function(e,t){var r,n=this,o=Date.now();return this._errorBoundary._capture("updateUserWithValues",(function(){if(!n.initializeCalled())throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_ASYNC_INITIALIZE);return r=function(e,t){var r=n._options.updateUserCompletionCallback;null==r||r(Date.now()-o,e,t)},n._identity._user=n._normalizeUser(e),n._store.bootstrap(t),n._logger.resetDedupeKeys(),r(!0,null),!0}),(function(){return null==r||r(!1,"Failed to update user. An unexpected error occured."),!1}))},e.prototype.updateUser=function(e){return s(this,void 0,void 0,(function(){var t,r,n=this;return c(this,(function(o){return t=Date.now(),[2,this._errorBoundary._capture("updateUser",(function(){return s(n,void 0,void 0,(function(){var n,o=this;return c(this,(function(a){switch(a.label){case 0:if(!this.initializeCalled())throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_ASYNC_INITIALIZE);return r=function(e,r){var n=o._options.updateUserCompletionCallback;null==n||n(Date.now()-t,e,r)},this._identity._user=this._normalizeUser(e),this._store.updateUser(),this._logger.resetDedupeKeys(),null==this._pendingInitPromise?[3,2]:[4,this._pendingInitPromise];case 1:a.sent(),a.label=2;case 2:return this._options.localMode?(r(!0,null),[2,Promise.resolve(!0)]):(n=this._identity._user,this._pendingInitPromise=this._fetchAndSaveValues(n).finally((function(){o._pendingInitPromise=null})),[2,this._pendingInitPromise.then((function(){return r(!0,null),Promise.resolve(!0)})).catch((function(e){return r(!1,"Failed to update user: ".concat(e)),Promise.resolve(!1)}))])}}))}))}),(function(){return r(!1,"Failed to update user. An unexpected error occured."),Promise.resolve(!1)}))]}))}))},e.prototype.shutdown=function(){var e=this;this._errorBoundary._swallow("shutdown",(function(){e._logger.shutdown()}))},e.prototype.getStableID=function(){var e=this;return this._errorBoundary._capture("getStableID",(function(){return e._identity._statsigMetadata.stableID}),(function(){return""}))},e.prototype.initializeCalled=function(){return this._initCalled},e.prototype.overrideGate=function(e,t){this._setOverride("gates",e,t)},e.prototype.overrideConfig=function(e,t){this._setOverride("configs",e,t)},e.prototype.overrideLayer=function(e,t){this._setOverride("layers",e,t)},e.prototype.setOverrides=function(e){var t=this;this._errorBoundary._swallow("setOverrides",(function(){t._overrides=null!=e?e:(0,E.makeEmptyOverrides)(),(0,E.saveOverridesToLocalStorage)(t._overrides)}))},e.prototype.getOverrides=function(){var e=this;return this._errorBoundary._capture("getOverrides",(function(){return e._overrides}),(function(){return(0,E.makeEmptyOverrides)()}))},e.prototype._delayedSetup=function(){var e=this;this._errorBoundary._swallow("delayedSetup",(function(){e._identity.saveStableID(),e._logger.sendSavedRequests().then((function(){}))}))},e.prototype._normalizeUser=function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){throw new h.StatsigInvalidArgumentError("User object must be convertable to JSON string.")}return null!=this._options.environment&&(t=n(n({},t),{statsigEnvironment:this._options.environment})),t},e.prototype._ensureStoreLoaded=function(){if(!this._store.isLoaded())throw new h.StatsigUninitializedError},e.prototype._getEvaluationDetailsForError=function(){return{time:Date.now(),reason:y.EvaluationReason.Error}},e.prototype._fetchAndSaveValues=function(e,t){return void 0===t&&(t=this._options.initTimeoutMs),s(this,void 0,void 0,(function(){var r,n,o=this;return c(this,(function(a){return null,r=this._store.getLastUpdateTime(e),n=this._store.getPreviousDerivedFields(e),[2,this._network.fetchValues(e,r,t,n).eventually((function(t){var r;(0,m.verifySDKKeyUsed)(t,null!==(r=o._sdkKey)&&void 0!==r?r:"",o._errorBoundary)&&(null==t?void 0:t.has_updates)&&o._store.save(e,t,!1)})).then((function(t){return s(o,void 0,void 0,(function(){var r=this;return c(this,(function(n){return[2,this._errorBoundary._swallow("fetchAndSaveValues",(function(){return s(r,void 0,void 0,(function(){var r;return c(this,(function(n){switch(n.label){case 0:return(0,m.verifySDKKeyUsed)(t,null!==(r=this._sdkKey)&&void 0!==r?r:"",this._errorBoundary)?(null==t?void 0:t.has_updates)?[4,this._store.save(e,t)]:[3,2]:[2];case 1:return n.sent(),[3,3];case 2:(null==t?void 0:t.is_no_content)&&this._store.setEvaluationReason(y.EvaluationReason.NetworkNotModified),n.label=3;case 3:return[2]}}))}))}))]}))}))}))]}))}))},e.prototype._checkGateImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if("boolean"==typeof r._overrides.gates[e])return r._overrides.gates[e];var n=r._getGateFromStore(e);return"checkGate"===t&&r._logGateExposureImpl(e,n),!0===n.gate.value}),(function(){return!1}))},e.prototype._getGateFromStore=function(e){if(this._ensureStoreLoaded(),"string"!=typeof e||0===e.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the gateName.");return this._store.checkGate(e)},e.prototype._logGateExposureImpl=function(e,t){var r,n=!t,o=null!=t?t:this._getGateFromStore(e),a=o.gate;this._logger.logGateExposure(this._identity._user,e,a.value,a.rule_id,this._store.mapExposures(null!==(r=a.secondary_exposures)&&void 0!==r?r:[]),o.evaluationDetails,n,this._store.getBootstrapMetadata())},e.prototype._getConfigImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if(r._overrides.configs[e])return new u.default(e,r._overrides.configs[e],"local_override",{reason:y.EvaluationReason.LocalOverride,time:Date.now()});var n=r._getConfigFromStore(e);return"getConfig"===t&&r._logConfigExposureImpl(e,n),n}),(function(){return r._getEmptyConfig(e)}))},e.prototype._getConfigFromStore=function(e){if(this._ensureStoreLoaded(),"string"!=typeof e||0===e.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the configName.");return this._store.getConfig(e)},e.prototype._logConfigExposureImpl=function(e,t){var r=!t,n=null!=t?t:this._getConfigFromStore(e);this._logger.logConfigExposure(this._identity._user,e,n._ruleID,n._secondaryExposures,n._evaluationDetails,r,this._store.getBootstrapMetadata())},e.prototype._getLayerImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if(r._overrides.layers[e])return p.default._create(e,r._overrides.layers[e],"local_override",{reason:y.EvaluationReason.LocalOverride,time:Date.now()});var n="getLayer"===t?r._logLayerParameterExposureForLayer:null;return r._getLayerFromStore(n,e)}),(function(){return p.default._create(e,{},"",r._getEvaluationDetailsForError())}))},e.prototype._getLayerFromStore=function(e,t){if(this._ensureStoreLoaded(),"string"!=typeof t||0===t.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the layerName.");return this._store.getLayer(e,t)},e.prototype._getEmptyConfig=function(e){return new u.default(e,{},"",this._getEvaluationDetailsForError())},e.prototype._setOverride=function(e,t,r){null==r?delete this._overrides[e][t]:this._overrides[e][t]=r,this.setOverrides(this._overrides)},e}();t.default=x},27:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(193),a=r(816),i=n(r(139)),s=r(628),c=function(){function e(e,t,r){var n;this._sdkType="js-lite",this._sdkKey=e,this._user=t,this._sdkVersion=s.version;var a=r;a=null!==(n=null!=a?a:i.default.getItem(o.STATSIG_STABLE_ID_KEY))&&void 0!==n?n:this._getUUID(),this._statsigMetadata={stableID:a,sdkType:this._sdkType,sdkVersion:this._sdkVersion}}return e.prototype.saveStableID=function(){null!=this._statsigMetadata.stableID&&i.default.setItem(o.STATSIG_STABLE_ID_KEY,this._statsigMetadata.stableID)},e.prototype.getUserCacheKey=function(){return(0,a.getUserCacheKey)(this._user)},e.prototype._getUUID=function(){for(var e="",t=0;t<32;t++){8!==t&&12!==t&&16!==t&&20!==t||(e+="-");var r=16*Math.random()|0;e+=12===t?"4":16===t?(3&r|8).toString(16):r.toString(16)}return e},e}();t.default=c},261:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(226)),s=r(763),c=r(193),l=a(r(139)),u="statsig::",d=u+"config_exposure",h=u+"layer_exposure",p=u+"gate_exposure",f=u+"log_event_failed",g=u+"default_value_type_mismatch",b=1024e3,v=function(){function e(e,t,r,n){var o=this;this._failedLogEventCount=0,this.logConfigDefaultValueFallback=function(e,t,r){var n=(0,i.default)(g,e,o._identity._statsigMetadata,t,r);o.log(n),o._loggedErrors.add(t)},this._options=e,this._identity=t,this._network=r,this._errorBoundary=n,this._queue=[],this._flushInterval=null,this._loggedErrors=new Set,this._failedLogEvents=[],this._exposureDedupeKeys={},this._failedLogEventCount=0,this._init()}return e.prototype.log=function(e){if(!this._options.disableAllLogging){try{if(!this._options.disableCurrentPageLogging&&"undefined"!=typeof window&&null!=window&&"object"==typeof window.location&&"string"==typeof window.location.href){var t=window.location.href.split(/[?#]/);(null==t?void 0:t.length)>0&&(e.statsigMetadata.currentPage=t[0])}}catch(e){}this._queue.push(e),this._queue.length>=this._options.loggingBufferMaxSize&&this.flush()}},e.prototype.resetDedupeKeys=function(){this._exposureDedupeKeys={}},e.prototype.logGateExposure=function(e,t,r,n,o,a,s,c){var l=t+String(r)+n+a.reason;if(this._shouldLogExposure(l)){var u={gate:t,gateValue:String(r),ruleID:n,reason:a.reason,time:a.time};s&&(u.isManualExposure="true"),null!=c&&(u.bootstrapMetadata=c);var d=(0,i.default)(p,e,this._identity._statsigMetadata,null,u,o);this.log(d)}},e.prototype.logConfigExposure=function(e,t,r,n,o,a,s){var c=t+r+o.reason;if(this._shouldLogExposure(c)){var l={config:t,ruleID:r,reason:o.reason,time:o.time};a&&(l.isManualExposure="true"),null!=s&&(l.bootstrapMetadata=s);var u=(0,i.default)(d,e,this._identity._statsigMetadata,null,l,n);this.log(u)}},e.prototype.logLayerExposure=function(e,t,r,n,o,a,s,c,l,u){var d=[t,r,o,a,String(s),c.reason].join("|");if(this._shouldLogExposure(d)){var p={config:t,ruleID:r,allocatedExperiment:o,parameterName:a,isExplicitParameter:String(s),reason:c.reason,time:c.time};l&&(p.isManualExposure="true"),null!=u&&(p.bootstrapMetadata=u);var f=(0,i.default)(h,e,this._identity._statsigMetadata,null,p,n);this.log(f)}},e.prototype.shutdown=function(){this._flushInterval&&(clearInterval(this._flushInterval),this._flushInterval=null),this.flush(!0)},e.prototype.flush=function(e){var t=this;if(void 0===e&&(e=!1),0!==this._queue.length){var r=this._identity._statsigMetadata,a=this._queue;if(this._queue=[],e&&!this._network.supportsKeepalive()&&"undefined"!=typeof navigator&&null!=navigator&&navigator.sendBeacon){this._network.sendLogBeacon({events:a,statsigMetadata:r})||(this._queue=a.concat(this._queue),this._queue.length>0&&(this._addFailedRequest({events:this._queue,statsigMetadata:r,time:Date.now()}),this._queue=[]),this._saveFailedRequests())}else{var i=this;this._network.postToEndpoint(s.StatsigEndpoint.Rgstr,{events:a,statsigMetadata:r},3,1e3,0,e).then((function(e){if(!e.ok)throw e})).catch((function(e){"function"==typeof e.text?e.text().then((function(r){t._errorBoundary._logError(f,e,(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,{eventCount:a.length,error:r}]}))}))}))})):t._errorBoundary._logError(f,e,(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,{eventCount:a.length,error:e.message}]}))}))})),i._newFailedRequest(f,a)})).finally((function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e?(this._queue.length>0&&(this._addFailedRequest({events:this._queue,statsigMetadata:r,time:Date.now()}),this._queue=[]),[4,i._saveFailedRequests()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))}}},e.prototype.sendSavedRequests=function(){return n(this,void 0,void 0,(function(){var e,t,r,n,a,i,u,d,h=this;return o(this,(function(o){if(t=!1,null==(e=l.default.getItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY)))return this._clearLocalStorageRequests(),[2];e.length>b&&(t=!0),r=[];try{for(r=JSON.parse(e),n=function(e){null!=e&&e.events&&Array.isArray(e.events)&&a._network.postToEndpoint(s.StatsigEndpoint.Rgstr,e).then((function(e){if(!e.ok)throw Error(e.status+"")})).catch((function(r){t||h._addFailedRequest(e)}))},a=this,i=0,u=r;i<u.length;i++)d=u[i],n(d)}catch(e){}finally{this._clearLocalStorageRequests()}return[2]}))}))},e.prototype._init=function(){var e=this;if("undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("blur",(function(){return e.flush(!0)})),window.addEventListener("beforeunload",(function(){return e.flush(!0)})),window.addEventListener("load",(function(){setTimeout((function(){return e.flush()}),100),setTimeout((function(){return e.flush()}),1e3)}))),"undefined"!=typeof document&&"function"==typeof document.addEventListener&&document.addEventListener("visibilitychange",(function(){e.flush("visible"!==document.visibilityState)})),(this._options.ignoreWindowUndefined||"undefined"!=typeof window&&null!=window)&&!this._options.localMode){var t=this;this._flushInterval=setInterval((function(){t.flush()}),this._options.loggingIntervalMillis),setTimeout((function(){return e.flush()}),100),setTimeout((function(){return e.flush()}),1e3)}},e.prototype._shouldLogExposure=function(e){var t=this._exposureDedupeKeys[e],r=Date.now();return!(null!=t&&t>=r-6e5||(this._exposureDedupeKeys[e]=r,0))},e.prototype._saveFailedRequests=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){if(this._failedLogEvents.length>0){if((e=JSON.stringify(this._failedLogEvents)).length>b)return this._clearLocalStorageRequests(),[2];l.default.setItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY,e)}return[2]}))}))},e.prototype._addFailedRequest=function(e){if(!(e.time<Date.now()-432e6||this._failedLogEvents.length>100)){var t=e.events.length;this._failedLogEventCount+t>1e3||(this._failedLogEvents.push(e),this._failedLogEventCount+=t)}},e.prototype._clearLocalStorageRequests=function(){l.default.removeItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY)},e.prototype._newFailedRequest=function(e,t){this._loggedErrors.has(e)||(this._loggedErrors.add(e),this._failedLogEvents.push({events:t,statsigMetadata:this._identity._statsigMetadata,time:Date.now()}),this._saveFailedRequests().then((function(){})))},e}();t.default=v},763:function(e,t){"use strict";var r,n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEndpoint=void 0,function(e){e.Initialize="initialize",e.Rgstr="rgstr",e.LogEventBeacon="log_event_beacon"}(r=t.StatsigEndpoint||(t.StatsigEndpoint={}));var a=function(){function e(e,t,r){this.retryCodes={408:!0,500:!0,502:!0,503:!0,504:!0,522:!0,524:!0,599:!0},this.canUseKeepalive=!1,this._options=e,this._identity=t,this._errorBoundary=r,this.leakyBucket={},this._init()}return e.prototype.fetchValues=function(e,t,n,o){var a={user:e,statsigMetadata:this._identity._statsigMetadata,sinceTime:null!=t?t:void 0,hash:"djb2",previousDerivedFields:o};return this._postWithTimeout(r.Initialize,a,n,3)},e.prototype.sendLogBeacon=function(e){if(this._options.localMode)return!0;var t=new URL(this._options.eventLoggingApi+r.LogEventBeacon);t.searchParams.append("k",this._identity._sdkKey),e.clientTime=Date.now()+"";var n=null;try{n=JSON.stringify(e)}catch(e){return!1}return navigator.sendBeacon(t.toString(),n)},e.prototype.postToEndpoint=function(e,t,a,i,s,c){return void 0===a&&(a=0),void 0===i&&(i=1e3),void 0===s&&(s=0),void 0===c&&(c=!1),n(this,void 0,void 0,(function(){var l,u,d,h,p,f,g=this;return o(this,(function(b){return this._options.localMode?[2,Promise.reject("no network requests in localMode")]:"function"!=typeof fetch?[2,Promise.reject("fetch is not defined")]:"undefined"!=typeof window||this._options.ignoreWindowUndefined?(l=[r.Initialize].includes(e)?this._options.api:s>0?this._options.eventLoggingApiForRetries:this._options.eventLoggingApi,u=l+e,null!=(d=this.leakyBucket[u])&&d>=30?[2,Promise.reject(new Error("Request failed because you are making the same request too frequently."))]:(this.leakyBucket[u]=null==d?1:d+1,h=JSON.stringify(t),p=this._identity._statsigMetadata,f={method:"POST",body:h,headers:{"Content-type":"application/json; charset=UTF-8","STATSIG-API-KEY":this._identity._sdkKey,"STATSIG-CLIENT-TIME":Date.now()+"","STATSIG-SDK-TYPE":p.sdkType,"STATSIG-SDK-VERSION":p.sdkVersion}},this.canUseKeepalive&&c&&(f.keepalive=!0),[2,fetch(u,f).then((function(e){return n(g,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:return e.ok?(t=e,204!==e.status?[3,1]:(t.data={has_updates:!1,is_no_content:!0},[3,3])):[3,4];case 1:return[4,e.text()];case 2:r=o.sent(),t.data=JSON.parse(r),o.label=3;case 3:return[2,Promise.resolve(t)];case 4:return this.retryCodes[e.status]||(a=0),[4,e.text()];case 5:return n=o.sent(),[2,Promise.reject(new Error("".concat(e.status,": ").concat(n)))]}}))}))})).catch((function(r){return a>0?new Promise((function(r,n){setTimeout((function(){g.leakyBucket[u]=Math.max(g.leakyBucket[u]-1,0),g.postToEndpoint(e,t,a-1,2*i,s+1,c).then(r).catch(n)}),i)})):Promise.reject(r)})).finally((function(){g.leakyBucket[u]=Math.max(g.leakyBucket[u]-1,0)}))])):[2,Promise.reject("window is not defined")]}))}))},e.prototype.supportsKeepalive=function(){return this.canUseKeepalive},e.prototype._init=function(){if(!this._options.disableNetworkKeepalive)try{this.canUseKeepalive="keepalive"in new Request("")}catch(e){}},e.prototype._postWithTimeout=function(e,t,r,a,i){var s=this;void 0===r&&(r=0),void 0===a&&(a=0),void 0===i&&(i=1e3);var c=!1,l=null,u=null,d=[];0!=r&&(l=new Promise((function(e,t){setTimeout((function(){c=!0,t(new Error("The initialization timeout of ".concat(r,"ms has been hit before the network request has completed.")))}),r)})));var h,p=this.postToEndpoint(e,t,a,i).then((function(r){if(!r.ok)return Promise.reject(new Error("Request to ".concat(e," failed with status ").concat(r.status)));if("object"!=typeof r.data){var l=new Error("Request to ".concat(e," received invalid response type. Expected 'object' but got '").concat(typeof r.data,"'"));return s._errorBoundary._logError("postWithTimeoutInvalidRes",l,(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,this._getErrorData(e,t,a,i,r)]}))}))})),Promise.reject(l)}var h=r.data;return s._errorBoundary._capture("postWithTimeout",(function(){return n(s,void 0,void 0,(function(){return o(this,(function(e){return u=h,c&&(d.forEach((function(e){return e(h)})),d=[]),[2,Promise.resolve(h)]}))}))}),(function(){return Promise.resolve({})}),(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,this._getErrorData(e,t,a,i,r)]}))}))}))})).catch((function(e){return Promise.reject(e)})),f=l?Promise.race([p,l]):p;return f.eventually=(h=f,function(e){return c&&u?e(u):d.push(e),h}),f},e.prototype._getErrorData=function(e,t,r,a,i){var s;return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){try{return n={},(null!==(s=i.headers)&&void 0!==s?s:[]).forEach((function(e,t){n[t]=e})),[2,{responseInfo:{headers:n,status:i.status,statusText:i.statusText,type:i.type,url:i.url,redirected:i.redirected,bodySnippet:i.data?JSON.stringify(i.data).slice(0,500):null},requestInfo:{endpointName:e,bodySnippet:JSON.stringify(t).slice(0,500),retries:r,backoff:a}}]}catch(e){return[2,{statusText:"statsig::failed to extract extra data"}]}return[2]}))}))},e}();t.default=a},951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INIT_TIMEOUT_DEFAULT_MS=void 0;t.INIT_TIMEOUT_DEFAULT_MS=3e3;var r=function(){function e(e){var r,n,o,a,i,s,c,l,u,d,h,p,f,g,b,v;null==e&&(e={});var y=null!==(r=e.api)&&void 0!==r?r:"https://featuregates.org/v1/";this.api=y.endsWith("/")?y:y+"/",this.disableCurrentPageLogging=null!==(n=e.disableCurrentPageLogging)&&void 0!==n&&n,this.environment=null!==(o=e.environment)&&void 0!==o?o:null,this.loggingIntervalMillis=this.normalizeNumberInput(e.loggingIntervalMillis,{default:1e4,min:1e3,max:6e4}),this.loggingBufferMaxSize=this.normalizeNumberInput(e.loggingBufferMaxSize,{default:100,min:2,max:500}),this.disableNetworkKeepalive=null!==(a=e.disableNetworkKeepalive)&&void 0!==a&&a,this.overrideStableID=null!==(i=e.overrideStableID)&&void 0!==i?i:null,this.localMode=null!==(s=e.localMode)&&void 0!==s&&s,this.initTimeoutMs=e.initTimeoutMs&&e.initTimeoutMs>=0?e.initTimeoutMs:t.INIT_TIMEOUT_DEFAULT_MS,this.disableErrorLogging=null!==(c=e.disableErrorLogging)&&void 0!==c&&c,this.disableAutoMetricsLogging=null!==(l=e.disableAutoMetricsLogging)&&void 0!==l&&l,this.initializeValues=null!==(u=e.initializeValues)&&void 0!==u?u:null;var m=null!==(h=null!==(d=e.eventLoggingApi)&&void 0!==d?d:e.api)&&void 0!==h?h:"https://events.statsigapi.net/v1/";this.eventLoggingApi=m.endsWith("/")?m:m+"/";var _=null!==(p=e.eventLoggingApiForRetries)&&void 0!==p?p:m;this.eventLoggingApiForRetries=_.endsWith("/")?_:_+"/",this.disableLocalStorage=null!==(f=e.disableLocalStorage)&&void 0!==f&&f,this.ignoreWindowUndefined=null!==(g=null==e?void 0:e.ignoreWindowUndefined)&&void 0!==g&&g,this.updateUserCompletionCallback=null!==(b=null==e?void 0:e.updateUserCompletionCallback)&&void 0!==b?b:null,this.disableAllLogging=null!==(v=null==e?void 0:e.disableAllLogging)&&void 0!==v&&v}return e.prototype.normalizeNumberInput=function(e,t){return null==e?t.default:Math.max(Math.min(e,t.max),t.min)},e}();t.default=r},812:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluationReason=void 0;var i,s=a(r(913)),c=a(r(755)),l=a(r(866)),u=r(193),d=r(816),h=a(r(139));!function(e){e.Network="Network",e.Bootstrap="Bootstrap",e.InvalidBootstrap="InvalidBootstrap",e.Cache="Cache",e.Unrecognized="Unrecognized",e.Uninitialized="Uninitialized",e.Error="Error",e.NetworkNotModified="NetworkNotModified",e.LocalOverride="LocalOverride"}(i=t.EvaluationReason||(t.EvaluationReason={}));var p=function(){function e(e,t,r){this._identity=e,this._onDefaultValueFallback=t,this._userCacheKey=this._identity.getUserCacheKey(),this._values={},this._userValues=this._getDefaultUserCacheValues(),this._loaded=!1,this._reason=i.Uninitialized,r?this.bootstrap(r):this._loadFromLocalStorage()}return e.prototype.updateUser=function(){return this._userCacheKey=this._identity.getUserCacheKey(),this._setUserValueFromCache()},e.prototype.bootstrap=function(e){var t,r,n,o,a,s,c,u=this._identity.getUserCacheKey(),d=this._identity._user,h=l.default.isValid(d,e)?i.Bootstrap:i.InvalidBootstrap;this._loaded=!0;try{this._userValues.feature_gates=null!==(t=e.feature_gates)&&void 0!==t?t:{},this._userValues.dynamic_configs=null!==(r=e.dynamic_configs)&&void 0!==r?r:{},this._userValues.layer_configs=null!==(n=e.layer_configs)&&void 0!==n?n:{},this._userValues.evaluation_time=Date.now(),this._userValues.time=null!==(o=e.time)&&void 0!==o?o:Date.now(),this._userValues.exposures=null!==(a=e.exposures)&&void 0!==a?a:[],this._userValues.hash_used=null!==(s=e.hash_used)&&void 0!==s?s:"djb2",this._values[u]=this._userValues,this._reason=h;var p=null!==(c=e.sdkInfo)&&void 0!==c?c:e.sdk_info;this._userValues.bootstrapMetadata={},null!=p&&(this._userValues.bootstrapMetadata.generatorSDKInfo=p),null!=e.user&&(this._userValues.bootstrapMetadata.user=e.user),null!=e.time&&(this._userValues.bootstrapMetadata.lcut=e.time)}catch(e){return}},e.prototype.getBootstrapMetadata=function(){var e;return null!==(e=this._userValues.bootstrapMetadata)&&void 0!==e?e:null},e.prototype.isLoaded=function(){return this._loaded},e.prototype.getLastUpdateTime=function(e){var t=(0,d.djb2HashForObject)(e);return this._userValues.user_hash==t?this._userValues.time:null},e.prototype.getPreviousDerivedFields=function(e){var t=(0,d.djb2HashForObject)(e);if(this._userValues.user_hash==t)return this._userValues.derived_fields},e.prototype.setEvaluationReason=function(e){this._reason=e},e.prototype.save=function(e,t,r){return void 0===r&&(r=!0),n(this,void 0,void 0,(function(){var n,a,s,c;return o(this,(function(o){switch(o.label){case 0:return n=(0,d.getUserCacheKey)(e),a=t,this._mergeInitializeResponseIntoUserMap(a,this._values,n,e,(function(e){return e})),r&&(s=this._values[n])&&n&&n==this._userCacheKey&&(this._userValues=s,this._reason=i.Network),c=this,[4,this._writeValuesToStorage(this._values)];case 1:return c._values=o.sent(),[2]}}))}))},e.prototype.checkGate=function(e){var t,r,n=(0,d.getHashValue)(e,this._userValues.hash_used),o={name:e,value:!1,rule_id:"",secondary_exposures:[]},a=null===(t=this._userValues)||void 0===t?void 0:t.feature_gates[n];return a&&(o=a),o.secondary_exposures=this.mapExposures(null!==(r=o.secondary_exposures)&&void 0!==r?r:[]),{evaluationDetails:this._getEvaluationDetails(null!=a),gate:o}},e.prototype.mapExposures=function(e){var t=this;return e.map((function(e){var r;return"string"==typeof e?(null!==(r=t._userValues.exposures)&&void 0!==r?r:{})[e]:e}))},e.prototype.getConfig=function(e){var t,r,n,o,a=(0,d.getHashValue)(e,this._userValues.hash_used);if(null!=(null===(t=this._userValues)||void 0===t?void 0:t.dynamic_configs[a])){var i=null===(r=this._userValues)||void 0===r?void 0:r.dynamic_configs[a];o=this._getEvaluationDetails(!0),n=this._createDynamicConfig(e,i,o)}else o=this._getEvaluationDetails(!1),n=new s.default(e,{},"",o);return n},e.prototype.getLayer=function(e,t){var r,n,o,a,i,s=this._getLatestValue(t,"layer_configs"),l=this._getEvaluationDetails(null!=s);return c.default._create(t,null!==(r=null==s?void 0:s.value)&&void 0!==r?r:{},null!==(n=null==s?void 0:s.rule_id)&&void 0!==n?n:"",l,e,this.mapExposures(null!==(o=null==s?void 0:s.secondary_exposures)&&void 0!==o?o:[]),this.mapExposures(null!==(a=null==s?void 0:s.undelegated_secondary_exposures)&&void 0!==a?a:[]),null!==(i=null==s?void 0:s.allocated_experiment_name)&&void 0!==i?i:"",null==s?void 0:s.explicit_parameters)},e.prototype.getGlobalEvaluationDetails=function(){var e,t;return{reason:null!==(e=this._reason)&&void 0!==e?e:i.Uninitialized,time:null!==(t=this._userValues.evaluation_time)&&void 0!==t?t:0}},e.prototype._loadFromLocalStorage=function(){this._parseCachedValues(h.default.getItem(u.INTERNAL_STORE_KEY)),this._loaded=!0},e.prototype._parseCachedValues=function(e){try{this._values=e?JSON.parse(e):this._values,this._setUserValueFromCache()}catch(e){this._removeFromStorage(u.INTERNAL_STORE_KEY)}},e.prototype._setUserValueFromCache=function(){var e,t=this._values[this._userCacheKey];return null==t?(this._resetUserValues(),this._reason=i.Uninitialized,null):(this._userValues=t,this._reason=i.Cache,null!==(e=t.evaluation_time)&&void 0!==e?e:0)},e.prototype._removeFromStorage=function(e){h.default.removeItem(e)},e.prototype._mergeInitializeResponseIntoUserMap=function(e,t,r,n,o){if(r){var a=this._convertAPIDataToCacheValues(e,r);if(e.has_updates&&e.time){var i=(0,d.djb2HashForObject)(n);a.user_hash=i}t[r]=o(a,r)}},e.prototype._getDefaultUserCacheValues=function(){return{feature_gates:{},layer_configs:{},dynamic_configs:{},time:0,evaluation_time:0,has_updates:!1}},e.prototype._writeValuesToStorage=function(e){return n(this,void 0,void 0,(function(){var t;return o(this,(function(r){return t=Object.entries(e).sort((function(e,t){var r,n,o=e[1],a=t[1];return null==o?1:null==a?-1:(null!==(r=null==a?void 0:a.evaluation_time)&&void 0!==r?r:null==a?void 0:a.time)-(null!==(n=null==o?void 0:o.evaluation_time)&&void 0!==n?n:null==o?void 0:o.time)})).slice(0,10),e=Object.fromEntries(t),h.default.setItem(u.INTERNAL_STORE_KEY,JSON.stringify(e)),[2,e]}))}))},e.prototype._getLatestValue=function(e,t){var r,n,o,a,i,s=(0,d.getHashValue)(e,this._userValues.hash_used);return null!==(o=null===(n=null===(r=this._userValues)||void 0===r?void 0:r[t])||void 0===n?void 0:n[s])&&void 0!==o?o:null===(i=null===(a=this._userValues)||void 0===a?void 0:a[t])||void 0===i?void 0:i[e]},e.prototype._createDynamicConfig=function(e,t,r){var n,o,a,i;return new s.default(e,null!==(n=null==t?void 0:t.value)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.rule_id)&&void 0!==o?o:"",r,this.mapExposures(null!==(a=null==t?void 0:t.secondary_exposures)&&void 0!==a?a:[]),null!==(i=null==t?void 0:t.allocated_experiment_name)&&void 0!==i?i:"",this._makeOnConfigDefaultValueFallback(this._identity._user))},e.prototype._getEvaluationDetails=function(e,t){var r;return e?{reason:this._reason,time:null!==(r=this._userValues.evaluation_time)&&void 0!==r?r:Date.now()}:{reason:null!=t?t:this._reason==i.Uninitialized?i.Uninitialized:i.Unrecognized,time:Date.now()}},e.prototype._resetUserValues=function(){this._userValues=this._getDefaultUserCacheValues()},e.prototype._convertAPIDataToCacheValues=function(e,t){return{feature_gates:e.feature_gates,layer_configs:e.layer_configs,dynamic_configs:e.dynamic_configs,time:null==e.time||isNaN(e.time)?0:e.time,evaluation_time:Date.now(),derived_fields:e.derived_fields,hash_used:e.hash_used}},e.prototype._makeOnConfigDefaultValueFallback=function(e){var t=this;return function(r,n,o,a){t.isLoaded()&&t._onDefaultValueFallback(e,"Parameter ".concat(n," is a value of type ").concat(a,".\n Returning requested defaultValue type ").concat(o),{name:r._name,ruleID:r._ruleID,parameter:n,defaultValueType:o,valueType:a})}},e}();t.default=p},730:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluationReason=t.Layer=t.DynamicConfig=void 0;var i=r(95),s=a(r(966)),c=r(812),l=r(913);Object.defineProperty(t,"DynamicConfig",{enumerable:!0,get:function(){return a(l).default}});var u=r(755);Object.defineProperty(t,"Layer",{enumerable:!0,get:function(){return a(u).default}});var d=r(812);Object.defineProperty(t,"EvaluationReason",{enumerable:!0,get:function(){return d.EvaluationReason}});var h=function(){function e(){}return e.initialize=function(t,r,a){var i;return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){return n=null!==(i=e.instance)&&void 0!==i?i:new s.default(t,r,a),e.instance||(e.instance=n),[2,n.initializeAsync()]}))}))},e.setInitializeValues=function(t){e._getClientX().setInitializeValues(t)},e.checkGate=function(t){return e._getClientX().checkGate(t)},e.checkGateWithExposureLoggingDisabled=function(t){return e._getClientX().checkGateWithExposureLoggingDisabled(t)},e.manuallyLogGateExposure=function(t){e._getClientX().logGateExposure(t)},e.getConfig=function(t){return e._getClientX().getConfig(t)},e.getConfigWithExposureLoggingDisabled=function(t){return e._getClientX().getConfigWithExposureLoggingDisabled(t)},e.manuallyLogConfigExposure=function(t){e._getClientX().logConfigExposure(t)},e.getExperiment=function(t){return e._getClientX().getExperiment(t)},e.getExperimentWithExposureLoggingDisabled=function(t){return e._getClientX().getExperimentWithExposureLoggingDisabled(t)},e.manuallyLogExperimentExposure=function(t){e._getClientX().logExperimentExposure(t)},e.getLayer=function(t){return e._getClientX().getLayer(t)},e.getLayerWithExposureLoggingDisabled=function(t){return e._getClientX().getLayerWithExposureLoggingDisabled(t)},e.manuallyLogLayerParameterExposure=function(t,r){e._getClientX().logLayerParameterExposure(t,r)},e.logEvent=function(t,r,n){return void 0===r&&(r=null),void 0===n&&(n=null),e._getClientX().logEvent(t,r,n)},e.updateUser=function(t){return e._getClientX().updateUser(t)},e.updateUserWithValues=function(t,r){return e._getClientX().updateUserWithValues(t,r)},e.shutdown=function(){e._getClientX().shutdown(),e.instance=null},e.overrideGate=function(t,r){e._getClientX().overrideGate(t,r)},e.overrideConfig=function(t,r){e._getClientX().overrideConfig(t,r)},e.overrideLayer=function(t,r){e._getClientX().overrideLayer(t,r)},e.setOverrides=function(t){e._getClientX().setOverrides(t)},e.getOverrides=function(){return e._getClientX().getOverrides()},e.getStableID=function(){return e._getClientX().getStableID()},e.getEvaluationDetails=function(){var t,r;return null!==(r=null===(t=e.instance)||void 0===t?void 0:t.getEvaluationDetails())&&void 0!==r?r:{reason:c.EvaluationReason.Uninitialized,time:0}},e.initializeCalled=function(){return null!=e.instance&&e.instance.initializeCalled()},e._getClientX=function(){if(!e.instance)throw new i.StatsigUninitializedError;return e.instance},e.instance=null,e}();t.default=h},866:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.isValid=function(t,r){try{var n=r.evaluated_keys;if(!n){var o=r.user;o&&((n={}).userID=o.userID,o.customIDs&&(n.customIDs=o.customIDs))}if(!n||"object"!=typeof n)return!0;var a=this.copyObject(n),i=null==t?null:this.copyObject(t);return e.validate(a,i)&&e.validate(i,a)}catch(e){}return!0},e.validate=function(e,t){if(null==e)return null==t;if(null==t)return!1;for(var r=0,n=Object.entries(e);r<n.length;r++){var o=n[r],a=o[0],i=o[1];if("stableID"!==a){if(typeof i!=typeof t[a])return!1;if("string"!=typeof i)return"object"==typeof i&&this.validate(i,t[a]);if(i!==t[a])return!1}}return!0},e.copyObject=function(e){if(null==e)return null;var t={};if((null==e?void 0:e.userID)&&(t.userID=null==e?void 0:e.userID),null==e?void 0:e.customIDs){var n=r({},e.customIDs);delete n.stableID,0!==Object.keys(n).length&&(t.customIDs=n)}return t},e}();t.default=n},193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCAL_STORAGE_KEYS=t.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY=t.STATSIG_STABLE_ID_KEY=t.INTERNAL_STORE_KEY=void 0,t.INTERNAL_STORE_KEY="STATSIG_STORE",t.STATSIG_STABLE_ID_KEY="STATSIG_STABLE_ID",t.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY="STATSIG_LOGS",t.LOCAL_STORAGE_KEYS={INTERNAL_STORE_KEY:!0,STATSIG_STABLE_ID_KEY:!0,STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY:!0}},816:(e,t)=>{"use strict";function r(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return String(t>>>0)}function n(e){if(null==e)return null;var t=Object.keys(e).sort(),r={};return t.forEach((function(t){var o=e[t];o instanceof Object&&(o=n(o)),r[t]=o})),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getUserCacheKey=t.getSortedObject=t.djb2HashForObject=t.getHashValue=t.SimpleHash=void 0,t.SimpleHash=r,t.getHashValue=function(e,t){return"none"===t?e:r(e)},t.djb2HashForObject=function(e){return r(JSON.stringify(n(e)))},t.getSortedObject=n,t.getUserCacheKey=function(e){var t,n="userID:".concat(String(null!==(t=null==e?void 0:e.userID)&&void 0!==t?t:"")),o=null==e?void 0:e.customIDs;if(null!=o)for(var a=0,i=Object.entries(o);a<i.length;a++){var s=i[a],c=s[0],l=s[1];n+=";".concat(c,":").concat(l)}return r(n)}},182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifySDKKeyUsed=void 0;var n=r(95),o=r(816);t.verifySDKKeyUsed=function(e,t,r){var a=null==e?void 0:e.hashed_sdk_key_used;return null==a||a===(0,o.SimpleHash)(null!=t?t:"")||(r._logError("fetchAndSaveValues",new n.StatsigSDKKeyMismatchError("The SDK key provided does not match the one used to generate values.")),!1)}},139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.getItem=function(e){var t;try{if(this.isStorageAccessible())return window.localStorage.getItem(e)}catch(e){}return null!==(t=this.fallbackSessionCache[e])&&void 0!==t?t:null},e.setItem=function(e,t){try{if(this.isStorageAccessible())return void window.localStorage.setItem(e,t)}catch(e){}this.fallbackSessionCache[e]=t},e.removeItem=function(e){try{if(this.isStorageAccessible())return void window.localStorage.removeItem(e)}catch(e){}delete this.fallbackSessionCache[e]},e.isStorageAccessible=function(e){void 0===e&&(e=!1),null==this.canAccessStorageAccessible&&(this.canAccessStorageAccessible="undefined"!=typeof Storage&&"undefined"!=typeof window&&null!=window&&null!=window.localStorage);var t=this.canAccessStorageAccessible;return(e||!this.disabled)&&t},e.disabled=!1,e.fallbackSessionCache={},e.canAccessStorageAccessible=null,e}();t.default=r},944:(e,t)=>{"use strict";function r(){return"undefined"!=typeof performance&&performance?0|performance.now():Date.now()}Object.defineProperty(t,"__esModule",{value:!0}),t.difference=t.now=void 0,t.now=r,t.difference=function(e){return r()-e}},39:()=>{},541:(e,t,r)=>{var n=r(998).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new M(n||[]);return s(a,"_invoke",{value:A(e,r,i)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var g="suspendedStart",b="suspendedYield",v="executing",y="completed",m={};function _(){}function k(){}function w(){}var E={};h(E,l,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==a&&i.call(O,l)&&(E=O);var S=w.prototype=_.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function r(o,a,s,c){var l=f(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;s(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function A(e,r,n){var o=g;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var c=C(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===g)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:b,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return k.prototype=w,s(S,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:k,configurable:!0}),k.displayName=h(w,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},r.awrap=function(e){return{__await:e}},T(L.prototype),h(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new L(p(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(S),h(S,d,"Generator"),h(S,l,(function(){return this})),h(S,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=D,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},998:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},192:(e,t,r)=>{var n=r(541)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,o),a.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({138:"./themes/shape",177:"./themes/legacy-light",186:"./themes/typography-modernized",213:"./themes/typography-refreshed",381:"./themes/light",479:"./themes/dark",498:"./themes/spacing",567:"./themes/light-future",592:"./themes/typography-adg3",915:"./themes/legacy-dark",917:"./themes/dark-future"}[e]+".js"),o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="__auiPrototyping:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[n];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{var e={203:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=window.webpackChunk_auiPrototyping=window.webpackChunk_auiPrototyping||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a={};return(()=>{"use strict";o.r(a),o.d(a,{ThemeMutationObserver:()=>It,disableTestingTheme:()=>jt,enableTestingTheme:()=>Dt,getTokenValue:()=>Pt,setGlobalTheme:()=>At,setTestingThemeColor:()=>Mt,toggleTestingTheme:()=>Ut,token:()=>Ct});var e={};o.r(e),o.d(e,{CURRENT_SURFACE_CSS_VAR:()=>Oe,ThemeMutationObserver:()=>bt,enableGlobalTheme:()=>ct,getGlobalTheme:()=>gt,getSSRAutoScript:()=>ut,getThemeHtmlAttrs:()=>Re,getThemeStyles:()=>lt,getTokenValue:()=>Le,setGlobalTheme:()=>st,themeConfig:()=>ye,themeObjectToString:()=>Ue,themeStringToObject:()=>je,token:()=>Te,useThemeObserver:()=>ht()});var t={};function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t,r,n,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){p(a,n,o,i,s,"next",e)}function s(e){p(a,n,o,i,s,"throw",e)}i(void 0)}))}}o.r(t),o.d(t,{disableTestingTheme:()=>Ot,enableTestingTheme:()=>xt,setTestingThemeColor:()=>wt,toggleTestingTheme:()=>St});var g=o(192),b=o.n(g),v=o(730),y=o.n(v),m=o(853);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var w="@all-features",E=function(){return c((function e(){r(this,e),l(this,"eventToValue",new Map),this.emitter=new m.EventEmitter2}),[{key:"onGateUpdated",value:function(e,t,r,n){var o=this,a=r(e,k(k({},n),{},{fireGateExposure:!1}));void 0===this.eventToValue.get(t)&&this.eventToValue.set(t,a);var i=function(){var a=r(e,k(k({},n),{},{fireGateExposure:!1}));o.eventToValue.get(t)!==a&&(o.eventToValue.set(t,a),t(a))};return this.emitter.on(e,i),function(){o.emitter.off(e,i)}}},{key:"onExperimentValueUpdated",value:function(e,t,r,n,o,a){var i=this,s="".concat(e,".").concat(t),c=o(e,t,r,k(k({},a),{},{fireExperimentExposure:!1}));void 0===this.eventToValue.get(n)&&this.eventToValue.set(n,c);var l=function(){var s=o(e,t,r,k(k({},a),{},{fireExperimentExposure:!1}));i.eventToValue.get(n)!==s&&(i.eventToValue.set(n,s),n(s))};return this.emitter.on(s,l),function(){i.emitter.off(s,l)}}},{key:"onAnyUpdated",value:function(e){var t=this;return this.emitter.on(w,e),function(){t.emitter.off(w,e)}}},{key:"anyUpdated",value:function(){var e=this;this.emitter.emit(w),this.emitter.eventNames().filter((function(e){return e!==w})).forEach((function(t){e.emitter.emit(t)}))}}])}(),x=function(e){return e.Development="development",e.Staging="staging",e.Production="production",e}({}),O=function(e){return e.COMMERCIAL="commercial",e.FEDRAMP_MODERATE="fedramp-moderate",e}({}),S="4.23.4";function T(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function P(e){var t="function"==typeof Map?new Map:void 0;return P=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&A(o,r.prototype),o}(e,arguments,L(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},P(e)}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}var M=function(e){function t(e){return r(this,t),n=this,a=[e],o=L(o=t),T(n,I()?Reflect.construct(o,a||[],L(n).constructor):o.apply(n,a));var n,o,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(t,e),c(t)}(P(Error));function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U=function(){function e(){r(this,e)}return c(e,null,[{key:"fetchClientSdk",value:(i=f(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.targetApp,n="/api/v2/frontend/clientSdkKey/".concat(r),e.prev=2,e.next=5,this.fetchRequest(n,"GET",t);case 5:return e.abrupt("return",e.sent);case 8:if(e.prev=8,e.t0=e.catch(2),!(e.t0 instanceof Error)){e.next=12;break}throw e.t0;case 12:throw Error("Failed to retrieve client sdk key");case 13:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return i.apply(this,arguments)})},{key:"fetchExperimentValues",value:(a=f(b().mark((function e(t,r,n){var o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={identifiers:r,customAttributes:n,targetApp:t.targetApp},e.prev=1,e.next=4,this.fetchRequest("/api/v2/frontend/experimentValues","POST",t,o);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof Error)){e.next=11;break}throw e.t0;case 11:throw Error("Failed to retrieve experiment values");case 12:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"handleResponseError",value:(o=f(b().mark((function e(t){var r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=5;break}return e.next=3,t.text();case 3:throw r=e.sent,new M("Non 2xx response status received, status: ".concat(t.status,", body: ").concat(JSON.stringify(r)));case 5:if(204!==t.status){e.next=7;break}throw new M("Unexpected 204 response");case 7:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"extractResponseBody",value:(n=f(b().mark((function e(t){var r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:return r=e.sent,e.abrupt("return",JSON.parse(r));case 4:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getBaseUrl",value:function(e){var t=arguments.length>2?arguments[2]:void 0;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return"/gateway/api/flags";if(t===O.FEDRAMP_MODERATE)switch(e){case x.Production:return"https://api.atlassian-us-gov-mod.com/flags";case x.Staging:return"https://api.stg.atlassian-us-gov-mod.com/flags";default:throw new Error('Invalid environment "'.concat(e,'" for "').concat(t,'" perimeter'))}else{if(t!==O.COMMERCIAL)throw new Error('Invalid perimeter "'.concat(t,'"'));switch(e){case x.Development:return"https://api.dev.atlassian.com/flags";case x.Staging:return"https://api.stg.atlassian.com/flags";default:return"https://api.atlassian.com/flags"}}}},{key:"fetchRequest",value:(t=f(b().mark((function t(r,n,o,a){var i,s,c,l,u;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getBaseUrl(o.environment,o.useGatewayURL,o.perimeter),s=o.fetchTimeoutMs||5e3,AbortSignal.timeout?c=AbortSignal.timeout(s):AbortController&&(l=new AbortController,c=l.signal,setTimeout((function(){return l.abort()}),s)),t.next=5,fetch("".concat(i).concat(r),j({method:n,headers:{"Content-Type":"application/json","X-Client-Name":"feature-gate-js-client","X-Client-Version":S,"X-API-KEY":o.apiKey},signal:c},a&&{body:JSON.stringify(a)}));case 5:return u=t.sent,t.next=8,this.handleResponseError(u);case 8:return t.next=10,this.extractResponseBody(u);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)}))),function(e,r,n,o){return t.apply(this,arguments)})}]);var t,n,o,a,i}();function V(){var e,t=globalThis,r=t.MICROS_PERIMETER||t.UNSAFE_ATL_CONTEXT_BOUNDARY;if(r)return"fedramp-moderate"===r;var n=null===(e=t.location)||void 0===e||null===(e=e.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!!n&&n.length>0}var N=["sdkKey","updateUserCompletionCallback","perimeter"];function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F=function(e){return R({perimeter:V()?O.FEDRAMP_MODERATE:O.COMMERCIAL},e)},K=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var r=Object.entries(e),n=Object.entries(t);if(r.length!==n.length)return!1;var o=function(e,t){var r=h(e,1)[0],n=h(t,1)[0];return r.localeCompare(n)};r.sort(o),n.sort(o);for(var a=0;a<r.length;a++){if(h(r[a],2)[1]!==h(n[a],2)[1])return!1}return!0},z=function(e,t){var r={customIDs:e,custom:t};return e.atlassianAccountId&&(r.userID=e.atlassianAccountId),r},B=function(e,t){e.sdkKey,e.updateUserCompletionCallback,e.perimeter;return R(R({},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,N)),{},{initializeValues:t,environment:{tier:e.environment},disableCurrentPageLogging:!0},e.updateUserCompletionCallback&&{updateUserCompletionCallback:W(e.updateUserCompletionCallback)})},W=function(e){return function(t,r,n){e(r,n)}};function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Y,X="client-default-key",H=function(){return c((function e(){r(this,e),l(this,"initPromise",null),l(this,"initCompleted",!1),l(this,"initWithDefaults",!1),l(this,"hasCheckGateErrorOccurred",!1),l(this,"hasGetExperimentErrorOccurred",!1),l(this,"hasGetExperimentValueErrorOccurred",!1),l(this,"hasGetLayerErrorOccurred",!1),l(this,"hasGetLayerValueErrorOccurred",!1),l(this,"subscriptions",new E)}),[{key:"initialize",value:(g=f(b().mark((function e(t,r,n){var o,a,i=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=F(t),!this.initPromise){e.next=4;break}return K(o,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return a=performance.now(),this.initOptions=o,this.initPromise=this.init(o,r,n).then((function(){i.initCompleted=!0,i.initWithDefaults=!0})).finally((function(){var e=performance.now()-a;i.fireClientEvent(a,e,"initialize",i.initCompleted,o.apiKey)})),e.abrupt("return",this.initPromise);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return g.apply(this,arguments)})},{key:"initializeWithProvider",value:(p=f(b().mark((function e(t,r,n,o){var a,i,s=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=F(t),!this.initPromise){e.next=4;break}return K(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return i=performance.now(),this.initOptions=a,this.provider=r,this.provider.setClientVersion(S),this.provider.setApplyUpdateCallback&&this.provider.setApplyUpdateCallback(this.applyUpdateCallback),this.initPromise=this.initWithProvider(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeWithProvider",s.initCompleted,r.getApiKey?r.getApiKey():void 0)})),e.abrupt("return",this.initPromise);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return p.apply(this,arguments)})},{key:"applyUpdateCallback",value:function(e){try{(this.initCompleted||this.initWithDefaults)&&(y().setInitializeValues(e.experimentValues),this.subscriptions.anyUpdated())}catch(e){console.warn("Error when attempting to apply update",e)}}},{key:"fireClientEvent",value:function(e,t,r,n){var o,a=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;null===(o=this.initOptions.analyticsWebClient)||void 0===o||o.then((function(o){var s=J({targetApp:a.initOptions.targetApp,clientVersion:S,success:n,startTime:e,totalTime:t},i&&{apiKey:i});o.sendOperationalEvent({action:r,actionSubject:"featureGatesClient",attributes:s,tags:["measurement"],source:"@atlaskit/feature-gate-js-client"})})).catch((function(e){a.initOptions.environment!==x.Production&&console.error("Analytics web client promise did not resolve",e)}))}},{key:"initializeFromValues",value:(d=f(b().mark((function e(t,r,n){var o,a,i,s=this,c=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]?c[3]:{},a=F(t),!this.initPromise){e.next=5;break}return K(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 5:return i=performance.now(),this.initOptions=a,this.initPromise=this.initFromValues(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeFromValues",s.initCompleted)})),e.abrupt("return",this.initPromise);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return d.apply(this,arguments)})},{key:"updateUser",value:(u=f(b().mark((function e(t,r,n){var o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=F(t),a=function(){return U.fetchExperimentValues(o,r,n).then((function(e){return{experimentValues:e.experimentValues,customAttributesFromFetch:e.customAttributes}}))},e.next=4,this.updateUserUsingInitializeValuesProducer(a,r,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return u.apply(this,arguments)})},{key:"updateUserWithProvider",value:(s=f(b().mark((function e(t,r){var n=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.provider){e.next=2;break}throw new Error("Cannot update user using provider as the client was not initialised with a provider");case 2:return e.next=4,this.provider.setProfile(this.initOptions,t,r);case 4:return e.next=6,this.updateUserUsingInitializeValuesProducer((function(){return n.provider.getExperimentValues()}),t,r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"updateUserWithValues",value:(i=f(b().mark((function e(t,r){var n,o,a=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:{},o=function(){return Promise.resolve({experimentValues:n,customAttributesFromFetch:r})},e.next=4,this.updateUserUsingInitializeValuesProducer(o,t,r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"initializeCalled",value:function(){return null!=this.initPromise}},{key:"initializeCompleted",value:function(){return this.initCompleted}},{key:"checkGate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireGateExposure;return(void 0===r||r?y().checkGate.bind(y()):y().checkGateWithExposureLoggingDisabled.bind(y()))(e)}catch(t){return this.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate. Only the first occurrence of this error is logged.",gateName:e,error:t}),this.hasCheckGateErrorOccurred=!0),!1}}},{key:"isGateExist",value:function(e){try{return y()._getClientX()._getGateFromStore(e).evaluationDetails.reason!==v.EvaluationReason.Unrecognized}catch(e){return console.error("Error occurred when trying to check FeatureGate: ".concat(e)),!0}}},{key:"isExperimentExist",value:function(e){try{return y().getExperimentWithExposureLoggingDisabled(e)._evaluationDetails.reason!==v.EvaluationReason.Unrecognized}catch(e){return console.error("Error occurred when trying to check Experiment: ".concat(e)),!0}}},{key:"manuallyLogGateExposure",value:function(e){y().manuallyLogGateExposure(e)}},{key:"getExperiment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireExperimentExposure;return(void 0===r||r?y().getExperiment.bind(y()):y().getExperimentWithExposureLoggingDisabled.bind(y()))(e)}catch(t){return this.hasGetExperimentErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment. Only the first occurrence of this error is logged.",experimentName:e,error:t}),this.hasGetExperimentErrorOccurred=!0),new v.DynamicConfig(e,{},"",{time:Date.now(),reason:v.EvaluationReason.Error})}}},{key:"getExperimentValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getExperiment(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value. Only the first occurrence of this error is logged.",experimentName:e,defaultValue:r,options:n,error:t}),this.hasGetExperimentValueErrorOccurred=!0),r}}},{key:"manuallyLogExperimentExposure",value:function(e){y().manuallyLogExperimentExposure(e)}},{key:"manuallyLogLayerExposure",value:function(e,t){y().manuallyLogLayerParameterExposure(e,t)}},{key:"shutdownStatsig",value:function(){y().shutdown()}},{key:"overrideGate",value:function(e,t){y().overrideGate(e,t),this.subscriptions.anyUpdated()}},{key:"clearGateOverride",value:function(e){y().overrideGate(e,null),this.subscriptions.anyUpdated()}},{key:"overrideConfig",value:function(e,t){y().overrideConfig(e,t),this.subscriptions.anyUpdated()}},{key:"clearConfigOverride",value:function(e){y().overrideConfig(e,null),this.subscriptions.anyUpdated()}},{key:"setOverrides",value:function(e){y().setOverrides(J({gates:{},configs:{},layers:{}},e)),this.subscriptions.anyUpdated()}},{key:"getOverrides",value:function(){return y().getOverrides()}},{key:"clearAllOverrides",value:function(){y().setOverrides(null),this.subscriptions.anyUpdated()}},{key:"isCurrentUser",value:function(e,t){return K(this.currentIdentifiers,e)&&K(this.currentAttributes,t)}},{key:"onGateUpdated",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.subscriptions.onGateUpdated(e,(function(o){var a=n.fireGateExposure;(void 0===a||a)&&r.manuallyLogGateExposure(e);try{t(o)}catch(t){console.warn("Error calling callback for gate ".concat(e," with value ").concat(o),t)}}),this.checkGate.bind(this),n)}},{key:"onExperimentValueUpdated",value:function(e,t,r,n){var o=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return this.subscriptions.onExperimentValueUpdated(e,t,r,(function(t){var r=a.fireExperimentExposure;(void 0===r||r)&&o.manuallyLogExperimentExposure(e);try{n(t)}catch(r){console.warn("Error calling callback for experiment ".concat(e," with value ").concat(t),r)}}),this.getExperimentValue,a)}},{key:"onAnyUpdated",value:function(e){return this.subscriptions.onAnyUpdated(e)}},{key:"init",value:(a=f(b().mark((function e(t,r,n){var o,a,i,s,c,l,u,d;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=J({},t),e.prev=1,s=U.fetchClientSdk(t).then((function(e){return o.sdkKey=e.clientSdkKey})),c=U.fetchExperimentValues(t,r,n),e.next=6,Promise.all([s,c]);case 6:l=e.sent,u=h(l,2),d=u[1],a=d.experimentValues,i=d.customAttributes,e.next=20;break;case 13:return e.prev=13,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=19,this.initFromValues(o,r,n);case 19:throw e.t0;case 20:return e.abrupt("return",this.initFromValues(o,r,i,a));case 21:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"initWithProvider",value:(o=f(b().mark((function e(t,r,n,o){var a,i,s,c,l,u,d,p;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=J(J({},t),{},{disableCurrentPageLogging:!0}),e.prev=1,e.next=4,r.setProfile(t,n,o);case 4:return c=r.getClientSdkKey().then((function(e){return a.sdkKey=e})),l=r.getExperimentValues(),e.next=8,Promise.all([c,l]);case 8:u=e.sent,d=h(u,2),p=d[1],i=p.experimentValues,s=p.customAttributesFromFetch,e.next=22;break;case 15:return e.prev=15,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=21,this.initFromValues(a,n,o);case 21:throw e.t0;case 22:return e.abrupt("return",this.initFromValues(a,n,s,i));case 23:case"end":return e.stop()}}),e,this,[[1,15]])}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"initFromValues",value:(n=f(b().mark((function e(t,r,n){var o,a,i,s,c=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=c.length>3&&void 0!==c[3]?c[3]:{},a=z(r,n),this.currentIdentifiers=r,this.currentAttributes=n,t.sdkKey||(t.sdkKey=X),t.eventLoggingApi||(t.eventLoggingApi="https://xp.atlassian.com/v1/"),t.perimeter===O.FEDRAMP_MODERATE&&(t.disableAllLogging=!0),i=t.sdkKey,s=B(t,o),e.prev=9,e.next=12,y().initialize(i,a,s);case 12:e.next=22;break;case 14:return e.prev=14,e.t0=e.catch(9),e.t0 instanceof Error&&console.error("Error occurred when trying to initialise the Statsig client, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client with default sdk key and without values"),e.next=20,y().initialize(X,a,J(J({},s),{},{initializeValues:{}}));case 20:throw this.initWithDefaults=!0,e.t0;case 22:case"end":return e.stop()}}),e,this,[[9,14]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"updateUserUsingInitializeValuesProducer",value:(t=f(b().mark((function e(t,r,n){var o,a,i,s=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initPromise){e.next=2;break}throw new Error("The client must be initialized before you can update the user.");case 2:if(!this.isCurrentUser(r,n)){e.next=4;break}return e.abrupt("return",this.initPromise);case 4:return o=this.initPromise,e.prev=5,e.next=8,this.initPromise;case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:return a=t(),i=this.updateStatsigClientUser(a,r,n),this.initPromise=i.catch(f(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.initPromise=o,!s.provider){e.next=4;break}return e.next=4,s.provider.setProfile(s.initOptions,s.currentIdentifiers,s.currentAttributes);case 4:case"end":return e.stop()}}),e)})))),e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,r,n){return t.apply(this,arguments)})},{key:"updateStatsigClientUser",value:(e=f(b().mark((function e(t,r,n){var o,a,i,s,c;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:o=e.sent,a=z(r,o.customAttributesFromFetch),e.next=12;break;case 7:throw e.prev=7,e.t0=e.catch(0),c=e.t0 instanceof Error?e.t0.message:JSON.stringify(e.t0),null===(i=(s=this.initOptions).updateUserCompletionCallback)||void 0===i||i.call(s,!1,c),e.t0;case 12:if(!y().updateUserWithValues(a,o.experimentValues)){e.next=19;break}this.currentIdentifiers=r,this.currentAttributes=n,this.subscriptions.anyUpdated(),e.next=20;break;case 19:throw new Error("Failed to update user. An unexpected error occured.");case 20:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(t,r,n){return e.apply(this,arguments)})},{key:"getPackageVersion",value:function(){return S}},{key:"getLayer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireLayerExposure;return(void 0===r||r?y().getLayer.bind(y()):y().getLayerWithExposureLoggingDisabled.bind(y()))(e)}catch(t){return this.hasGetLayerErrorOccurred||(console.warn({msg:"An error has occurred getting the layer. Only the first occurrence of this error is logged.",layerName:e,error:t}),this.hasGetLayerErrorOccurred=!0),v.Layer._create(e,{},"",{time:Date.now(),reason:v.EvaluationReason.Error})}}},{key:"getLayerValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getLayer(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetLayerValueErrorOccurred||(console.warn({msg:"An error has occurred getting the layer value. Only the first occurrence of this error is logged.",layerName:e,defaultValue:r,options:n,error:t}),this.hasGetLayerValueErrorOccurred=!0),r}}}]);var e,t,n,o,a,i,s,u,d,p,g}(),Q=function(){return c((function e(){r(this,e)}),null,[{key:"isGateExists",value:function(e){return this.client.isGateExist(e)}},{key:"isExperimentExists",value:function(e){return this.client.isExperimentExist(e)}}])}();Y=Q,l(Q,"client",new H),l(Q,"hasCheckGateErrorOccurred",!1),l(Q,"hasGetExperimentValueErrorOccurred",!1),l(Q,"checkGate",(function(e,t){try{if(window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getFeatureFlagOverride){var r=window.__CRITERION__.getFeatureFlagOverride(e);if(void 0!==r)return r}}catch(t){Y.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:e,error:t}),Y.hasCheckGateErrorOccurred=!0)}return Y.client.checkGate(e,t)})),l(Q,"getExperimentValue",(function(e,t,r,n){try{if("undefined"!=typeof window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getExperimentValueOverride){var o=window.__CRITERION__.getExperimentValueOverride(e,t);if(null!=o)return o}}catch(t){if(!Y.hasCheckGateErrorOccurred)return Y.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:e,defaultValue:r,options:n,error:t}),Y.hasGetExperimentValueErrorOccurred=!0),r}return Y.client.getExperimentValue(e,t,r,n)})),l(Q,"initializeCalled",Y.client.initializeCalled.bind(Y.client)),l(Q,"initializeCompleted",Y.client.initializeCompleted.bind(Y.client)),l(Q,"initialize",Y.client.initialize.bind(Y.client)),l(Q,"initializeWithProvider",Y.client.initializeWithProvider.bind(Y.client)),l(Q,"initializeFromValues",Y.client.initializeFromValues.bind(Y.client)),l(Q,"manuallyLogGateExposure",Y.client.manuallyLogGateExposure.bind(Y.client)),l(Q,"getExperiment",Y.client.getExperiment.bind(Y.client)),l(Q,"manuallyLogExperimentExposure",Y.client.manuallyLogExperimentExposure.bind(Y.client)),l(Q,"manuallyLogLayerExposure",Y.client.manuallyLogLayerExposure.bind(Y.client)),l(Q,"shutdownStatsig",Y.client.shutdownStatsig.bind(Y.client)),l(Q,"overrideGate",Y.client.overrideGate.bind(Y.client)),l(Q,"clearGateOverride",Y.client.clearGateOverride.bind(Y.client)),l(Q,"overrideConfig",Y.client.overrideConfig.bind(Y.client)),l(Q,"clearConfigOverride",Y.client.clearConfigOverride.bind(Y.client)),l(Q,"setOverrides",Y.client.setOverrides.bind(Y.client)),l(Q,"getOverrides",Y.client.getOverrides.bind(Y.client)),l(Q,"clearAllOverrides",Y.client.clearAllOverrides.bind(Y.client)),l(Q,"isCurrentUser",Y.client.isCurrentUser.bind(Y.client)),l(Q,"onGateUpdated",Y.client.onGateUpdated.bind(Y.client)),l(Q,"onExperimentValueUpdated",Y.client.onExperimentValueUpdated.bind(Y.client)),l(Q,"onAnyUpdated",Y.client.onAnyUpdated.bind(Y.client)),l(Q,"updateUser",Y.client.updateUser.bind(Y.client)),l(Q,"updateUserWithProvider",Y.client.updateUserWithProvider.bind(Y.client)),l(Q,"updateUserWithValues",Y.client.updateUserWithValues.bind(Y.client)),l(Q,"getPackageVersion",Y.client.getPackageVersion.bind(Y.client)),l(Q,"getLayer",Y.client.getLayer.bind(Y.client)),l(Q,"getLayerValue",Y.client.getLayerValue.bind(Y.client));var $=Q;if("undefined"!=typeof window)if(void 0===window.__FEATUREGATES_JS__)window.__FEATUREGATES_JS__=Q;else{var Z,ee,te=(null===(Z=$=window.__FEATUREGATES_JS__)||void 0===Z||null===(ee=Z.getPackageVersion)||void 0===ee?void 0:ee.call(Z))||"4.10.0 or earlier";if(te!==S){var re="Multiple versions of FeatureGateClients found on the current page.\n The currently bound version is ".concat(te," when module version ").concat(S," was loading.");console.warn(re)}}const ne=$;var oe,ae,ie=!(void 0!==(null===globalThis||void 0===globalThis||null===(oe=globalThis.process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.JEST_WORKER_ID))&&"production"!==(null===globalThis||void 0===globalThis||null===(ae=globalThis.process)||void 0===ae||null===(ae=ae.env)||void 0===ae?void 0:ae.NODE_ENV),se="__PLATFORM_FEATURE_FLAGS__",ce="undefined"!=typeof process&&!0,le=!!ce&&"true"==={NODE_ENV:"production"}.ENABLE_PLATFORM_FF||!!ce&&"true"==={NODE_ENV:"production"}.STORYBOOK_ENABLE_PLATFORM_FF,ue={earlyResolvedFlags:new Map,booleanResolver:function(e){return!1}},de="undefined"!=typeof window?window:globalThis;function he(e){if(le)return function(){var e;ie&&(e=console).debug.apply(e,arguments)}('[%s]: The feature flags were enabled while running tests. The flag "%s" will be always enabled.',"@atlaskit/platform-feature-flags",e),!0;try{var t,r,n;if(void 0===(null===(t=de[se])||void 0===t?void 0:t.booleanResolver)||null===(null===(r=de[se])||void 0===r?void 0:r.booleanResolver))return ne.checkGate(e);var o=null===(n=de[se])||void 0===n?void 0:n.booleanResolver(e);return"boolean"!=typeof o?(console.warn("".concat(e," resolved to a non-boolean value, returning false for safety")),!1):o}catch(e){return!1}}function pe(e){return he(e)}de[se]=de[se]||ue;var fe=["light","dark","auto"],ge=["light-increased-contrast","light","light-future","light-brand-refresh","dark","dark-future","dark-increased-contrast","dark-brand-refresh","legacy-light","legacy-dark","spacing","shape","typography-adg3","typography-modernized","typography-refreshed"],be=[].concat(ge,[]),ve={colorMode:"auto",contrastMode:"auto",dark:"dark",light:"light",shape:void 0,spacing:"spacing",typography:function(){if(pe("platform-default-typography-modernized"))return"typography-modernized"},UNSAFE_themeOptions:void 0};const ye={"atlassian-light":{id:"light",displayName:"Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"}},"atlassian-light-future":{id:"light-future",displayName:"Future Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"},override:"light"},"atlassian-light-increased-contrast":{id:"light-increased-contrast",displayName:"Light Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"light"},extends:"light",increasesContrastFor:"light"},"atlassian-dark":{id:"dark",displayName:"Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"}},"atlassian-dark-future":{id:"dark-future",displayName:"Future Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},override:"light"},"atlassian-dark-increased-contrast":{id:"dark-increased-contrast",displayName:"Dark Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},extends:"dark",increasesContrastFor:"dark"},"atlassian-legacy-light":{id:"legacy-light",displayName:"Light Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"light"}},"atlassian-legacy-dark":{id:"legacy-dark",displayName:"Dark Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"dark"}},"atlassian-spacing":{id:"spacing",displayName:"Atlassian Spacing",palette:"spacingScale",attributes:{type:"spacing"}},"atlassian-typography-adg3":{id:"typography-adg3",displayName:"ADG3 Typography",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-shape":{id:"shape",displayName:"Atlassian Shape",palette:"shapePalette",attributes:{type:"shape"}},"atlassian-typography-modernized":{id:"typography-modernized",displayName:"Atlassian Typography (Modernized)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-typography-refreshed":{id:"typography-refreshed",displayName:"Atlassian Typography (Refreshed)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-light-brand-refresh":{id:"light-brand-refresh",displayName:"Light theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"light"}},"atlassian-dark-brand-refresh":{id:"dark-brand-refresh",displayName:"Dark theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"dark"}}};const me={"color.text":"--ds-text","color.text.accent.lime":"--ds-text-accent-lime","color.text.accent.lime.bolder":"--ds-text-accent-lime-bolder","color.text.accent.red":"--ds-text-accent-red","color.text.accent.red.bolder":"--ds-text-accent-red-bolder","color.text.accent.orange":"--ds-text-accent-orange","color.text.accent.orange.bolder":"--ds-text-accent-orange-bolder","color.text.accent.yellow":"--ds-text-accent-yellow","color.text.accent.yellow.bolder":"--ds-text-accent-yellow-bolder","color.text.accent.green":"--ds-text-accent-green","color.text.accent.green.bolder":"--ds-text-accent-green-bolder","color.text.accent.teal":"--ds-text-accent-teal","color.text.accent.teal.bolder":"--ds-text-accent-teal-bolder","color.text.accent.blue":"--ds-text-accent-blue","color.text.accent.blue.bolder":"--ds-text-accent-blue-bolder","color.text.accent.purple":"--ds-text-accent-purple","color.text.accent.purple.bolder":"--ds-text-accent-purple-bolder","color.text.accent.magenta":"--ds-text-accent-magenta","color.text.accent.magenta.bolder":"--ds-text-accent-magenta-bolder","color.text.accent.gray":"--ds-text-accent-gray","color.text.accent.gray.bolder":"--ds-text-accent-gray-bolder","color.text.disabled":"--ds-text-disabled","color.text.inverse":"--ds-text-inverse","color.text.selected":"--ds-text-selected","color.text.brand":"--ds-text-brand","color.text.danger":"--ds-text-danger","color.text.warning":"--ds-text-warning","color.text.warning.inverse":"--ds-text-warning-inverse","color.text.success":"--ds-text-success","color.text.discovery":"--ds-text-discovery","color.text.information":"--ds-text-information","color.text.subtlest":"--ds-text-subtlest","color.text.subtle":"--ds-text-subtle","color.link":"--ds-link","color.link.pressed":"--ds-link-pressed","color.link.visited":"--ds-link-visited","color.link.visited.pressed":"--ds-link-visited-pressed","color.icon":"--ds-icon","color.icon.accent.lime":"--ds-icon-accent-lime","color.icon.accent.red":"--ds-icon-accent-red","color.icon.accent.orange":"--ds-icon-accent-orange","color.icon.accent.yellow":"--ds-icon-accent-yellow","color.icon.accent.green":"--ds-icon-accent-green","color.icon.accent.teal":"--ds-icon-accent-teal","color.icon.accent.blue":"--ds-icon-accent-blue","color.icon.accent.purple":"--ds-icon-accent-purple","color.icon.accent.magenta":"--ds-icon-accent-magenta","color.icon.accent.gray":"--ds-icon-accent-gray","color.icon.disabled":"--ds-icon-disabled","color.icon.inverse":"--ds-icon-inverse","color.icon.selected":"--ds-icon-selected","color.icon.brand":"--ds-icon-brand","color.icon.danger":"--ds-icon-danger","color.icon.warning":"--ds-icon-warning","color.icon.warning.inverse":"--ds-icon-warning-inverse","color.icon.success":"--ds-icon-success","color.icon.discovery":"--ds-icon-discovery","color.icon.information":"--ds-icon-information","color.icon.subtlest":"--ds-icon-subtlest","color.icon.subtle":"--ds-icon-subtle","color.border":"--ds-border","color.border.accent.lime":"--ds-border-accent-lime","color.border.accent.red":"--ds-border-accent-red","color.border.accent.orange":"--ds-border-accent-orange","color.border.accent.yellow":"--ds-border-accent-yellow","color.border.accent.green":"--ds-border-accent-green","color.border.accent.teal":"--ds-border-accent-teal","color.border.accent.blue":"--ds-border-accent-blue","color.border.accent.purple":"--ds-border-accent-purple","color.border.accent.magenta":"--ds-border-accent-magenta","color.border.accent.gray":"--ds-border-accent-gray","color.border.disabled":"--ds-border-disabled","color.border.focused":"--ds-border-focused","color.border.input":"--ds-border-input","color.border.inverse":"--ds-border-inverse","color.border.selected":"--ds-border-selected","color.border.brand":"--ds-border-brand","color.border.danger":"--ds-border-danger","color.border.warning":"--ds-border-warning","color.border.success":"--ds-border-success","color.border.discovery":"--ds-border-discovery","color.border.information":"--ds-border-information","color.border.bold":"--ds-border-bold","color.background.accent.lime.subtlest":"--ds-background-accent-lime-subtlest","color.background.accent.lime.subtlest.hovered":"--ds-background-accent-lime-subtlest-hovered","color.background.accent.lime.subtlest.pressed":"--ds-background-accent-lime-subtlest-pressed","color.background.accent.lime.subtler":"--ds-background-accent-lime-subtler","color.background.accent.lime.subtler.hovered":"--ds-background-accent-lime-subtler-hovered","color.background.accent.lime.subtler.pressed":"--ds-background-accent-lime-subtler-pressed","color.background.accent.lime.subtle":"--ds-background-accent-lime-subtle","color.background.accent.lime.subtle.hovered":"--ds-background-accent-lime-subtle-hovered","color.background.accent.lime.subtle.pressed":"--ds-background-accent-lime-subtle-pressed","color.background.accent.lime.bolder":"--ds-background-accent-lime-bolder","color.background.accent.lime.bolder.hovered":"--ds-background-accent-lime-bolder-hovered","color.background.accent.lime.bolder.pressed":"--ds-background-accent-lime-bolder-pressed","color.background.accent.red.subtlest":"--ds-background-accent-red-subtlest","color.background.accent.red.subtlest.hovered":"--ds-background-accent-red-subtlest-hovered","color.background.accent.red.subtlest.pressed":"--ds-background-accent-red-subtlest-pressed","color.background.accent.red.subtler":"--ds-background-accent-red-subtler","color.background.accent.red.subtler.hovered":"--ds-background-accent-red-subtler-hovered","color.background.accent.red.subtler.pressed":"--ds-background-accent-red-subtler-pressed","color.background.accent.red.subtle":"--ds-background-accent-red-subtle","color.background.accent.red.subtle.hovered":"--ds-background-accent-red-subtle-hovered","color.background.accent.red.subtle.pressed":"--ds-background-accent-red-subtle-pressed","color.background.accent.red.bolder":"--ds-background-accent-red-bolder","color.background.accent.red.bolder.hovered":"--ds-background-accent-red-bolder-hovered","color.background.accent.red.bolder.pressed":"--ds-background-accent-red-bolder-pressed","color.background.accent.orange.subtlest":"--ds-background-accent-orange-subtlest","color.background.accent.orange.subtlest.hovered":"--ds-background-accent-orange-subtlest-hovered","color.background.accent.orange.subtlest.pressed":"--ds-background-accent-orange-subtlest-pressed","color.background.accent.orange.subtler":"--ds-background-accent-orange-subtler","color.background.accent.orange.subtler.hovered":"--ds-background-accent-orange-subtler-hovered","color.background.accent.orange.subtler.pressed":"--ds-background-accent-orange-subtler-pressed","color.background.accent.orange.subtle":"--ds-background-accent-orange-subtle","color.background.accent.orange.subtle.hovered":"--ds-background-accent-orange-subtle-hovered","color.background.accent.orange.subtle.pressed":"--ds-background-accent-orange-subtle-pressed","color.background.accent.orange.bolder":"--ds-background-accent-orange-bolder","color.background.accent.orange.bolder.hovered":"--ds-background-accent-orange-bolder-hovered","color.background.accent.orange.bolder.pressed":"--ds-background-accent-orange-bolder-pressed","color.background.accent.yellow.subtlest":"--ds-background-accent-yellow-subtlest","color.background.accent.yellow.subtlest.hovered":"--ds-background-accent-yellow-subtlest-hovered","color.background.accent.yellow.subtlest.pressed":"--ds-background-accent-yellow-subtlest-pressed","color.background.accent.yellow.subtler":"--ds-background-accent-yellow-subtler","color.background.accent.yellow.subtler.hovered":"--ds-background-accent-yellow-subtler-hovered","color.background.accent.yellow.subtler.pressed":"--ds-background-accent-yellow-subtler-pressed","color.background.accent.yellow.subtle":"--ds-background-accent-yellow-subtle","color.background.accent.yellow.subtle.hovered":"--ds-background-accent-yellow-subtle-hovered","color.background.accent.yellow.subtle.pressed":"--ds-background-accent-yellow-subtle-pressed","color.background.accent.yellow.bolder":"--ds-background-accent-yellow-bolder","color.background.accent.yellow.bolder.hovered":"--ds-background-accent-yellow-bolder-hovered","color.background.accent.yellow.bolder.pressed":"--ds-background-accent-yellow-bolder-pressed","color.background.accent.green.subtlest":"--ds-background-accent-green-subtlest","color.background.accent.green.subtlest.hovered":"--ds-background-accent-green-subtlest-hovered","color.background.accent.green.subtlest.pressed":"--ds-background-accent-green-subtlest-pressed","color.background.accent.green.subtler":"--ds-background-accent-green-subtler","color.background.accent.green.subtler.hovered":"--ds-background-accent-green-subtler-hovered","color.background.accent.green.subtler.pressed":"--ds-background-accent-green-subtler-pressed","color.background.accent.green.subtle":"--ds-background-accent-green-subtle","color.background.accent.green.subtle.hovered":"--ds-background-accent-green-subtle-hovered","color.background.accent.green.subtle.pressed":"--ds-background-accent-green-subtle-pressed","color.background.accent.green.bolder":"--ds-background-accent-green-bolder","color.background.accent.green.bolder.hovered":"--ds-background-accent-green-bolder-hovered","color.background.accent.green.bolder.pressed":"--ds-background-accent-green-bolder-pressed","color.background.accent.teal.subtlest":"--ds-background-accent-teal-subtlest","color.background.accent.teal.subtlest.hovered":"--ds-background-accent-teal-subtlest-hovered","color.background.accent.teal.subtlest.pressed":"--ds-background-accent-teal-subtlest-pressed","color.background.accent.teal.subtler":"--ds-background-accent-teal-subtler","color.background.accent.teal.subtler.hovered":"--ds-background-accent-teal-subtler-hovered","color.background.accent.teal.subtler.pressed":"--ds-background-accent-teal-subtler-pressed","color.background.accent.teal.subtle":"--ds-background-accent-teal-subtle","color.background.accent.teal.subtle.hovered":"--ds-background-accent-teal-subtle-hovered","color.background.accent.teal.subtle.pressed":"--ds-background-accent-teal-subtle-pressed","color.background.accent.teal.bolder":"--ds-background-accent-teal-bolder","color.background.accent.teal.bolder.hovered":"--ds-background-accent-teal-bolder-hovered","color.background.accent.teal.bolder.pressed":"--ds-background-accent-teal-bolder-pressed","color.background.accent.blue.subtlest":"--ds-background-accent-blue-subtlest","color.background.accent.blue.subtlest.hovered":"--ds-background-accent-blue-subtlest-hovered","color.background.accent.blue.subtlest.pressed":"--ds-background-accent-blue-subtlest-pressed","color.background.accent.blue.subtler":"--ds-background-accent-blue-subtler","color.background.accent.blue.subtler.hovered":"--ds-background-accent-blue-subtler-hovered","color.background.accent.blue.subtler.pressed":"--ds-background-accent-blue-subtler-pressed","color.background.accent.blue.subtle":"--ds-background-accent-blue-subtle","color.background.accent.blue.subtle.hovered":"--ds-background-accent-blue-subtle-hovered","color.background.accent.blue.subtle.pressed":"--ds-background-accent-blue-subtle-pressed","color.background.accent.blue.bolder":"--ds-background-accent-blue-bolder","color.background.accent.blue.bolder.hovered":"--ds-background-accent-blue-bolder-hovered","color.background.accent.blue.bolder.pressed":"--ds-background-accent-blue-bolder-pressed","color.background.accent.purple.subtlest":"--ds-background-accent-purple-subtlest","color.background.accent.purple.subtlest.hovered":"--ds-background-accent-purple-subtlest-hovered","color.background.accent.purple.subtlest.pressed":"--ds-background-accent-purple-subtlest-pressed","color.background.accent.purple.subtler":"--ds-background-accent-purple-subtler","color.background.accent.purple.subtler.hovered":"--ds-background-accent-purple-subtler-hovered","color.background.accent.purple.subtler.pressed":"--ds-background-accent-purple-subtler-pressed","color.background.accent.purple.subtle":"--ds-background-accent-purple-subtle","color.background.accent.purple.subtle.hovered":"--ds-background-accent-purple-subtle-hovered","color.background.accent.purple.subtle.pressed":"--ds-background-accent-purple-subtle-pressed","color.background.accent.purple.bolder":"--ds-background-accent-purple-bolder","color.background.accent.purple.bolder.hovered":"--ds-background-accent-purple-bolder-hovered","color.background.accent.purple.bolder.pressed":"--ds-background-accent-purple-bolder-pressed","color.background.accent.magenta.subtlest":"--ds-background-accent-magenta-subtlest","color.background.accent.magenta.subtlest.hovered":"--ds-background-accent-magenta-subtlest-hovered","color.background.accent.magenta.subtlest.pressed":"--ds-background-accent-magenta-subtlest-pressed","color.background.accent.magenta.subtler":"--ds-background-accent-magenta-subtler","color.background.accent.magenta.subtler.hovered":"--ds-background-accent-magenta-subtler-hovered","color.background.accent.magenta.subtler.pressed":"--ds-background-accent-magenta-subtler-pressed","color.background.accent.magenta.subtle":"--ds-background-accent-magenta-subtle","color.background.accent.magenta.subtle.hovered":"--ds-background-accent-magenta-subtle-hovered","color.background.accent.magenta.subtle.pressed":"--ds-background-accent-magenta-subtle-pressed","color.background.accent.magenta.bolder":"--ds-background-accent-magenta-bolder","color.background.accent.magenta.bolder.hovered":"--ds-background-accent-magenta-bolder-hovered","color.background.accent.magenta.bolder.pressed":"--ds-background-accent-magenta-bolder-pressed","color.background.accent.gray.subtlest":"--ds-background-accent-gray-subtlest","color.background.accent.gray.subtlest.hovered":"--ds-background-accent-gray-subtlest-hovered","color.background.accent.gray.subtlest.pressed":"--ds-background-accent-gray-subtlest-pressed","color.background.accent.gray.subtler":"--ds-background-accent-gray-subtler","color.background.accent.gray.subtler.hovered":"--ds-background-accent-gray-subtler-hovered","color.background.accent.gray.subtler.pressed":"--ds-background-accent-gray-subtler-pressed","color.background.accent.gray.subtle":"--ds-background-accent-gray-subtle","color.background.accent.gray.subtle.hovered":"--ds-background-accent-gray-subtle-hovered","color.background.accent.gray.subtle.pressed":"--ds-background-accent-gray-subtle-pressed","color.background.accent.gray.bolder":"--ds-background-accent-gray-bolder","color.background.accent.gray.bolder.hovered":"--ds-background-accent-gray-bolder-hovered","color.background.accent.gray.bolder.pressed":"--ds-background-accent-gray-bolder-pressed","color.background.disabled":"--ds-background-disabled","color.background.input":"--ds-background-input","color.background.input.hovered":"--ds-background-input-hovered","color.background.input.pressed":"--ds-background-input-pressed","color.background.inverse.subtle":"--ds-background-inverse-subtle","color.background.inverse.subtle.hovered":"--ds-background-inverse-subtle-hovered","color.background.inverse.subtle.pressed":"--ds-background-inverse-subtle-pressed","color.background.neutral":"--ds-background-neutral","color.background.neutral.hovered":"--ds-background-neutral-hovered","color.background.neutral.pressed":"--ds-background-neutral-pressed","color.background.neutral.subtle":"--ds-background-neutral-subtle","color.background.neutral.subtle.hovered":"--ds-background-neutral-subtle-hovered","color.background.neutral.subtle.pressed":"--ds-background-neutral-subtle-pressed","color.background.neutral.bold":"--ds-background-neutral-bold","color.background.neutral.bold.hovered":"--ds-background-neutral-bold-hovered","color.background.neutral.bold.pressed":"--ds-background-neutral-bold-pressed","color.background.selected":"--ds-background-selected","color.background.selected.hovered":"--ds-background-selected-hovered","color.background.selected.pressed":"--ds-background-selected-pressed","color.background.selected.bold":"--ds-background-selected-bold","color.background.selected.bold.hovered":"--ds-background-selected-bold-hovered","color.background.selected.bold.pressed":"--ds-background-selected-bold-pressed","color.background.brand.subtlest":"--ds-background-brand-subtlest","color.background.brand.subtlest.hovered":"--ds-background-brand-subtlest-hovered","color.background.brand.subtlest.pressed":"--ds-background-brand-subtlest-pressed","color.background.brand.bold":"--ds-background-brand-bold","color.background.brand.bold.hovered":"--ds-background-brand-bold-hovered","color.background.brand.bold.pressed":"--ds-background-brand-bold-pressed","color.background.brand.boldest":"--ds-background-brand-boldest","color.background.brand.boldest.hovered":"--ds-background-brand-boldest-hovered","color.background.brand.boldest.pressed":"--ds-background-brand-boldest-pressed","color.background.danger":"--ds-background-danger","color.background.danger.hovered":"--ds-background-danger-hovered","color.background.danger.pressed":"--ds-background-danger-pressed","color.background.danger.bold":"--ds-background-danger-bold","color.background.danger.bold.hovered":"--ds-background-danger-bold-hovered","color.background.danger.bold.pressed":"--ds-background-danger-bold-pressed","color.background.warning":"--ds-background-warning","color.background.warning.hovered":"--ds-background-warning-hovered","color.background.warning.pressed":"--ds-background-warning-pressed","color.background.warning.bold":"--ds-background-warning-bold","color.background.warning.bold.hovered":"--ds-background-warning-bold-hovered","color.background.warning.bold.pressed":"--ds-background-warning-bold-pressed","color.background.success":"--ds-background-success","color.background.success.hovered":"--ds-background-success-hovered","color.background.success.pressed":"--ds-background-success-pressed","color.background.success.bold":"--ds-background-success-bold","color.background.success.bold.hovered":"--ds-background-success-bold-hovered","color.background.success.bold.pressed":"--ds-background-success-bold-pressed","color.background.discovery":"--ds-background-discovery","color.background.discovery.hovered":"--ds-background-discovery-hovered","color.background.discovery.pressed":"--ds-background-discovery-pressed","color.background.discovery.bold":"--ds-background-discovery-bold","color.background.discovery.bold.hovered":"--ds-background-discovery-bold-hovered","color.background.discovery.bold.pressed":"--ds-background-discovery-bold-pressed","color.background.information":"--ds-background-information","color.background.information.hovered":"--ds-background-information-hovered","color.background.information.pressed":"--ds-background-information-pressed","color.background.information.bold":"--ds-background-information-bold","color.background.information.bold.hovered":"--ds-background-information-bold-hovered","color.background.information.bold.pressed":"--ds-background-information-bold-pressed","color.blanket":"--ds-blanket","color.blanket.selected":"--ds-blanket-selected","color.blanket.danger":"--ds-blanket-danger","color.interaction.hovered":"--ds-interaction-hovered","color.interaction.pressed":"--ds-interaction-pressed","color.skeleton":"--ds-skeleton","color.skeleton.subtle":"--ds-skeleton-subtle","color.chart.categorical.1":"--ds-chart-categorical-1","color.chart.categorical.1.hovered":"--ds-chart-categorical-1-hovered","color.chart.categorical.2":"--ds-chart-categorical-2","color.chart.categorical.2.hovered":"--ds-chart-categorical-2-hovered","color.chart.categorical.3":"--ds-chart-categorical-3","color.chart.categorical.3.hovered":"--ds-chart-categorical-3-hovered","color.chart.categorical.4":"--ds-chart-categorical-4","color.chart.categorical.4.hovered":"--ds-chart-categorical-4-hovered","color.chart.categorical.5":"--ds-chart-categorical-5","color.chart.categorical.5.hovered":"--ds-chart-categorical-5-hovered","color.chart.categorical.6":"--ds-chart-categorical-6","color.chart.categorical.6.hovered":"--ds-chart-categorical-6-hovered","color.chart.categorical.7":"--ds-chart-categorical-7","color.chart.categorical.7.hovered":"--ds-chart-categorical-7-hovered","color.chart.categorical.8":"--ds-chart-categorical-8","color.chart.categorical.8.hovered":"--ds-chart-categorical-8-hovered","color.chart.lime.bold":"--ds-chart-lime-bold","color.chart.lime.bold.hovered":"--ds-chart-lime-bold-hovered","color.chart.lime.bolder":"--ds-chart-lime-bolder","color.chart.lime.bolder.hovered":"--ds-chart-lime-bolder-hovered","color.chart.lime.boldest":"--ds-chart-lime-boldest","color.chart.lime.boldest.hovered":"--ds-chart-lime-boldest-hovered","color.chart.neutral":"--ds-chart-neutral","color.chart.neutral.hovered":"--ds-chart-neutral-hovered","color.chart.red.bold":"--ds-chart-red-bold","color.chart.red.bold.hovered":"--ds-chart-red-bold-hovered","color.chart.red.bolder":"--ds-chart-red-bolder","color.chart.red.bolder.hovered":"--ds-chart-red-bolder-hovered","color.chart.red.boldest":"--ds-chart-red-boldest","color.chart.red.boldest.hovered":"--ds-chart-red-boldest-hovered","color.chart.orange.bold":"--ds-chart-orange-bold","color.chart.orange.bold.hovered":"--ds-chart-orange-bold-hovered","color.chart.orange.bolder":"--ds-chart-orange-bolder","color.chart.orange.bolder.hovered":"--ds-chart-orange-bolder-hovered","color.chart.orange.boldest":"--ds-chart-orange-boldest","color.chart.orange.boldest.hovered":"--ds-chart-orange-boldest-hovered","color.chart.yellow.bold":"--ds-chart-yellow-bold","color.chart.yellow.bold.hovered":"--ds-chart-yellow-bold-hovered","color.chart.yellow.bolder":"--ds-chart-yellow-bolder","color.chart.yellow.bolder.hovered":"--ds-chart-yellow-bolder-hovered","color.chart.yellow.boldest":"--ds-chart-yellow-boldest","color.chart.yellow.boldest.hovered":"--ds-chart-yellow-boldest-hovered","color.chart.green.bold":"--ds-chart-green-bold","color.chart.green.bold.hovered":"--ds-chart-green-bold-hovered","color.chart.green.bolder":"--ds-chart-green-bolder","color.chart.green.bolder.hovered":"--ds-chart-green-bolder-hovered","color.chart.green.boldest":"--ds-chart-green-boldest","color.chart.green.boldest.hovered":"--ds-chart-green-boldest-hovered","color.chart.teal.bold":"--ds-chart-teal-bold","color.chart.teal.bold.hovered":"--ds-chart-teal-bold-hovered","color.chart.teal.bolder":"--ds-chart-teal-bolder","color.chart.teal.bolder.hovered":"--ds-chart-teal-bolder-hovered","color.chart.teal.boldest":"--ds-chart-teal-boldest","color.chart.teal.boldest.hovered":"--ds-chart-teal-boldest-hovered","color.chart.blue.bold":"--ds-chart-blue-bold","color.chart.blue.bold.hovered":"--ds-chart-blue-bold-hovered","color.chart.blue.bolder":"--ds-chart-blue-bolder","color.chart.blue.bolder.hovered":"--ds-chart-blue-bolder-hovered","color.chart.blue.boldest":"--ds-chart-blue-boldest","color.chart.blue.boldest.hovered":"--ds-chart-blue-boldest-hovered","color.chart.purple.bold":"--ds-chart-purple-bold","color.chart.purple.bold.hovered":"--ds-chart-purple-bold-hovered","color.chart.purple.bolder":"--ds-chart-purple-bolder","color.chart.purple.bolder.hovered":"--ds-chart-purple-bolder-hovered","color.chart.purple.boldest":"--ds-chart-purple-boldest","color.chart.purple.boldest.hovered":"--ds-chart-purple-boldest-hovered","color.chart.magenta.bold":"--ds-chart-magenta-bold","color.chart.magenta.bold.hovered":"--ds-chart-magenta-bold-hovered","color.chart.magenta.bolder":"--ds-chart-magenta-bolder","color.chart.magenta.bolder.hovered":"--ds-chart-magenta-bolder-hovered","color.chart.magenta.boldest":"--ds-chart-magenta-boldest","color.chart.magenta.boldest.hovered":"--ds-chart-magenta-boldest-hovered","color.chart.gray.bold":"--ds-chart-gray-bold","color.chart.gray.bold.hovered":"--ds-chart-gray-bold-hovered","color.chart.gray.bolder":"--ds-chart-gray-bolder","color.chart.gray.bolder.hovered":"--ds-chart-gray-bolder-hovered","color.chart.gray.boldest":"--ds-chart-gray-boldest","color.chart.gray.boldest.hovered":"--ds-chart-gray-boldest-hovered","color.chart.brand":"--ds-chart-brand","color.chart.brand.hovered":"--ds-chart-brand-hovered","color.chart.danger":"--ds-chart-danger","color.chart.danger.hovered":"--ds-chart-danger-hovered","color.chart.danger.bold":"--ds-chart-danger-bold","color.chart.danger.bold.hovered":"--ds-chart-danger-bold-hovered","color.chart.warning":"--ds-chart-warning","color.chart.warning.hovered":"--ds-chart-warning-hovered","color.chart.warning.bold":"--ds-chart-warning-bold","color.chart.warning.bold.hovered":"--ds-chart-warning-bold-hovered","color.chart.success":"--ds-chart-success","color.chart.success.hovered":"--ds-chart-success-hovered","color.chart.success.bold":"--ds-chart-success-bold","color.chart.success.bold.hovered":"--ds-chart-success-bold-hovered","color.chart.discovery":"--ds-chart-discovery","color.chart.discovery.hovered":"--ds-chart-discovery-hovered","color.chart.discovery.bold":"--ds-chart-discovery-bold","color.chart.discovery.bold.hovered":"--ds-chart-discovery-bold-hovered","color.chart.information":"--ds-chart-information","color.chart.information.hovered":"--ds-chart-information-hovered","color.chart.information.bold":"--ds-chart-information-bold","color.chart.information.bold.hovered":"--ds-chart-information-bold-hovered","elevation.surface":"--ds-surface","elevation.surface.hovered":"--ds-surface-hovered","elevation.surface.pressed":"--ds-surface-pressed","elevation.surface.overlay":"--ds-surface-overlay","elevation.surface.overlay.hovered":"--ds-surface-overlay-hovered","elevation.surface.overlay.pressed":"--ds-surface-overlay-pressed","elevation.surface.raised":"--ds-surface-raised","elevation.surface.raised.hovered":"--ds-surface-raised-hovered","elevation.surface.raised.pressed":"--ds-surface-raised-pressed","elevation.surface.sunken":"--ds-surface-sunken","elevation.shadow.overflow":"--ds-shadow-overflow","elevation.shadow.overflow.perimeter":"--ds-shadow-overflow-perimeter","elevation.shadow.overflow.spread":"--ds-shadow-overflow-spread","elevation.shadow.overlay":"--ds-shadow-overlay","elevation.shadow.raised":"--ds-shadow-raised","opacity.disabled":"--ds-opacity-disabled","opacity.loading":"--ds-opacity-loading","utility.UNSAFE.textTransformUppercase":"--ds-UNSAFE-textTransformUppercase","utility.UNSAFE.transparent":"--ds-UNSAFE-transparent","utility.elevation.surface.current":"--ds-elevation-surface-current","border.radius.050":"--ds-border-radius-050","border.radius":"--ds-border-radius","border.radius.100":"--ds-border-radius-100","border.radius.200":"--ds-border-radius-200","border.radius.300":"--ds-border-radius-300","border.radius.400":"--ds-border-radius-400","border.radius.circle":"--ds-border-radius-circle","border.width":"--ds-border-width","border.width.0":"--ds-border-width-0","border.width.indicator":"--ds-border-width-indicator","border.width.outline":"--ds-border-width-outline","space.0":"--ds-space-0","space.025":"--ds-space-025","space.050":"--ds-space-050","space.075":"--ds-space-075","space.100":"--ds-space-100","space.150":"--ds-space-150","space.200":"--ds-space-200","space.250":"--ds-space-250","space.300":"--ds-space-300","space.400":"--ds-space-400","space.500":"--ds-space-500","space.600":"--ds-space-600","space.800":"--ds-space-800","space.1000":"--ds-space-1000","space.negative.025":"--ds-space-negative-025","space.negative.050":"--ds-space-negative-050","space.negative.075":"--ds-space-negative-075","space.negative.100":"--ds-space-negative-100","space.negative.150":"--ds-space-negative-150","space.negative.200":"--ds-space-negative-200","space.negative.250":"--ds-space-negative-250","space.negative.300":"--ds-space-negative-300","space.negative.400":"--ds-space-negative-400","font.heading.xxlarge":"--ds-font-heading-xxlarge","font.heading.xlarge":"--ds-font-heading-xlarge","font.heading.large":"--ds-font-heading-large","font.heading.medium":"--ds-font-heading-medium","font.heading.small":"--ds-font-heading-small","font.heading.xsmall":"--ds-font-heading-xsmall","font.heading.xxsmall":"--ds-font-heading-xxsmall","font.body.large":"--ds-font-body-large","font.body":"--ds-font-body","font.body.small":"--ds-font-body-small","font.body.UNSAFE_small":"--ds-font-body-UNSAFE_small","font.code":"--ds-font-code","font.weight.regular":"--ds-font-weight-regular","font.weight.medium":"--ds-font-weight-medium","font.weight.semibold":"--ds-font-weight-semibold","font.weight.bold":"--ds-font-weight-bold","font.family.heading":"--ds-font-family-heading","font.family.body":"--ds-font-family-body","font.family.code":"--ds-font-family-code","font.family.brand.heading":"--ds-font-family-brand-heading","font.family.brand.body":"--ds-font-family-brand-body"};var _e="data-theme",ke="data-color-mode",we="data-contrast-mode",Ee="data-custom-theme",xe="--".concat("ds","-token-not-found"),Oe="--".concat("ds","-elevation-surface-current"),Se=function(){var e=f(b().mark((function e(t,r){var n,o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(o=null===(n=window)||void 0===n?void 0:n.analyticsWebClient)&&(a=!!document.querySelector("style[data-theme]"),o.sendEvent({type:"TRACK",payload:{action:"called_at_runtime",actionSubject:"token",source:"design-system",attributes:{url:window.location.href,token:t,fallback:r,isThemeEnabled:a}}}))}catch(e){console.error(e)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();const Te=function(e,t){pe("platform-token-runtime-call-tracking")&&Se(e,t);var r=me[e];return r||(r=xe),t?"var(".concat(r,", ").concat(t,")"):"var(".concat(r,")")};const Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=me[e],n=t;return"undefined"==typeof window?n:n=(n=window.getComputedStyle(document.documentElement).getPropertyValue(r).trim())||t};var Ae=function(e){return/^#[0-9A-F]{6}$/i.test(e)};var Ce=["light","dark","spacing","typography","shape"],Pe="UNSAFE_themeOptions",Ie=function(e){return void 0!==Ce.find((function(t){return t===e}))},Me=function(e){return void 0!==ge.find((function(t){return t===e}))},De=function(e){return["light","dark","auto"].includes(e)},je=function(e){return e.split(" ").map((function(e){return e.split(/:([^]*)/)})).reduce((function(e,t){var r=h(t,2),n=r[0],o=r[1];if("colorMode"===n&&De(o)&&(e[n]=o),Ie(n)&&Me(o)&&(e[n]=o),n===Pe)try{e[Pe]=JSON.parse(o)}catch(e){new Error("Invalid custom theme string")}return e}),{})},Ue=function(e){return Object.entries(e).reduce((function(e,t){var r=h(t,2),o=r[0],a=r[1];return"colorMode"===o&&"string"==typeof a&&De(a)||o===Pe&&"object"===n(a)||Ie(o)&&"string"==typeof a&&Me(a)?e+"".concat(e?" ":"")+"".concat(o,":").concat("object"===n(a)?JSON.stringify(a):a):e}),"")},Ve=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return new Uint32Array([t])[0].toString(36)};function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?ve.colorMode:t,n=e.dark,o=void 0===n?ve.dark:n,a=e.light,i=void 0===a?ve.light:a,s=e.contrastMode,c=void 0===s?ve.contrastMode:s,u=e.shape,d=void 0===u?ve.shape:u,h=e.spacing,p=void 0===h?ve.spacing:h,f=e.typography,g=void 0===f?ve.typography():f,b=e.UNSAFE_themeOptions,v=void 0===b?ve.UNSAFE_themeOptions:b,y=Ue({dark:o,light:i,shape:d,spacing:p,typography:g}),m=l(l({},_e,y),ke,"auto"===r?"light":r);if(pe("platform_increased-contrast-themes")&&(m=Ge(Ge({},m),{},l({},we,"auto"===c?"no-preference":c))),v&&Ae(v.brandColor)){var _=JSON.stringify(v),k=Ve(_);m[Ee]=k}return m};var Fe=o(833);const Ke={light:()=>o.e(381).then(o.bind(o,301)),"light-future":()=>o.e(567).then(o.bind(o,201)),dark:()=>o.e(479).then(o.bind(o,333)),"dark-future":()=>o.e(917).then(o.bind(o,294)),"legacy-light":()=>o.e(177).then(o.bind(o,19)),"legacy-dark":()=>o.e(915).then(o.bind(o,451)),spacing:()=>o.e(498).then(o.bind(o,520)),shape:()=>o.e(138).then(o.bind(o,416)),"typography-adg3":()=>o.e(592).then(o.bind(o,838)),"typography-modernized":()=>o.e(186).then(o.bind(o,956)),"typography-refreshed":()=>o.e(213).then(o.bind(o,203)),original:()=>Promise.resolve("")};var ze=function(){var e=f(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!document.head.querySelector("style[".concat(_e,'="').concat(t,'"]:not([').concat(Ee,"])"))){e.next=2;break}return e.abrupt("return");case 2:if(t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,Be(t);case 6:r=e.sent,(n=document.createElement("style")).textContent=r,n.dataset.theme=t,document.head.appendChild(n);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Be=function(){var e=f(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"light"!==t&&"dark"!==t||!pe("platform-component-visual-refresh")||(t+="-brand-refresh"),e.next=3,Ke[t]();case 3:return r=e.sent,n=r.default,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),We="(prefers-color-scheme: dark)",qe="(prefers-contrast: more)";function Je(e){document.documentElement.setAttribute(ke,e.matches?"dark":"light")}var Ye="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(We);const Xe=new(function(){return c((function e(){r(this,e),l(this,"unbindThemeChangeListener",null)}),[{key:"getColorMode",value:function(){return Ye&&null!=Ye&&Ye.matches?"dark":"light"}},{key:"bind",value:function(){Ye&&null===this.unbindThemeChangeListener&&(this.unbindThemeChangeListener=(0,Fe.bind)(Ye,{type:"change",listener:Je}))}},{key:"unbind",value:function(){this.unbindThemeChangeListener&&(this.unbindThemeChangeListener(),this.unbindThemeChangeListener=null)}}])}());function He(e){document.documentElement.setAttribute(we,e.matches?"more":"no-preference")}var Qe="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(qe);const $e=new(function(){return c((function e(){r(this,e),l(this,"unbindContrastChangeListener",null)}),[{key:"getContrastMode",value:function(){return Qe&&null!=Qe&&Qe.matches?"more":"no-preference"}},{key:"bind",value:function(){Qe&&null===this.unbindContrastChangeListener&&(this.unbindContrastChangeListener=(0,Fe.bind)(Qe,{type:"change",listener:He}))}},{key:"unbind",value:function(){this.unbindContrastChangeListener&&(this.unbindContrastChangeListener(),this.unbindContrastChangeListener=null)}}])}());function Ze(e){"auto"===e.colorMode?(e.colorMode=Xe.getColorMode(),Xe.bind()):Xe.unbind(),pe("platform_increased-contrast-themes")&&("auto"===e.contrastMode?(e.contrastMode=$e.getContrastMode(),$e.bind()):$e.unbind());var t=Re(e);return Object.entries(t).forEach((function(e){var t=h(e,2),r=t[0],n=t[1];document.documentElement.setAttribute(r,n)})),function(){Xe.unbind(),pe("platform_increased-contrast-themes")&&$e.unbind()}}function et(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){var r=JSON.stringify(e),n=Ve(r),o=[];return("auto"===t?["light","dark"]:[t]).forEach((function(e){var t=document.head.querySelector("style[".concat(Ee,'="').concat(n,'"][').concat(_e,'="').concat(e,'"]'));t?document.head.appendChild(t):o.push(e)})),o}function rt(e){var t;return null===(t=Object.entries(ye).find((function(t){return h(t,2)[1].increasesContrastFor===e})))||void 0===t?void 0:t[1].id}var nt=function(e){var t=e.colorMode,r=e.contrastMode,n=e.dark,o=e.light,a=e.shape,i=e.spacing,s=e.typography,c=[o,n],l=[];if("auto"===t)"no-preference"!==r&&pe("platform_increased-contrast-themes")&&c.forEach((function(e){var t=rt(e);t&&c.push(t)})),l.push.apply(l,c);else if(l.push(e[t]),"no-preference"!==r&&pe("platform_increased-contrast-themes")){var u=rt(e[t]);u&&l.push(u)}return[a,i,s].forEach((function(e){e&&l.push(e)})),et(new Set(l))},ot=function(e){return et(new Set([]))};function at(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return it(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?it(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const st=function(){var e=f(b().mark((function e(){var t,r,n,o,a,i,s,c,l,u,d,h,p,g,v,y,m,_,k,w,E,x,O,S,T,L,A,C,P=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=P.length>0&&void 0!==P[0]?P[0]:{}).colorMode,n=void 0===r?ve.colorMode:r,o=t.contrastMode,a=void 0===o?ve.contrastMode:o,i=t.dark,s=void 0===i?ve.dark:i,c=t.light,l=void 0===c?ve.light:c,u=t.shape,d=void 0===u?ve.shape:u,h=t.spacing,p=void 0===h?ve.spacing:h,g=t.typography,v=void 0===g?ve.typography():g,y=t.UNSAFE_themeOptions,m=void 0===y?ve.UNSAFE_themeOptions:y,_=P.length>1?P[1]:void 0,pe("platform_increased-contrast-themes")||("light-increased-contrast"===l&&(l="light"),"dark-increased-contrast"===s&&(s="dark")),w=nt(k={colorMode:n,contrastMode:a,dark:s,light:l,shape:d,spacing:p,typography:v,UNSAFE_themeOptions:_?void 0:m}),E=_||ze,x=w.map(function(){var e=f(b().mark((function e(t){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),!_&&m&&Ae(null==m?void 0:m.brandColor)&&(O=tt(m,n||ve.colorMode)).length>0&&x.push(f(b().mark((function e(){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 2:t=e.sent,(0,t.loadAndAppendCustomThemeCss)({colorMode:2===O.length?"auto":O[0],UNSAFE_themeOptions:m});case 5:case"end":return e.stop()}}),e)})))()),e.next=10,Promise.all(x);case 10:S=ot(),T=at(S),e.prev=12,T.s();case 14:if((L=T.n()).done){e.next=20;break}return A=L.value,e.next=18,E(A);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),T.e(e.t0);case 25:return e.prev=25,T.f(),e.finish(25);case 28:return C=Ze(k),e.abrupt("return",C);case 30:case"end":return e.stop()}}),e,null,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}();const ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?ve.colorMode:t,n=e.contrastMode,o=void 0===n?ve.contrastMode:n,a=e.dark,i=void 0===a?ve.dark:a,s=e.light,c=void 0===s?ve.light:s,l=e.shape,u=void 0===l?ve.shape:l,d=e.spacing,h=void 0===d?ve.spacing:d,p=e.typography,f=void 0===p?ve.typography():p,g=e.UNSAFE_themeOptions,b=arguments.length>1?arguments[1]:void 0,v={colorMode:r,contrastMode:o,dark:i,light:c,shape:u,spacing:h,typography:f,UNSAFE_themeOptions:b?void 0:void 0===g?ve.UNSAFE_themeOptions:g},y=nt(v);return b&&y.map((function(e){return b(e)})),Ze(v)};const lt=function(){var e=f(b().mark((function e(t){var r,n,o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],"all"===t?(r=be,pe("platform_increased-contrast-themes")||(r=r.filter((function(e){return"light-increased-contrast"!==e&&"dark-increased-contrast"!==e}))),r=r.filter((function(e){return"light-brand-refresh"!==e&&"dark-brand-refresh"!==e}))):(o={colorMode:(null==t?void 0:t.colorMode)||ve.colorMode,contrastMode:(null==t?void 0:t.contrastMode)||ve.contrastMode,dark:(null==t?void 0:t.dark)||ve.dark,light:(null==t?void 0:t.light)||ve.light,shape:(null==t?void 0:t.shape)||ve.shape,spacing:(null==t?void 0:t.spacing)||ve.spacing,typography:(null==t?void 0:t.typography)||ve.typography()},r=nt(o),n=ot()),e.next=4,Promise.all([].concat(et([].concat(et(r),et(n)).map(function(){var e=f(b().mark((function e(t){var r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Be(t);case 3:return r=e.sent,e.abrupt("return",{id:t,attrs:{"data-theme":t},css:r});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",void 0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}())),[f(b().mark((function e(){var r,n,o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("all"===t||null==t||!t.UNSAFE_themeOptions||!Ae(null==t||null===(r=t.UNSAFE_themeOptions)||void 0===r?void 0:r.brandColor)){e.next=15;break}return e.prev=1,e.next=4,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 4:return n=e.sent,o=n.getCustomThemeStyles,e.next=8,o({colorMode:(null==t?void 0:t.colorMode)||ve.colorMode,UNSAFE_themeOptions:null==t?void 0:t.UNSAFE_themeOptions});case 8:return a=e.sent,e.abrupt("return",a);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))()]));case 4:return a=e.sent,e.abrupt("return",a.flat().filter((function(e){return void 0!==e})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const ut=function(e,t){if("auto"===e||"auto"===t){var r="auto"===e?"\n try {\n const darkModeMql = window.matchMedia('".concat(We,"');\n const colorMode = darkModeMql.matches ? 'dark' : 'light';\n document.documentElement.setAttribute('").concat(ke,"', colorMode);\n } catch (e) {}"):"",n="auto"===t&&pe("platform_increased-contrast-themes")?"\n try {\n const contrastModeMql = window.matchMedia('".concat(qe,"');\n const contrastMode = contrastModeMql.matches ? 'more' : 'no-preference';\n document.documentElement.setAttribute('").concat(we,"', contrastMode);\n } catch (e) {}"):"";return"(() => {".concat(r).concat(n,"})()")}};var dt=o(39),ht=o.n(dt);function pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const gt=function(){if("undefined"==typeof document)return{};var e=document.documentElement,t=e.getAttribute(ke)||"",r=e.getAttribute(_e)||"";return ft(ft({},je(r)),function(e){return void 0!==fe.find((function(t){return t===e}))}(t)&&{colorMode:t})};var bt=function(){function e(t){r(this,e),l(this,"legacyObserver",null),this.callback=t,e.callbacks.add(t)}return c(e,[{key:"observe",value:function(){e.observer||(e.observer=new MutationObserver((function(){var t=gt();e.callbacks.forEach((function(e){return e(t)}))})),e.observer.observe(document.documentElement,{attributeFilter:[_e,ke]}))}},{key:"disconnect",value:function(){this.callback&&e.callbacks.delete(this.callback),0===e.callbacks.size&&e.observer&&(e.observer.disconnect(),e.observer=null)}}])}();l(bt,"observer",null),l(bt,"callbacks",new Set);const vt=document.documentElement,yt="--aui-theme-testing-color",mt="color(srgb 1 0.75 0.8 / 0.6)",_t="aui-theme-testing",kt=`html.${_t}[data-theme*="light:"], html.${_t}[data-theme*="dark:"]`;function wt(e=mt){document.body.style.setProperty(yt,e)}function Et(){return vt.matches(kt)}function xt(){Et()||vt.classList.add(_t)}function Ot(){Et()&&vt.classList.remove(_t)}function St(e){null==e&&(e=!Et()),e?xt():Ot()}!function(){if(!!document.querySelector(kt))return;const e=`${yt}: ${mt};`,t=Object.values(me).map((e=>`\t${e}: var(${yt});`)),r=[e,...t],n=`/* This theme is autogenerated using AJS.DesignTokens.generateTestingTheme(). */\n${kt} {\n${r.join("\n")}\n}`,o=document.createElement("style");o.id="aui-design-tokens-testing-theme",o.innerText=n;const a=document.querySelector("head");a&&a.appendChild(o)}();const Tt="AJS";function Lt(){"object"!=typeof window[Tt]&&(window[Tt]={})}document.documentElement.hasAttribute("data-color-mode-auto")&&st({colorMode:"auto"});const{setGlobalTheme:At,token:Ct,getTokenValue:Pt,ThemeMutationObserver:It}=e,{setTestingThemeColor:Mt,enableTestingTheme:Dt,disableTestingTheme:jt,toggleTestingTheme:Ut}=t;var Vt,Nt;Vt="DesignTokens",Nt={setGlobalTheme:At,token:Ct,getTokenValue:Pt,ThemeMutationObserver:It,toggleTestingTheme:Ut,enableTestingTheme:Dt,disableTestingTheme:jt,setTestingThemeColor:Mt},Lt(),window[Tt][Vt]=Nt})(),a})()));
|
|
15
|
+
*/!function(o){var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(){this._events={},this._conf&&s.call(this,this._conf)}function s(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=e.maxListeners!==o?e.maxListeners:10,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this.newListener=e.newListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=10}function c(e,t){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=e,process.emitWarning(n)}else console.error(r),console.trace&&console.trace()}function l(e){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,s.call(this,e)}function u(e,t,r,n){if(!r)return[];var o,a,i,s,c,l,d,h=[],g=t.length,p=t[n],f=t[n+1];if(n===g&&r._listeners){if("function"==typeof r._listeners)return e&&e.push(r._listeners),[r];for(o=0,a=r._listeners.length;o<a;o++)e&&e.push(r._listeners[o]);return[r]}if("*"===p||"**"===p||r[p]){if("*"===p){for(i in r)"_listeners"!==i&&r.hasOwnProperty(i)&&(h=h.concat(u(e,t,r[i],n+1)));return h}if("**"===p){for(i in(d=n+1===g||n+2===g&&"*"===f)&&r._listeners&&(h=h.concat(u(e,t,r,g))),r)"_listeners"!==i&&r.hasOwnProperty(i)&&("*"===i||"**"===i?(r[i]._listeners&&!d&&(h=h.concat(u(e,t,r[i],g))),h=h.concat(u(e,t,r[i],n))):h=i===f?h.concat(u(e,t,r[i],n+2)):h.concat(u(e,t,r[i],n)));return h}h=h.concat(u(e,t,r[p],n+1))}if((s=r["*"])&&u(e,t,s,n+1),c=r["**"])if(n<g)for(i in c._listeners&&u(e,t,c,g),c)"_listeners"!==i&&c.hasOwnProperty(i)&&(i===f?u(e,t,c[i],n+2):i===p?u(e,t,c[i],n+1):((l={})[i]=c[i],u(e,t,{"**":l},n+1)));else c._listeners?u(e,t,c,g):c["*"]&&c["*"]._listeners&&u(e,t,c["*"],g);return h}function d(e,t){for(var r=0,n=(e="string"==typeof e?e.split(this.delimiter):e.slice()).length;r+1<n;r++)if("**"===e[r]&&"**"===e[r+1])return;for(var a=this.listenerTree,i=e.shift();i!==o;){if(a[i]||(a[i]={}),a=a[i],0===e.length)return a._listeners?("function"==typeof a._listeners&&(a._listeners=[a._listeners]),a._listeners.push(t),!a._listeners.warned&&this._maxListeners>0&&a._listeners.length>this._maxListeners&&(a._listeners.warned=!0,c.call(this,a._listeners.length,i))):a._listeners=t,!0;i=e.shift()}return!0}l.EventEmitter2=l,l.prototype.delimiter=".",l.prototype.setMaxListeners=function(e){e!==o&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},l.prototype.event="",l.prototype.once=function(e,t){return this._once(e,t,!1)},l.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},l.prototype._once=function(e,t,r){return this._many(e,1,t,r),this},l.prototype.many=function(e,t,r){return this._many(e,t,r,!1)},l.prototype.prependMany=function(e,t,r){return this._many(e,t,r,!0)},l.prototype._many=function(e,t,r,n){var o=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),r.apply(this,arguments)}return a._origin=r,this._on(e,a,n),o},l.prototype.emit=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return!1;var t,r,n,o,a,s=arguments.length;if(this._all&&this._all.length){if(a=this._all.slice(),s>3)for(t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this,e);break;case 2:a[n].call(this,e,arguments[1]);break;case 3:a[n].call(this,e,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}}if(this.wildcard){a=[];var c="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,c,this.listenerTree,0)}else{if("function"==typeof(a=this._events[e])){switch(this.event=e,s){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];a.apply(this,t)}return!0}a&&(a=a.slice())}if(a&&a.length){if(s>3)for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this);break;case 2:a[n].call(this,arguments[1]);break;case 3:a[n].call(this,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},l.prototype.emitAsync=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return Promise.resolve([!1]);var t,r,n,o,a,s=[],c=arguments.length;if(this._all){if(c>3)for(t=new Array(c),o=1;o<c;o++)t[o]=arguments[o];for(n=0,r=this._all.length;n<r;n++)switch(this.event=e,c){case 1:s.push(this._all[n].call(this,e));break;case 2:s.push(this._all[n].call(this,e,arguments[1]));break;case 3:s.push(this._all[n].call(this,e,arguments[1],arguments[2]));break;default:s.push(this._all[n].apply(this,t))}}if(this.wildcard){a=[];var l="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,l,this.listenerTree,0)}else a=this._events[e];if("function"==typeof a)switch(this.event=e,c){case 1:s.push(a.call(this));break;case 2:s.push(a.call(this,arguments[1]));break;case 3:s.push(a.call(this,arguments[1],arguments[2]));break;default:for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];s.push(a.apply(this,t))}else if(a&&a.length){if(a=a.slice(),c>3)for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,c){case 1:s.push(a[n].call(this));break;case 2:s.push(a[n].call(this,arguments[1]));break;case 3:s.push(a[n].call(this,arguments[1],arguments[2]));break;default:s.push(a[n].apply(this,t))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(s)},l.prototype.on=function(e,t){return this._on(e,t,!1)},l.prototype.prependListener=function(e,t){return this._on(e,t,!0)},l.prototype.onAny=function(e){return this._onAny(e,!1)},l.prototype.prependAny=function(e){return this._onAny(e,!0)},l.prototype.addListener=l.prototype.on,l.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},l.prototype._on=function(e,t,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||i.call(this),this.emit("newListener",e,t),this.wildcard?(d.call(this,e,t),this):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,c.call(this,this._events[e].length,e))):this._events[e]=t,this)},l.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var r,n=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();n=u.call(this,null,i,this.listenerTree,0)}else{if(!this._events[e])return this;r=this._events[e],n.push({_listeners:r})}for(var s=0;s<n.length;s++){var c=n[s];if(r=c._listeners,a(r)){for(var l=-1,d=0,h=r.length;d<h;d++)if(r[d]===t||r[d].listener&&r[d].listener===t||r[d]._origin&&r[d]._origin===t){l=d;break}if(l<0)continue;return this.wildcard?c._listeners.splice(l,1):this._events[e].splice(l,1),0===r.length&&(this.wildcard?delete c._listeners:delete this._events[e]),this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete c._listeners:delete this._events[e],this.emit("removeListener",e,t))}return function e(t){if(t!==o){var r=Object.keys(t);for(var n in r){var a=r[n],i=t[a];i instanceof Function||"object"!=typeof i||null===i||(Object.keys(i).length>0&&e(t[a]),0===Object.keys(i).length&&delete t[a])}}}(this.listenerTree),this},l.prototype.offAny=function(e){var t,r=0,n=0;if(e&&this._all&&this._all.length>0){for(r=0,n=(t=this._all).length;r<n;r++)if(e===t[r])return t.splice(r,1),this.emit("removeListenerAny",e),this}else{for(r=0,n=(t=this._all).length;r<n;r++)this.emit("removeListenerAny",t[r]);this._all=[]}return this},l.prototype.removeListener=l.prototype.off,l.prototype.removeAllListeners=function(e){if(0===arguments.length)return!this._events||i.call(this),this;if(this.wildcard)for(var t="string"==typeof e?e.split(this.delimiter):e.slice(),r=u.call(this,null,t,this.listenerTree,0),n=0;n<r.length;n++){r[n]._listeners=null}else this._events&&(this._events[e]=null);return this},l.prototype.listeners=function(e){if(this.wildcard){var t=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return u.call(this,t,r,this.listenerTree,0),t}return this._events||i.call(this),this._events[e]||(this._events[e]=[]),a(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},l.prototype.eventNames=function(){return Object.keys(this._events)},l.prototype.listenerCount=function(e){return this.listeners(e).length},l.prototype.listenersAny=function(){return this._all?this._all:[]},(n=function(){return l}.call(t,r,t,e))===o||(e.exports=n)}()},6039:()=>{},9541:(e,t,r)=>{var n=r(998).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function g(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new I(n||[]);return s(a,"_invoke",{value:j(e,r,i)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=g;var f="suspendedStart",v="suspendedYield",b="executing",y="completed",m={};function _(){}function k(){}function w(){}var O={};h(O,l,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(L([])));S&&S!==a&&i.call(S,l)&&(O=S);var x=w.prototype=_.prototype=Object.create(O);function P(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,a,s,c){var l=p(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;s(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function j(e,r,n){var o=f;return function(a,i){if(o===b)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var c=D(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=b;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?y:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,D(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return k.prototype=w,s(x,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:k,configurable:!0}),k.displayName=h(w,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,d,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},P(C.prototype),h(C.prototype,u,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new C(g(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},P(x),h(x,d,"Generator"),h(x,l,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=L,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},998:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6192:(e,t,r)=>{var n=r(9541)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},8657:(e,t,r)=>{"use strict";var n,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;const i=r(2132);t._getStatsigGlobal=()=>__STATSIG__||d;t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e];t._getInstance=e=>{const r=(0,t._getStatsigGlobal)();return e?r.instances&&r.instances[e]:(r.instances&&Object.keys(r.instances).length>1&&i.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 s="__STATSIG__",c="undefined"!=typeof window?window:{},l=void 0!==r.g?r.g:{},u="undefined"!=typeof globalThis?globalThis:{},d=null!==(a=null!==(o=null!==(n=c[s])&&void 0!==n?n:l[s])&&void 0!==o?o:u[s])&&void 0!==a?a:{instance:t._getInstance};c[s]=d,l[s]=d,u[s]=d},981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;const n=r(8210);function o(e,t,r){var o;if(r)return r(e,t);const a=t&&t.customIDs?t.customIDs:{},i=[`uid:${null!==(o=null==t?void 0:t.userID)&&void 0!==o?o:""}`,`cids:${Object.keys(a).sort(((e,t)=>e.localeCompare(t))).map((e=>`${e}-${a[e]}`)).join(",")}`,`k:${e}`];return(0,n._DJB2)(i.join("|"))}t._getUserStorageKey=o,t._getStorageKey=function(e,t,r){return t?o(e,t,r):(0,n._DJB2)(`k:${e}`)}},4399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8562:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;const o=r(2132),a=r(6286),i=r(4830),s=r(6346),c=r(1829);function l(e,t,r,n){return{source:e,data:t,receivedAt:Date.now(),stableID:r,fullUserHash:(0,i._getFullUserHash)(n)}}t.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new u}attach(e,t){this._sdkKey=e,this._options=t}getDataSync(e){const t=e&&(0,i._normalizeUser)(e,this._options),r=this._getCacheKey(t),n=this._inMemoryCache.get(r,t);if(n)return n;const o=this._loadFromCache(r);return o?(this._inMemoryCache.add(r,o),this._inMemoryCache.get(r,t)):null}setData(e,t){const r=t&&(0,i._normalizeUser)(t,this._options),n=this._getCacheKey(r);this._inMemoryCache.add(n,l("Bootstrap",e,null,r))}_getDataAsyncImpl(e,t,r){return n(this,void 0,void 0,(function*(){s.Storage.isReady()||(yield s.Storage.isReadyResolver());const n=null!=e?e:this.getDataSync(t),a=[this._fetchAndPrepFromNetwork(n,t,r)];return(null==r?void 0:r.timeoutMs)&&a.push(new Promise((e=>setTimeout(e,r.timeoutMs))).then((()=>(o.Log.debug("Fetching latest value timed out"),null)))),yield Promise.race(a)}))}_prefetchDataImpl(e,t){return n(this,void 0,void 0,(function*(){const r=e&&(0,i._normalizeUser)(e,this._options),n=this._getCacheKey(r),o=yield this._getDataAsyncImpl(null,r,t);o&&this._inMemoryCache.add(n,Object.assign(Object.assign({},o),{source:"Prefetch"}))}))}_fetchAndPrepFromNetwork(e,t,r){var i;return n(this,void 0,void 0,(function*(){const n=null!==(i=null==e?void 0:e.data)&&void 0!==i?i:null,s=null!=e&&this._isCachedResultValidFor204(e,t),u=yield this._fetchFromNetwork(n,t,r,s);if(!u)return o.Log.debug("No response returned for latest value"),null;const d=(0,c._typedJsonParse)(u,"has_updates","Response"),h=this._getSdkKey(),g=a.StableID.get(h);let p=null;if(!0===(null==d?void 0:d.has_updates))p=l("Network",u,g,t);else{if(!n||!1!==(null==d?void 0:d.has_updates))return null;p=l("NetworkNotModified",n,g,t)}const f=this._getCacheKey(t);return this._inMemoryCache.add(f,p),this._writeToCache(f,p),p}))}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(o.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;const r=null===(t=s.Storage.getItem)||void 0===t?void 0:t.call(s.Storage,e);if(null==r)return null;const n=(0,c._typedJsonParse)(r,"source","Cached Result");return n?Object.assign(Object.assign({},n),{source:"Cache"}):null}_writeToCache(e,t){s.Storage.setItem(e,JSON.stringify(t)),this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e){var t;const r=null!==(t=(0,s._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==t?t:{};r[e]=Date.now();const n=d(r,10);n&&(delete r[n],s.Storage.removeItem(n)),(0,s._setObjectInStorage)(this._lastModifiedStoreKey,r)}},t._makeDataAdapterResult=l;class u{constructor(){this._data={}}get(e,t){var r;const n=this._data[e],a=null==n?void 0:n.stableID,i=null===(r=null==t?void 0:t.customIDs)||void 0===r?void 0:r.stableID;return i&&a&&i!==a?(o.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):n}add(e,t){const r=d(this._data,9);r&&delete this._data[r],this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function d(e,t){const r=Object.keys(e);return r.length<=t?null:r.reduce(((t,r)=>{const n=e[t],o=e[r];return"object"==typeof n&&"object"==typeof o?o.receivedAt<n.receivedAt?r:t:o<n?r:t}))}},2798:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;const r=new Map,n="start",o="end",a="statsig::diagnostics";function i(e,t,r,n){return Object.assign({key:r,action:t,step:n,timestamp:Date.now()},e)}function s(e,t){var n;const o=null!==(n=r.get(e))&&void 0!==n?n:[];o.push(t),r.set(e,o)}function c(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>r.get(e),_markInitOverallStart:e=>{s(e,i({},n,"overall"))},_markInitOverallEnd:(e,t,r)=>{s(e,i({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:r},o,"overall"))},_markInitNetworkReqStart:(e,t)=>{s(e,i(t,n,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{s(e,i(t,o,"initialize","network_request"))},_markInitProcessStart:e=>{s(e,i({},n,"initialize","process"))},_markInitProcessEnd:(e,t)=>{s(e,i(t,o,"initialize","process"))},_clearMarkers:e=>{r.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:c(e,"code"),name:c(e,"name"),message:c(e,"message")}},_getDiagnosticsData(e,r,n,o){var a;return{success:!0===(null==e?void 0:e.ok),statusCode:null==e?void 0:e.status,sdkRegion:null===(a=null==e?void 0:e.headers)||void 0===a?void 0:a.get("x-statsig-region"),isDelta:!0===n.includes('"is_delta":true')||void 0,attempt:r,error:t.Diagnostics._formatError(o)}},_enqueueDiagnosticsEvent(e,r,n,o){const i=t.Diagnostics._getMarkers(n);if(null==i||i.length<=0)return-1;const s=i[i.length-1].timestamp-i[0].timestamp;t.Diagnostics._clearMarkers(n);const c=function(e,t){const r={eventName:a,user:e,value:null,metadata:t,time:Date.now()};return r}(e,{context:"initialize",markers:i.slice(),statsigOptions:o});return r.enqueue(c),s}}},6413:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._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]),o=["i","e","d"];t._fetchTxtRecords=function(e){return r(this,void 0,void 0,(function*(){const t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:n});if(!t.ok){const e=new Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}const r=yield t.arrayBuffer();return function(e){const t=e.findIndex(((t,r)=>r<200&&"="===String.fromCharCode(t)&&o.includes(String.fromCharCode(e[r-1]))));if(-1===t){const e=new Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let r="";for(let n=t-1;n<e.length;n++)r+=String.fromCharCode(e[n]);return r.split(",")}(new Uint8Array(r))}))}},6663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1290:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;const o=r(2132),a=r(2442),i=r(2452);t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const s="[Statsig] UnknownError";function c(e){return e instanceof Error?e:"string"==typeof e?new Error(e):new Error("An unknown error occurred.")}t.ErrorBoundary=class{constructor(e,t,r,n){this._sdkKey=e,this._options=t,this._emitter=r,this._lastSeenError=n,this._seen=new Set}wrap(e){try{const t=e;(function(e){const t=new Set;let r=Object.getPrototypeOf(e);for(;r&&r!==Object.prototype;)Object.getOwnPropertyNames(r).filter((e=>"function"==typeof(null==r?void 0:r[e]))).forEach((e=>t.add(e))),r=Object.getPrototypeOf(r);return Array.from(t)})(t).forEach((r=>{const n=t[r];"$EB"in n||(t[r]=(...t)=>this._capture(r,(()=>n.apply(e,t))),t[r].$EB=!0)}))}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){const e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=c(e))}_capture(e,t){try{const r=t();return r&&r instanceof Promise?r.catch((t=>this._onError(e,t))):r}catch(t){return this._onError(e,t),null}}_onError(e,r){try{o.Log.warn(`Caught error in ${e}`,{error:r});(()=>n(this,void 0,void 0,(function*(){var n,o,l,u,d,h,g;const p=r||Error(s),f=p instanceof Error,v=f?p.name:"No Name",b=c(p);if(this._lastSeenError=b,this._seen.has(v))return;if(this._seen.add(v),null===(o=null===(n=this._options)||void 0===n?void 0:n.networkConfig)||void 0===o?void 0:o.preventAllNetworkTraffic)return void(null===(l=this._emitter)||void 0===l||l.call(this,{name:"error",error:r,tag:e}));const y=a.SDKType._get(this._sdkKey),m=i.StatsigMetadataProvider.get(),_=f?p.stack:function(e){try{return JSON.stringify(e)}catch(e){return s}}(p),k=JSON.stringify(Object.assign({tag:e,exception:v,info:_},Object.assign(Object.assign({},m),{sdkType:y}))),w=null!==(h=null===(d=null===(u=this._options)||void 0===u?void 0:u.networkConfig)||void 0===d?void 0:d.networkOverrideFunc)&&void 0!==h?h:fetch;yield w(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(y),"STATSIG-SDK-VERSION":String(m.sdkVersion),"Content-Type":"application/json"},body:k}),null===(g=this._emitter)||void 0===g||g.call(this,{name:"error",error:r,tag:e})})))().then((()=>{})).catch((()=>{}))}catch(e){}}}},118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3725:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},638:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;const o=r(981),a=r(8210),i=r(2132),s=r(3582),c=r(6650),l=r(1217),u=r(6346),d=r(5445),h=r(5873),g={},p="startup",f="gained_focus";class v{static _safeFlushAndForget(e){var t;null===(t=g[e])||void 0===t||t.flush().catch((()=>{}))}static _safeRetryFailedLogs(e){var t;null===(t=g[e])||void 0===t||t._retryFailedLogs(f)}constructor(e,t,r,n){var o;this._sdkKey=e,this._emitter=t,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!==(o=null==n?void 0:n.loggingBufferMaxSize)&&void 0!==o?o:100;const a=null==n?void 0:n.networkConfig;this._logEventUrlConfig=new d.UrlConfiguration(s.Endpoint._rgstr,null==a?void 0:a.logEventUrl,null==a?void 0:a.api,null==a?void 0:a.logEventFallbackUrls)}setLoggingDisabled(e){this._isLoggingDisabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&v._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;const r=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=r+1}reset(){this._lastExposureTimeMap={}}start(){(0,c._isServerEnv)()||(g[this._sdkKey]=this,(0,h._subscribeToVisiblityChanged)((e=>{"background"===e?v._safeFlushAndForget(this._sdkKey):"foreground"===e&&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 g[this._sdkKey],yield this.flush()}))}flush(){return n(this,void 0,void 0,(function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;const e=this._queue;this._queue=[],yield this._sendEvents(e)}))}_quickFlushIfNeeded(){this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout((()=>v._safeFlushAndForget(this._sdkKey)),200))}_shouldLogEvent(e){if((0,c._isServerEnv)())return!1;if(!(0,l._isExposureEvent)(e))return!0;const t=e.user?e.user:{statsigEnvironment:void 0},r=(0,o._getUserStorageKey)(this._sdkKey,t),n=e.metadata?e.metadata:{},a=[e.eventName,r,n.gate,n.config,n.ruleID,n.allocatedExperiment,n.parameterName,String(n.isExplicitParameter),n.reason].join("|"),i=this._lastExposureTimeMap[a],s=Date.now();return!(i&&s-i<6e5)&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[a]=s,!0)}_sendEvents(e){var t,r;return n(this,void 0,void 0,(function*(){if(this._isLoggingDisabled)return this._saveFailedLogsToStorage(e),!1;try{const n=(0,h._isUnloading)()&&this._network.isBeaconSupported()&&null==(null===(r=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===r?void 0:r.networkOverrideFunc);this._emitter({name:"pre_logs_flushed",events:e});return(n?yield this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success?(this._emitter({name:"logs_flushed",events:e}),!0):(i.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1)}catch(e){return i.Log.warn("Failed to flush events."),!1}}))}_sendEventsViaPost(e){var t;return n(this,void 0,void 0,(function*(){const r=yield this._network.post(this._getRequestData(e)),n=null!==(t=null==r?void 0:r.code)&&void 0!==t?t:-1;return{success:n>=200&&n<300}}))}_sendEventsViaBeacon(e){return n(this,void 0,void 0,(function*(){return{success:yield this._network.beacon(this._getRequestData(e))}}))}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[s.NetworkParam.EventCount]:String(e.length)}}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();const t=this._getStorageKey();try{(0,u._setObjectInStorage)(t,e)}catch(e){i.Log.warn("Unable to save failed logs to storage")}}_retryFailedLogs(e){const t=this._getStorageKey();(()=>n(this,void 0,void 0,(function*(){u.Storage.isReady()||(yield u.Storage.isReadyResolver());const r=(0,u._getObjectFromStorage)(t);if(!r)return;e===p&&u.Storage.removeItem(t);(yield this._sendEvents(r))&&e===f&&u.Storage.removeItem(t)})))().catch((()=>{i.Log.warn("Failed to flush stored logs")}))}_getStorageKey(){return`statsig.failed_logs.${(0,a._DJB2)(this._sdkKey)}`}_normalizeAndAppendEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);const t={},r=this._getCurrentPageUrl();r&&(t.statsigMetadata={currentPage:r});const n=Object.assign(Object.assign({},e),t);i.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 e;if(!1!==(null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents))return(0,c._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;const r=null!==(t=null===(e=this._options)||void 0===e?void 0:e.loggingIntervalMs)&&void 0!==t?t:1e4,n=setInterval((()=>{const e=g[this._sdkKey];e&&e._flushIntervalId===n?v._safeFlushAndForget(this._sdkKey):clearInterval(n)}),r);this._flushIntervalId=n}}t.EventLogger=v},8210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;const n=r(8062);t._DJB2=e=>{let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return String(t>>>0)};t._DJB2Object=(e,r)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,r)));t._getSortedObject=(e,r)=>{if(null==e)return null;const o=Object.keys(e).sort(),a={};return o.forEach((o=>{const i=e[o];0!==r&&"object"===(0,n._typeOf)(i)?a[o]=(0,t._getSortedObject)(i,null!=r?r-1:r):a[o]=i})),a}},2849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0;function r(e){return e.unshift("[Statsig]"),e}t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...e){n.level>=t.LogLevel.Info&&console.info(" INFO ",...r(e))}static debug(...e){n.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...r(e))}static warn(...e){n.level>=t.LogLevel.Warn&&console.warn(" WARN ",...r(e))}static error(...e){n.level>=t.LogLevel.Error&&console.error(" ERROR ",...r(e))}}t.Log=n,n.level=t.LogLevel.Warn},6375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_layer:"l",_paramStore:"p"};const r=new Set([]),n=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,o){let a=`${e}|${t}`;if(!o)return a;for(const e of Object.keys(o)){if(n.has(e))return;r.has(e)?a+=`|${e}=true`:a+=`|${e}=${o[e]}`}return a}},3582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkParam=t.NetworkDefault=t.Endpoint=void 0,t.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},t.NetworkDefault={[t.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[t.Endpoint._initialize]:"https://featureassets.org/v1",[t.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},t.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},6555:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,r(8657);const o=r(8657),a=r(2798),i=r(2132),s=r(3582),c=r(2064),l=r(4175),u=r(2442),d=r(6650),h=r(4899),g=r(6286),p=r(3528),f=r(2452),v=r(5873),b=new Set([408,500,502,503,504,522,524,599]);t.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new c.NetworkFallbackResolver(this._options)}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){const e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){return n(this,void 0,void 0,(function*(){if(!y(e))return!1;const t=this._getInternalRequestArgs("POST",e);yield this._tryToCompressBody(t);const r=yield this._getPopulatedURL(t),n=navigator;return n.sendBeacon.bind(n)(r,t.body)}))}post(e){return n(this,void 0,void 0,(function*(){const t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)}))}get(e){const t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){var t,r,o,c;return n(this,void 0,void 0,(function*(){if(!y(e))return null;if(this._netConfig.preventAllNetworkTraffic)return null;const{method:l,body:u,retries:d,attempt:h}=e,g=e.urlConfig.endpoint;if(this._isRateLimited(g))return i.Log.warn(`Request to ${g} was blocked because you are making requests too frequently.`),null;const f=null!=h?h:1,m="undefined"!=typeof AbortController?new AbortController:null,k=setTimeout((()=>{null==m||m.abort(`Timeout of ${this._timeout}ms expired.`)}),this._timeout),w=yield this._getPopulatedURL(e);let O=null;const E=(0,v._isUnloading)();try{const r={method:l,body:u,headers:Object.assign({},e.headers),signal:null==m?void 0:m.signal,priority:e.priority,keepalive:E};!function(e,t){if(e.urlConfig.endpoint!==s.Endpoint._initialize)return;a.Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:t})}(e,f);const n=this._leakyBucket[g];n&&(n.lastRequestTime=Date.now(),this._leakyBucket[g]=n);const o=null!==(t=this._netConfig.networkOverrideFunc)&&void 0!==t?t:fetch;if(O=yield o(w,r),clearTimeout(k),!O.ok){const e=yield O.text().catch((()=>"No Text")),t=new Error(`NetworkError: ${w} ${e}`);throw t.name="NetworkError",t}const i=yield O.text();return _(e,O,f,i),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:i,code:O.status}}catch(t){const a=function(e,t){if((null==e?void 0:e.signal.aborted)&&"string"==typeof e.signal.reason)return e.signal.reason;if("string"==typeof t)return t;if(t instanceof Error)return`${t.name}: ${t.message}`;return"Unknown Error"}(m,t),s=(null==(S=m)?void 0:S.signal.aborted)&&"string"==typeof S.signal.reason&&S.signal.reason.includes("Timeout")||!1;_(e,O,f,"",t);if((yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,a,s))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!d||f>d||!b.has(null!==(r=null==O?void 0:O.status)&&void 0!==r?r:500)){null===(o=this._emitter)||void 0===o||o.call(this,{name:"error",error:t,tag:p.ErrorTag.NetworkError,requestArgs:e});const r=`A networking error occurred during ${l} request to ${w}.`;return i.Log.error(r,a,t),null===(c=this._errorBoundary)||void 0===c||c.attachErrorIfNoneExists(r),null}return yield function(e){return n(this,void 0,void 0,(function*(){yield new Promise((t=>setTimeout(t,Math.min(e*e*500,3e4))))}))}(f),this._sendRequest(Object.assign(Object.assign({},e),{retries:d,attempt:f+1}))}var S}))}_isRateLimited(e){var t;const r=Date.now(),n=null!==(t=this._leakyBucket[e])&&void 0!==t?t:{count:0,lastRequestTime:r},o=r-n.lastRequestTime,a=Math.floor(.05*o);return n.count=Math.max(0,n.count-a),n.count>=50||(n.count+=1,n.lastRequestTime=r,this._leakyBucket[e]=n,!1)}_getPopulatedURL(e){var t;return n(this,void 0,void 0,(function*(){const r=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl();e.urlConfig.endpoint!==s.Endpoint._initialize&&e.urlConfig.endpoint!==s.Endpoint._download_config_specs||(this._lastUsedInitUrl=r);const n=Object.assign({[s.NetworkParam.SdkKey]:e.sdkKey,[s.NetworkParam.SdkType]:u.SDKType._get(e.sdkKey),[s.NetworkParam.SdkVersion]:f.SDK_VERSION,[s.NetworkParam.Time]:String(Date.now()),[s.NetworkParam.SessionID]:h.SessionID.get(e.sdkKey)},e.params),o=Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");return`${r}${o?`?${o}`:""}`}))}_tryEncodeBody(e){var t;const r=(0,d._getWindowSafe)(),n=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof n&&null==(0,o._getStatsigGlobalFlag)("no-encode")&&(null==r?void 0:r.btoa))try{e.body=r.btoa(n).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[s.NetworkParam.StatsigEncoded]:"1"})}catch(t){i.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){var t;return n(this,void 0,void 0,(function*(){const r=e.body;if(e.isCompressable&&!this._options.disableCompression&&"string"==typeof r&&!0===l.SDKFlags.get(e.sdkKey,"enable_log_event_compression")&&null==(0,o._getStatsigGlobalFlag)("no-compress")&&"undefined"!=typeof CompressionStream&&"undefined"!=typeof TextEncoder)try{const n=(new TextEncoder).encode(r),o=new CompressionStream("gzip"),a=o.writable.getWriter();a.write(n).catch(i.Log.error),a.close().catch(i.Log.error);const c=o.readable.getReader(),l=[];let u;for(;!(u=yield c.read()).done;)l.push(u.value);const d=l.reduce(((e,t)=>e+t.length),0),h=new Uint8Array(d);let g=0;for(const e of l)h.set(e,g),g+=e.length;e.body=h,e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[s.NetworkParam.IsGzipped]:"1"})}catch(t){i.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}}))}_getInternalRequestArgs(e,t){const r=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),n=Object.assign(Object.assign({},t),{method:e,fallbackUrl:r});return"data"in t&&m(n,t.data),n}};const y=e=>!!e.sdkKey||(i.Log.warn("Unable to make request without an SDK key"),!1),m=(e,t)=>{const{sdkKey:r,fallbackUrl:n}=e,o=g.StableID.get(r),a=h.SessionID.get(r),i=u.SDKType._get(r);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},f.StatsigMetadataProvider.get()),{stableID:o,sessionID:a,sdkType:i,fallbackUrl:n})}))};function _(e,t,r,n,o){e.urlConfig.endpoint===s.Endpoint._initialize&&a.Diagnostics._markInitNetworkReqEnd(e.sdkKey,a.Diagnostics._getDiagnosticsData(t,r,n,o))}},2064:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;const o=r(6413),a=r(8210),i=r(2132),s=r(6346),c=6048e5;function l(e,t){var r;const n=null!==(r=null==e?void 0:e.toLowerCase())&&void 0!==r?r:"";return t||n.includes("uncaught exception")||n.includes("failed to fetch")||n.includes("networkerror when attempting to fetch resource")}function u(e){return`statsig.network_fallback.${(0,a._DJB2)(e)}`}function d(e,t){const r=u(e);t&&0!==Object.keys(t).length?s.Storage.setItem(r,JSON.stringify(t)):s.Storage.removeItem(r)}function h(e){try{return new URL(e).pathname}catch(e){return null}}t.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(t=e.networkConfig)||void 0===t?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var r;const n=null===(r=this._fallbackInfo)||void 0===r?void 0:r[t.endpoint];n&&(n.expiryTime=Date.now()+c,d(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:n})))}getActiveFallbackUrl(e,t){var r,n;let o=this._fallbackInfo;null==o&&(o=null!==(r=function(e){const t=u(e),r=s.Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return i.Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==r?r:{},this._fallbackInfo=o);const a=o[t.endpoint];return!a||Date.now()>(null!==(n=a.expiryTime)&&void 0!==n?n:0)?(delete o[t.endpoint],this._fallbackInfo=o,d(e,this._fallbackInfo),null):a.url?a.url:null}getFallbackFromProvided(e){const t=h(e);return t?e.replace(t,""):null}tryFetchUpdatedFallbackInfo(e,t,r,o){var a,i;return n(this,void 0,void 0,(function*(){try{if(!l(r,o))return!1;const n=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,i=this._pickNewFallbackUrl(null===(a=this._fallbackInfo)||void 0===a?void 0:a[t.endpoint],n);return!!i&&(this._updateFallbackInfoWithNewUrl(e,t.endpoint,i),!0)}catch(e){return null===(i=this._errorBoundary)||void 0===i||i.logError("tryFetchUpdatedFallbackInfo",e),!1}}))}_updateFallbackInfoWithNewUrl(e,t,r){var n,o,a;const i={url:r,expiryTime:Date.now()+c,previous:[]},s=null===(n=this._fallbackInfo)||void 0===n?void 0:n[t];s&&i.previous.push(...s.previous),i.previous.length>10&&(i.previous=[]);const l=null===(a=null===(o=this._fallbackInfo)||void 0===o?void 0:o[t])||void 0===a?void 0:a.url;null!=l&&i.previous.push(l),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[t]:i}),d(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){var t;return n(this,void 0,void 0,(function*(){const r=this._dnsQueryCooldowns[e.endpoint];if(r&&Date.now()<r)return null;this._dnsQueryCooldowns[e.endpoint]=Date.now()+144e5;const n=[],a=yield(0,o._fetchTxtRecords)(null!==(t=this._networkOverrideFunc)&&void 0!==t?t:fetch),i=h(e.defaultUrl);for(const t of a){if(!t.startsWith(e.endpointDnsKey+"="))continue;const r=t.split("=");if(r.length>1){let e=r[1];e.endsWith("/")&&(e=e.slice(0,-1)),n.push(`https://${e}${i}`)}}return n}))}_pickNewFallbackUrl(e,t){var r;if(null==t)return null;const n=new Set(null!==(r=null==e?void 0:e.previous)&&void 0!==r?r:[]),o=null==e?void 0:e.url;let a=null;for(const e of t){const t=e.endsWith("/")?e.slice(0,-1):e;if(!n.has(e)&&t!==o){a=t;break}}return a}},t._isDomainFailure=l},5377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6037:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;const r={};t.SDKFlags={setFlags:(e,t)=>{r[e]=t},get:(e,t)=>{var n,o;return null!==(o=null===(n=r[e])||void 0===n?void 0:n[t])&&void 0!==o&&o}}},2442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;const r={};let n;t.SDKType={_get:e=>{var t;return(null!==(t=r[e])&&void 0!==t?t:"js-mono")+(null!=n?n:"")},_setClientType(e,t){r[e]=t},_setBindingType(e){n&&"-react"!==n||(n="-"+e)}}},6650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getCurrentPageUrlSafe=t._addDocumentEventListenerSafe=t._addWindowEventListenerSafe=t._isServerEnv=t._getDocumentSafe=t._getWindowSafe=void 0;t._getWindowSafe=()=>"undefined"!=typeof window?window:null;t._getDocumentSafe=()=>{var e;const r=(0,t._getWindowSafe)();return null!==(e=null==r?void 0:r.document)&&void 0!==e?e:null};t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;const e="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||e};t._addWindowEventListenerSafe=(e,r)=>{const n=(0,t._getWindowSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(e,r)};t._addDocumentEventListenerSafe=(e,r)=>{const n=(0,t._getDocumentSafe)();"function"==typeof(null==n?void 0:n.addEventListener)&&n.addEventListener(e,r)};t._getCurrentPageUrlSafe=()=>{var e;try{return null===(e=(0,t._getWindowSafe)())||void 0===e?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}}},4899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;const n=r(981),o=r(2132),a=r(6346),i=r(2555),s=18e5,c=144e5,l={};function u(e,t){return setTimeout((()=>{const t=null===__STATSIG__||void 0===__STATSIG__?void 0:__STATSIG__.instance(e);t&&t.$emt({name:"session_expired"})}),t)}function d(e){return`statsig.session_id.${(0,n._getStorageKey)(e)}`}t.SessionID={get:e=>t.StatsigSession.get(e).data.sessionID},t.StatsigSession={get:e=>{null==l[e]&&(l[e]=function(e){let t=function(e){const t=d(e);return(0,a._getObjectFromStorage)(t)}(e);const r=Date.now();t||(t={sessionID:(0,i.getUUID)(),startTime:r,lastUpdate:r});return{data:t,sdkKey:e}}(e));return function(e){const t=Date.now(),r=e.data;(function({lastUpdate:e}){return Date.now()-e>s}(r)||function({startTime:e}){return Date.now()-e>c}(r))&&(r.sessionID=(0,i.getUUID)(),r.startTime=t);r.lastUpdate=t,function(e,t){const r=d(t);try{(0,a._setObjectInStorage)(r,e)}catch(e){o.Log.warn("Failed to save SessionID")}}(r,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);const n=t-r.startTime,l=e.sdkKey;return e.idleTimeoutID=u(l,s),e.ageTimeoutID=u(l,c-n),e}(l[e])},overrideInitialSessionID:(e,t)=>{l[t]=function(e,t){const r=Date.now();return{data:{sessionID:e,startTime:r,lastUpdate:r},sdkKey:t}}(e,t)}}},6286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StableID=void 0;const n=r(981),o=r(2132),a=r(6346),i=r(2555),s={};function c(e){return`statsig.stable_id.${(0,n._getStorageKey)(e)}`}function l(e,t){const r=c(t);try{(0,a._setObjectInStorage)(r,e)}catch(e){o.Log.warn("Failed to save StableID")}}t.StableID={get:e=>{if(null==s[e]){let t=function(e){const t=c(e);return(0,a._getObjectFromStorage)(t)}(e);null==t&&(t=(0,i.getUUID)(),l(t,e)),s[e]=t}return s[e]},setOverride:(e,t)=>{s[t]=e,l(e,t)}}},5939:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,r(8657);const o=r(8657),a=r(1290),i=r(638),s=r(2132),c=r(6375),l=r(6650),u=r(4899),d=r(6346);t.StatsigClientBase=class{constructor(e,t,r,n){var c;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const h=this.$emt.bind(this);null!=(null==n?void 0:n.logLevel)&&(s.Log.level=n.logLevel),(null==n?void 0:n.disableStorage)&&d.Storage._setDisabled(!0),(null==n?void 0:n.initialSessionID)&&u.StatsigSession.overrideInitialSessionID(n.initialSessionID,e),(null==n?void 0:n.storageProvider)&&d.Storage._setProvider(n.storageProvider),this._sdkKey=e,this._options=null!=n?n:{},this._memoCache={},this.overrideAdapter=null!==(c=null==n?void 0:n.overrideAdapter)&&void 0!==c?c:null,this._logger=new i.EventLogger(e,h,r,n),this._errorBoundary=new a.ErrorBoundary(e,n,h),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),r.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,n),this.storageProvider=d.Storage,this._primeReadyRipcord(),function(e,t){var r;if((0,l._isServerEnv)())return;const n=(0,o._getStatsigGlobal)(),a=null!==(r=n.instances)&&void 0!==r?r:{},i=t;null!=a[e]&&s.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys.");a[e]=i,n.firstInstance||(n.firstInstance=i);n.instances=a,__STATSIG__=n}(e,this)}updateRuntimeOptions(e){null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingDisabled(e.disableLogging)),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,d.Storage._setDisabled(e.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(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){const r=this._listeners[e].indexOf(t);-1!==r&&this._listeners[e].splice(r,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;const r=t=>{try{t(e)}catch(r){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,r);s.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach((e=>r(e))),null===(t=this._listeners["*"])||void 0===t||t.forEach(r)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,r){!0!==(null==r?void 0:r.disableExposureLog)?this._logger.enqueue(t):this._logger.incrementNonExposureCount(e)}_memoize(e,t){return(r,n)=>{if(this._options.disableEvaluationMemoization)return t(r,n);const o=(0,c.createMemoKey)(e,r,n);return o?(o in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[o]=t(r,n)),this._memoCache[o]):t(r,n)}}}},3528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},5362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},1217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;const r="statsig::config_exposure",n="statsig::gate_exposure",o="statsig::layer_exposure",a=(e,t,r,n,o)=>(r.bootstrapMetadata&&(n.bootstrapMetadata=r.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:s(r,n),secondaryExposures:o,time:Date.now()});t._isExposureEvent=({eventName:e})=>e===n||e===r||e===o;function i(e,t){return e.map((e=>"string"==typeof e?(null!=t?t:{})[e]:e)).filter((e=>null!=e))}t._createGateExposure=(e,t,r)=>{var o,s,c;const l={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return null!=(null===(o=t.__evaluation)||void 0===o?void 0:o.version)&&(l.configVersion=t.__evaluation.version),a(n,e,t.details,l,i(null!==(c=null===(s=t.__evaluation)||void 0===s?void 0:s.secondary_exposures)&&void 0!==c?c:[],r))},t._mapExposures=i;t._createConfigExposure=(e,t,n)=>{var o,s,c,l;const u={config:t.name,ruleID:t.ruleID};return null!=(null===(o=t.__evaluation)||void 0===o?void 0:o.version)&&(u.configVersion=t.__evaluation.version),null!=(null===(s=t.__evaluation)||void 0===s?void 0:s.passed)&&(u.rulePassed=String(t.__evaluation.passed)),a(r,e,t.details,u,i(null!==(l=null===(c=t.__evaluation)||void 0===c?void 0:c.secondary_exposures)&&void 0!==l?l:[],n))};t._createLayerParameterExposure=(e,t,r,n)=>{var s,c,l,u;const d=t.__evaluation,h=!0===(null===(s=null==d?void 0:d.explicit_parameters)||void 0===s?void 0:s.includes(r));let g="",p=null!==(c=null==d?void 0:d.undelegated_secondary_exposures)&&void 0!==c?c:[];h&&(g=null!==(l=d.allocated_experiment_name)&&void 0!==l?l:"",p=d.secondary_exposures);const f={config:t.name,parameterName:r,ruleID:t.ruleID,allocatedExperiment:g,isExplicitParameter:String(h)};return null!=(null===(u=t.__evaluation)||void 0===u?void 0:u.version)&&(f.configVersion=t.__evaluation.version),a(o,e,t.details,f,i(p,n))};const s=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},2452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.12.1";let r={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>r,add:e=>{r=Object.assign(Object.assign({},r),e)}}},5910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;const n=r(2132),o=r(8062);function a(e,t,r,n){var o;return{name:e,details:t,ruleID:null!==(o=null==r?void 0:r.rule_id)&&void 0!==o?o:"default",__evaluation:r,value:n}}function i(e,t,r){var n;const o=null!==(n=null==r?void 0:r.value)&&void 0!==n?n:{};return Object.assign(Object.assign({},a(e,t,r,o)),{get:s(e,null==r?void 0:r.value)})}function s(e,t,r){return(a,i)=>{var s;const c=null!==(s=null==t?void 0:t[a])&&void 0!==s?s:null;return null==c?null!=i?i:null:null==i||(0,o._isTypeMatch)(c,i)?(null==r||r(a),c):(n.Log.warn(`Parameter type mismatch. '${e}.${a}' was found to be type '${typeof c}' but fallback/return type is '${typeof i}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=i?i:null)}}t._makeFeatureGate=function(e,t,r){return a(e,t,r,!0===(null==r?void 0:r.value))},t._makeDynamicConfig=i,t._makeExperiment=function(e,t,r){var n;const o=i(e,t,r);return Object.assign(Object.assign({},o),{groupName:null!==(n=null==r?void 0:r.group_name)&&void 0!==n?n:null})},t._makeLayer=function(e,t,r,n){var o,i;return Object.assign(Object.assign({},a(e,t,r,void 0)),{get:s(e,null==r?void 0:r.value,n),groupName:null!==(o=null==r?void 0:r.group_name)&&void 0!==o?o:null,__value:null!==(i=null==r?void 0:r.value)&&void 0!==i?i:{}})},t._mergeOverride=function(e,t,r,n){return Object.assign(Object.assign(Object.assign({},e),t),{get:s(e.name,r,n)})},t._makeTypedGet=s},3224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0;t.createUpdateDetails=(e,t,r,n,o,a)=>({duration:r,source:t,success:e,error:n,sourceUrl:o,warnings:a}),t.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."}},4830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0;const n=r(8210),o=r(2132);t._normalizeUser=function(e,t,r){try{const n=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?n.statsigEnvironment=t.environment:null!=r&&(n.statsigEnvironment={tier:r}),n}catch(e){return o.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,n._DJB2Object)(e):null}},6346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;const n=r(2132),o=r(6650),a={},i={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>a[e]?a[e]:null,setItem:(e,t)=>{a[e]=t},removeItem:e=>{delete a[e]},getAllKeys:()=>Object.keys(a)};let s=null;try{const e=(0,o._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(s={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,r)=>e.localStorage.setItem(t,r),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){n.Log.warn("Failed to setup localStorageProvider.")}let c=null!=s?s:i,l=c;t.Storage={isReady:()=>l.isReady(),isReadyResolver:()=>l.isReadyResolver(),getProviderName:()=>l.getProviderName(),getItem:e=>function(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(i),null;throw e}}((()=>l.getItem(e))),setItem:(e,t)=>l.setItem(e,t),removeItem:e=>l.removeItem(e),getAllKeys:()=>l.getAllKeys(),_setProvider:e=>{c=e,l=e},_setDisabled:e=>{l=e?i:c}},t._getObjectFromStorage=function(e){const r=t.Storage.getItem(e);return JSON.parse(null!=r?r:"null")},t._setObjectInStorage=function(e,r){t.Storage.setItem(e,JSON.stringify(r))}},1829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;const n=r(2132);t._typedJsonParse=function(e,t,r){try{const r=JSON.parse(e);if(r&&"object"==typeof r&&t in r)return r}catch(e){}return n.Log.error(`Failed to parse ${r}`),null}},8062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){const r=e=>Array.isArray(e)?"array":typeof e;return r(e)===r(t)}},2555:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUUID=void 0,t.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=(new Date).getTime(),t="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 e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:7&n|8).toString(16)}))}},5445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;const n=r(3582),o={[n.Endpoint._initialize]:"i",[n.Endpoint._rgstr]:"e",[n.Endpoint._download_config_specs]:"d"};t.UrlConfiguration=class{constructor(e,t,r,a){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=o[e],t&&(this.customUrl=t),!t&&r&&(this.customUrl=r.endsWith("/")?`${r}${e}`:`${r}/${e}`),a&&(this.fallbackUrls=a);const i=n.NetworkDefault[e];this.defaultUrl=`${i}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}}},5873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;const n=r(6650),o="foreground",a="background",i=[];let s=o,c=!1;t._isCurrentlyVisible=()=>s===o;t._isUnloading=()=>c;t._subscribeToVisiblityChanged=e=>{i.unshift(e)};t._notifyVisibilityChanged=e=>{e!==s&&(s=e,i.forEach((t=>t(e))))},(0,n._addWindowEventListenerSafe)("focus",(()=>{c=!1,(0,t._notifyVisibilityChanged)(o)})),(0,n._addWindowEventListenerSafe)("blur",(()=>(0,t._notifyVisibilityChanged)(a))),(0,n._addWindowEventListenerSafe)("beforeunload",(()=>{c=!0,(0,t._notifyVisibilityChanged)(a)})),(0,n._addDocumentEventListenerSafe)("visibilitychange",(()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?o:a)}))},382:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,r(8657);const a=r(2798);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return a.Diagnostics}});const i=r(638);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return i.EventLogger}});const s=r(2132);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return s.Log}});const c=r(2452),l=r(6346);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return l.Storage}}),o(r(8657),t),o(r(981),t),o(r(4399),t),o(r(8562),t),o(r(2798),t),o(r(6663),t),o(r(1290),t),o(r(118),t),o(r(3725),t),o(r(8210),t),o(r(2849),t),o(r(2132),t),o(r(6375),t),o(r(3582),t),o(r(6555),t),o(r(5377),t),o(r(6037),t),o(r(6650),t),o(r(2442),t),o(r(4899),t),o(r(6286),t),o(r(5939),t),o(r(3528),t),o(r(5362),t),o(r(1217),t),o(r(2452),t),o(r(5910),t),o(r(1350),t),o(r(1647),t),o(r(3224),t),o(r(4830),t),o(r(6346),t),o(r(1829),t),o(r(8062),t),o(r(5445),t),o(r(2555),t),o(r(5873),t),o(r(6400),t),o(r(4175),t),__STATSIG__=Object.assign(Object.assign({},null!==__STATSIG__&&void 0!==__STATSIG__?__STATSIG__:{}),{Log:s.Log,SDK_VERSION:c.SDK_VERSION})},450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;const n=r(382);function o(e,t){null==e||e.forEach((e=>{delete t[e]}))}t._resolveDeltasResponse=function(e,t){const r=(0,n._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!r)return{hadBadDeltaChecksum:!0};const a=function(e){const t=e;return o(e.deleted_gates,t.feature_gates),delete t.deleted_gates,o(e.deleted_configs,t.dynamic_configs),delete t.deleted_configs,o(e.deleted_layers,t.layer_configs),delete t.deleted_layers,t}(function(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{feature_gates:Object.assign(Object.assign({},e.feature_gates),t.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),t.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),t.dynamic_configs)})}(e,r)),i=(0,n._DJB2Object)({feature_gates:a.feature_gates,dynamic_configs:a.dynamic_configs,layer_configs:a.layer_configs},2);return i===r.checksumV2?JSON.stringify(a):{hadBadDeltaChecksum:!0,badChecksum:i,badMergedConfigs:a,badFullResponse:r.deltas_full_response}}},8321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(382);t.default=class{constructor(e){this._sdkKey=e,this._rawValues=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=new Set}reset(){this._values=null,this._rawValues=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,n._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(e,t){var r;if(!e)return!1;const o=(0,n._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=o&&(this._source=e.source,!0!==(null==o?void 0:o.has_updates)||(this._rawValues=e.data,this._lcut=o.time,this._receivedAt=e.receivedAt,this._values=o,this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,o),e.source&&o.user&&this._setWarningState(t,o),n.SDKFlags.setFlags(this._sdkKey,null!==(r=o.sdk_flags)&&void 0!==r?r:{})),!0)}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.feature_gates,e)}getConfig(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.dynamic_configs,e)}getLayer(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.layer_configs,e)}getParamStore(e){var t;return this._getDetailedStoreResult(null===(t=this._values)||void 0===t?void 0:t.param_stores,e)}getSource(){return this._source}getExposureMapping(){var e;return null===(e=this._values)||void 0===e?void 0:e.exposures}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;const r={};return t.user&&(r.user=t.user),t.sdkInfo&&(r.generatorSDKInfo=t.sdkInfo),r.lcut=t.time,r}_getDetailedStoreResult(e,t){let r=null;return e&&(r=e[t]?e[t]:e[(0,n._DJB2)(t)]),{result:r,details:this._getDetails(null==r)}}_setWarningState(e,t){var r;const o=n.StableID.get(this._sdkKey);if((null===(r=e.customIDs)||void 0===r?void 0:r.stableID)===o){if("user"in t){const r=t.user;(0,n._getFullUserHash)(e)!==(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 e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,r;const n=this.getCurrentSourceDetails();let o=n.reason;const a=null!==(t=n.warnings)&&void 0!==t?t:[];if("Bootstrap"===this._source&&a.length>0&&(o+=a[0]),"Uninitialized"!==o&&"NoValues"!==o){o=`${o}:${e?"Unrecognized":"Recognized"}`}const i="Bootstrap"===this._source&&null!==(r=this._bootstrapMetadata)&&void 0!==r?r:void 0;return i&&(n.bootstrapMetadata=i),Object.assign(Object.assign({},n),{reason:o})}}},6892:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(382),a=r(450);class i extends o.NetworkCore{constructor(e,t){super(e,t);const r=null==e?void 0:e.networkConfig;this._initializeUrlConfig=new o.UrlConfiguration(o.Endpoint._initialize,null==r?void 0:r.initializeUrl,null==r?void 0:r.api,null==r?void 0:r.initializeFallbackUrls)}fetchEvaluations(e,t,r,a,i){return n(this,void 0,void 0,(function*(){const n=t?(0,o._typedJsonParse)(t,"has_updates","InitializeResponse"):null;let s={user:a,hash:"djb2",deltasResponseRequested:!1,full_checksum:null};return(null==n?void 0:n.has_updates)&&(s=Object.assign(Object.assign({},s),{sinceTime:i?n.time:0,previousDerivedFields:"derived_fields"in n&&i?n.derived_fields:{},deltasResponseRequested:!0,full_checksum:n.full_checksum})),this._fetchEvaluations(e,n,s,r)}))}_fetchEvaluations(e,t,r,o){var i,s;return n(this,void 0,void 0,(function*(){const n=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:r,retries:2,isStatsigEncodable:!0,priority:o});if(204===(null==n?void 0:n.code))return'{"has_updates": false}';if(200!==(null==n?void 0:n.code))return null!==(i=null==n?void 0:n.body)&&void 0!==i?i:null;if(!0!==(null==t?void 0:t.has_updates)||!0!==(null===(s=n.body)||void 0===s?void 0:s.includes('"is_delta":true'))||!0!==r.deltasResponseRequested)return n.body;const c=(0,a._resolveDeltasResponse)(t,n.body);return"string"==typeof c?c:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},r),c),{deltasResponseRequested:!1}),o)}))}}t.default=i},2739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;const n=r(382),o={disableExposureLog:!0};function a(e){return null==e||!1===e.disableExposureLog}function i(e,t){return null!=t&&!(0,n._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,r){return(s,c)=>{if(null==t)return c;const l=t[s];if(null==l||null!=c&&(0,n._typeOf)(c)!==l.param_type)return c;switch(l.ref_type){case"static":return function(e){return e.value}(l);case"gate":return function(e,t,r){return e.getFeatureGate(t.gate_name,a(r)?void 0:o).value?t.pass_value:t.fail_value}(e,l,r);case"dynamic_config":return function(e,t,r,n){const s=e.getDynamicConfig(t.config_name,o).get(t.param_name);return i(s,r)?r:(a(n)&&e.getDynamicConfig(t.config_name),s)}(e,l,c,r);case"experiment":return function(e,t,r,n){const s=e.getExperiment(t.experiment_name,o).get(t.param_name);return i(s,r)?r:(a(n)&&e.getExperiment(t.experiment_name),s)}(e,l,c,r);case"layer":return function(e,t,r,n){const s=e.getLayer(t.layer_name,o).get(t.param_name);return i(s,r)?r:(a(n)&&e.getLayer(t.layer_name).get(t.param_name),s)}(e,l,c,r);default:return c}}}},6962:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(382),a=r(8321),i=r(6892),s=r(2739),c=r(1887);class l extends o.StatsigClientBase{static instance(e){const t=(0,o._getStatsigGlobal)().instance(e);return t instanceof l?t:(o.Log.warn((0,o._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new l(null!=e?e:"",{}))}constructor(e,t,r=null){var n,s;o.SDKType._setClientType(e,"javascript-client");const l=new i.default(r,(e=>{this.$emt(e)}));super(e,null!==(n=null==r?void 0:r.dataAdapter)&&void 0!==n?n:new c.StatsigEvaluationsDataAdapter,l,r),this.getFeatureGate=this._memoize(o.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(o.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(o.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getLayer=this._memoize(o.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(o.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new a.default(e),this._network=l,this._user=this._configureUser(t,r);const u=null!==(s=null==r?void 0:r.plugins)&&void 0!==s?s:[];for(const e of u)e.bind(this)}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,o.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!==(t=this._store.getWarnings())&&void 0!==t?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return n(this,void 0,void 0,(function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise}))}updateUserSync(e,t){var r;const n=performance.now(),a=[...null!==(r=this._store.getWarnings())&&void 0!==r?r:[]];this._resetForUser(e);const i=this.dataAdapter.getDataSync(this._user);null==i&&a.push("NoCachedValues"),this._store.setValues(i,this._user),this._finalizeUpdate(i);const s=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===s||null==s&&"Bootstrap"===(null==i?void 0:i.source)||this._runPostUpdate(null!=i?i:null,this._user),(0,o.createUpdateDetails)(!0,this._store.getSource(),performance.now()-n,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),a)}updateUserAsync(e,t){return n(this,void 0,void 0,(function*(){this._resetForUser(e);const r=this._user;o.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,t),r!==this._user)return(0,o.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let a=!1;null!=n&&(o.Diagnostics._markInitProcessStart(this._sdkKey),a=this._store.setValues(n,this._user),o.Diagnostics._markInitProcessEnd(this._sdkKey,{success:a})),this._finalizeUpdate(n),a||(this._errorBoundary.attachErrorIfNoneExists(o.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),o.Diagnostics._markInitOverallEnd(this._sdkKey,a,this._store.getCurrentSourceDetails());const i=o.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,o.createUpdateDetails)(a,this._store.getSource(),i,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:o.StatsigSession.get(this._sdkKey),stableID:o.StableID.get(this._sdkKey)}}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,r){const n="string"==typeof e?{eventName:e,value:t,metadata:r}:e;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(e){return n(this,void 0,void 0,(function*(){return o.Storage.isReady()||(yield o.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)}))}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch((e=>{o.Log.error("An error occurred after update.",e)}))}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var r;const n=(0,o._normalizeUser)(e,t),a=null===(r=n.customIDs)||void 0===r?void 0:r.stableID;return a&&o.StableID.setOverride(a,this._sdkKey),n}_getFeatureGateImpl(e,t){var r,n;const{result:a,details:i}=this._store.getGate(e),s=(0,o._makeFeatureGate)(e,i,a),c=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getGateOverride)||void 0===n?void 0:n.call(r,s,this._user,t),l=null!=c?c:s;return this._enqueueExposure(e,(0,o._createGateExposure)(this._user,l,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:l}),l}_getDynamicConfigImpl(e,t){var r,n;const{result:a,details:i}=this._store.getConfig(e),s=(0,o._makeDynamicConfig)(e,i,a),c=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getDynamicConfigOverride)||void 0===n?void 0:n.call(r,s,this._user,t),l=null!=c?c:s;return this._enqueueExposure(e,(0,o._createConfigExposure)(this._user,l,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:l}),l}_getExperimentImpl(e,t){var r,n,a,i;const{result:s,details:c}=this._store.getConfig(e),l=(0,o._makeExperiment)(e,c,s);null!=l.__evaluation&&(l.__evaluation.secondary_exposures=(0,o._mapExposures)(null!==(n=null===(r=l.__evaluation)||void 0===r?void 0:r.secondary_exposures)&&void 0!==n?n:[],this._store.getExposureMapping()));const u=null===(i=null===(a=this.overrideAdapter)||void 0===a?void 0:a.getExperimentOverride)||void 0===i?void 0:i.call(a,l,this._user,t),d=null!=u?u:l;return this._enqueueExposure(e,(0,o._createConfigExposure)(this._user,d,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:d}),d}_getLayerImpl(e,t){var r,n,a;const{result:i,details:s}=this._store.getLayer(e),c=(0,o._makeLayer)(e,s,i),l=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getLayerOverride)||void 0===n?void 0:n.call(r,c,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);const u=(0,o._mergeOverride)(c,l,null!==(a=null==l?void 0:l.__value)&&void 0!==a?a:c.__value,(r=>{(null==t?void 0:t.disableExposureLog)||this._enqueueExposure(e,(0,o._createLayerParameterExposure)(this._user,u,r,this._store.getExposureMapping()),t)}));return this.$emt({name:"layer_evaluation",layer:u}),u}_getParameterStoreImpl(e,t){var r,n;const{result:o,details:a}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);const i={name:e,details:a,__configuration:o,get:(0,s._makeParamStoreGetter)(this,o,t)},c=null===(n=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getParamStoreOverride)||void 0===n?void 0:n.call(r,i,t);return null!=c&&(i.__configuration=c.config,i.details=c.details,i.get=(0,s._makeParamStoreGetter)(this,c.config,t)),i}}t.default=l},1887:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;const o=r(382),a=r(6892);class i extends o.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t){super.attach(e,t),this._network=new a.default(null!=t?t:{})}getDataAsync(e,t,r){return this._getDataAsyncImpl(e,(0,o._normalizeUser)(t,this._options),r)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){const t=(0,o._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):o.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,r,o){var a;return n(this,void 0,void 0,(function*(){const n=yield null===(a=this._network)||void 0===a?void 0:a.fetchEvaluations(this._getSdkKey(),e,null==r?void 0:r.priority,t,o);return null!=n?n:null}))}_getCacheKey(e){var t;const r=(0,o._getStorageKey)(this._getSdkKey(),e,null===(t=this._options)||void 0===t?void 0:t.customUserCacheKeyFunc);return`${o.DataAdapterCachePrefix}.${this._cacheSuffix}.${r}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,o._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=i},7726:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;const a=r(6962);t.StatsigClient=a.default,o(r(382),t),__STATSIG__=Object.assign(Object.assign({},null!==__STATSIG__&&void 0!==__STATSIG__?__STATSIG__:{}),{StatsigClient:a.default}),t.default=__STATSIG__}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,o),a.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({138:"./themes/shape",177:"./themes/legacy-light",186:"./themes/typography-modernized",213:"./themes/typography-refreshed",381:"./themes/light",479:"./themes/dark",498:"./themes/spacing",567:"./themes/light-future",592:"./themes/typography-adg3",915:"./themes/legacy-dark",917:"./themes/dark-future"}[e]+".js"),o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="__auiPrototyping:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[n];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(g);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},g=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{var e={203:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=window.webpackChunk_auiPrototyping=window.webpackChunk_auiPrototyping||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a={};return(()=>{"use strict";o.r(a),o.d(a,{ThemeMutationObserver:()=>Yt,disableTestingTheme:()=>tr,enableTestingTheme:()=>er,getTokenValue:()=>Qt,setGlobalTheme:()=>Ht,setTestingThemeColor:()=>Zt,toggleTestingTheme:()=>rr,token:()=>Xt});var e={};o.r(e),o.d(e,{CURRENT_SURFACE_CSS_VAR:()=>$e,ThemeMutationObserver:()=>Mt,enableGlobalTheme:()=>Ct,getGlobalTheme:()=>Ut,getSSRAutoScript:()=>Dt,getThemeHtmlAttrs:()=>it,getThemeStyles:()=>jt,getTokenValue:()=>We,setGlobalTheme:()=>Pt,themeConfig:()=>Fe,themeObjectToString:()=>rt,themeStringToObject:()=>tt,token:()=>qe,useThemeObserver:()=>Tt()});var t={};function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function c(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t,r,n,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){p(a,n,o,i,s,"next",e)}function s(e){p(a,n,o,i,s,"throw",e)}i(void 0)}))}}o.r(t),o.d(t,{disableTestingTheme:()=>$t,enableTestingTheme:()=>Bt,setTestingThemeColor:()=>Kt,toggleTestingTheme:()=>Jt});var v=o(6192),b=o.n(v),y=o(7726),m=o(7553);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var w="@all-features",O=function(){return c((function e(){r(this,e),l(this,"eventToValue",new Map),this.emitter=new m.EventEmitter2}),[{key:"onGateUpdated",value:function(e,t,r,n){var o=this,a=r(e,k(k({},n),{},{fireGateExposure:!1}));void 0===this.eventToValue.get(t)&&this.eventToValue.set(t,a);var i=function(){var a=r(e,k(k({},n),{},{fireGateExposure:!1}));o.eventToValue.get(t)!==a&&(o.eventToValue.set(t,a),t(a))};return this.emitter.on(e,i),function(){o.emitter.off(e,i)}}},{key:"onExperimentValueUpdated",value:function(e,t,r,n,o,a){var i=this,s="".concat(e,".").concat(t),c=o(e,t,r,k(k({},a),{},{fireExperimentExposure:!1}));void 0===this.eventToValue.get(n)&&this.eventToValue.set(n,c);var l=function(){var s=o(e,t,r,k(k({},a),{},{fireExperimentExposure:!1}));i.eventToValue.get(n)!==s&&(i.eventToValue.set(n,s),n(s))};return this.emitter.on(s,l),function(){i.emitter.off(s,l)}}},{key:"onAnyUpdated",value:function(e){var t=this;return this.emitter.on(w,e),function(){t.emitter.off(w,e)}}},{key:"anyUpdated",value:function(){var e=this;this.emitter.emit(w),this.emitter.eventNames().filter((function(e){return e!==w})).forEach((function(t){e.emitter.emit(t)}))}}])}();function E(){var e,t=globalThis,r=t.MICROS_PERIMETER||t.UNSAFE_ATL_CONTEXT_BOUNDARY;if(r)return"fedramp-moderate"===r;var n=null===(e=t.location)||void 0===e||null===(e=e.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!!n&&n.length>0}var S=function(e){return e.Error="Error",e.LocalOverride="LocalOverride",e.Unrecognized="Unrecognized",e.Uninitialized="Uninitialized",e.NetworkNotModified="NetworkNotModified",e.Network="Network",e.InvalidBootstrap="InvalidBootstrap",e.Bootstrap="Bootstrap",e.Cache="Cache",e.Unknown="Unknown",e}({}),x=function(e){return e.Development="development",e.Staging="staging",e.Production="production",e}({}),P=function(e){return e.COMMERCIAL="commercial",e.FEDRAMP_MODERATE="fedramp-moderate",e}({}),C=["api","disableCurrentPageLogging","loggingIntervalMillis","loggingBufferMaxSize","localMode","eventLoggingApi","eventLoggingApiForRetries","disableLocalStorage","ignoreWindowUndefined","disableAllLogging","initTimeoutMs","disableNetworkKeepalive","overrideStableID","disableErrorLogging","disableAutoMetricsLogging"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A=function(e){return D({perimeter:E()?P.FEDRAMP_MODERATE:P.COMMERCIAL},e)},T=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var r=Object.entries(e),n=Object.entries(t);if(r.length!==n.length)return!1;var o=function(e,t){var r=g(e,1)[0],n=g(t,1)[0];return r.localeCompare(n)};r.sort(o),n.sort(o);for(var a=0;a<r.length;a++){if(g(r[a],2)[1]!==g(n[a],2)[1])return!1}return!0},I=function(e,t,r){var n={customIDs:null!=t&&t.stableID||!r?e:D({stableID:y.StableID.get(r)},e),custom:t};return e.atlassianAccountId&&(n.userID=e.atlassianAccountId),n},L=function(e){var t=e.api,r=e.disableCurrentPageLogging,n=e.loggingIntervalMillis,o=e.loggingBufferMaxSize,a=e.localMode,i=e.eventLoggingApi,s=e.eventLoggingApiForRetries,c=e.disableLocalStorage,l=e.ignoreWindowUndefined,d=e.disableAllLogging;e.initTimeoutMs,e.disableNetworkKeepalive,e.overrideStableID,e.disableErrorLogging,e.disableAutoMetricsLogging;return D(D({},u(e,C)),{},{networkConfig:{api:t,logEventUrl:i?i+"rgstr":void 0,logEventFallbackUrls:s?[s]:void 0,preventAllNetworkTraffic:a||!l&&"undefined"==typeof window},includeCurrentPageUrlWithEvents:!r,loggingIntervalMs:n,loggingBufferMaxSize:o,disableStorage:c,disableLogging:d})},U=Object.entries(S).map((function(e){var t=g(e,2),r=t[0],n=t[1];return[r.toLowerCase(),n]})),M=function(e){var t,r,n,o=e.reason.toLowerCase();return{reason:null!==(t=null===(r=U.find((function(e){var t=g(e,1)[0];return o.includes(t)})))||void 0===r?void 0:r[1])&&void 0!==t?t:S.Unknown,time:null!==(n=e.receivedAt)&&void 0!==n?n:Date.now()}},N=function(){function e(t,n,o,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;r(this,e),this.value=n,this._name=t,this._ruleID=o,this._secondaryExposures=i,this._allocatedExperimentName=s,this._evaluationDetails=a,this._onDefaultValueFallback=c}return c(e,[{key:"get",value:function(e,t,r){var o,a=this.getValue(e,t);if(null==a)return t;var i,s=Array.isArray(t)?"array":n(t),c=Array.isArray(a)?"array":n(a);return r?r(a)?(this.fireExposure(e),a):(null===(i=this._onDefaultValueFallback)||void 0===i||i.call(this,this,e,s,c),t):null==t||s===c?(this.fireExposure(e),a):(null===(o=this._onDefaultValueFallback)||void 0===o||o.call(this,this,e,s,c),t)}},{key:"getValue",value:function(e,t){return null==e?this.value:(null==t&&(t=null),null==this.value[e]?t:(this.fireExposure(e),this.value[e]))}},{key:"fireExposure",value:function(e){this.experiment&&this.experiment.get(e)}}],[{key:"fromExperiment",value:function(t){var r,n,o=new e(t.name,t.value,t.ruleID,M(t.details),null===(r=t.__evaluation)||void 0===r?void 0:r.secondary_exposures,null!==(n=t.groupName)&&void 0!==n?n:void 0);return o.experiment=t,o}}])}(),F=function(){function e(t,n,o,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[];r(this,e),this._logParameterFunction=i,this._name=t,this._value=JSON.parse(JSON.stringify(null!=n?n:{})),this._ruleID=null!=o?o:"",this._evaluationDetails=a,this._secondaryExposures=s,this._undelegatedSecondaryExposures=c,this._allocatedExperimentName=l,this._explicitParameters=u}return c(e,[{key:"get",value:function(e,t,r){var o=this,a=this._value[e];if(null==a)return t;var i=function(){return o._logLayerParameterExposure(e),a};return r?r(a)?i():t:null==t||n(a)===n(t)&&Array.isArray(t)===Array.isArray(a)?i():t}},{key:"getValue",value:function(e,t){null==t&&(t=null);var r=this._value[e];return null!=r&&this._logLayerParameterExposure(e),null!=r?r:t}},{key:"_logLayerParameterExposure",value:function(e){var t;null===(t=this._logParameterFunction)||void 0===t||t.call(this,this,e)}}],[{key:"fromLayer",value:function(t){var r,n,o,a;return new e(t.name,t.__value,t.ruleID,M(t.details),(function(e,r){return t.get(r)}),null===(r=t.__evaluation)||void 0===r?void 0:r.secondary_exposures,null===(n=t.__evaluation)||void 0===n?void 0:n.undelegated_secondary_exposures,null===(o=t.__evaluation)||void 0===o?void 0:o.allocated_experiment_name,null===(a=t.__evaluation)||void 0===a?void 0:a.explicit_parameters)}}])}(),R="4.26.2";function V(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(B=function(){return!!e})()}function $(e){var t="function"==typeof Map?new Map:void 0;return $=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(B())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&K(o,r.prototype),o}(e,arguments,G(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),K(r,e)},$(e)}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(J=function(){return!!e})()}var q=function(e){function t(e){return r(this,t),n=this,a=[e],o=G(o=t),V(n,J()?Reflect.construct(o,a||[],G(n).constructor):o.apply(n,a));var n,o,a}return z(t,e),c(t)}($(Error));function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var X=function(){function e(){r(this,e)}return c(e,null,[{key:"fetchClientSdk",value:(i=f(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.targetApp,n="/api/v2/frontend/clientSdkKey/".concat(r),e.prev=2,e.next=5,this.fetchRequest(n,"GET",t);case 5:return e.abrupt("return",e.sent);case 8:if(e.prev=8,e.t0=e.catch(2),!(e.t0 instanceof Error)){e.next=12;break}throw e.t0;case 12:throw Error("Failed to retrieve client sdk key");case 13:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return i.apply(this,arguments)})},{key:"fetchExperimentValues",value:(a=f(b().mark((function e(t,r,n){var o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={identifiers:r,customAttributes:n,targetApp:t.targetApp},e.prev=1,e.next=4,this.fetchRequest("/api/v2/frontend/experimentValues","POST",t,o);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof Error)){e.next=11;break}throw e.t0;case 11:throw Error("Failed to retrieve experiment values");case 12:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"handleResponseError",value:(o=f(b().mark((function e(t){var r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=5;break}return e.next=3,t.text();case 3:throw r=e.sent,new q("Non 2xx response status received, status: ".concat(t.status,", body: ").concat(JSON.stringify(r)));case 5:if(204!==t.status){e.next=7;break}throw new q("Unexpected 204 response");case 7:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"extractResponseBody",value:(n=f(b().mark((function e(t){var r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:return r=e.sent,e.abrupt("return",JSON.parse(r));case 4:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getBaseUrl",value:function(e){var t=arguments.length>2?arguments[2]:void 0;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return"/gateway/api/flags";if(t===P.FEDRAMP_MODERATE)switch(e){case x.Production:return"https://api.atlassian-us-gov-mod.com/flags";case x.Staging:return"https://api.stg.atlassian-us-gov-mod.com/flags";default:throw new Error('Invalid environment "'.concat(e,'" for "').concat(t,'" perimeter'))}else{if(t!==P.COMMERCIAL)throw new Error('Invalid perimeter "'.concat(t,'"'));switch(e){case x.Development:return"https://api.dev.atlassian.com/flags";case x.Staging:return"https://api.stg.atlassian.com/flags";default:return"https://api.atlassian.com/flags"}}}},{key:"fetchRequest",value:(t=f(b().mark((function t(r,n,o,a){var i,s,c,l,u;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getBaseUrl(o.environment,o.useGatewayURL,o.perimeter),s=o.fetchTimeoutMs||5e3,AbortSignal.timeout?c=AbortSignal.timeout(s):AbortController&&(l=new AbortController,c=l.signal,setTimeout((function(){return l.abort()}),s)),t.next=5,fetch("".concat(i).concat(r),H({method:n,headers:{"Content-Type":"application/json","X-Client-Name":"feature-gate-js-client","X-Client-Version":R,"X-API-KEY":o.apiKey},signal:c},a&&{body:JSON.stringify(a)}));case 5:return u=t.sent,t.next=8,this.handleResponseError(u);case 8:return t.next=10,this.extractResponseBody(u);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)}))),function(e,r,n,o){return t.apply(this,arguments)})}]);var t,n,o,a,i}();function Q(){return Q="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=G(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},Q.apply(null,arguments)}function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ee=function(){return!!e})()}var te=function(e){function t(){var e,n,o,a;return r(this,t),n=this,a=["NoFetchDataAdapter","nofetch"],o=G(o=t),l(e=V(n,ee()?Reflect.construct(o,a||[],G(n).constructor):o.apply(n,a)),"bootstrapResult",null),e}return z(t,e),c(t,[{key:"setBootstrapData",value:function(e){this.bootstrapResult=e?{source:"Bootstrap",data:JSON.stringify(e),receivedAt:Date.now(),stableID:y.StableID.get(this._getSdkKey()),fullUserHash:null}:null}},{key:"prefetchData",value:(a=f(b().mark((function e(t,r){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(e,t){return a.apply(this,arguments)})},{key:"getDataAsync",value:(o=f(b().mark((function e(t,r,n){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.bootstrapResult&&Z(Z({},this.bootstrapResult),{},{fullUserHash:(0,y._getFullUserHash)(r)}));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return o.apply(this,arguments)})},{key:"getDataSync",value:function(e){return this.bootstrapResult&&Z(Z({},this.bootstrapResult),{},{fullUserHash:(0,y._getFullUserHash)(e)})}},{key:"_fetchFromNetwork",value:(n=f(b().mark((function e(t,r,n){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"_getCacheKey",value:function(e){var t=(0,y._getStorageKey)(this._getSdkKey(),e);return"".concat(y.DataAdapterCachePrefix,".").concat(this._cacheSuffix,".").concat(t)}},{key:"_isCachedResultValidFor204",value:function(e,t){return!1}},{key:"setDataLegacy",value:function(e,r){var n,o,a,i,s;(n=t,o="setData",a=this,s=Q(G(1&(i=3)?n.prototype:n),o,a),2&i&&"function"==typeof s?function(e){return s.apply(a,e)}:s)([e,r])}},{key:"toJSON",value:function(){var e=Z({},this);return delete e._options,delete e._inMemoryCache,delete e.bootstrapResult,e}}]);var n,o,a}(y.DataAdapterCore),re=o(382);function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ie(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var se="LocalOverride:Recognized",ce="STATSIG_OVERRIDES",le=function(e,t){return t+":"+e},ue=function(){return c((function e(t){r(this,e),this._overrides={gates:{},configs:{},layers:{}},this._djb2Map=new Map,this._localStorageKey=t}),[{key:"parseStoredOverrides",value:function(e){try{var t=window.localStorage.getItem(e);return t?JSON.parse(t):{gates:{},configs:{},layers:{}}}catch(e){return{gates:{},configs:{},layers:{}}}}},{key:"mergeOverrides",value:function(){for(var e={gates:{},configs:{},layers:{}},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var o=0,a=r;o<a.length;o++){for(var i=a[o],s=0,c=Object.entries(null!==(l=i.gates)&&void 0!==l?l:{});s<c.length;s++){var l,u=g(c[s],2),d=u[0],h=u[1];e.gates[d]=h}for(var p=0,f=Object.entries(null!==(v=i.configs)&&void 0!==v?v:{});p<f.length;p++){var v,b=g(f[p],2),y=b[0],m=b[1];e.configs[y]=m}for(var _=0,k=Object.entries(null!==(w=i.layers)&&void 0!==w?w:{});_<k.length;_++){var w,O=g(k[_],2),E=O[0],S=O[1];e.layers[E]=S}}return e}},{key:"initFromStoredOverrides",value:function(){for(var e=this.mergeOverrides(this._overrides,this.parseStoredOverrides("STATSIG_JS_LITE_LOCAL_OVERRIDES"),this.parseStoredOverrides(this._localStorageKey)),t=0,r=Object.values(e);t<r.length;t++){var n,o=r[t],a=new Set(Object.keys(o)),i=ae(a);try{for(i.s();!(n=i.n()).done;){var s=n.value,c=(0,re._DJB2)(s);a.has(c)&&delete o[c]}}catch(e){i.e(e)}finally{i.f()}}this.applyOverrides(e)}},{key:"saveOverrides",value:function(){try{window.localStorage.setItem(this._localStorageKey,JSON.stringify(this._overrides))}catch(e){}}},{key:"getOverrides",value:function(){return this.mergeOverrides(this._overrides)}},{key:"applyOverrides",value:function(e){var t=oe(oe({},{gates:{},configs:{},layers:{}}),e);this._djb2Map.clear();for(var r=0,n=Object.entries(t);r<n.length;r++)for(var o=g(n[r],2),a=o[0],i=o[1],s=0,c=Object.entries(i);s<c.length;s++){var l=g(c[s],2),u=l[0],d=l[1];this._djb2Map.set(le((0,re._DJB2)(u),a),d)}this._overrides=t}},{key:"setOverrides",value:function(e){this.applyOverrides(e),this.saveOverrides()}},{key:"overrideGate",value:function(e,t){this._overrides.gates[e]=t,this._djb2Map.set(le((0,re._DJB2)(e),"gates"),t),this.saveOverrides()}},{key:"removeGateOverride",value:function(e){delete this._overrides.gates[e],this._djb2Map.delete(le((0,re._DJB2)(e),"gates")),this.saveOverrides()}},{key:"getGateOverride",value:function(e,t){var r,n=null!==(r=this._overrides.gates[e.name])&&void 0!==r?r:this._djb2Map.get(le(e.name,"gates"));return null==n?null:oe(oe({},e),{},{value:n,details:oe(oe({},e.details),{},{reason:se})})}},{key:"overrideDynamicConfig",value:function(e,t){this._overrides.configs[e]=t,this._djb2Map.set(le((0,re._DJB2)(e),"configs"),t),this.saveOverrides()}},{key:"removeDynamicConfigOverride",value:function(e){delete this._overrides.configs[e],this._djb2Map.delete(le((0,re._DJB2)(e),"configs")),this.saveOverrides()}},{key:"getDynamicConfigOverride",value:function(e,t){return this._getConfigOverride(e,this._overrides.configs)}},{key:"overrideExperiment",value:function(e,t){this._overrides.configs[e]=t,this._djb2Map.set(le((0,re._DJB2)(e),"configs"),t),this.saveOverrides()}},{key:"removeExperimentOverride",value:function(e){delete this._overrides.configs[e],this._djb2Map.delete(le((0,re._DJB2)(e),"configs")),this.saveOverrides()}},{key:"getExperimentOverride",value:function(e,t){return this._getConfigOverride(e,this._overrides.configs)}},{key:"overrideLayer",value:function(e,t){this._overrides.layers[e]=t,this._djb2Map.set(le((0,re._DJB2)(e),"layers"),t),this.saveOverrides()}},{key:"removeLayerOverride",value:function(e){delete this._overrides.layers[e],this._djb2Map.delete(le((0,re._DJB2)(e),"layers")),this.saveOverrides()}},{key:"removeAllOverrides",value:function(){this._overrides={gates:{},configs:{},layers:{}},window.localStorage.removeItem(ce)}},{key:"getLayerOverride",value:function(e,t){var r,n=null!==(r=this._overrides.layers[e.name])&&void 0!==r?r:this._djb2Map.get(le(e.name,"layers"));return null==n?null:oe(oe({},e),{},{__value:n,get:(0,re._makeTypedGet)(e.name,n),details:oe(oe({},e.details),{},{reason:se})})}},{key:"_getConfigOverride",value:function(e,t){var r,n=null!==(r=t[e.name])&&void 0!==r?r:this._djb2Map.get(le(e.name,"configs"));return null==n?null:oe(oe({},e),{},{value:n,get:(0,re._makeTypedGet)(e.name,n),details:oe(oe({},e.details),{},{reason:se})})}}])}(),de=["sdkKey","environment","updateUserCompletionCallback","perimeter"];function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pe,fe="client-default-key",ve=function(){return c((function e(){var t=this,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).localStorageKey,o=void 0===n?ce:n;r(this,e),l(this,"initPromise",null),l(this,"initCompleted",!1),l(this,"initWithDefaults",!1),l(this,"hasCheckGateErrorOccurred",!1),l(this,"hasGetExperimentErrorOccurred",!1),l(this,"hasGetExperimentValueErrorOccurred",!1),l(this,"hasGetLayerErrorOccurred",!1),l(this,"hasGetLayerValueErrorOccurred",!1),l(this,"subscriptions",new O),l(this,"dataAdapter",new te),l(this,"statsigValuesUpdated",(function(){t.user&&t.statsigClient.updateUserSync(t.user,{disableBackgroundCacheRefresh:!0}),t.subscriptions.anyUpdated()})),this.overrideAdapter=new ue(o)}),[{key:"initialize",value:(v=f(b().mark((function e(t,r,n){var o,a,i=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=A(t),!this.initPromise){e.next=4;break}return T(o,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return a=performance.now(),this.initOptions=o,this.initPromise=this.init(o,r,n).then((function(){i.initCompleted=!0,i.initWithDefaults=!0})).finally((function(){var e=performance.now()-a;i.fireClientEvent(a,e,"initialize",i.initCompleted,o.apiKey)})),e.abrupt("return",this.initPromise);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return v.apply(this,arguments)})},{key:"initializeWithProvider",value:(p=f(b().mark((function e(t,r,n,o){var a,i,s=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=A(t),!this.initPromise){e.next=4;break}return T(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return i=performance.now(),this.initOptions=a,this.provider=r,this.provider.setClientVersion(R),this.provider.setApplyUpdateCallback&&this.provider.setApplyUpdateCallback(this.applyUpdateCallback.bind(this)),this.initPromise=this.initWithProvider(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeWithProvider",s.initCompleted,r.getApiKey?r.getApiKey():void 0)})),e.abrupt("return",this.initPromise);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return p.apply(this,arguments)})},{key:"applyUpdateCallback",value:function(e){try{(this.initCompleted||this.initWithDefaults)&&(this.assertInitialized(this.statsigClient),this.dataAdapter.setBootstrapData(e.experimentValues),this.dataAdapter.setData(JSON.stringify(e.experimentValues)),this.statsigValuesUpdated())}catch(e){console.warn("Error when attempting to apply update",e)}}},{key:"fireClientEvent",value:function(e,t,r,n){var o,a=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;null===(o=this.initOptions.analyticsWebClient)||void 0===o||o.then((function(o){var s=ge({targetApp:a.initOptions.targetApp,clientVersion:R,success:n,startTime:e,totalTime:t},i&&{apiKey:i});o.sendOperationalEvent({action:r,actionSubject:"featureGatesClient",attributes:s,tags:["measurement"],source:"@atlaskit/feature-gate-js-client"})})).catch((function(e){a.initOptions.environment!==x.Production&&console.error("Analytics web client promise did not resolve",e)}))}},{key:"initializeFromValues",value:(h=f(b().mark((function e(t,r,n){var o,a,i,s=this,c=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]?c[3]:{},a=A(t),!this.initPromise){e.next=5;break}return T(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 5:return Object.prototype.hasOwnProperty.call(o,"has_updates")||(o.has_updates=!0),i=performance.now(),this.initOptions=a,this.initPromise=this.initFromValues(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeFromValues",s.initCompleted)})),e.abrupt("return",this.initPromise);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return h.apply(this,arguments)})},{key:"assertInitialized",value:function(e){if(!e)throw new Error("Client must be initialized before using this method")}},{key:"updateUser",value:(d=f(b().mark((function e(t,r,n){var o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertInitialized(this.statsigClient),o=A(t),a=function(){return X.fetchExperimentValues(o,r,n).then((function(e){return{experimentValues:e.experimentValues,customAttributesFromFetch:e.customAttributes}}))},e.next=5,this.updateUserUsingInitializeValuesProducer(a,r,n);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return d.apply(this,arguments)})},{key:"updateUserWithProvider",value:(s=f(b().mark((function e(t,r){var n=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.assertInitialized(this.statsigClient),this.provider){e.next=3;break}throw new Error("Cannot update user using provider as the client was not initialised with a provider");case 3:return e.next=5,this.provider.setProfile(this.initOptions,t,r);case 5:return e.next=7,this.updateUserUsingInitializeValuesProducer((function(){return n.provider.getExperimentValues()}),t,r);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"updateUserWithValues",value:(i=f(b().mark((function e(t,r){var n,o,a=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:{},this.assertInitialized(this.statsigClient),o=function(){return Promise.resolve({experimentValues:n,customAttributesFromFetch:r})},e.next=5,this.updateUserUsingInitializeValuesProducer(o,t,r);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"initializeCalled",value:function(){return null!=this.initPromise}},{key:"initializeCompleted",value:function(){return this.initCompleted}},{key:"checkGate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{this.assertInitialized(this.statsigClient);var r=t.fireGateExposure,n=void 0===r||r;return this.statsigClient.checkGate(e,{disableExposureLog:!n})}catch(t){return this.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate. Only the first occurrence of this error is logged.",gateName:e,error:t}),this.hasCheckGateErrorOccurred=!0),!1}}},{key:"isGateExist",value:function(e){try{return this.assertInitialized(this.statsigClient),!this.statsigClient.getFeatureGate(e,{disableExposureLog:!0}).details.reason.includes("Unrecognized")}catch(e){return console.error("Error occurred when trying to check FeatureGate: ".concat(e)),!0}}},{key:"isExperimentExist",value:function(e){try{return this.assertInitialized(this.statsigClient),!this.statsigClient.getExperiment(e,{disableExposureLog:!0}).details.reason.includes("Unrecognized")}catch(e){return console.error("Error occurred when trying to check Experiment: ".concat(e)),!0}}},{key:"manuallyLogGateExposure",value:function(e){this.assertInitialized(this.statsigClient),this.statsigClient.checkGate(e)}},{key:"getExperiment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{this.assertInitialized(this.statsigClient);var r=t.fireExperimentExposure,n=void 0===r||r;return N.fromExperiment(this.statsigClient.getExperiment(e,{disableExposureLog:!n}))}catch(t){return this.hasGetExperimentErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment. Only the first occurrence of this error is logged.",experimentName:e,error:t}),this.hasGetExperimentErrorOccurred=!0),new N(e,{},"",{time:Date.now(),reason:S.Error})}}},{key:"getExperimentValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getExperiment(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value. Only the first occurrence of this error is logged.",experimentName:e,defaultValue:r,options:n,error:t}),this.hasGetExperimentValueErrorOccurred=!0),r}}},{key:"manuallyLogExperimentExposure",value:function(e){this.assertInitialized(this.statsigClient),this.statsigClient.getExperiment(e)}},{key:"manuallyLogLayerExposure",value:function(e,t){var r;this.assertInitialized(this.statsigClient),null===(r=this.statsigClient.getLayer(e))||void 0===r||r.get(t)}},{key:"shutdownStatsig",value:function(){this.assertInitialized(this.statsigClient),this.statsigClient.shutdown()}},{key:"overrideGate",value:function(e,t){var r;(this.overrideAdapter.overrideGate(e,t),this.user)&&(null===(r=this.statsigClient)||void 0===r||r.updateUserSync(this.user,{disableBackgroundCacheRefresh:!0}));this.statsigValuesUpdated()}},{key:"clearGateOverride",value:function(e){this.overrideAdapter.removeGateOverride(e),this.statsigValuesUpdated()}},{key:"overrideConfig",value:function(e,t){this.overrideAdapter.overrideDynamicConfig(e,t),this.statsigValuesUpdated()}},{key:"clearConfigOverride",value:function(e){this.overrideAdapter.removeDynamicConfigOverride(e),this.statsigValuesUpdated()}},{key:"setOverrides",value:function(e){this.overrideAdapter.setOverrides(e),this.statsigValuesUpdated()}},{key:"getOverrides",value:function(){return this.overrideAdapter.getOverrides()}},{key:"clearAllOverrides",value:function(){this.overrideAdapter.removeAllOverrides(),this.statsigValuesUpdated()}},{key:"isCurrentUser",value:function(e,t){return T(this.currentIdentifiers,e)&&T(this.currentAttributes,t)}},{key:"onGateUpdated",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.subscriptions.onGateUpdated(e,(function(o){var a=n.fireGateExposure;(void 0===a||a)&&r.manuallyLogGateExposure(e);try{t(o)}catch(t){console.warn("Error calling callback for gate ".concat(e," with value ").concat(o),t)}}),this.checkGate.bind(this),n)}},{key:"onExperimentValueUpdated",value:function(e,t,r,n){var o=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return this.subscriptions.onExperimentValueUpdated(e,t,r,(function(t){var r=a.fireExperimentExposure;(void 0===r||r)&&o.manuallyLogExperimentExposure(e);try{n(t)}catch(r){console.warn("Error calling callback for experiment ".concat(e," with value ").concat(t),r)}}),this.getExperimentValue.bind(this),a)}},{key:"onAnyUpdated",value:function(e){return this.subscriptions.onAnyUpdated(e)}},{key:"init",value:(a=f(b().mark((function e(t,r,n){var o,a,i,s,c,l,u,d;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=ge({},t),e.prev=1,s=X.fetchClientSdk(t).then((function(e){return o.sdkKey=e.clientSdkKey})),c=X.fetchExperimentValues(t,r,n),e.next=6,Promise.all([s,c]);case 6:l=e.sent,u=g(l,2),d=u[1],a=d.experimentValues,i=d.customAttributes,e.next=20;break;case 13:return e.prev=13,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=19,this.initFromValues(o,r,n);case 19:throw e.t0;case 20:return e.abrupt("return",this.initFromValues(o,r,i,a));case 21:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"initWithProvider",value:(o=f(b().mark((function e(t,r,n,o){var a,i,s,c,l,u,d,h;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=ge(ge({},t),{},{disableCurrentPageLogging:!0}),e.prev=1,e.next=4,r.setProfile(t,n,o);case 4:return c=r.getClientSdkKey().then((function(e){return a.sdkKey=e})),l=r.getExperimentValues(),e.next=8,Promise.all([c,l]);case 8:u=e.sent,d=g(u,2),h=d[1],i=h.experimentValues,s=h.customAttributesFromFetch,e.next=22;break;case 15:return e.prev=15,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=21,this.initFromValues(a,n,o);case 21:throw e.t0;case 22:return e.abrupt("return",this.initFromValues(a,n,s,i));case 23:case"end":return e.stop()}}),e,this,[[1,15]])}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"initFromValues",value:(n=f(b().mark((function e(t,r,n){var o,a,i,s,c,l,d,h=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=h.length>3&&void 0!==h[3]?h[3]:{},this.overrideAdapter.initFromStoredOverrides(),this.currentIdentifiers=r,this.currentAttributes=n,(i=L(t)).sdkKey||(i.sdkKey=fe),null!==(o=i.networkConfig)&&void 0!==o&&o.logEventUrl||(i.networkConfig=ge(ge({},i.networkConfig),{},{logEventUrl:"https://xp.atlassian.com/v1/rgstr"})),i.perimeter===P.FEDRAMP_MODERATE&&(i.disableLogging=!0),s=i.sdkKey,c=i.environment,i.updateUserCompletionCallback,i.perimeter,l=u(i,de),this.sdkKey=s,this.user=I(r,n,this.sdkKey),d=ge(ge({},l),{},{environment:{tier:c},includeCurrentPageUrlWithEvents:!1,dataAdapter:this.dataAdapter,overrideAdapter:this.overrideAdapter}),e.prev=12,this.statsigClient=new y.StatsigClient(s,this.user,d),this.dataAdapter.setBootstrapData(a),e.next=17,this.statsigClient.initializeAsync();case 17:e.next=29;break;case 19:return e.prev=19,e.t0=e.catch(12),e.t0 instanceof Error&&console.error("Error occurred when trying to initialise the Statsig client, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client with default sdk key and without values"),this.statsigClient=new y.StatsigClient(fe,this.user,d),this.dataAdapter.setBootstrapData(),e.next=27,this.statsigClient.initializeAsync();case 27:throw this.initWithDefaults=!0,e.t0;case 29:case"end":return e.stop()}}),e,this,[[12,19]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"updateUserUsingInitializeValuesProducer",value:(t=f(b().mark((function e(t,r,n){var o,a,i,s=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.assertInitialized(this.statsigClient),this.initPromise){e.next=3;break}throw new Error("The client must be initialized before you can update the user.");case 3:if(!this.isCurrentUser(r,n)){e.next=5;break}return e.abrupt("return",this.initPromise);case 5:return o=this.initPromise,e.prev=6,e.next=9,this.initPromise;case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(6);case 13:return a=t(),i=this.updateStatsigClientUser(a,r,n),this.initPromise=i.catch(f(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.initPromise=o,!s.provider){e.next=4;break}return e.next=4,s.provider.setProfile(s.initOptions,s.currentIdentifiers,s.currentAttributes);case 4:case"end":return e.stop()}}),e)})))),e.abrupt("return",i);case 17:case"end":return e.stop()}}),e,this,[[6,11]])}))),function(e,r,n){return t.apply(this,arguments)})},{key:"updateStatsigClientUser",value:(e=f(b().mark((function e(t,r,n){var o,a,i,s,c,l,u,d,h;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertInitialized(this.statsigClient),e.prev=1,e.next=4,t;case 4:i=e.sent,s=I(r,i.customAttributesFromFetch,this.sdkKey),e.next=13;break;case 8:throw e.prev=8,e.t0=e.catch(1),u=e.t0 instanceof Error?e.t0.message:JSON.stringify(e.t0),null===(c=(l=this.initOptions).updateUserCompletionCallback)||void 0===c||c.call(l,!1,u),e.t0;case 13:return d=!0,h=null,e.prev=15,this.dataAdapter.setBootstrapData(i.experimentValues),this.user=s,e.next=20,this.statsigClient.updateUserAsync(this.user);case 20:e.next=26;break;case 22:e.prev=22,e.t1=e.catch(15),d=!1,h=String(e.t1);case 26:if(null===(o=this.initOptions)||void 0===o||null===(a=o.updateUserCompletionCallback)||void 0===a||a.call(o,d,h),!d){e.next=33;break}this.currentIdentifiers=r,this.currentAttributes=n,this.subscriptions.anyUpdated(),e.next=34;break;case 33:throw new Error("Failed to update user. An unexpected error occured.");case 34:case"end":return e.stop()}}),e,this,[[1,8],[15,22]])}))),function(t,r,n){return e.apply(this,arguments)})},{key:"getPackageVersion",value:function(){return R}},{key:"getLayer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{this.assertInitialized(this.statsigClient);var r=t.fireLayerExposure,n=void 0===r||r;return F.fromLayer(this.statsigClient.getLayer(e,{disableExposureLog:!n}))}catch(t){return this.hasGetLayerErrorOccurred||(console.warn({msg:"An error has occurred getting the layer. Only the first occurrence of this error is logged.",layerName:e,error:t}),this.hasGetLayerErrorOccurred=!0),F.fromLayer((0,y._makeLayer)(e,{reason:"Error"},null))}}},{key:"getLayerValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getLayer(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetLayerValueErrorOccurred||(console.warn({msg:"An error has occurred getting the layer value. Only the first occurrence of this error is logged.",layerName:e,defaultValue:r,options:n,error:t}),this.hasGetLayerValueErrorOccurred=!0),r}}}]);var e,t,n,o,a,i,s,d,h,p,v}(),be=function(){return c((function e(){r(this,e)}),null,[{key:"isGateExists",value:function(e){return this.client.isGateExist(e)}},{key:"isExperimentExists",value:function(e){return this.client.isExperimentExist(e)}}])}();pe=be,l(be,"client",new ve),l(be,"hasCheckGateErrorOccurred",!1),l(be,"hasGetExperimentValueErrorOccurred",!1),l(be,"checkGate",(function(e,t){try{if(window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getFeatureFlagOverride){var r=window.__CRITERION__.getFeatureFlagOverride(e);if(void 0!==r)return r}}catch(t){pe.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:e,error:t}),pe.hasCheckGateErrorOccurred=!0)}return pe.client.checkGate(e,t)})),l(be,"getExperimentValue",(function(e,t,r,n){try{if("undefined"!=typeof window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getExperimentValueOverride){var o=window.__CRITERION__.getExperimentValueOverride(e,t);if(null!=o)return o}}catch(t){return pe.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:e,defaultValue:r,options:n,error:t}),pe.hasGetExperimentValueErrorOccurred=!0),r}return pe.client.getExperimentValue(e,t,r,n)})),l(be,"initializeCalled",pe.client.initializeCalled.bind(pe.client)),l(be,"initializeCompleted",pe.client.initializeCompleted.bind(pe.client)),l(be,"initialize",pe.client.initialize.bind(pe.client)),l(be,"initializeWithProvider",pe.client.initializeWithProvider.bind(pe.client)),l(be,"initializeFromValues",pe.client.initializeFromValues.bind(pe.client)),l(be,"manuallyLogGateExposure",pe.client.manuallyLogGateExposure.bind(pe.client)),l(be,"getExperiment",pe.client.getExperiment.bind(pe.client)),l(be,"manuallyLogExperimentExposure",pe.client.manuallyLogExperimentExposure.bind(pe.client)),l(be,"manuallyLogLayerExposure",pe.client.manuallyLogLayerExposure.bind(pe.client)),l(be,"shutdownStatsig",pe.client.shutdownStatsig.bind(pe.client)),l(be,"overrideGate",pe.client.overrideGate.bind(pe.client)),l(be,"clearGateOverride",pe.client.clearGateOverride.bind(pe.client)),l(be,"overrideConfig",pe.client.overrideConfig.bind(pe.client)),l(be,"clearConfigOverride",pe.client.clearConfigOverride.bind(pe.client)),l(be,"setOverrides",pe.client.setOverrides.bind(pe.client)),l(be,"getOverrides",pe.client.getOverrides.bind(pe.client)),l(be,"clearAllOverrides",pe.client.clearAllOverrides.bind(pe.client)),l(be,"isCurrentUser",pe.client.isCurrentUser.bind(pe.client)),l(be,"onGateUpdated",pe.client.onGateUpdated.bind(pe.client)),l(be,"onExperimentValueUpdated",pe.client.onExperimentValueUpdated.bind(pe.client)),l(be,"onAnyUpdated",pe.client.onAnyUpdated.bind(pe.client)),l(be,"updateUser",pe.client.updateUser.bind(pe.client)),l(be,"updateUserWithProvider",pe.client.updateUserWithProvider.bind(pe.client)),l(be,"updateUserWithValues",pe.client.updateUserWithValues.bind(pe.client)),l(be,"getPackageVersion",pe.client.getPackageVersion.bind(pe.client)),l(be,"getLayer",pe.client.getLayer.bind(pe.client)),l(be,"getLayerValue",pe.client.getLayerValue.bind(pe.client));var ye=be;if("undefined"!=typeof window)if(void 0===window.__FEATUREGATES_JS__)window.__FEATUREGATES_JS__=be;else{var me,_e,ke=(null===(me=ye=window.__FEATUREGATES_JS__)||void 0===me||null===(_e=me.getPackageVersion)||void 0===_e?void 0:_e.call(me))||"4.10.0 or earlier";if(ke!==R){var we="Multiple versions of FeatureGateClients found on the current page.\n The currently bound version is ".concat(ke," when module version ").concat(R," was loading.");console.warn(we)}}const Oe=ye;var Ee,Se,xe=!(void 0!==(null===globalThis||void 0===globalThis||null===(Ee=globalThis.process)||void 0===Ee||null===(Ee=Ee.env)||void 0===Ee?void 0:Ee.JEST_WORKER_ID))&&"production"!==(null===globalThis||void 0===globalThis||null===(Se=globalThis.process)||void 0===Se||null===(Se=Se.env)||void 0===Se?void 0:Se.NODE_ENV),Pe="__PLATFORM_FEATURE_FLAGS__",Ce="undefined"!=typeof process&&!0,je=!!Ce&&"true"==={NODE_ENV:"production"}.ENABLE_PLATFORM_FF||!!Ce&&"true"==={NODE_ENV:"production"}.STORYBOOK_ENABLE_PLATFORM_FF,De={booleanResolver:void 0},Ae="undefined"!=typeof window?window:globalThis;function Te(e){if(je)return function(){var e;xe&&(e=console).debug.apply(e,arguments)}('[%s]: The feature flags were enabled while running tests. The flag "%s" will be always enabled.',"@atlaskit/platform-feature-flags",e),!0;try{var t,r,n;if(void 0===(null===(t=Ae[Pe])||void 0===t?void 0:t.booleanResolver)||null===(null===(r=Ae[Pe])||void 0===r?void 0:r.booleanResolver))return Oe.checkGate(e);var o=null===(n=Ae[Pe])||void 0===n?void 0:n.booleanResolver(e);return"boolean"!=typeof o?(console.warn("".concat(e," resolved to a non-boolean value, returning false for safety")),!1):o}catch(e){return!1}}function Ie(e){return Te(e)}Ae[Pe]=Ae[Pe]||De;var Le=["light","dark","auto"],Ue=["light-increased-contrast","light","light-future","light-brand-refresh","dark","dark-future","dark-increased-contrast","dark-brand-refresh","legacy-light","legacy-dark","spacing","shape","typography-adg3","typography-modernized","typography-refreshed"],Me=[].concat(Ue,[]),Ne={colorMode:"auto",contrastMode:"auto",dark:"dark",light:"light",shape:void 0,spacing:"spacing",typography:function(){if(Ie("platform-default-typography-modernized"))return"typography-modernized"},UNSAFE_themeOptions:void 0};const Fe={"atlassian-light":{id:"light",displayName:"Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"}},"atlassian-light-future":{id:"light-future",displayName:"Future Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"},override:"light"},"atlassian-light-increased-contrast":{id:"light-increased-contrast",displayName:"Light Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"light"},extends:"light",increasesContrastFor:"light"},"atlassian-dark":{id:"dark",displayName:"Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"}},"atlassian-dark-future":{id:"dark-future",displayName:"Future Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},override:"light"},"atlassian-dark-increased-contrast":{id:"dark-increased-contrast",displayName:"Dark Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},extends:"dark",increasesContrastFor:"dark"},"atlassian-legacy-light":{id:"legacy-light",displayName:"Light Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"light"}},"atlassian-legacy-dark":{id:"legacy-dark",displayName:"Dark Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"dark"}},"atlassian-spacing":{id:"spacing",displayName:"Atlassian Spacing",palette:"spacingScale",attributes:{type:"spacing"}},"atlassian-typography-adg3":{id:"typography-adg3",displayName:"ADG3 Typography",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-shape":{id:"shape",displayName:"Atlassian Shape",palette:"shapePalette",attributes:{type:"shape"}},"atlassian-typography-modernized":{id:"typography-modernized",displayName:"Atlassian Typography (Modernized)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-typography-refreshed":{id:"typography-refreshed",displayName:"Atlassian Typography (Refreshed)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-light-brand-refresh":{id:"light-brand-refresh",displayName:"Light theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"light"}},"atlassian-dark-brand-refresh":{id:"dark-brand-refresh",displayName:"Dark theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"dark"}}};const Re={"color.text":"--ds-text","color.text.accent.lime":"--ds-text-accent-lime","color.text.accent.lime.bolder":"--ds-text-accent-lime-bolder","color.text.accent.red":"--ds-text-accent-red","color.text.accent.red.bolder":"--ds-text-accent-red-bolder","color.text.accent.orange":"--ds-text-accent-orange","color.text.accent.orange.bolder":"--ds-text-accent-orange-bolder","color.text.accent.yellow":"--ds-text-accent-yellow","color.text.accent.yellow.bolder":"--ds-text-accent-yellow-bolder","color.text.accent.green":"--ds-text-accent-green","color.text.accent.green.bolder":"--ds-text-accent-green-bolder","color.text.accent.teal":"--ds-text-accent-teal","color.text.accent.teal.bolder":"--ds-text-accent-teal-bolder","color.text.accent.blue":"--ds-text-accent-blue","color.text.accent.blue.bolder":"--ds-text-accent-blue-bolder","color.text.accent.purple":"--ds-text-accent-purple","color.text.accent.purple.bolder":"--ds-text-accent-purple-bolder","color.text.accent.magenta":"--ds-text-accent-magenta","color.text.accent.magenta.bolder":"--ds-text-accent-magenta-bolder","color.text.accent.gray":"--ds-text-accent-gray","color.text.accent.gray.bolder":"--ds-text-accent-gray-bolder","color.text.disabled":"--ds-text-disabled","color.text.inverse":"--ds-text-inverse","color.text.selected":"--ds-text-selected","color.text.brand":"--ds-text-brand","color.text.danger":"--ds-text-danger","color.text.warning":"--ds-text-warning","color.text.warning.inverse":"--ds-text-warning-inverse","color.text.success":"--ds-text-success","color.text.discovery":"--ds-text-discovery","color.text.information":"--ds-text-information","color.text.subtlest":"--ds-text-subtlest","color.text.subtle":"--ds-text-subtle","color.link":"--ds-link","color.link.pressed":"--ds-link-pressed","color.link.visited":"--ds-link-visited","color.link.visited.pressed":"--ds-link-visited-pressed","color.icon":"--ds-icon","color.icon.accent.lime":"--ds-icon-accent-lime","color.icon.accent.red":"--ds-icon-accent-red","color.icon.accent.orange":"--ds-icon-accent-orange","color.icon.accent.yellow":"--ds-icon-accent-yellow","color.icon.accent.green":"--ds-icon-accent-green","color.icon.accent.teal":"--ds-icon-accent-teal","color.icon.accent.blue":"--ds-icon-accent-blue","color.icon.accent.purple":"--ds-icon-accent-purple","color.icon.accent.magenta":"--ds-icon-accent-magenta","color.icon.accent.gray":"--ds-icon-accent-gray","color.icon.disabled":"--ds-icon-disabled","color.icon.inverse":"--ds-icon-inverse","color.icon.selected":"--ds-icon-selected","color.icon.brand":"--ds-icon-brand","color.icon.danger":"--ds-icon-danger","color.icon.warning":"--ds-icon-warning","color.icon.warning.inverse":"--ds-icon-warning-inverse","color.icon.success":"--ds-icon-success","color.icon.discovery":"--ds-icon-discovery","color.icon.information":"--ds-icon-information","color.icon.subtlest":"--ds-icon-subtlest","color.icon.subtle":"--ds-icon-subtle","color.border":"--ds-border","color.border.accent.lime":"--ds-border-accent-lime","color.border.accent.red":"--ds-border-accent-red","color.border.accent.orange":"--ds-border-accent-orange","color.border.accent.yellow":"--ds-border-accent-yellow","color.border.accent.green":"--ds-border-accent-green","color.border.accent.teal":"--ds-border-accent-teal","color.border.accent.blue":"--ds-border-accent-blue","color.border.accent.purple":"--ds-border-accent-purple","color.border.accent.magenta":"--ds-border-accent-magenta","color.border.accent.gray":"--ds-border-accent-gray","color.border.disabled":"--ds-border-disabled","color.border.focused":"--ds-border-focused","color.border.input":"--ds-border-input","color.border.inverse":"--ds-border-inverse","color.border.selected":"--ds-border-selected","color.border.brand":"--ds-border-brand","color.border.danger":"--ds-border-danger","color.border.warning":"--ds-border-warning","color.border.success":"--ds-border-success","color.border.discovery":"--ds-border-discovery","color.border.information":"--ds-border-information","color.border.bold":"--ds-border-bold","color.background.accent.lime.subtlest":"--ds-background-accent-lime-subtlest","color.background.accent.lime.subtlest.hovered":"--ds-background-accent-lime-subtlest-hovered","color.background.accent.lime.subtlest.pressed":"--ds-background-accent-lime-subtlest-pressed","color.background.accent.lime.subtler":"--ds-background-accent-lime-subtler","color.background.accent.lime.subtler.hovered":"--ds-background-accent-lime-subtler-hovered","color.background.accent.lime.subtler.pressed":"--ds-background-accent-lime-subtler-pressed","color.background.accent.lime.subtle":"--ds-background-accent-lime-subtle","color.background.accent.lime.subtle.hovered":"--ds-background-accent-lime-subtle-hovered","color.background.accent.lime.subtle.pressed":"--ds-background-accent-lime-subtle-pressed","color.background.accent.lime.bolder":"--ds-background-accent-lime-bolder","color.background.accent.lime.bolder.hovered":"--ds-background-accent-lime-bolder-hovered","color.background.accent.lime.bolder.pressed":"--ds-background-accent-lime-bolder-pressed","color.background.accent.red.subtlest":"--ds-background-accent-red-subtlest","color.background.accent.red.subtlest.hovered":"--ds-background-accent-red-subtlest-hovered","color.background.accent.red.subtlest.pressed":"--ds-background-accent-red-subtlest-pressed","color.background.accent.red.subtler":"--ds-background-accent-red-subtler","color.background.accent.red.subtler.hovered":"--ds-background-accent-red-subtler-hovered","color.background.accent.red.subtler.pressed":"--ds-background-accent-red-subtler-pressed","color.background.accent.red.subtle":"--ds-background-accent-red-subtle","color.background.accent.red.subtle.hovered":"--ds-background-accent-red-subtle-hovered","color.background.accent.red.subtle.pressed":"--ds-background-accent-red-subtle-pressed","color.background.accent.red.bolder":"--ds-background-accent-red-bolder","color.background.accent.red.bolder.hovered":"--ds-background-accent-red-bolder-hovered","color.background.accent.red.bolder.pressed":"--ds-background-accent-red-bolder-pressed","color.background.accent.orange.subtlest":"--ds-background-accent-orange-subtlest","color.background.accent.orange.subtlest.hovered":"--ds-background-accent-orange-subtlest-hovered","color.background.accent.orange.subtlest.pressed":"--ds-background-accent-orange-subtlest-pressed","color.background.accent.orange.subtler":"--ds-background-accent-orange-subtler","color.background.accent.orange.subtler.hovered":"--ds-background-accent-orange-subtler-hovered","color.background.accent.orange.subtler.pressed":"--ds-background-accent-orange-subtler-pressed","color.background.accent.orange.subtle":"--ds-background-accent-orange-subtle","color.background.accent.orange.subtle.hovered":"--ds-background-accent-orange-subtle-hovered","color.background.accent.orange.subtle.pressed":"--ds-background-accent-orange-subtle-pressed","color.background.accent.orange.bolder":"--ds-background-accent-orange-bolder","color.background.accent.orange.bolder.hovered":"--ds-background-accent-orange-bolder-hovered","color.background.accent.orange.bolder.pressed":"--ds-background-accent-orange-bolder-pressed","color.background.accent.yellow.subtlest":"--ds-background-accent-yellow-subtlest","color.background.accent.yellow.subtlest.hovered":"--ds-background-accent-yellow-subtlest-hovered","color.background.accent.yellow.subtlest.pressed":"--ds-background-accent-yellow-subtlest-pressed","color.background.accent.yellow.subtler":"--ds-background-accent-yellow-subtler","color.background.accent.yellow.subtler.hovered":"--ds-background-accent-yellow-subtler-hovered","color.background.accent.yellow.subtler.pressed":"--ds-background-accent-yellow-subtler-pressed","color.background.accent.yellow.subtle":"--ds-background-accent-yellow-subtle","color.background.accent.yellow.subtle.hovered":"--ds-background-accent-yellow-subtle-hovered","color.background.accent.yellow.subtle.pressed":"--ds-background-accent-yellow-subtle-pressed","color.background.accent.yellow.bolder":"--ds-background-accent-yellow-bolder","color.background.accent.yellow.bolder.hovered":"--ds-background-accent-yellow-bolder-hovered","color.background.accent.yellow.bolder.pressed":"--ds-background-accent-yellow-bolder-pressed","color.background.accent.green.subtlest":"--ds-background-accent-green-subtlest","color.background.accent.green.subtlest.hovered":"--ds-background-accent-green-subtlest-hovered","color.background.accent.green.subtlest.pressed":"--ds-background-accent-green-subtlest-pressed","color.background.accent.green.subtler":"--ds-background-accent-green-subtler","color.background.accent.green.subtler.hovered":"--ds-background-accent-green-subtler-hovered","color.background.accent.green.subtler.pressed":"--ds-background-accent-green-subtler-pressed","color.background.accent.green.subtle":"--ds-background-accent-green-subtle","color.background.accent.green.subtle.hovered":"--ds-background-accent-green-subtle-hovered","color.background.accent.green.subtle.pressed":"--ds-background-accent-green-subtle-pressed","color.background.accent.green.bolder":"--ds-background-accent-green-bolder","color.background.accent.green.bolder.hovered":"--ds-background-accent-green-bolder-hovered","color.background.accent.green.bolder.pressed":"--ds-background-accent-green-bolder-pressed","color.background.accent.teal.subtlest":"--ds-background-accent-teal-subtlest","color.background.accent.teal.subtlest.hovered":"--ds-background-accent-teal-subtlest-hovered","color.background.accent.teal.subtlest.pressed":"--ds-background-accent-teal-subtlest-pressed","color.background.accent.teal.subtler":"--ds-background-accent-teal-subtler","color.background.accent.teal.subtler.hovered":"--ds-background-accent-teal-subtler-hovered","color.background.accent.teal.subtler.pressed":"--ds-background-accent-teal-subtler-pressed","color.background.accent.teal.subtle":"--ds-background-accent-teal-subtle","color.background.accent.teal.subtle.hovered":"--ds-background-accent-teal-subtle-hovered","color.background.accent.teal.subtle.pressed":"--ds-background-accent-teal-subtle-pressed","color.background.accent.teal.bolder":"--ds-background-accent-teal-bolder","color.background.accent.teal.bolder.hovered":"--ds-background-accent-teal-bolder-hovered","color.background.accent.teal.bolder.pressed":"--ds-background-accent-teal-bolder-pressed","color.background.accent.blue.subtlest":"--ds-background-accent-blue-subtlest","color.background.accent.blue.subtlest.hovered":"--ds-background-accent-blue-subtlest-hovered","color.background.accent.blue.subtlest.pressed":"--ds-background-accent-blue-subtlest-pressed","color.background.accent.blue.subtler":"--ds-background-accent-blue-subtler","color.background.accent.blue.subtler.hovered":"--ds-background-accent-blue-subtler-hovered","color.background.accent.blue.subtler.pressed":"--ds-background-accent-blue-subtler-pressed","color.background.accent.blue.subtle":"--ds-background-accent-blue-subtle","color.background.accent.blue.subtle.hovered":"--ds-background-accent-blue-subtle-hovered","color.background.accent.blue.subtle.pressed":"--ds-background-accent-blue-subtle-pressed","color.background.accent.blue.bolder":"--ds-background-accent-blue-bolder","color.background.accent.blue.bolder.hovered":"--ds-background-accent-blue-bolder-hovered","color.background.accent.blue.bolder.pressed":"--ds-background-accent-blue-bolder-pressed","color.background.accent.purple.subtlest":"--ds-background-accent-purple-subtlest","color.background.accent.purple.subtlest.hovered":"--ds-background-accent-purple-subtlest-hovered","color.background.accent.purple.subtlest.pressed":"--ds-background-accent-purple-subtlest-pressed","color.background.accent.purple.subtler":"--ds-background-accent-purple-subtler","color.background.accent.purple.subtler.hovered":"--ds-background-accent-purple-subtler-hovered","color.background.accent.purple.subtler.pressed":"--ds-background-accent-purple-subtler-pressed","color.background.accent.purple.subtle":"--ds-background-accent-purple-subtle","color.background.accent.purple.subtle.hovered":"--ds-background-accent-purple-subtle-hovered","color.background.accent.purple.subtle.pressed":"--ds-background-accent-purple-subtle-pressed","color.background.accent.purple.bolder":"--ds-background-accent-purple-bolder","color.background.accent.purple.bolder.hovered":"--ds-background-accent-purple-bolder-hovered","color.background.accent.purple.bolder.pressed":"--ds-background-accent-purple-bolder-pressed","color.background.accent.magenta.subtlest":"--ds-background-accent-magenta-subtlest","color.background.accent.magenta.subtlest.hovered":"--ds-background-accent-magenta-subtlest-hovered","color.background.accent.magenta.subtlest.pressed":"--ds-background-accent-magenta-subtlest-pressed","color.background.accent.magenta.subtler":"--ds-background-accent-magenta-subtler","color.background.accent.magenta.subtler.hovered":"--ds-background-accent-magenta-subtler-hovered","color.background.accent.magenta.subtler.pressed":"--ds-background-accent-magenta-subtler-pressed","color.background.accent.magenta.subtle":"--ds-background-accent-magenta-subtle","color.background.accent.magenta.subtle.hovered":"--ds-background-accent-magenta-subtle-hovered","color.background.accent.magenta.subtle.pressed":"--ds-background-accent-magenta-subtle-pressed","color.background.accent.magenta.bolder":"--ds-background-accent-magenta-bolder","color.background.accent.magenta.bolder.hovered":"--ds-background-accent-magenta-bolder-hovered","color.background.accent.magenta.bolder.pressed":"--ds-background-accent-magenta-bolder-pressed","color.background.accent.gray.subtlest":"--ds-background-accent-gray-subtlest","color.background.accent.gray.subtlest.hovered":"--ds-background-accent-gray-subtlest-hovered","color.background.accent.gray.subtlest.pressed":"--ds-background-accent-gray-subtlest-pressed","color.background.accent.gray.subtler":"--ds-background-accent-gray-subtler","color.background.accent.gray.subtler.hovered":"--ds-background-accent-gray-subtler-hovered","color.background.accent.gray.subtler.pressed":"--ds-background-accent-gray-subtler-pressed","color.background.accent.gray.subtle":"--ds-background-accent-gray-subtle","color.background.accent.gray.subtle.hovered":"--ds-background-accent-gray-subtle-hovered","color.background.accent.gray.subtle.pressed":"--ds-background-accent-gray-subtle-pressed","color.background.accent.gray.bolder":"--ds-background-accent-gray-bolder","color.background.accent.gray.bolder.hovered":"--ds-background-accent-gray-bolder-hovered","color.background.accent.gray.bolder.pressed":"--ds-background-accent-gray-bolder-pressed","color.background.disabled":"--ds-background-disabled","color.background.input":"--ds-background-input","color.background.input.hovered":"--ds-background-input-hovered","color.background.input.pressed":"--ds-background-input-pressed","color.background.inverse.subtle":"--ds-background-inverse-subtle","color.background.inverse.subtle.hovered":"--ds-background-inverse-subtle-hovered","color.background.inverse.subtle.pressed":"--ds-background-inverse-subtle-pressed","color.background.neutral":"--ds-background-neutral","color.background.neutral.hovered":"--ds-background-neutral-hovered","color.background.neutral.pressed":"--ds-background-neutral-pressed","color.background.neutral.subtle":"--ds-background-neutral-subtle","color.background.neutral.subtle.hovered":"--ds-background-neutral-subtle-hovered","color.background.neutral.subtle.pressed":"--ds-background-neutral-subtle-pressed","color.background.neutral.bold":"--ds-background-neutral-bold","color.background.neutral.bold.hovered":"--ds-background-neutral-bold-hovered","color.background.neutral.bold.pressed":"--ds-background-neutral-bold-pressed","color.background.selected":"--ds-background-selected","color.background.selected.hovered":"--ds-background-selected-hovered","color.background.selected.pressed":"--ds-background-selected-pressed","color.background.selected.bold":"--ds-background-selected-bold","color.background.selected.bold.hovered":"--ds-background-selected-bold-hovered","color.background.selected.bold.pressed":"--ds-background-selected-bold-pressed","color.background.brand.subtlest":"--ds-background-brand-subtlest","color.background.brand.subtlest.hovered":"--ds-background-brand-subtlest-hovered","color.background.brand.subtlest.pressed":"--ds-background-brand-subtlest-pressed","color.background.brand.bold":"--ds-background-brand-bold","color.background.brand.bold.hovered":"--ds-background-brand-bold-hovered","color.background.brand.bold.pressed":"--ds-background-brand-bold-pressed","color.background.brand.boldest":"--ds-background-brand-boldest","color.background.brand.boldest.hovered":"--ds-background-brand-boldest-hovered","color.background.brand.boldest.pressed":"--ds-background-brand-boldest-pressed","color.background.danger":"--ds-background-danger","color.background.danger.hovered":"--ds-background-danger-hovered","color.background.danger.pressed":"--ds-background-danger-pressed","color.background.danger.bold":"--ds-background-danger-bold","color.background.danger.bold.hovered":"--ds-background-danger-bold-hovered","color.background.danger.bold.pressed":"--ds-background-danger-bold-pressed","color.background.warning":"--ds-background-warning","color.background.warning.hovered":"--ds-background-warning-hovered","color.background.warning.pressed":"--ds-background-warning-pressed","color.background.warning.bold":"--ds-background-warning-bold","color.background.warning.bold.hovered":"--ds-background-warning-bold-hovered","color.background.warning.bold.pressed":"--ds-background-warning-bold-pressed","color.background.success":"--ds-background-success","color.background.success.hovered":"--ds-background-success-hovered","color.background.success.pressed":"--ds-background-success-pressed","color.background.success.bold":"--ds-background-success-bold","color.background.success.bold.hovered":"--ds-background-success-bold-hovered","color.background.success.bold.pressed":"--ds-background-success-bold-pressed","color.background.discovery":"--ds-background-discovery","color.background.discovery.hovered":"--ds-background-discovery-hovered","color.background.discovery.pressed":"--ds-background-discovery-pressed","color.background.discovery.bold":"--ds-background-discovery-bold","color.background.discovery.bold.hovered":"--ds-background-discovery-bold-hovered","color.background.discovery.bold.pressed":"--ds-background-discovery-bold-pressed","color.background.information":"--ds-background-information","color.background.information.hovered":"--ds-background-information-hovered","color.background.information.pressed":"--ds-background-information-pressed","color.background.information.bold":"--ds-background-information-bold","color.background.information.bold.hovered":"--ds-background-information-bold-hovered","color.background.information.bold.pressed":"--ds-background-information-bold-pressed","color.blanket":"--ds-blanket","color.blanket.selected":"--ds-blanket-selected","color.blanket.danger":"--ds-blanket-danger","color.interaction.hovered":"--ds-interaction-hovered","color.interaction.pressed":"--ds-interaction-pressed","color.skeleton":"--ds-skeleton","color.skeleton.subtle":"--ds-skeleton-subtle","color.chart.categorical.1":"--ds-chart-categorical-1","color.chart.categorical.1.hovered":"--ds-chart-categorical-1-hovered","color.chart.categorical.2":"--ds-chart-categorical-2","color.chart.categorical.2.hovered":"--ds-chart-categorical-2-hovered","color.chart.categorical.3":"--ds-chart-categorical-3","color.chart.categorical.3.hovered":"--ds-chart-categorical-3-hovered","color.chart.categorical.4":"--ds-chart-categorical-4","color.chart.categorical.4.hovered":"--ds-chart-categorical-4-hovered","color.chart.categorical.5":"--ds-chart-categorical-5","color.chart.categorical.5.hovered":"--ds-chart-categorical-5-hovered","color.chart.categorical.6":"--ds-chart-categorical-6","color.chart.categorical.6.hovered":"--ds-chart-categorical-6-hovered","color.chart.categorical.7":"--ds-chart-categorical-7","color.chart.categorical.7.hovered":"--ds-chart-categorical-7-hovered","color.chart.categorical.8":"--ds-chart-categorical-8","color.chart.categorical.8.hovered":"--ds-chart-categorical-8-hovered","color.chart.lime.bold":"--ds-chart-lime-bold","color.chart.lime.bold.hovered":"--ds-chart-lime-bold-hovered","color.chart.lime.bolder":"--ds-chart-lime-bolder","color.chart.lime.bolder.hovered":"--ds-chart-lime-bolder-hovered","color.chart.lime.boldest":"--ds-chart-lime-boldest","color.chart.lime.boldest.hovered":"--ds-chart-lime-boldest-hovered","color.chart.neutral":"--ds-chart-neutral","color.chart.neutral.hovered":"--ds-chart-neutral-hovered","color.chart.red.bold":"--ds-chart-red-bold","color.chart.red.bold.hovered":"--ds-chart-red-bold-hovered","color.chart.red.bolder":"--ds-chart-red-bolder","color.chart.red.bolder.hovered":"--ds-chart-red-bolder-hovered","color.chart.red.boldest":"--ds-chart-red-boldest","color.chart.red.boldest.hovered":"--ds-chart-red-boldest-hovered","color.chart.orange.bold":"--ds-chart-orange-bold","color.chart.orange.bold.hovered":"--ds-chart-orange-bold-hovered","color.chart.orange.bolder":"--ds-chart-orange-bolder","color.chart.orange.bolder.hovered":"--ds-chart-orange-bolder-hovered","color.chart.orange.boldest":"--ds-chart-orange-boldest","color.chart.orange.boldest.hovered":"--ds-chart-orange-boldest-hovered","color.chart.yellow.bold":"--ds-chart-yellow-bold","color.chart.yellow.bold.hovered":"--ds-chart-yellow-bold-hovered","color.chart.yellow.bolder":"--ds-chart-yellow-bolder","color.chart.yellow.bolder.hovered":"--ds-chart-yellow-bolder-hovered","color.chart.yellow.boldest":"--ds-chart-yellow-boldest","color.chart.yellow.boldest.hovered":"--ds-chart-yellow-boldest-hovered","color.chart.green.bold":"--ds-chart-green-bold","color.chart.green.bold.hovered":"--ds-chart-green-bold-hovered","color.chart.green.bolder":"--ds-chart-green-bolder","color.chart.green.bolder.hovered":"--ds-chart-green-bolder-hovered","color.chart.green.boldest":"--ds-chart-green-boldest","color.chart.green.boldest.hovered":"--ds-chart-green-boldest-hovered","color.chart.teal.bold":"--ds-chart-teal-bold","color.chart.teal.bold.hovered":"--ds-chart-teal-bold-hovered","color.chart.teal.bolder":"--ds-chart-teal-bolder","color.chart.teal.bolder.hovered":"--ds-chart-teal-bolder-hovered","color.chart.teal.boldest":"--ds-chart-teal-boldest","color.chart.teal.boldest.hovered":"--ds-chart-teal-boldest-hovered","color.chart.blue.bold":"--ds-chart-blue-bold","color.chart.blue.bold.hovered":"--ds-chart-blue-bold-hovered","color.chart.blue.bolder":"--ds-chart-blue-bolder","color.chart.blue.bolder.hovered":"--ds-chart-blue-bolder-hovered","color.chart.blue.boldest":"--ds-chart-blue-boldest","color.chart.blue.boldest.hovered":"--ds-chart-blue-boldest-hovered","color.chart.purple.bold":"--ds-chart-purple-bold","color.chart.purple.bold.hovered":"--ds-chart-purple-bold-hovered","color.chart.purple.bolder":"--ds-chart-purple-bolder","color.chart.purple.bolder.hovered":"--ds-chart-purple-bolder-hovered","color.chart.purple.boldest":"--ds-chart-purple-boldest","color.chart.purple.boldest.hovered":"--ds-chart-purple-boldest-hovered","color.chart.magenta.bold":"--ds-chart-magenta-bold","color.chart.magenta.bold.hovered":"--ds-chart-magenta-bold-hovered","color.chart.magenta.bolder":"--ds-chart-magenta-bolder","color.chart.magenta.bolder.hovered":"--ds-chart-magenta-bolder-hovered","color.chart.magenta.boldest":"--ds-chart-magenta-boldest","color.chart.magenta.boldest.hovered":"--ds-chart-magenta-boldest-hovered","color.chart.gray.bold":"--ds-chart-gray-bold","color.chart.gray.bold.hovered":"--ds-chart-gray-bold-hovered","color.chart.gray.bolder":"--ds-chart-gray-bolder","color.chart.gray.bolder.hovered":"--ds-chart-gray-bolder-hovered","color.chart.gray.boldest":"--ds-chart-gray-boldest","color.chart.gray.boldest.hovered":"--ds-chart-gray-boldest-hovered","color.chart.brand":"--ds-chart-brand","color.chart.brand.hovered":"--ds-chart-brand-hovered","color.chart.danger":"--ds-chart-danger","color.chart.danger.hovered":"--ds-chart-danger-hovered","color.chart.danger.bold":"--ds-chart-danger-bold","color.chart.danger.bold.hovered":"--ds-chart-danger-bold-hovered","color.chart.warning":"--ds-chart-warning","color.chart.warning.hovered":"--ds-chart-warning-hovered","color.chart.warning.bold":"--ds-chart-warning-bold","color.chart.warning.bold.hovered":"--ds-chart-warning-bold-hovered","color.chart.success":"--ds-chart-success","color.chart.success.hovered":"--ds-chart-success-hovered","color.chart.success.bold":"--ds-chart-success-bold","color.chart.success.bold.hovered":"--ds-chart-success-bold-hovered","color.chart.discovery":"--ds-chart-discovery","color.chart.discovery.hovered":"--ds-chart-discovery-hovered","color.chart.discovery.bold":"--ds-chart-discovery-bold","color.chart.discovery.bold.hovered":"--ds-chart-discovery-bold-hovered","color.chart.information":"--ds-chart-information","color.chart.information.hovered":"--ds-chart-information-hovered","color.chart.information.bold":"--ds-chart-information-bold","color.chart.information.bold.hovered":"--ds-chart-information-bold-hovered","elevation.surface":"--ds-surface","elevation.surface.hovered":"--ds-surface-hovered","elevation.surface.pressed":"--ds-surface-pressed","elevation.surface.overlay":"--ds-surface-overlay","elevation.surface.overlay.hovered":"--ds-surface-overlay-hovered","elevation.surface.overlay.pressed":"--ds-surface-overlay-pressed","elevation.surface.raised":"--ds-surface-raised","elevation.surface.raised.hovered":"--ds-surface-raised-hovered","elevation.surface.raised.pressed":"--ds-surface-raised-pressed","elevation.surface.sunken":"--ds-surface-sunken","elevation.shadow.overflow":"--ds-shadow-overflow","elevation.shadow.overflow.perimeter":"--ds-shadow-overflow-perimeter","elevation.shadow.overflow.spread":"--ds-shadow-overflow-spread","elevation.shadow.overlay":"--ds-shadow-overlay","elevation.shadow.raised":"--ds-shadow-raised","opacity.disabled":"--ds-opacity-disabled","opacity.loading":"--ds-opacity-loading","utility.UNSAFE.textTransformUppercase":"--ds-UNSAFE-textTransformUppercase","utility.UNSAFE.transparent":"--ds-UNSAFE-transparent","utility.elevation.surface.current":"--ds-elevation-surface-current","border.radius.050":"--ds-border-radius-050","border.radius":"--ds-border-radius","border.radius.100":"--ds-border-radius-100","border.radius.200":"--ds-border-radius-200","border.radius.300":"--ds-border-radius-300","border.radius.400":"--ds-border-radius-400","border.radius.circle":"--ds-border-radius-circle","border.width":"--ds-border-width","border.width.0":"--ds-border-width-0","border.width.indicator":"--ds-border-width-indicator","border.width.outline":"--ds-border-width-outline","space.0":"--ds-space-0","space.025":"--ds-space-025","space.050":"--ds-space-050","space.075":"--ds-space-075","space.100":"--ds-space-100","space.150":"--ds-space-150","space.200":"--ds-space-200","space.250":"--ds-space-250","space.300":"--ds-space-300","space.400":"--ds-space-400","space.500":"--ds-space-500","space.600":"--ds-space-600","space.800":"--ds-space-800","space.1000":"--ds-space-1000","space.negative.025":"--ds-space-negative-025","space.negative.050":"--ds-space-negative-050","space.negative.075":"--ds-space-negative-075","space.negative.100":"--ds-space-negative-100","space.negative.150":"--ds-space-negative-150","space.negative.200":"--ds-space-negative-200","space.negative.250":"--ds-space-negative-250","space.negative.300":"--ds-space-negative-300","space.negative.400":"--ds-space-negative-400","font.heading.xxlarge":"--ds-font-heading-xxlarge","font.heading.xlarge":"--ds-font-heading-xlarge","font.heading.large":"--ds-font-heading-large","font.heading.medium":"--ds-font-heading-medium","font.heading.small":"--ds-font-heading-small","font.heading.xsmall":"--ds-font-heading-xsmall","font.heading.xxsmall":"--ds-font-heading-xxsmall","font.body.large":"--ds-font-body-large","font.body":"--ds-font-body","font.body.small":"--ds-font-body-small","font.body.UNSAFE_small":"--ds-font-body-UNSAFE_small","font.code":"--ds-font-code","font.weight.regular":"--ds-font-weight-regular","font.weight.medium":"--ds-font-weight-medium","font.weight.semibold":"--ds-font-weight-semibold","font.weight.bold":"--ds-font-weight-bold","font.family.heading":"--ds-font-family-heading","font.family.body":"--ds-font-family-body","font.family.code":"--ds-font-family-code","font.family.brand.heading":"--ds-font-family-brand-heading","font.family.brand.body":"--ds-font-family-brand-body"};var Ve="data-theme",Ge="data-color-mode",Ke="data-contrast-mode",ze="data-custom-theme",Be="--".concat("ds","-token-not-found"),$e="--".concat("ds","-elevation-surface-current"),Je=function(){var e=f(b().mark((function e(t,r){var n,o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(o=null===(n=window)||void 0===n?void 0:n.analyticsWebClient)&&(a=!!document.querySelector("style[data-theme]"),o.sendEvent({type:"TRACK",payload:{action:"called_at_runtime",actionSubject:"token",source:"design-system",attributes:{url:window.location.href,token:t,fallback:r,isThemeEnabled:a}}}))}catch(e){console.error(e)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();const qe=function(e,t){Ie("platform-token-runtime-call-tracking")&&Je(e,t);var r=Re[e];return r||(r=Be),t?"var(".concat(r,", ").concat(t,")"):"var(".concat(r,")")};const We=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Re[e],n=t;return"undefined"==typeof window?n:n=(n=window.getComputedStyle(document.documentElement).getPropertyValue(r).trim())||t};var He=function(e){return/^#[0-9A-F]{6}$/i.test(e)};var Xe=["light","dark","spacing","typography","shape"],Qe="UNSAFE_themeOptions",Ye=function(e){return void 0!==Xe.find((function(t){return t===e}))},Ze=function(e){return void 0!==Ue.find((function(t){return t===e}))},et=function(e){return["light","dark","auto"].includes(e)},tt=function(e){return e.split(" ").map((function(e){return e.split(/:([^]*)/)})).reduce((function(e,t){var r=g(t,2),n=r[0],o=r[1];if("colorMode"===n&&et(o)&&(e[n]=o),Ye(n)&&Ze(o)&&(e[n]=o),n===Qe)try{e[Qe]=JSON.parse(o)}catch(e){new Error("Invalid custom theme string")}return e}),{})},rt=function(e){return Object.entries(e).reduce((function(e,t){var r=g(t,2),o=r[0],a=r[1];return"colorMode"===o&&"string"==typeof a&&et(a)||o===Qe&&"object"===n(a)||Ye(o)&&"string"==typeof a&&Ze(a)?e+"".concat(e?" ":"")+"".concat(o,":").concat("object"===n(a)?JSON.stringify(a):a):e}),"")},nt=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return new Uint32Array([t])[0].toString(36)};function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const it=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?Ne.colorMode:t,n=e.dark,o=void 0===n?Ne.dark:n,a=e.light,i=void 0===a?Ne.light:a,s=e.contrastMode,c=void 0===s?Ne.contrastMode:s,u=e.shape,d=void 0===u?Ne.shape:u,h=e.spacing,g=void 0===h?Ne.spacing:h,p=e.typography,f=void 0===p?Ne.typography():p,v=e.UNSAFE_themeOptions,b=void 0===v?Ne.UNSAFE_themeOptions:v,y=rt({dark:o,light:i,shape:d,spacing:g,typography:f}),m=l(l({},Ve,y),Ge,"auto"===r?"light":r);if(Ie("platform_increased-contrast-themes")&&(m=at(at({},m),{},l({},Ke,"auto"===c?"no-preference":c))),b&&He(b.brandColor)){var _=JSON.stringify(b),k=nt(_);m[ze]=k}return m};var st=o(1833);const ct={light:()=>o.e(381).then(o.bind(o,5301)),"light-future":()=>o.e(567).then(o.bind(o,1201)),dark:()=>o.e(479).then(o.bind(o,333)),"dark-future":()=>o.e(917).then(o.bind(o,5913)),"legacy-light":()=>o.e(177).then(o.bind(o,6019)),"legacy-dark":()=>o.e(915).then(o.bind(o,4451)),spacing:()=>o.e(498).then(o.bind(o,1520)),shape:()=>o.e(138).then(o.bind(o,416)),"typography-adg3":()=>o.e(592).then(o.bind(o,1838)),"typography-modernized":()=>o.e(186).then(o.bind(o,1956)),"typography-refreshed":()=>o.e(213).then(o.bind(o,8203)),original:()=>Promise.resolve("")};var lt=function(){var e=f(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!document.head.querySelector("style[".concat(Ve,'="').concat(t,'"]:not([').concat(ze,"])"))){e.next=2;break}return e.abrupt("return");case 2:if(t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,ut(t);case 6:r=e.sent,(n=document.createElement("style")).textContent=r,n.dataset.theme=t,document.head.appendChild(n);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ut=function(){var e=f(b().mark((function e(t){var r,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"light"!==t&&"dark"!==t||!Ie("platform-component-visual-refresh")||(t+="-brand-refresh"),e.next=3,ct[t]();case 3:return r=e.sent,n=r.default,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dt="(prefers-color-scheme: dark)",ht="(prefers-contrast: more)";function gt(e){document.documentElement.setAttribute(Ge,e.matches?"dark":"light")}var pt="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(dt);const ft=new(function(){return c((function e(){r(this,e),l(this,"unbindThemeChangeListener",null)}),[{key:"getColorMode",value:function(){return pt&&null!=pt&&pt.matches?"dark":"light"}},{key:"bind",value:function(){pt&&null===this.unbindThemeChangeListener&&(this.unbindThemeChangeListener=(0,st.bind)(pt,{type:"change",listener:gt}))}},{key:"unbind",value:function(){this.unbindThemeChangeListener&&(this.unbindThemeChangeListener(),this.unbindThemeChangeListener=null)}}])}());function vt(e){document.documentElement.setAttribute(Ke,e.matches?"more":"no-preference")}var bt="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(ht);const yt=new(function(){return c((function e(){r(this,e),l(this,"unbindContrastChangeListener",null)}),[{key:"getContrastMode",value:function(){return bt&&null!=bt&&bt.matches?"more":"no-preference"}},{key:"bind",value:function(){bt&&null===this.unbindContrastChangeListener&&(this.unbindContrastChangeListener=(0,st.bind)(bt,{type:"change",listener:vt}))}},{key:"unbind",value:function(){this.unbindContrastChangeListener&&(this.unbindContrastChangeListener(),this.unbindContrastChangeListener=null)}}])}());function mt(e){"auto"===e.colorMode?(e.colorMode=ft.getColorMode(),ft.bind()):ft.unbind(),Ie("platform_increased-contrast-themes")&&("auto"===e.contrastMode?(e.contrastMode=yt.getContrastMode(),yt.bind()):yt.unbind());var t=it(e);return Object.entries(t).forEach((function(e){var t=g(e,2),r=t[0],n=t[1];document.documentElement.setAttribute(r,n)})),function(){ft.unbind(),Ie("platform_increased-contrast-themes")&&yt.unbind()}}function _t(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){var r=JSON.stringify(e),n=nt(r),o=[];return("auto"===t?["light","dark"]:[t]).forEach((function(e){var t=document.head.querySelector("style[".concat(ze,'="').concat(n,'"][').concat(Ve,'="').concat(e,'"]'));t?document.head.appendChild(t):o.push(e)})),o}function wt(e){var t;return null===(t=Object.entries(Fe).find((function(t){return g(t,2)[1].increasesContrastFor===e})))||void 0===t?void 0:t[1].id}var Ot=function(e){var t=e.colorMode,r=e.contrastMode,n=e.dark,o=e.light,a=e.shape,i=e.spacing,s=e.typography,c=[o,n],l=[];if("auto"===t)"no-preference"!==r&&Ie("platform_increased-contrast-themes")&&c.forEach((function(e){var t=wt(e);t&&c.push(t)})),l.push.apply(l,c);else if(l.push(e[t]),"no-preference"!==r&&Ie("platform_increased-contrast-themes")){var u=wt(e[t]);u&&l.push(u)}return[a,i,s].forEach((function(e){e&&l.push(e)})),_t(new Set(l))},Et=function(e){return _t(new Set([]))};function St(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Pt=function(){var e=f(b().mark((function e(){var t,r,n,o,a,i,s,c,l,u,d,h,g,p,v,y,m,_,k,w,O,E,S,x,P,C,j,D,A=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=A.length>0&&void 0!==A[0]?A[0]:{}).colorMode,n=void 0===r?Ne.colorMode:r,o=t.contrastMode,a=void 0===o?Ne.contrastMode:o,i=t.dark,s=void 0===i?Ne.dark:i,c=t.light,l=void 0===c?Ne.light:c,u=t.shape,d=void 0===u?Ne.shape:u,h=t.spacing,g=void 0===h?Ne.spacing:h,p=t.typography,v=void 0===p?Ne.typography():p,y=t.UNSAFE_themeOptions,m=void 0===y?Ne.UNSAFE_themeOptions:y,_=A.length>1?A[1]:void 0,Ie("platform_increased-contrast-themes")||("light-increased-contrast"===l&&(l="light"),"dark-increased-contrast"===s&&(s="dark")),w=Ot(k={colorMode:n,contrastMode:a,dark:s,light:l,shape:d,spacing:g,typography:v,UNSAFE_themeOptions:_?void 0:m}),O=_||lt,E=w.map(function(){var e=f(b().mark((function e(t){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),!_&&m&&He(null==m?void 0:m.brandColor)&&(S=kt(m,n||Ne.colorMode)).length>0&&E.push(f(b().mark((function e(){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 2:t=e.sent,(0,t.loadAndAppendCustomThemeCss)({colorMode:2===S.length?"auto":S[0],UNSAFE_themeOptions:m});case 5:case"end":return e.stop()}}),e)})))()),e.next=10,Promise.all(E);case 10:x=Et(),P=St(x),e.prev=12,P.s();case 14:if((C=P.n()).done){e.next=20;break}return j=C.value,e.next=18,O(j);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),P.e(e.t0);case 25:return e.prev=25,P.f(),e.finish(25);case 28:return D=mt(k),e.abrupt("return",D);case 30:case"end":return e.stop()}}),e,null,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}();const Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?Ne.colorMode:t,n=e.contrastMode,o=void 0===n?Ne.contrastMode:n,a=e.dark,i=void 0===a?Ne.dark:a,s=e.light,c=void 0===s?Ne.light:s,l=e.shape,u=void 0===l?Ne.shape:l,d=e.spacing,h=void 0===d?Ne.spacing:d,g=e.typography,p=void 0===g?Ne.typography():g,f=e.UNSAFE_themeOptions,v=arguments.length>1?arguments[1]:void 0,b={colorMode:r,contrastMode:o,dark:i,light:c,shape:u,spacing:h,typography:p,UNSAFE_themeOptions:v?void 0:void 0===f?Ne.UNSAFE_themeOptions:f},y=Ot(b);return v&&y.map((function(e){return v(e)})),mt(b)};const jt=function(){var e=f(b().mark((function e(t){var r,n,o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],"all"===t?(r=Me,Ie("platform_increased-contrast-themes")||(r=r.filter((function(e){return"light-increased-contrast"!==e&&"dark-increased-contrast"!==e}))),r=r.filter((function(e){return"light-brand-refresh"!==e&&"dark-brand-refresh"!==e}))):(o={colorMode:(null==t?void 0:t.colorMode)||Ne.colorMode,contrastMode:(null==t?void 0:t.contrastMode)||Ne.contrastMode,dark:(null==t?void 0:t.dark)||Ne.dark,light:(null==t?void 0:t.light)||Ne.light,shape:(null==t?void 0:t.shape)||Ne.shape,spacing:(null==t?void 0:t.spacing)||Ne.spacing,typography:(null==t?void 0:t.typography)||Ne.typography()},r=Ot(o),n=Et()),e.next=4,Promise.all([].concat(_t([].concat(_t(r),_t(n)).map(function(){var e=f(b().mark((function e(t){var r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ut(t);case 3:return r=e.sent,e.abrupt("return",{id:t,attrs:{"data-theme":t},css:r});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",void 0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}())),[f(b().mark((function e(){var r,n,o,a;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("all"===t||null==t||!t.UNSAFE_themeOptions||!He(null==t||null===(r=t.UNSAFE_themeOptions)||void 0===r?void 0:r.brandColor)){e.next=15;break}return e.prev=1,e.next=4,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 4:return n=e.sent,o=n.getCustomThemeStyles,e.next=8,o({colorMode:(null==t?void 0:t.colorMode)||Ne.colorMode,UNSAFE_themeOptions:null==t?void 0:t.UNSAFE_themeOptions});case 8:return a=e.sent,e.abrupt("return",a);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))()]));case 4:return a=e.sent,e.abrupt("return",a.flat().filter((function(e){return void 0!==e})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Dt=function(e,t){if("auto"===e||"auto"===t){var r="auto"===e?"\n try {\n const darkModeMql = window.matchMedia('".concat(dt,"');\n const colorMode = darkModeMql.matches ? 'dark' : 'light';\n document.documentElement.setAttribute('").concat(Ge,"', colorMode);\n } catch (e) {}"):"",n="auto"===t&&Ie("platform_increased-contrast-themes")?"\n try {\n const contrastModeMql = window.matchMedia('".concat(ht,"');\n const contrastMode = contrastModeMql.matches ? 'more' : 'no-preference';\n document.documentElement.setAttribute('").concat(Ke,"', contrastMode);\n } catch (e) {}"):"";return"(() => {".concat(r).concat(n,"})()")}};var At=o(6039),Tt=o.n(At);function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ut=function(){if("undefined"==typeof document)return{};var e=document.documentElement,t=e.getAttribute(Ge)||"",r=e.getAttribute(Ve)||"";return Lt(Lt({},tt(r)),function(e){return void 0!==Le.find((function(t){return t===e}))}(t)&&{colorMode:t})};var Mt=function(){function e(t){r(this,e),l(this,"legacyObserver",null),this.callback=t,e.callbacks.add(t)}return c(e,[{key:"observe",value:function(){e.observer||(e.observer=new MutationObserver((function(){var t=Ut();e.callbacks.forEach((function(e){return e(t)}))})),e.observer.observe(document.documentElement,{attributeFilter:[Ve,Ge]}))}},{key:"disconnect",value:function(){this.callback&&e.callbacks.delete(this.callback),0===e.callbacks.size&&e.observer&&(e.observer.disconnect(),e.observer=null)}}])}();l(Mt,"observer",null),l(Mt,"callbacks",new Set);const Nt=document.documentElement,Ft="--aui-theme-testing-color",Rt="color(srgb 1 0.75 0.8 / 0.6)",Vt="aui-theme-testing",Gt=`html.${Vt}[data-color-mode][data-theme*="light:"], html.${Vt}[data-color-mode][data-theme*="dark:"]`;function Kt(e=Rt){document.body.style.setProperty(Ft,e)}function zt(){return Nt.matches(Gt)}function Bt(){zt()||Nt.classList.add(Vt)}function $t(){zt()&&Nt.classList.remove(Vt)}function Jt(e){null==e&&(e=!zt()),e?Bt():$t()}!function(){if(!!document.querySelector(Gt))return;const e=`${Ft}: ${Rt};`,t=Object.values(Re).map((e=>`\t${e}: var(${Ft});`)),r=[e,...t],n=`/* This theme is autogenerated using AJS.DesignTokens.generateTestingTheme(). */\n${Gt} {\n${r.join("\n")}\n}`,o=document.createElement("style");o.id="aui-design-tokens-testing-theme",o.textContent=n;const a=document.querySelector("head");a&&a.appendChild(o)}();const qt="AJS";function Wt(){"object"!=typeof window[qt]&&(window[qt]={})}document.documentElement.hasAttribute("data-color-mode-auto")&&Pt({colorMode:"auto"});const{setGlobalTheme:Ht,token:Xt,getTokenValue:Qt,ThemeMutationObserver:Yt}=e,{setTestingThemeColor:Zt,enableTestingTheme:er,disableTestingTheme:tr,toggleTestingTheme:rr}=t;var nr,or;nr="DesignTokens",or={setGlobalTheme:Ht,token:Xt,getTokenValue:Qt,ThemeMutationObserver:Yt,toggleTestingTheme:rr,enableTestingTheme:er,disableTestingTheme:tr,setTestingThemeColor:Zt},Wt(),window[qt][nr]=or})(),a})()));
|
|
16
16
|
//# sourceMappingURL=aui-prototyping-design-tokens-api-full.js.map
|