1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0a4cd886-650c-54aa-b18a-d2fd87187e22")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3866],{967:(e,t)=>{"use strict";function n(e){return e.unshift("[Statsig]"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Log=t.LogLevel=void 0,t.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class r{static info(...e){r.level>=t.LogLevel.Info&&console.info(" INFO ",...n(e))}static debug(...e){r.level>=t.LogLevel.Debug&&console.debug(" DEBUG ",...n(e))}static warn(...e){r.level>=t.LogLevel.Warn&&console.warn(" WARN ",...n(e))}static error(...e){r.level>=t.LogLevel.Error&&console.error(" ERROR ",...n(e))}}t.Log=r,r.level=t.LogLevel.Warn},1091:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._isDomainFailure=t.NetworkFallbackResolver=void 0;let i=n(20490),a=n(49457),s=n(967),o=n(20317);class l{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null==(t=e.networkConfig)?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var n;let r=null==(n=this._fallbackInfo)?void 0:n[t.endpoint];r&&(r.expiryTime=Date.now()+6048e5,c(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:r})))}getActiveFallbackUrl(e,t){var n,r;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let i=this._fallbackInfo;null==i&&(i=null!=(n=function(e){let t=d(e),n=o.Storage.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(e){return s.Log.error("Failed to parse FallbackInfo"),null}}(e))?n:{},this._fallbackInfo=i);let a=i[t.endpoint];return!a||Date.now()>(null!=(r=a.expiryTime)?r:0)||t.getChecksum()!==a.urlConfigChecksum?(delete i[t.endpoint],this._fallbackInfo=i,c(e,this._fallbackInfo),null):a.url?a.url:null}tryFetchUpdatedFallbackInfo(e,t,n,i){return r(this,void 0,void 0,function*(){var r,a;try{if(!u(n,i))return!1;let a=null==t.customUrl&&null==t.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(t):t.fallbackUrls,s=this._pickNewFallbackUrl(null==(r=this._fallbackInfo)?void 0:r[t.endpoint],a);if(!s)return!1;return this._updateFallbackInfoWithNewUrl(e,t,s),!0}catch(e){return null==(a=this._errorBoundary)||a.logError("tryFetchUpdatedFallbackInfo",e),!1}})}_updateFallbackInfoWithNewUrl(e,t,n){var r,i,a;let s={urlConfigChecksum:t.getChecksum(),url:n,expiryTime:Date.now()+6048e5,previous:[]},o=t.endpoint,l=null==(r=this._fallbackInfo)?void 0:r[o];l&&s.previous.push(...l.previous),s.previous.length>10&&(s.previous=[]);let u=null==(a=null==(i=this._fallbackInfo)?void 0:i[o])?void 0:a.url;null!=u&&s.previous.push(u),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[o]:s}),c(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(e){return r(this,void 0,void 0,function*(){var t;let n=this._dnsQueryCooldowns[e.endpoint];if(n&&Date.now()<n)return null;this._dnsQueryCooldowns[e.endpoint]=Date.now()+144e5;let r=[],a=yield(0,i._fetchTxtRecords)(null!=(t=this._networkOverrideFunc)?t:fetch),s=function(e){try{return new URL(e).pathname}catch(e){return null}}(e.defaultUrl);for(let t of a){if(!t.startsWith(e.endpointDnsKey+"="))continue;let n=t.split("=");if(n.length>1){let e=n[1];e.endsWith("/")&&(e=e.slice(0,-1)),r.push(`https://${e}${s}`)}}return r})}_pickNewFallbackUrl(e,t){var n;if(null==t)return null;let r=new Set(null!=(n=null==e?void 0:e.previous)?n:[]),i=null==e?void 0:e.url,a=null;for(let e of t){let t=e.endsWith("/")?e.slice(0,-1):e;if(!r.has(e)&&t!==i){a=t;break}}return a}}function u(e,t){var n;let r=null!=(n=null==e?void 0:e.toLowerCase())?n:"";return t||r.includes("uncaught exception")||r.includes("failed to fetch")||r.includes("networkerror when attempting to fetch resource")}function d(e){return`statsig.network_fallback.${(0,a._DJB2)(e)}`}function c(e,t){let n=d(e);if(!t||0===Object.keys(t).length)return void o.Storage.removeItem(n);o.Storage.setItem(n,JSON.stringify(t))}t.NetworkFallbackResolver=l,t._isDomainFailure=u},1213:(e,t,n)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.WebVitalsManager=void 0;let r=n(40667),i=n(1805),a=n(31748),s=n(97379),o=["CLS","FCP","INP","LCP","TTFB"];class l{constructor(e,t){this._enqueueFn=e,this._errorBoundary=t,this._isInitialized=!1,this._metricEvent={url:(0,s._getSafeUrlString)(),sanitizedUrl:(0,s._getSanitizedPageUrl)(),metrics:[],firstMetricTimestamp:void 0}}startTracking(){var e,t;try{if(this._isInitialized)return;let n=null==(t=null==(e=(0,i._getWindowSafe)())?void 0:e.location)?void 0:t.protocol;if("https:"!==n&&"http:"!==n)return;(0,r.onCLS)(e=>this._handleMetric(e)),(0,r.onFCP)(e=>this._handleMetric(e)),(0,r.onINP)(e=>this._handleMetric(e)),(0,r.onLCP)(e=>this._handleMetric(e)),(0,r.onTTFB)(e=>this._handleMetric(e)),this._isInitialized=!0}catch(e){i.Log.error("Error starting web vitals tracking",e),this._errorBoundary.logError("autoCapture:WebVitalsManager",e)}}_handleMetric(e){if(void 0===this._metricEvent.firstMetricTimestamp&&(this._metricEvent.firstMetricTimestamp=Date.now()),void 0===e||(null==e?void 0:e.name)===void 0)return;let t=(0,s._getSafeUrlString)();""!==t&&o.includes(e.name)&&(t!==this._metricEvent.url&&(this._enqueueWebVitalsAutoCaptureEvent(),this._metricEvent.url=t),this._metricEvent.metrics.push({name:e.name,value:e.value,delta:e.delta,id:e.id}),this._metricEvent.metrics.length===o.length&&this._enqueueWebVitalsAutoCaptureEvent())}_enqueueWebVitalsAutoCaptureEvent(){if(""===this._metricEvent.url||0===this._metricEvent.metrics.length)return;let e={};this._metricEvent.metrics.forEach(t=>{let n=t.name.toLowerCase();e[`${n}_value`]=t.value,e[`${n}_delta`]=t.delta,e[`${n}_id`]=t.id}),this._enqueueFn(a.AutoCaptureEventName.WEB_VITALS,this._metricEvent.sanitizedUrl,Object.assign(Object.assign({},e),{first_metric_timestamp:this._metricEvent.firstMetricTimestamp})),this._metricEvent={url:(0,s._getSafeUrlString)(),sanitizedUrl:(0,s._getSanitizedPageUrl)(),metrics:[],firstMetricTimestamp:void 0}}}t.WebVitalsManager=l},1805:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=t.Log=t.EventLogger=t.Diagnostics=void 0,n(23382);let a=n(23382),s=n(60465);Object.defineProperty(t,"Diagnostics",{enumerable:!0,get:function(){return s.Diagnostics}});let o=n(17825);Object.defineProperty(t,"EventLogger",{enumerable:!0,get:function(){return o.EventLogger}});let l=n(967);Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}});let u=n(66467),d=n(20317);Object.defineProperty(t,"Storage",{enumerable:!0,get:function(){return d.Storage}}),i(n(23382),t),i(n(40238),t),i(n(91672),t),i(n(23925),t),i(n(60465),t),i(n(79812),t),i(n(71053),t),i(n(17581),t),i(n(21710),t),i(n(49457),t),i(n(42066),t),i(n(967),t),i(n(36792),t),i(n(81313),t),i(n(76164),t),i(n(28934),t),i(n(97626),t),i(n(8121),t),i(n(21829),t),i(n(68544),t),i(n(77139),t),i(n(18973),t),i(n(96128),t),i(n(40251),t),i(n(56513),t),i(n(80058),t),i(n(66467),t),i(n(76289),t),i(n(12989),t),i(n(85556),t),i(n(83031),t),i(n(41997),t),i(n(20317),t),i(n(83194),t),i(n(46989),t),i(n(89542),t),i(n(10936),t),i(n(96890),t),i(n(94719),t),i(n(31072),t),Object.assign((0,a._getStatsigGlobal)(),{Log:l.Log,SDK_VERSION:u.SDK_VERSION})},2016:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(7620).createContext({})},2519:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r="3.8.10"},2721:e=>{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 0xff00ff&n.rotl(e,8)|0xff00ff00&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;
3e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?n.push(t.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}};e.exports=n}()},4963:(e,t,n)=>{"use strict";var r,i,a=n(91461);t.BLOCKS=void 0,function(e){e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell"}(t.BLOCKS||(t.BLOCKS={})),t.INLINES=void 0,function(e){e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink"}(t.INLINES||(t.INLINES={})),t.MARKS=void 0,function(e){e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough"}(t.MARKS||(t.MARKS={}));var s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var u=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],d=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],c=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],p=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],f=((r={})[t.BLOCKS.OL_LIST]=[t.BLOCKS.LIST_ITEM],r[t.BLOCKS.UL_LIST]=[t.BLOCKS.LIST_ITEM],r[t.BLOCKS.LIST_ITEM]=d,r[t.BLOCKS.QUOTE]=[t.BLOCKS.PARAGRAPH],r[t.BLOCKS.TABLE]=[t.BLOCKS.TABLE_ROW],r[t.BLOCKS.TABLE_ROW]=[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],r[t.BLOCKS.TABLE_CELL]=[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST],r[t.BLOCKS.TABLE_HEADER_CELL]=[t.BLOCKS.PARAGRAPH],r),h=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],g=l([t.BLOCKS.PARAGRAPH],h,!0),m=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.INLINES.HYPERLINK,t.INLINES.ENTRY_HYPERLINK,t.INLINES.ASSET_HYPERLINK,t.INLINES.EMBEDDED_ENTRY,"text"],y=[t.MARKS.BOLD,t.MARKS.CODE,t.MARKS.ITALIC,t.MARKS.UNDERLINE],_={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};function v(e,t){for(var n=0,r=Object.keys(e);n<r.length;n++)if(t===e[r[n]])return!0;return!1}var b=Object.freeze({__proto__:null,isBlock:function(e){return v(t.BLOCKS,e.nodeType)},isInline:function(e){return v(t.INLINES,e.nodeType)},isText:function(e){return"text"===e.nodeType}}),E=function(e){var t=e.path,n=e.property,r=e.typeName,i=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:i}},S=function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}},x=function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}},C=function(e){var t=e.expected,n=e.value,r=e.path;return{details:"Value must be one of expected values",name:"in",expected:l([],t,!0).sort(),path:r.toArray(),value:n}},k=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}},I=function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}},w=function(){function e(e,t){var n=this;this.obj=e,this.path=t,this._errors=[],this.catch=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=n._errors).push.apply(e,t)},this.exists=function(e){return e in n.obj||(n.catch(I({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t,r=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(a(r))return!0;var i=e?n.path.of(e):n.path,s=null!=(t=null!=e?e:n.path.last())?t:"value";return n.catch(E({typeName:"Object",property:s,path:i,value:r})),!1},this.string=function(e){var t=n.obj[e];return(!e||!!n.exists(e))&&("string"==typeof t||(n.catch(E({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!!t&&!(e in n.obj)||!!n.exists(e)&&(!("number"!=typeof r||Number.isNaN(r))||(n.catch(E({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return(!e||!!n.exists(e))&&(!!Array.isArray(t)||(n.catch(E({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!!("string"==typeof r&&t.includes(r))||(n.catch(C({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(x({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(S({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(k({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],i=!1;
3r.forEach(function(r,a){if(!i){var s=t(r,n.path.of(e).of(a));s.length>0&&(i=!0),n.catch.apply(n,s)}})}}}return Object.defineProperty(e.prototype,"errors",{get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(n,r){return e._errors.findIndex(function(e){return t(n)===t(e)})===r})},enumerable:!1,configurable:!0}),e}(),T=[],O=function(){function e(e,t){this.contentRule=e,this.validateData=t}return e.prototype.assert=function(e,t){var n,r,i=new w(e,t);if(!i.object())return i.errors;i.noAdditionalProperties(["nodeType","data","content"]);var a=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),s=a.nodeTypes,o=a.min,l=void 0===o?0:o;if(0===s.length&&l>0)throw Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(l," with no nodeTypes"));if(i.minLength("content",l),0===s.length?i.empty("content"):i.each("content",function(e,t){var n=new w(e,t);return n.object()&&n.enum("nodeType",s),n.errors}),i.object("data")){var u=null!=(r=null==(n=this.validateData)?void 0:n.call(this,e.data,t.of("data")))?r:[];i.catch.apply(i,u)}return i.errors},e}(),N=function(e){function t(t,n){var r=e.call(this,n,function(e,t){return r.assertLink(e,t)})||this;return r.linkType=t,r.assertLink=function(e,t){var n=new w(e,t);if(n.object("target")){var i=new w(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[r.type]),i.enum("linkType",[r.linkType]),"Link"===r.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===r.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),n.catch.apply(n,i.errors)}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return o(t,e),t}(O),L=function(e){function t(){var t=e.call(this,["text"],function(e,n){return t.assertLink(e,n)})||this;return t.assertLink=function(e,t){var n=new w(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors},t}return o(t,e),t}(O),D=function(e,t){return new O(e,t)},A=function(e,t){return new N(e,t)},j=function e(t){void 0===t&&(t=[]);var n=this;this.path=t,this.of=function(t){return new e(l(l([],n.path,!0),[t],!1))},this.isRoot=function(){return 0===n.path.length},this.last=function(){return n.path[n.path.length-1]},this.toArray=function(){return n.path}},M=D(l(l([],Object.values(t.INLINES),!0),["text"],!1).sort()),P=D([t.BLOCKS.LIST_ITEM]),z=A("Entry",T),R=D(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var n=new w(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors}),B=((i={})[t.BLOCKS.DOCUMENT]=D(u),i[t.BLOCKS.PARAGRAPH]=M,i[t.BLOCKS.HEADING_1]=M,i[t.BLOCKS.HEADING_2]=M,i[t.BLOCKS.HEADING_3]=M,i[t.BLOCKS.HEADING_4]=M,i[t.BLOCKS.HEADING_5]=M,i[t.BLOCKS.HEADING_6]=M,i[t.BLOCKS.QUOTE]=D(f[t.BLOCKS.QUOTE]),i[t.BLOCKS.EMBEDDED_ENTRY]=z,i[t.BLOCKS.EMBEDDED_ASSET]=A("Asset",T),i[t.BLOCKS.EMBEDDED_RESOURCE]=A("Contentful:Entry",T),i[t.BLOCKS.HR]=D(T),i[t.BLOCKS.OL_LIST]=P,i[t.BLOCKS.UL_LIST]=P,i[t.BLOCKS.LIST_ITEM]=D(l([],d,!0).sort()),i[t.BLOCKS.TABLE]=D(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}}),i[t.BLOCKS.TABLE_ROW]=D(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}}),i[t.BLOCKS.TABLE_CELL]=R,i[t.BLOCKS.TABLE_HEADER_CELL]=R,i[t.INLINES.HYPERLINK]=new L,i[t.INLINES.EMBEDDED_ENTRY]=z,i[t.INLINES.EMBEDDED_RESOURCE]=A("Contentful:Entry",T),i[t.INLINES.ENTRY_HYPERLINK]=A("Entry",["text"]),i[t.INLINES.ASSET_HYPERLINK]=A("Asset",["text"]),i[t.INLINES.RESOURCE_HYPERLINK]=A("Contentful:Entry",["text"]),i);t.CONTAINERS=f,t.EMPTY_DOCUMENT=_,t.HEADINGS=h,t.LIST_ITEM_BLOCKS=d,t.TABLE_BLOCKS=c,t.TEXT_CONTAINERS=g,t.TOP_LEVEL_BLOCKS=u,t.V1_MARKS=y,t.V1_NODE_TYPES=m,t.VOID_BLOCKS=p,t.helpers=b,t.validateRichTextDocument=function(e){var n=new j,r=new w(e,n);return(r.object()&&r.enum("nodeType",[t.BLOCKS.DOCUMENT]),r.errors.length>0)?r.errors:function e(t,n){if("text"===t.nodeType){var r;
3return(r=new w(t,n)).object()&&(r.noAdditionalProperties(["nodeType","data","value","marks"]),r.object("data"),r.each("marks",function(e,t){var n=new w(e,t);return n.object()&&n.string("type"),n.errors}),r.string("value")),r.errors}var i=B[t.nodeType].assert(t,n);if(i.length>0)return i;var a=new w(t,n);return a.each("content",function(t,n){return e(t,n)}),a.errors}(e,n)}},5431:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(88471).Ay)()},8121:(e,t,n)=>{"use strict";var r=n(40459);Object.defineProperty(t,"__esModule",{value:!0}),t._getUnloadEvent=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;let n=(0,t._getWindowSafe)();return null!=(e=null==n?void 0:n.document)?e:null},t._isServerEnv=()=>{if(null!==(0,t._getDocumentSafe)())return!1;let e=void 0!==r&&null!=r.versions&&null!=r.versions.node;return"string"==typeof EdgeRuntime||e},t._addWindowEventListenerSafe=(e,n)=>{let r=(0,t._getWindowSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)},t._addDocumentEventListenerSafe=(e,n)=>{let r=(0,t._getDocumentSafe)();"function"==typeof(null==r?void 0:r.addEventListener)&&r.addEventListener(e,n)},t._getCurrentPageUrlSafe=()=>{var e;try{return null==(e=(0,t._getWindowSafe)())?void 0:e.location.href.split(/[?#]/)[0]}catch(e){return}},t._getUnloadEvent=()=>{let e=(0,t._getWindowSafe)();return e&&"onpagehide"in e?"pagehide":"beforeunload"}},10934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(1805),i=n(59807),a=n(73092);class s{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,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._rawValues?(0,r._typedJsonParse)(this._rawValues,"has_updates","EvaluationStoreValues"):null}setValues(e,t){var n,s;if(!e)return!1;let o=(0,r._typedJsonParse)(e.data,"has_updates","EvaluationResponse");return null!=o&&(this._source=e.source,(null==o?void 0:o.has_updates)!==!0||(null!=(n=o.time)?n:0)<this._lcut||(this._rawValues=e.data,this._lcut=o.time,this._receivedAt=e.receivedAt,"init-v2"===o.response_format?this._values=new a.V2InitializeContainer(o):this._values=new i.V1InitializeContainer(o),this._bootstrapMetadata=this._extractBootstrapMetadata(e.source,o),e.source&&o.user&&this._setWarningState(t,o),r.SDKFlags.setFlags(this._sdkKey,null!=(s=o.sdk_flags)?s:{}),!0))}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){let t=this._values?this._values.getGate(e):null;return this._getDetailedStoreResult(t)}getConfig(e){let t=this._values?this._values.getConfig(e):null;return this._getDetailedStoreResult(t)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(e){let t=this._values?this._values.getLayer(e):null;return this._getDetailedStoreResult(t)}getParamStore(e){let t=this._values?this._values.getParamStore(e):null;return this._getDetailedStoreResult(t)}getSource(){return this._source}getExposureMapping(){var e;return null==(e=this._values)?void 0:e.getExposureMapping()}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;let n={};return t.user&&(n.user=t.user),t.sdkInfo&&(n.generatorSDKInfo=t.sdkInfo),n.lcut=t.time,n}_getDetailedStoreResult(e){return{result:e,details:this._getDetails(null==e)}}_setWarningState(e,t){var n,i;let a=r.StableID.get(this._sdkKey);if((null==(n=e.customIDs)?void 0:n.stableID)!==a&&((null==(i=e.customIDs)?void 0:i.stableID)||a))return void this._warnings.add("StableIDMismatch");if("user"in t){let n=t.user,i=Object.assign(Object.assign({},e),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(0,r._getFullUserHash)(i)!==(0,r._getFullUserHash)(n)&&this._warnings.add("Parti
3alUserMatch")}}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};let e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,n;let r=this.getCurrentSourceDetails(),i=r.reason,a=null!=(t=r.warnings)?t:[];"Bootstrap"===this._source&&a.length>0&&(i+=a[0]),"Uninitialized"!==i&&"NoValues"!==i&&(i=`${i}:${e?"Unrecognized":"Recognized"}`);let s="Bootstrap"===this._source&&null!=(n=this._bootstrapMetadata)?n:void 0;return s&&(r.bootstrapMetadata=s),Object.assign(Object.assign({},r),{reason:i})}}t.default=s},10936:(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,n="89ab"[Math.floor(4*Math.random())];return`xxxxxxxx-xxxx-4xxx-${n}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,n=>{let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:7&r|8).toString(16)})}},12709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=void 0;let r=n(7620),i=n(70646),a=n(60457);function s(e){return e.getContext().user}t.useStatsigUser=function(){let{client:e}=(0,a.useStatsigClient)(),{renderVersion:t}=(0,r.useContext)(i.default);return{user:(0,r.useMemo)(()=>s(e),[e,t]),updateUserSync:(0,r.useCallback)(t=>("function"==typeof t&&(t=t(s(e))),e.updateUserSync(t)),[e]),updateUserAsync:(0,r.useCallback)(t=>("function"==typeof t&&(t=t(s(e))),e.updateUserAsync(t)),[e])}}},12989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13100:(e,t,n)=>{"use strict";e.exports=n(88261)},13303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getPossibleFirstTouchMetadata=t._getNetworkInfo=t._gatherAllMetadata=t._gatherCommonMetadata=void 0;let r=n(1805),i=n(97379);function a(e){var t,n,a,o,l,u,d,c;let p=(0,r._getDocumentSafe)(),f=(0,r._getWindowSafe)();return(0,i._stripEmptyValues)(Object.assign({title:null==p?void 0:p.title,current_url:null==(t=null==f?void 0:f.location)?void 0:t.href,user_agent:(null==(n=null==f?void 0:f.navigator)?void 0:n.userAgent)&&(null==(o=null==(a=null==f?void 0:f.navigator)?void 0:a.userAgent)?void 0:o.length)>
3200?f.navigator.userAgent.substring(0,200):null==(l=null==f?void 0:f.navigator)?void 0:l.userAgent,locale:null==(u=null==f?void 0:f.navigator)?void 0:u.language,hostname:e.hostname,pathname:e.pathname,screen_width:null==(d=null==f?void 0:f.screen)?void 0:d.width,screen_height:null==(c=null==f?void 0:f.screen)?void 0:c.height,viewport_width:null==f?void 0:f.innerWidth,viewport_height:null==f?void 0:f.innerHeight,viewport:`${null==f?void 0:f.innerWidth}x${null==f?void 0:f.innerHeight}`,timestamp:Date.now(),timezone:(0,i._getSafeTimezone)(),timezone_offset:(0,i._getSafeTimezoneOffset)()},s()))}function s(){let e=(0,i._getSafeNetworkInformation)(),t={};return(null==e?void 0:e.effectiveType)!==void 0&&(t.effective_connection_type=e.effectiveType),(null==e?void 0:e.rtt)!==void 0&&(t.rtt_ms=e.rtt),(null==e?void 0:e.downlink)!==void 0&&(t.downlink_mbps=e.downlink,t.downlink_kbps=1e3*e.downlink),(null==e?void 0:e.saveData)!==void 0&&(t.save_data=e.saveData),t}function o(e){let t=(null==e?void 0:e.referrer)||"";if(!t)return{referrer:null,referrer_domain:null,referrer_path:null,searchEngine:"",searchQuery:""};try{let e=new URL(t),n=e.hostname,r=["google","bing","yahoo","duckduckgo","baidu"].find(e=>n.includes(e+"."))||"",i=e.searchParams.get("yahoo"===r?"p":"q")||"";return{referrer:t,referrer_domain:e.hostname,referrer_path:e.pathname,searchEngine:r,searchQuery:i}}catch(e){return{referrer:null,referrer_domain:null,referrer_path:null,searchEngine:"",searchQuery:""}}}function l(e){let t=e.searchParams,n={};return["utm_source","utm_medium","utm_campaign","utm_term","utm_content","msclkid","dclid","fbclid","gad_source","gclid","gclsrc","wbraid","utm_id","irclid","igshid","_kx","li_fat_id","mc_cid","mc_eid","epik","qclid","rdt_cid","sccid","ttc","ttclid","ttc_id","twclid"].forEach(e=>{let r=t.get(e);r&&(n[e]=r)}),n}t._gatherCommonMetadata=a,t._gatherAllMetadata=function(e){let t=(0,r._getDocumentSafe)(),n=(0,r._getWindowSafe)();if(!t||!n)return{};let s=o(t),u=a(e),d=l(e),c={};return e.searchParams.forEach((e,t)=>{c[t]=e}),Object.assign(Object.assign({},u),(0,i._stripEmptyValues)(Object.assign(Object.assign(Object.assign({},s),d),c)))},t._getNetworkInfo=s,t._getPossibleFirstTouchMetadata=function(e){let t=(0,r._getDocumentSafe)(),n=(0,r._getWindowSafe)();if(!t||!n)return{};let a=o(t),s=l(e),u=(0,i._stripEmptyValues)(Object.assign(Object.assign({},a),s)),d={};for(let[e,t]of Object.entries(u))d[`$s_${e}`]=t;return d}},13883:(e,t,n)=>{"use strict";n.d(t,{default:()=>s}),n(7620);var r=n(38921),i=n(29509),a=n(88968);function s(){let e=(0,r.default)(i.A);return e[a.A]||e}},13937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClient=void 0;let a=n(1805),s=n(28341);t.StatsigClient=s.default,i(n(1805),t),t.default=Object.assign((0,a._getStatsigGlobal)(),{StatsigClient:s.default})},14078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useDetectCanvasMode:()=>o});var r=n(7620),i=n(87068),a=n(98949);let s={hasSDKVersionUI:!0,hasVersionHistory:!0,cfVisibility:!0,patternResolution:!0,patternBreakpointDesignValues:!0,dndMigration:!0,hasPrebinding:!0},o=function(){let{isClientSide:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,r.useState)(!1),o=(0,r.useRef)(!1),[u,d]=(0,r.useState)(()=>e&&l()?a.kT.READ_ONLY:a.kT.NONE),c=(0,r.useCallback)(e=>{if((0,i.oP)(e))return;let t=(0,i.VI)(e);if(t.eventType!==a.$4.RequestEditorMode&&t.eventType!==a.$4.RequestReadOnlyMode)return;let n=t.eventType===a.$4.RequestEditorMode,r=n?a.kT.EDITOR:a.kT.READ_ONLY;o.current=!0,d(r),"undefined"!=typeof window&&(window.__EB__||(window.__EB__={}),window.__EB__.isReadOnlyMode=!n,window.__EB__.isEditorMode=n),window.removeEventListener("message",c)},[]);return(0,r.useEffect)(()=>
3{if(t){if("undefined"!=typeof window){window.addEventListener("message",c),(0,i._z)(a.tc.Connected,void 0),(0,i._z)(a.tc.SDKFeatures,s);let e=setTimeout(()=>{o.current||d(a.kT.NONE)},l()?2e3:100);return()=>{window.removeEventListener("message",c),clearTimeout(e)}}}else n(!0)},[u,t,c]),u};function l(){try{return window.self!==window.top}catch(e){return!1}}},15007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogManager=void 0;let r=n(1805),i=n(31748),a=n(97379),s=n(15932),o=n(13303),l={trace:10,debug:20,log:30,info:30,warn:40,error:50};class u{constructor(e,t,n){var r,i,a,s;this._enqueueFn=e,this._errorBoundary=t,this._options=n,this._restoreFns=[],this._isTracking=!1,this._logLevel="info",this.__source="js-auto-capture",this._logLevel=null!=(r=this._options.logLevel)?r:"info",this._maxKeys=null!=(i=this._options.maxKeys)?i:50,this._maxDepth=null!=(a=this._options.maxDepth)?a:10,this._maxStringLength=null!=(s=this._options.maxStringLength)?s:2500}startTracking(){try{if(this._isTracking||!this._options.enabled||!(0,r._getWindowSafe)())return;this._patchConsole(),this._isTracking=!0}catch(e){r.Log.error("Error starting console log tracking",e),this._errorBoundary.logError("autoCapture:ConsoleLogManager",e)}}stopTracking(){this._isTracking&&(this._restoreFns.forEach(e=>e()),this._restoreFns=[],this._isTracking=!1)}_patchConsole(){Object.entries(l).forEach(([e,t])=>{if(t<l[this._logLevel]||!console[e])return;let n=console[e].bind(console),r=!1,i=(0,a.wrapFunctionWithRestore)(console,e,t=>(...i)=>{if(t(...i),!r){r=!0;try{let t=i.map(e=>(0,s._safeStringify)(e,this._maxKeys,this._maxDepth,this._maxStringLength)),n=(0,s._getStackTrace)();this._enqueueConsoleLog(e,t,n)}catch(e){n("console observer error:",e,...i),this._errorBoundary.logError("autoCapture:ConsoleLogManager",e)}finally{r=!1}}});this._restoreFns.push(i)})}_enqueueConsoleLog(e,t,n){if(!this._shouldLog(t))return;let r=Object.assign({status:"log"===e?"info":e,log_level:e,payload:t,trace:n,timestamp:Date.now(),source:this.__source},(0,o._gatherAllMetadata)((0,a._getSafeUrl)()));this._enqueueFn(i.AutoCaptureEventName.CONSOLE_LOG,t.join(" "),r)}_shouldLog(e){for(let t of e)if(t.includes("[Statsig]"))return!1;return!this._options.sampleRate||"number"!=typeof this._options.sampleRate||this._options.sampleRate<=0||this._options.sampleRate>=1||Math.random()<this._options.sampleRate}}t.ConsoleLogManager=u},15932:(e,t)=>{"use strict";function n(e,t){return e.length<=t?e:e.slice(0,t)+"..."}Object.defineProperty(t,"__esModule",{value:!0}),t._getStackTrace=t._safeStringify=void 0,t._safeStringify=function(e,t,r,i){try{var a,s,o,l,u,d;if(a=e,s=t,o=r,l=a,"[object Object]"===Object.prototype.toString.call(l)&&(Object.keys(a).length>s||function e(t,n){return n<=0||"object"==typeof t&&null!==t&&Object.keys(t).some(r=>e(t[r],n-1))}(a,o))||"function"==typeof a){return u=e,d=i,n(u.toString(),d)}if("string"==typeof e)return n(e,i);if("object"==typeof e&&null!==e)return n(JSON.stringify(e),i);return n(String(e),i)}catch(e){return n("[Unserializable]",i)}},t._getStackTrace=function(){var e,t;try{return null!=(t=null==(e=Error().stack)?void 0:e.split("\n").slice(2))?t:[]}catch(e){return[]}}},17085:(e,t,n)=>{!function(){var t=n(2721),r=n(17845).utf8,i=n(38852),a=n(17845).bin,s=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?a.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var o=t.bytesToWords(e),l=8*e.length,u=0x67452301,d=-0x10325477,c=-0x67452302,p=0x10325476,f=0;f<o.length;f++)o[f]=(o[f]<<8|o[f]>>>24)&0xff00ff|(o[f]<<24|o[f]>>>8)&0xff00ff00;o[l>>>5]|=128<<l%32,o[(l+64>>>9<<4)+14]=l;for(var h=s._ff,g=s._gg,m=s._hh,y=s._ii,f=0;f<o.length;f+=16){var _=u,v=d,b=c,E=p;u=h(u,d,c,p,o[f+0],7,-0x28955b88),p=h(p,u,d,c,o[f+1],12,-0x173848aa),c=h(c,p,u,d,o[f+2],17,0x242070db),d=h(d,c,p,u,o[f+3],22,-0x3e423112),u=h(u,d,c,p,o[f+4],7,-0xa83f051),p=h(p,u,d,c,o[f+5],12,0x4787c62a),c=h(c,p,u,d,o[f+6],17,-0x57cfb9ed),d=h(d,c,p,u,o[f+7],22,-0x2b96aff),u=h(u,d,c,p,o[f+8],7,0x698098d8),p=h(p,u,d,c,o[f+9],12,-0x74bb0851),c=h(c,p,u,d,o[f+10],17,-42063),d=h(d,c,p,u,o[f+11],22,-0x76a32842),u=h(u,d,c,p,o[f+12],7,0x6b901122),p=h(p,u,d,c,o[f+13],12,-0x2678e6d),c=h(c,p,u,d,o[f+14],17,-0x5986bc72),d=h(d,c,p,u,o[f+15],22,0x49b40821),u=g(u,d,c,p,o[f+1],5,-0x9e1da9e),p=g(p,u,d,c,o[f+6],9,-0x3fbf4cc0),c=g(c,p,u,d,o[f+11],14,0x265e5a51),d=g(d,c,p,u,o[f+0],20,-0x16493856),u=g(u,d,c,p,o[f+5],5,-0x29d0efa3),p=g(p,u,d,c,o[f+10],9,0
3x2441453),c=g(c,p,u,d,o[f+15],14,-0x275e197f),d=g(d,c,p,u,o[f+4],20,-0x182c0438),u=g(u,d,c,p,o[f+9],5,0x21e1cde6),p=g(p,u,d,c,o[f+14],9,-0x3cc8f82a),c=g(c,p,u,d,o[f+3],14,-0xb2af279),d=g(d,c,p,u,o[f+8],20,0x455a14ed),u=g(u,d,c,p,o[f+13],5,-0x561c16fb),p=g(p,u,d,c,o[f+2],9,-0x3105c08),c=g(c,p,u,d,o[f+7],14,0x676f02d9),d=g(d,c,p,u,o[f+12],20,-0x72d5b376),u=m(u,d,c,p,o[f+5],4,-378558),p=m(p,u,d,c,o[f+8],11,-0x788e097f),c=m(c,p,u,d,o[f+11],16,0x6d9d6122),d=m(d,c,p,u,o[f+14],23,-0x21ac7f4),u=m(u,d,c,p,o[f+1],4,-0x5b4115bc),p=m(p,u,d,c,o[f+4],11,0x4bdecfa9),c=m(c,p,u,d,o[f+7],16,-0x944b4a0),d=m(d,c,p,u,o[f+10],23,-0x41404390),u=m(u,d,c,p,o[f+13],4,0x289b7ec6),p=m(p,u,d,c,o[f+0],11,-0x155ed806),c=m(c,p,u,d,o[f+3],16,-0x2b10cf7b),d=m(d,c,p,u,o[f+6],23,0x4881d05),u=m(u,d,c,p,o[f+9],4,-0x262b2fc7),p=m(p,u,d,c,o[f+12],11,-0x1924661b),c=m(c,p,u,d,o[f+15],16,0x1fa27cf8),d=m(d,c,p,u,o[f+2],23,-0x3b53a99b),u=y(u,d,c,p,o[f+0],6,-0xbd6ddbc),p=y(p,u,d,c,o[f+7],10,0x432aff97),c=y(c,p,u,d,o[f+14],15,-0x546bdc59),d=y(d,c,p,u,o[f+5],21,-0x36c5fc7),u=y(u,d,c,p,o[f+12],6,0x655b59c3),p=y(p,u,d,c,o[f+3],10,-0x70f3336e),c=y(c,p,u,d,o[f+10],15,-1051523),d=y(d,c,p,u,o[f+1],21,-0x7a7ba22f),u=y(u,d,c,p,o[f+8],6,0x6fa87e4f),p=y(p,u,d,c,o[f+15],10,-0x1d31920),c=y(c,p,u,d,o[f+6],15,-0x5cfebcec),d=y(d,c,p,u,o[f+13],21,0x4e0811a1),u=y(u,d,c,p,o[f+4],6,-0x8ac817e),p=y(p,u,d,c,o[f+11],10,-0x42c50dcb),c=y(c,p,u,d,o[f+2],15,0x2ad7d2bb),d=y(d,c,p,u,o[f+9],21,-0x14792c6f),u=u+_>>>0,d=d+v>>>0,c=c+b>>>0,p=p+E>>>0}return t.endian([u,d,c,p])};s._ff=function(e,t,n,r,i,a,s){var o=e+(t&n|~t&r)+(i>>>0)+s;return(o<<a|o>>>32-a)+t},s._gg=function(e,t,n,r,i,a,s){var o=e+(t&r|n&~r)+(i>>>0)+s;return(o<<a|o>>>32-a)+t},s._hh=function(e,t,n,r,i,a,s){var o=e+(t^n^r)+(i>>>0)+s;return(o<<a|o>>>32-a)+t},s._ii=function(e,t,n,r,i,a,s){var o=e+(n^(t|~r))+(i>>>0)+s;return(o<<a|o>>>32-a)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,n){if(null==e)throw Error("Illegal argument "+e);var r=t.wordsToBytes(s(e,n));return n&&n.asBytes?r:n&&n.asString?a.bytesToString(r):t.bytesToHex(r)}}()},17581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},17825:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EventLogger=void 0;let i=n(40238),a=n(49457),s=n(967),o=n(81313),l=n(8121),u=n(80058),d=n(76289),c=n(20317),p=n(89542),f=n(96890),h={};class g{static _safeFlushAndForget(e){var t;null==(t=h[e])||t.flush().catch(()=>{})}static _safeRetryFailedLogs(e){var t;null==(t=h[e])||t._retryFailedLogs()}constructor(e,t,n,r){var i,a;this._sdkKey=e,this._emitter=t,this._network=n,this._options=r,this._queue=[],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=!1,this._creationTime=Date.now(),this._loggingEnabled=null!=(i=null==r?void 0:r.loggingEnabled)?i:(null==r?void 0:r.disableLogging)===!0?d.LoggingEnabledOption.disabled:d.LoggingEnabledOption.browserOnly,(null==r?void 0:r.loggingEnabled)&&void 0!==r.disableLogging&&s.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging."),this._maxQueueSize=null!=(a=null==r?void 0:r.loggingBufferMaxSize)?a:100;let l=null==r?void 0:r.networkConfig;this._logEventUrlConfig=new p.UrlConfiguration(o.Endpoint._rgstr,null==l?void 0:l.logEventUrl,null==l?void 0:l.api,null==l?void 0:l.logEventFallbackUrls)}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e){if("disabled"===this._loggingEnabled&&"disabled"!==e){let e=this._getStorageKey(),t=(0,c._getObjectFromStorage)(e);t&&this._queue.push(...t),c.Storage.removeItem(e)}this._loggingEnabled=e}enqueue(e){this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNeeded(),this._queue.length>this._maxQueueSize&&g._safeFlushAndForget(this._sdkKey))}incrementNonExposureCount(e){var t;let n=null!=(t=this._nonExposedChecks[e])?t:0;this._nonExposedChecks[e]=n+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;let t=(0,l._isServerEnv)();t&&(null==(e=this._options)?void 0:e.loggingEnabled)!=="always"||(h[this._sdkKey]=this,t||(0,f._subscribeToVisiblityChanged)(e=>{"background"===e?g._safeFlushAndForget(this._sdkKey):"foreground"===e&&g._safeRetryFailedLogs(this._sdkKey)}
3),this._retryFailedLogs(),this._startBackgroundFlushInterval())}stop(){return r(this,void 0,void 0,function*(){this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushIntervalId=null),delete h[this._sdkKey],yield this.flush()})}flush(){return r(this,void 0,void 0,function*(){if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;let e=this._queue;this._queue=[],yield this._sendEvents(e)})}_quickFlushIfNeeded(){!this._hasRunQuickFlush&&(this._hasRunQuickFlush=!0,Date.now()-this._creationTime>200||setTimeout(()=>g._safeFlushAndForget(this._sdkKey),200))}_shouldLogEvent(e){var t;if((null==(t=this._options)?void 0:t.loggingEnabled)!=="always"&&(0,l._isServerEnv)())return!1;if(!(0,u._isExposureEvent)(e))return!0;let n=e.user?e.user:{statsigEnvironment:void 0},r=(0,i._getUserStorageKey)(this._sdkKey,n),a=e.metadata?e.metadata:{},s=[e.eventName,r,a.gate,a.config,a.ruleID,a.allocatedExperiment,a.parameterName,String(a.isExplicitParameter),a.reason].join("|"),o=this._lastExposureTimeMap[s],d=Date.now();return(!o||!(d-o<6e5))&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[s]=d,!0)}_sendEvents(e){return r(this,void 0,void 0,function*(){var t,n;if("disabled"===this._loggingEnabled)return this._saveFailedLogsToStorage(e),!1;try{let r=(0,f._isUnloading)()&&this._network.isBeaconSupported()&&(null==(n=null==(t=this._options)?void 0:t.networkConfig)?void 0:n.networkOverrideFunc)==null;if(this._emitter({name:"pre_logs_flushed",events:e}),(r?this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success)return this._emitter({name:"logs_flushed",events:e}),!0;return s.Log.warn("Failed to flush events."),this._saveFailedLogsToStorage(e),!1}catch(e){return s.Log.warn("Failed to flush events."),!1}})}_sendEventsViaPost(e){return r(this,void 0,void 0,function*(){var t;let n=yield this._network.post(this._getRequestData(e)),r=null!=(t=null==n?void 0:n.code)?t:-1;return{success:r>=200&&r<300}})}_sendEventsViaBeacon(e){return{success:this._network.beacon(this._getRequestData(e))}}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:{[o.NetworkParam.EventCount]:String(e.length)},credentials:"same-origin"}}_saveFailedLogsToStorage(e){for(;e.length>500;)e.shift();let t=this._getStorageKey();try{let n=this._getFailedLogsFromStorage(t);(0,c._setObjectInStorage)(t,[...n,...e])}catch(e){s.Log.warn("Unable to save failed logs to storage")}}_getFailedLogsFromStorage(e){let t=[];try{let n=(0,c._getObjectFromStorage)(e);return Array.isArray(n)&&(t=n),t}catch(e){return[]}}_retryFailedLogs(){let e=this._getStorageKey();r(this,void 0,void 0,function*(){c.Storage.isReady()||(yield c.Storage.isReadyResolver());let t=(0,c._getObjectFromStorage)(e);t&&(c.Storage.removeItem(e),yield this._sendEvents(t))}).catch(()=>{s.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);let t={},n=this._getCurrentPageUrl();n&&(t.statsigMetadata={currentPage:n});let r=Object.assign(Object.assign({},e),t);s.Log.debug("Enqueued Event:",r),this._queue.push(r)}_appendAndResetNonExposedChecks(){0!==Object.keys(this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:Object.assign({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_getCurrentPageUrl(){var e;if((null==(e=this._options)?void 0:e.includeCurrentPageUrlWithEvents)!==!1)return(0,l._getCurrentPageUrlSafe)()}_startBackgroundFlushInterval(){var e,t;let n=setInterval(()=>{let e=h[this._sdkKey];e&&e._flushIntervalId===n?g._safeFlushAndForget(this._sdkKey):clearInterval(n)},null!=(t=null==(e=this._options)?void 0:e.loggingIntervalMs)?t:1e4);this._flushIntervalId=n}}t.EventLogger=g},17845:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},18724:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(44917);function i(e){let{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},18973:(e,t,n)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.getCookieName=t.StableID=void 0;let r=n(40238),i=n(967),a=n(8121),s=n(20317),o=n(10936),l={},u={},d={};function c(e){return`statsig.stable_id.${(0,r._getStorageKey)(e)}`}function p(e,t){let n=c(t);try{(0,s._setObjectInStorage)(n,e)}catch(e){i.Log.warn("Failed to save StableID to storage")}}function f(e,t){if(!u[t]||null==(0,a._getDocumentSafe)())return;let n=new Date;n.setFullYear(n.getFullYear()+1),document.cookie=`${h(t)}=${encodeURIComponent(e)}; expires=${n.toUTCString()}; path=/`}function h(e){return`statsig.stable_id.${(0,r._getStorageKey)(e)}`}t.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(d[e])return null;if(null!=l[e])return l[e];let t=null;return null!=(t=function(e){if(!u[e]||null==(0,a._getDocumentSafe)())return null;for(let t of document.cookie.split(";")){let[n,r]=t.trim().split("=");if(n===h(e))return decodeURIComponent(r)}return null}(e))?(l[e]=t,p(t,e)):(null==(t=function(e){let t=c(e);return(0,s._getObjectFromStorage)(t)}(e))&&(t=(0,o.getUUID)()),p(t,e),f(t,e),l[e]=t),t},setOverride:(e,t)=>{l[t]=e,p(e,t),f(e,t)},_setCookiesEnabled:(e,t)=>{u[e]=t},_setDisabled:(e,t)=>{d[e]=t}},t.getCookieName=h},20166:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>r});let r=e=>e.scrollTop;function i(e,t){var n,r;let{timeout:i,easing:a,style:s={}}=e;return{duration:null!=(n=s.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:s.transitionDelay}}},20317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._setObjectInStorage=t._getObjectFromStorage=t.Storage=void 0;let r=n(967),i=n(8121),a={},s={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)},o=null;try{let e=(0,i._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(o={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,n)=>e.localStorage.setItem(t,n),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(e){r.Log.warn("Failed to setup localStorageProvider.")}let l=null!=o?o:s,u=l;function d(e){try{return e()}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return t.Storage._setProvider(s),null;throw e}}t.Storage={isReady:()=>u.isReady(),isReadyResolver:()=>u.isReadyResolver(),getProviderName:()=>u.getProviderName(),getItem:e=>d(()=>u.getItem(e)),setItem:(e,t)=>d(()=>u.setItem(e,t)),removeItem:e=>u.removeItem(e),getAllKeys:()=>u.getAllKeys(),_setProvider:e=>{l=e,u=e},_setDisabled:e=>{u=e?s:l}},t._getObjectFromStorage=function(e){let n=t.Storage.getItem(e);return JSON.parse(null!=n?n:"null")},t._setObjectInStorage=function(e,n){t.Storage.setItem(e,JSON.stringify(n))}},20473:(e,t,n)=>{"use strict";n.d(t,{ExperienceRoot:()=>I});var r=n(54568),i=n(87068),a=n(7620),s=n(98949),o=n(87511),l=n(24691);class u{static linkOriginalNodeIds(e,t){u.newToOriginalNodeIdMap.set(e,t)}static storePrebindingDefinitions(e,t,n){for(let r of null!=n?n:[])u.prebindingDefinitions.set(r.id,{...r}),u.prebindingDefinitionIdsByNodeId.set(e,[r.id]),r.variableMappings&&u.variableMappingByPatternId.set(t,r.variableMappings),u.storeParameterDefinitions(e,r.parameterDefinitions||{})}static storeParameterDefinitions(e,t){u.parameterDefinitionsByNodeId.set(e,[]);let n=[];for(let[a,s]of Object.entries(t||{})){if(u.parameterDefinitionsById.set(a,{parameterId:a,parameter:s}),s.passToNodes){var r,i;let{parameterId:t,nodeId:n}=null!=(r=s.passToNodes[0])?r:{};if(t){let r=null!=(i=u.paramIdToOverwriteIdMap.get(t))?i:[];r.some(t=>t.overwrittenByParamId===a&&t.originalNodeIdToOverride===n&&t.indexedParentPatternNodeId===e)||u.paramIdToOverwriteIdMap.set(t,[...r,{overwrittenByParamId:a,originalNodeIdToOverride:n,indexedParentPatternNodeId:e}])}}n.push({parameterId:a,parameter:s})}u.parameterDefinitionsByNodeId.set(e,n)}static getParameterIdByNodeId(e){let t=u.getNativeParameterDefinitionByNodeId(e);if(t)return u.getHoistedIdForParameterId(null==t?void 0:t.parameterId,e)}static getParameterDefinitionsByParameterId(e){var t,n;let r,i=u.parameterDefinitionsById.get(e),a=((null==i||null==(t=i.parameter)?void 0:t.passToNodes)||[])[0],s=u.parameterDefinitionsById.get(null==a?void 0:a.parameterId),o=((null==s||null==(n=s.parameter)?void 0:n.passToNodes)||[])[0];o&&(r=u.parameterDefinitionsById.get(null==o?void 0:o.parameterId));let l=[i,s,r];if(l&&l.filter(Boolean).length)return l}static getAllParameterDefinitionsForNodeId(e){var t;return Object.fromEntries((null!=(t=u.parameterDefinitionsByNodeId.get(e))?t:[]).map(e=>{let{parameterId:t,parameter:n}=e;return[t,n]}))}static getAllParameterIdsByNodeId(e){return Object.keys(u.getAllParameterDefinitionsForNodeId(e))}static getHoistedIdForParameterId(e,t){var n,r,i;let a,s=e,o=t,l=null!=(n=u.newToOriginalNodeIdMap.get(t))?n:t;do{let e=null!=(r=u.paramIdToOverwriteIdMap.get(s))?r:[],t=o.split("---");if(a=e.find(e=>e.originalNodeIdToOverride===l&&(t.length>1&&o.includes(e.indexedParentPatternNodeId)||1===t.length&&"root"===e.indexedParentPatternNodeId))){let{over
3writtenByParamId:e,indexedParentPatternNodeId:t}=a;s=e,o=t,l=null!=(i=u.newToOriginalNodeIdMap.get(t))?i:t}}while(a);return s}static getNativeParameterDefinitionByNodeId(e){let t=u.parameterDefinitionsByNodeId.get(e);return u.extractNativeParameterDefinition(t)}static extractNativeParameterDefinition(e){let{parameterId:t,parameter:n}=(null==e?void 0:e.find(e=>{var t;return!(null==(t=e.parameter.passToNodes)?void 0:t.length)}))||{};if(t&&n)return{parameterId:t,parameter:n}}static reset(){u.prebindingDefinitions=new Map,u.parameterDefinitionsById=new Map,u.parameterDefinitionsByNodeId=new Map,u.variableMappingByPatternId=new Map,u.newToOriginalNodeIdMap=new Map,u.paramIdToOverwriteIdMap=new Map}}u.prebindingDefinitions=new Map,u.prebindingDefinitionIdsByNodeId=new Map,u.parameterDefinitionsById=new Map,u.parameterDefinitionsByNodeId=new Map,u.variableMappingByPatternId=new Map,u.newToOriginalNodeIdMap=new Map,u.paramIdToOverwriteIdMap=new Map;let d=e=>{let{componentValueKey:t,componentSettings:n,parameters:r,patternRootNodeIdsChain:i}=e,{prebindingDefinitions:a}=n,{parameterDefinitions:s,variableMappings:o,allowedVariableOverrides:l}=(null==a?void 0:a[0])||{},d=null==o?void 0:o[t],c=null==s?void 0:s[(null==d?void 0:d.parameterId)||""],p=i.join("---"),f=u.getHoistedIdForParameterId((null==d?void 0:d.parameterId)||"",p),h=null==r?void 0:r[f];return!!(c&&h&&d&&l&&Array.isArray(l))&&!l.includes(t)},c=e=>{var t,n,r,i;let{componentValueKey:a,componentSettings:s,parameters:o,entityStore:l,patternRootNodeIdsChain:d}=e,c=null==(t=s.prebindingDefinitions)?void 0:t[0];if(!c)return"";let p=null==(n=c.variableMappings)?void 0:n[a];if(!p)return"";let f=d.join("---"),h=u.getHoistedIdForParameterId(p.parameterId,f),g=null==o?void 0:o[h];if(!g)return"";let m=g.path.split("/")[1],y=l.dataSource[m];if(!y)return"";let _=l.getEntityFromLink(y);if(!_||"Asset"===_.sys.type)return"";let v=_.sys.contentType.sys.id,b=l.hoistedParameterDefinitions[h];if(!b||!b.contentTypes.includes(v))return"";let E=null==p||null==(i=p.pathsByContentType)||null==(r=i[v])?void 0:r.path;return E?g.path+E:""},p=e=>{let{node:t,rootPatternVariables:n,componentSettings:r,entityStore:a,rootPatternParameters:s,parentPatternRootNodeIdsChain:o}=e,l={},u=o.slice(-1)[0];for(let[e,p]of(u===t.id&&(u=o.slice(-2)[0]),Object.entries(t.variables)))if(l[e]=p,"ComponentValue"===p.type){var f;let u=p.key,h=n[u],g=null==(f=r.variableDefinitions)?void 0:f[u],m=null==g?void 0:g.defaultValue,y=d({componentSettings:r,componentValueKey:u,parameters:s,patternRootNodeIdsChain:o}),_=c({componentSettings:r,componentValueKey:u,parameters:s,entityStore:a,patternRootNodeIdsChain:o});if(y&&_)l[e]={type:"BoundValue",path:_};else if((null==h?void 0:h.type)==="UnboundValue")l[e]={type:"UnboundValue",key:h.key};else if((null==h?void 0:h.type)==="NoValue")throw Error('Unexpected NoValue for variable "'.concat(e,'" when deserializing pattern "').concat(t.definitionId,'". ')+"This can only happen if you created experience in pre-release version of prebinding and experience contains NoValue properties. Resave experience to fix this issue.");else(null==h?void 0:h.type)==="BoundValue"?l[e]={type:"BoundValue",path:h.path}:(null==h?void 0:h.type)==="HyperlinkValue"?l[e]={type:"HyperlinkValue",linkTargetKey:h.linkTargetKey}:(null==h?void 0:h.type)==="DesignValue"?l[e]=(0,i.Pt)(m,h):(null==h?void 0:h.type)==="ComponentValue"?y||(l[e]=m):!h&&m&&"style"===g.group&&(l[e]={type:"DesignValue",valuesByBreakpoint:m.valuesByBreakpoint})}let h=t.children.map(e=>((0,i.H_)({componentId:e.definitionId,usedComponents:a.usedComponents}),p({node:e,rootPatternVariables:n,componentSettings:r,entityStore:a,rootPatternParameters:s,parentPatternRootNodeIdsChain:o}))),g=o.join("---"),m=g?[g,t.id].join("-"):t.id;return{definitionId:t.definitionId,id:t.id,variables:l,children:h,pattern:{nodeIdOnPattern:t.id,parentPatternNodeId:u,prefixedNodeId:m},slotId:t.slotId,displayName:t.displayName,parameters:t.parameters}};var f=n(17085);let h=e=>"cfBackgroundImageUrl"===e||e.startsWith("cfBackgroundImageUrl_"),g=e=>{let{node:t,locale:n,entityStore:d,hyperlinkPattern:c,resolveDesignValue:y,getPatternChildNodeClassName:_,wrappingPatternIds:v=new Set,pattern
3RootNodeIdsChain:b=[],rootPatternParameters:E}=e,S=(0,a.useMemo)(()=>(0,i.H_)({componentId:t.definitionId,usedComponents:d.usedComponents}),[d.usedComponents,t.definitionId]),x=(0,a.useMemo)(()=>S?[...b,t.id]:b,[S,b,t.id]),C=(0,a.useMemo)(()=>E||(S&&t.parameters&&Object.keys(t.parameters).length?t.parameters:void 0),[t,E,S]),k=(0,a.useMemo)(()=>S?(e=>{var t,n,r;let i,{node:a,entityStore:s,parentPatternRootNodeIdsChain:o,rootPatternParameters:l}=e,d=a.definitionId,c=null==(t=s.usedComponents)?void 0:t.find(e=>e.sys.id===d);if(!c||!("fields"in c))return a;let f=c.fields;if(l){i={};let e=null!=(r=null==(n=f.componentSettings)?void 0:n.prebindingDefinitions)?r:[],t=o.join("---");u.linkOriginalNodeIds(t,a.id),u.storePrebindingDefinitions(t,d,e);let s=e[0];if(s&&s.parameterDefinitions)for(let[e]of Object.entries(s.parameterDefinitions)){let n=u.getHoistedIdForParameterId(e,t);l[n]&&(i[e]=l[n])}}let h=p({node:{definitionId:a.definitionId,id:a.id,variables:a.variables,children:f.componentTree.children,parameters:i},rootPatternVariables:a.variables,componentSettings:f.componentSettings,entityStore:s,rootPatternParameters:l,parentPatternRootNodeIdsChain:o});return s.addAssemblyUnboundValues(f.unboundValues),h})({node:t,entityStore:d,parentPatternRootNodeIdsChain:x,rootPatternParameters:C}):t,[d,S,t,x,C]),I=(0,a.useMemo)(()=>S?new Set([k.definitionId,...v]):v,[S,k,v]),w=(0,a.useMemo)(()=>{let e=(0,o.ze)(k.definitionId);return S&&!e?(0,o.Qj)({definitionId:k.definitionId,component:l.NS}):e},[S,k.definitionId]),{ssrProps:T,contentProps:O,props:N,mediaQuery:L}=(0,a.useMemo)(()=>{var e,t;let r=k.variables.cfSsrClassName,a=d.breakpoints[0],o=null==r||null==(e=r.valuesByBreakpoint)?void 0:e[a.id];if(!w||S)return{ssrProps:{cfSsrClassName:o},props:{className:o}};let l={cfSsrClassName:k.id&&_?_(k.id):o},{contentProps:p={},styleProps:g={},customDesignProps:m={},mediaQuery:v}=(e=>{let{breakpoints:t,componentDefinition:n,patternRootNodeIdsChain:r,node:a,resolveDesignValue:s,resolveBoundValue:o,resolveHyperlinkValue:l,resolveUnboundValue:u,resolveComponentValue:d}=e,c={},p={},g={};for(let[e,r]of(i.Yz.log("[experiences-sdk-react::parseComponentProps] Parsing component props for node with i
3d: ",a.id),Object.entries(n.variables))){let n=a.variables[e];if(n)switch(n.type){case"DesignValue":(0,i.HO)(e)?c[e]=n.valuesByBreakpoint:p[e]=s(n.valuesByBreakpoint);break;case"BoundValue":{let i=o({propertyName:e,dataType:r.type,binding:n}),a=null!=i?i:r.defaultValue;h(e)?c[e]=Object.fromEntries(t.map(e=>[e.id,a])):g[e]=a;break}case"HyperlinkValue":{let t=l({linkTargetKey:n.linkTargetKey});t&&(g[e]=t);break}case"UnboundValue":{let i=u({mappingKey:n.key,defaultValue:r.defaultValue});h(e)?c[e]=Object.fromEntries(t.map(e=>[e.id,i])):g[e]=i;break}case"ComponentValue":{var m;let i=null!=(m=d({propertyName:e,mappingKey:n.key,dataType:r.type,resolveBoundValue:o}))?m:r.defaultValue;h(e)?c[e]=Object.fromEntries(t.map(e=>[e.id,i])):g[e]=i}}}let y=(e=>{let t=e.reduce((t,n,r)=>{var a;let{breakpointCondition:s,className:o,css:l,visibilityCss:u}=n;if(t.classNames.includes(o))return t;let d=(0,i.yA)({condition:s,cssByClassName:{[o]:l}}),c=(0,i.yA)({condition:s,cssByClassName:{[o]:null!=u?u:""},nextCondition:null==(a=e[r+1])?void 0:a.breakpointCondition});return{classNames:[...t.classNames,o],css:"".concat(t.css).concat(d).concat(c)}},{classNames:[],css:""});return{css:t.css,className:t.classNames.join(" ")}})((e=>{let t,{designPropertiesByBreakpoint:n,breakpoints:r,node:a,patternRootNodeIdsChain:s}=e,o=(0,i.ZZ)(i.WN),l=Object.values(n).some(e=>!1===e.cfVisibility),u=[];for(let e of r){let r,c=n[e.id];if(!c&&!l)continue;let p=Object.entries(null!=c?c:{}).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:(0,i.Dh)(n,r,o)}},{});if(l){var d;let e=null!=(d=p.cfVisibility)?d:t;t=e;let n=(0,i.vm)(e);r=(0,i.Gi)(n)}let h=(0,i.NU)((0,i.Oc)(p),a),g=(0,i.Gi)(h),m=l?e.id:"",y=s?f([...s,a.id,m,g,r].join("-")):f("".concat(a.id,"-").concat(m,"-").concat(g,"-").concat(r)),_="cfstyles-".concat(y);u.push({className:_,breakpointCondition:e.query,css:g,visibilityCss:r})}return u})({designPropertiesByBreakpoint:Object.entries(c).reduce((e,t)=>{let[n,r]=t;for(let[t,i]of Object.entries(r))e[t]||(e[t]={}),e[t][n]=i;return e},{}),breakpoints:t,node:a,patternRootNodeIdsChain:r}));return{styleProps:c,mediaQuery:y,customDesignProps:p,contentProps:g}})({breakpoints:d.breakpoints,mainBreakpoint:a,componentDefinition:w.definition,patternRootNodeIdsChain:x,node:k,resolveDesignValue:y,resolveBoundValue:e=>{let{binding:t,propertyName:n,dataType:r}=e,[,a]=t.path.split("/"),s=d.dataSource[a];if(s)return(0,i.Nv)(k.variables,d,s,y,n,r,t.path)},resolveHyperlinkValue:e=>{let{linkTargetKey:t}=e,r=d.dataSource[t],a=d.getEntryOrAsset(r,t);return(0,i.jK)(w.definition.hyperlinkPattern||c||s.se,a,n)},resolveUnboundValue:e=>{var t,n;let{mappingKey:r,defaultValue:i}=e;return null!=(n=null==(t=d.unboundValues[r])?void 0:t.value)?n:i},resolveComponentValue:e=>{let{mappingKey:t,propertyName:n,dataType:r,resolveBoundValue:a}=e;if(!d.isExperienceAPatternEntry)return;let s=(e=>{let{componentValueKey:t,patternRootNodeIdsChain:n,entityStore:r}=e,a=r.hoistedVariableMappings[t];if(!a)return;let s=n.join("---"),o=a.parameterId,l=u.getHoistedIdForParameterId(o,s),d=r.hoistedParameterDefinitions[l];if(!d||!d.defaultSource)return;let{contentTypeId:c,link:p}=d.defaultSource;if((0,i.PJ)(p)&&d.contentTypes.includes(c)){var f;if(!r.getEntityFromLink(p))return;let e=null==(f=a.pathsByContentType[c])?void 0:f.path;if(!e)return;return"/".concat(p.sys.id).concat(e)}})({componentValueKey:t,patternRootNodeIdsChain:x,entityStore:d});if(s)return a({propertyName:n,dataType:r,binding:{type:"BoundValue",path:s}})}}),b={className:null!=(t=l.cfSsrClassName)?t:null==v?void 0:v.className,...g,...p,...m};return{ssrProps:l,contentProps:p,mediaQuery:v,props:b}},[k,d,w,S,_,y,c,n,x]);if((e=>{(0,a.useInsertionEffect)(()=>{if(!e)return;let t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),()=>{var e;null==(e=t.parentNode)||e.removeChild(t)}},[e])})(T.cfSsrClassName||null==L?void 0:L.css),!w||v.has(k.definitionId))return null;let{component:D}=w,A=e=>{if(S){var t;let n=[...x,e].join("-"),r=null==(t=k.variables.cfSsrClassName)?void 0:t[n];if(!r)return;return y(r.valuesByBreakpoint)}return null==_?void 0:_(e)},{slotNodesMap:j,directChildNodes:M}=(0,i.Oi)(k.children,w.definition),P=(e,t)=>{var i;return(0,r.jsx)(g,{getPatternChildNodeClassName:S||_?A:void 0,node:e,locale:n,hyperlinkPattern:c,entityStore:d,resolveDesignValue:y,wrappingPatternIds:I,patternRootNodeIdsChain:x,rootPatternParameters:C},null!=(i=e.id)?i:t)},z=Object.entries(j).reduce((e,t)=>
3{let[n,i]=t;return(null==i?void 0:i.length)&&(e[n]=(0,r.jsx)(r.Fragment,{children:i.map(P)})),e},{}),R=null==M?void 0:M.map(P),B=(0,i.J4)();return m(k.definitionId)&&!B.__unsafe__enableBuiltInStructureOverwrites?(0,r.jsx)(l.iG,{cfHyperlink:O.cfHyperlink,cfOpenInNewTab:O.cfOpenInNewTab,className:N.className,children:R}):a.createElement(D,{...(0,i.um)(N),...z},...null!=R?R:[])},m=e=>[s._V.container.id,s._V.section.id].includes(e),y=["2023-09-28"],_=["root"],v=e=>{var t,n,s;let{locale:o,experience:l}=e,{entityStore:d}=l,{resolveDesignValue:c}=(e=>{let[t,n]=(0,a.useState)({});return(0,a.useEffect)(()=>{let[t,r]=(0,i.xW)(e);n(r);let a=t.map(e=>{let{id:t,signal:r}=e,i=()=>n(e=>({...e,[t]:r.matches}));return r.addEventListener("change",i),i});return()=>{a.forEach((e,n)=>{t[n].signal.removeEventListener("change",e)})}},[e]),{resolveDesignValue:(0,a.useCallback)((n,r)=>{let a=(0,i.iD)(e),s=(0,i.CX)(e,t,a);return(0,i.gZ)(n,e,s,a,r)},[t,e])}})(null!=(t=null==d?void 0:d.breakpoints)?t:[]);if(!(null==d?void 0:d.experienceEntryFields)||!(null==d?void 0:d.schemaVersion))return null;if(!y.includes(d.schemaVersion))return i.Yz.warn("[experiences-sdk-react::PreviewDeliveryRoot] Contentful experience schema version: ".concat(d.schemaVersion," does not match the compatible schema versions: ").concat(y,". Aborting.")),null;if(d.isExperienceAPatternEntry){let e=null!=(s=null==(n=d.experienceEntryFields.componentSettings)?void 0:n.prebindingDefinitions)?s:[];u.storePrebindingDefinitions("root",d.experienceEntryId,e);let{dataSource:t,parameters:a}=(0,i.oC)(e);return Object.keys(t).length&&(d.experienceEntryFields.dataSource={...d.dataSource,...t}),d.experienceEntryFields.componentTree.children.map((e,t)=>(0,r.jsx)(g,{node:e,hyperlinkPattern:l.hyperlinkPattern,locale:o,entityStore:d,resolveDesignValue:c,patternRootNodeIdsChain:_,rootPatternParameters:a},t))}return(0,r.jsx)(r.Fragment,{children:d.experienceEntryFields.componentTree.children.map((e,t)=>(0,r.jsx)(g,{node:e,hyperlinkPattern:l.hyperlinkPattern,locale:o,entityStore:d,resolveDesignValue:c},t))})},b={errorMessage:{"--exp-builder-font-size-m":"0.875rem","--exp-builder-font-size-l":"1rem","--exp-builder-font-stack-primary":"-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol","--exp-builder-red200":"#ffe0e0","--exp-builder-red800":"#7f0010","--exp-builder-blue700":"#0041ab",margin:"24px",fontSize:"var(--exp-builder-font-size-m)",fontFamily:"var(--exp-builder-font-stack-primary)",color:"var(--exp-builder-red800)",padding:"16px",backgroundColor:"var(--exp-builder-red200)"},title:{marginTop:0,fontSize:"var(--exp-builder-font-size-l)"},moreDetails:{cursor:"pointer",color:"var(--exp-builder-blue700)"}};class E extends a.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){if(this.setState({error:e,errorInfo:t}),"ImportedComponentError"!==e.name)(0,i._z)(s.tc.CanvasError,e);else throw e}render(){if(this.state.hasError){var e,t;return(0,r.jsxs)("div",{style:b.errorMessage,children:[(0,r.jsx)("h2",{style:b.title,children:"Something went wrong while rendering the experience"}),(0,r.jsxs)("div",{children:["The Experience Builder SDK has encountered an error. It may be that the SDK has not been set up properly or an imported component has thrown this error. Try to refresh the page and find more guidance in our"," ",(0,r.jsx)("a",{href:"https://www.contentful.com/developers/docs/tutorials/general/experience-builder/",rel:"noreferrer",target:"_blank",children:"documentation"}),"."]}),(0,r.jsx)("br",{}),(0,r.jsxs)("span",{style:b.moreDetails,onClick:()=>this.setState(e=>({showErrorDetails:!e.showErrorDetails})),children:[this.state.showErrorDetails?"Hide":"See"," details"]}),this.state.showErrorDetails&&(0,r.jsx)("code",{children:null==(t=this.state.error)||null==(e=t.stack)?void 0:e.split("\n").map((e,t)=>(0,r.jsx)("div",{children:e},t))})]})}return this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null,showErrorDetails:!1}}}let S=a.lazy(()=>n.e(86).then(n.bind(n,40086))),x=e=>{var t;let{visualEditorMode:n,canvasMode:l,experience:u,initialLocale:d}=e;return(e=>{let{initialLocale:t,initialEntities:n}=e,[r,l]=(0,a.useState)(t),u=(0,a.useRef)(!1);(0,a.useEffect)(()=>{u.current||((0,o.bI)(),(0,i.B4)(),(0,o.MA)(),u.current=!0);let e=()=>{(0,o.bI)(),(0,o.u1)()};return"undefined"!=typeof window&&window.addEventListener(s.UH.ComponentsRegistered,e),()=>{"undefined"!=typeof window&&window.removeEventListener(s.UH.ComponentsRegistered,e)}},[]),(0,a.useEffect)(()=>
3{l(t)},[t]),(0,a.useEffect)(()=>{let e=()=>{window.dispatchEvent(new CustomEvent(s.UH.VisualEditorInitialize,{detail:{componentRegistry:o.T8,designTokens:i.WN,breakpoints:i.oZ,sdkOptions:i.q8,locale:r,entities:null!=n?n:[]}}))};return window.addEventListener(s.NG.Ready,e),()=>{window.removeEventListener(s.NG.Ready,e)}},[r,n])})({initialLocale:d,initialEntities:(null==u||null==(t=u.entityStore)?void 0:t.entities)||[]}),(0,r.jsx)(a.Suspense,{fallback:(0,r.jsx)("div",{children:"Loading..."}),children:(0,r.jsx)(S,{experience:u,visualEditorMode:n,canvasMode:l})})},C=e=>(0,r.jsx)(E,{children:(0,r.jsx)(x,{...e})});var k=n(14078);let I=e=>{let{locale:t,experience:n,visualEditorMode:a=i.XA.LazyLoad,debug:o}=e,l=(0,k.useDetectCanvasMode)();"boolean"==typeof o&&i.Yz.setActiveLevel(o?"debug":"warn");let u="string"==typeof n?(0,i.Dr)(n):n;return((0,i.sN)({locale:t,mode:l}),l===s.kT.EDITOR||l===s.kT.READ_ONLY)?(0,r.jsx)(C,{experience:u,visualEditorMode:a,initialLocale:t,canvasMode:l}):u?(0,r.jsx)(v,{locale:t,experience:u}):null}},20490:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._fetchTxtRecords=void 0;let r=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),i=["i","e","d"];t._fetchTxtRecords=function(e){return n(this,void 0,void 0,function*(){let t=yield e("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:r});if(!t.ok){let e=Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}return function(e){let t=e.findIndex((t,n)=>n<200&&"="===String.fromCharCode(t)&&i.includes(String.fromCharCode(e[n-1])));if(-1===t){let e=Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let n="";for(let r=t-1;r<e.length;r++)n+=String.fromCharCode(e[r]);return n.split(",")}(new Uint8Array((yield t.arrayBuffer())))})}},20814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getMetadataFromElement=t._gatherCopyEventData=t._gatherEventData=void 0;let r=n(1805),i=n(97379);function a(e,t){return e?e.length>t?e.substring(0,t)+"...":e:null}function s(e){let t={};return t.class=(a(e.getAttribute("class"),1e3)||"").replace(/\s+/g," ").trim(),t.id=a(e.getAttribute("id"),1e3),t.ariaLabel=a(e.getAttribute("aria-label"),1e3),t.name=a(e.getAttribute("name"),1e3),t}function o(e){let t={};Object.assign(t,s(e));let n=Array.from(e.classList);return t.classList=n.length>0?n.slice(0,100):null,t.selector=function(e){if(!e)return"";if(!e.parentNode){let t=e.tagName.toLowerCase();if(e.id)return`#${e.id}`;let n=t;if(e.className&&"string"==typeof e.className){let t=e.className.trim().split(/\s+/);t.length>0&&""!==t[0]&&(n+="."+t.join("."))}return n}let t=[],n=e,r=0;for(;n&&n.nodeType===Node.ELEMENT_NODE&&r<50;){let e=function(e){let t=e.tagName.toLowerCase();if(e.id)return`#${e.id}`;let n=t;if(e.className&&"string"==typeof e.className){let t=e.className.trim().split(/\s+/);t.length>0&&""!==t[0]&&(n+="."+t.join("."))}let r=e.parentElement;if(r&&r.children.length>1){let t=1,r=1,i=e.previousElementSibling;for(;i;)t++,i.tagName===e.tagName&&r++,i=i.previousElementSibling;n+=`:nth-child(${t})`,(r>1||function(e){let t=e.nextElementSibling;for(;t;){if(t.tagName===e.tagName)return!0;t=t.nextElementSibling}return!1}(e))&&(n+=`:nth-of-type(${r})`)}return n}(n);if(t.unshift(e),n.id||(n=n.parentElement)&&"body"===n.tagName.toLowerCase())break;r++}return t.join(" > ")}(e),t}t._gatherEventData=function(e){var t;let n=(0,i._getSanitizedPageUrl)()||"",r=e.tagName.toLowerCase();if("input"===(t=e).tagName.toLowerCase()&&["button","checkbox","submit","reset"].includes(t.getAttribute("type")||"")||"textarea"===t.tagName.toLowerCase()||"select"===t.tagName.toLowerCase()||"true"===t.getAttribute("contenteditable"))return{value:n,metadata:s(e)};let a={};a.tagName=r,Object.assign(a,o(e)),"form"===r&&Object.assign(a,function(e){var t;let n={};return n.action=e.getAttribute("action"),n.method=null!=(t=e.getAttribute("method"))?t:"GET",n.formName=e.getAttribute("name"),n.formId=e.getAttribute("id"),n}(e)),"input"===r&&Object.assign(a,function(e){let t={};return t.content=e.value,t.inputName=e.getAttribute("name"),t}(e));let l=(0,i._getAnchorNodeInHierarchy)(e);return l&&Object.assign(a,function(e){let t={};return t.href=e.getAttribute("href"),t}(l)),("button"===r||l)&&Object.assign(a,function(e){let t={};return t.content=(e.textContent||"").trim(),Object.assign(t,function(e){let t={};if(!e)return t;let n=null==e?void 0:e.dataset;if(!n)return t;for(let e in n)t[`data-${e}`]=n[e]||"";return t}(e)),t}(l||e)),function(e){var t;if(Array.isArray(e.classList)&&(null==(t=e.classList)?void 0:t.includes("statsig-ctr-capture")))return!0;let n=e.href;if(n)try{let e=(0,i._getSafeUrl)(),t=new URL(n);return e.host!==t.host}catch(e){}return!1}(a)&&(a.isOutbound="true"),{value:n,metadata:a}},t._gatherCopyEventData=function(e){var t,n;let a=null==(n=null==(t=(0,r._getWindowSafe)())?void 0:t.getSelection())?void 0:n.toString(),s={};return s.selectedText=(0,i._sanitizeString)(a),s.clipType=e.type||"clipboard",s},t._getMetadataFromElement=o},20880:(e,t,n)=>{"use strict";let r;n.d(t,{eq:()=>s,z:()=>ti}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>
3"number"!=typeof t[t[e]]),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(e8||(e8={})),(e7||(e7={})).mergeShapes=(e,t)=>({...e,...t});let i=e8.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}}
3,s=e8.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e8.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e);let l=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,e8.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${e8.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${e8.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${e8.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:e8.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,e8.assertNever(e)}return{message:n}},u=l;function d(){return u}let c=e=>
3{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of r.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function p(e,t){let n=d(),r=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===l?void 0:l].filter(e=>!!e)});e.common.issues.push(r)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return h;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return f.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let h=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),m=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,_=e=>"dirty"===e.status,v=e=>"valid"===e.status,b=e=>"undefined"!=typeof Promise&&e instanceof Promise;function E(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function S(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(te||(te={}));class x{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let C=(e,t)=>{if(v(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function k(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,s;let{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:i.defaultError}:void 0===i.data?{message:null!=(a=null!=o?o:r)?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!=(s=null!=o?o:n)?s:i.defaultError}},description:i}}class I{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(b(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!=(n=null==t?void 0:t.async)&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});
3return C(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n});return C(n,await (b(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let i=e(n),a=()=>r.addIssue({code:s.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new em({schema:this,typeName:tr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ey.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return X.create(this,this._def)}promise(){return eg.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new em({...k(this._def),schema:this,typeName:tr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ev({...k(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tr.ZodDefault})}brand(){return new ex({typeName:tr.ZodBranded,type:this,...k(this._def)})}catch(e){return new eb({...k(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tr.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eC.create(this,e)}readonly(){return ek.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,T=/^[0-9a-z]+$/,O=/^[0-9A-HJKMNP-TV-Z]{26}$/,N=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,L=/^[a-z0-9_-]{21}$/i,D=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,A=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,M=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,P=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,z="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",R=RegExp(`^${z}$`);function B(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function V(e){let t=`${z}T${B(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class U extends I{_parse(e){var t,n;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),h}let o=new f;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(p(a=this._getOrReturnCtx(e,a),{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if("max"===i.kind)e.data.length>i.value&&(p(a=this._getOrReturnCtx(e,a),{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if("length"===i.kind){let t=e.data.length>
3i.value,n=e.data.length<i.value;(t||n)&&(a=this._getOrReturnCtx(e,a),t?p(a,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):n&&p(a,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if("email"===i.kind)A.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"email",code:s.invalid_string,message:i.message}),o.dirty());else if("emoji"===i.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:s.invalid_string,message:i.message}),o.dirty());else if("uuid"===i.kind)N.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:s.invalid_string,message:i.message}),o.dirty());else if("nanoid"===i.kind)L.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:s.invalid_string,message:i.message}),o.dirty());else if("cuid"===i.kind)w.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:s.invalid_string,message:i.message}),o.dirty());else if("cuid2"===i.kind)T.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:s.invalid_string,message:i.message}),o.dirty());else if("ulid"===i.kind)O.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:s.invalid_string,message:i.message}),o.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(t){p(a=this._getOrReturnCtx(e,a),{validation:"url",code:s.invalid_string,message:i.message}),o.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"regex",code:s.invalid_string,message:i.message}),o.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(p(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(p(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(p(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):"datetime"===i.kind?V(i).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:"datetime",message:i.message}),o.dirty()):"date"===i.kind?R.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:"date",message:i.message}),o.dirty()):"time"===i.kind?RegExp(`^${B(i)}$`).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:"time",message:i.message}),o.dirty()):"duration"===i.kind?D.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"duration",code:s.invalid_string,message:i.message}),o.dirty()):"ip"===i.kind?(t=e.data,!(("v4"===(n=i.version)||!n)&&j.test(t)||("v6"===n||!n)&&M.test(t))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"ip",code:s.invalid_string,message:i.message}),o.dirty())):"base64"===i.kind?P.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64",code:s.invalid_string,message:i.message}),o.dirty()):e8.assertNever(i);return{status:o.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:s.invalid_string,...te.errToObj(n)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...te.errToObj(e)})}url(e){return this._addCheck({kind:"url",...te.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...te.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...te.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...te.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...te.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...te.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...te.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...te.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...te.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!=(t=null==e?void 0:e.offset)&&t,local:null!=(n=null==e?void 0:e.local)&&n,...te.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...te.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...te.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...te.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...te.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...te.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...te.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...te.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...te.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...te.errToObj(t)})}nonempty(e){return this.min(1,te.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}
3get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}U.create=e=>{var t;return new U({checks:[],typeName:tr.ZodString,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...k(e)})};class K extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),h}let n=new f;for(let r of this._def.checks)"int"===r.kind?e8.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:s.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:s.not_finite,message:r.message}),n.dirty()):e8.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,te.toString(t))}gt(e,t){return this.setLimit("min",e,!1,te.toString(t))}lte(e,t){return this.setLimit("max",e,!0,te.toString(t))}lt(e,t){return this.setLimit("max",e,!1,te.toString(t))}setLimit(e,t,n,r){return new K({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:te.toString(r)}]})}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:te.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:te.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:te.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:te.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:te.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:te.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:te.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:te.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:te.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&e8.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}}K.create=e=>new K({checks:[],typeName:tr.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...k(e)});class F extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.bigint){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),h}let n=new f;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):e8.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,te.toString(t))}gt(e,t){return this.setLimit("min",e,!1,te.toString(t))}lte(e,t){return this.setLimit("max",e,!0,te.toString(t))}lt(e,t){return this.setLimit("max",e,!1,te.toString(t))}setLimit(e,t,n,r){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:te.toString(r)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}
3positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:te.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:te.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:te.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:te.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:te.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}F.create=e=>{var t;return new F({checks:[],typeName:tr.ZodBigInt,coerce:null!=(t=null==e?void 0:e.coerce)&&t,...k(e)})};class $ extends I{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),h}return m(e.data)}}$.create=e=>new $({typeName:tr.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...k(e)});class Z extends I{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:s.invalid_date}),h;let n=new f;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(p(t=this._getOrReturnCtx(e,t),{code:s.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):e8.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:te.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:te.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Z.create=e=>new Z({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tr.ZodDate,...k(e)});class H extends I{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),h}return m(e.data)}}H.create=e=>new H({typeName:tr.ZodSymbol,...k(e)});class W extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),h}return m(e.data)}}W.create=e=>new W({typeName:tr.ZodUndefined,...k(e)});class G extends I{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),h}return m(e.data)}}G.create=e=>new G({typeName:tr.ZodNull,...k(e)});class q extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return m(e.data)}}q.create=e=>new q({typeName:tr.ZodAny,...k(e)});class Y extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return m(e.data)}}Y.create=e=>new Y({typeName:tr.ZodUnknown,...k(e)});class J extends I{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),h}}J.create=e=>new J({typeName:tr.ZodNever,...k(e)});class Q extends I{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),h}return m(e.data)}}Q.create=e=>new Q({typeName:tr.ZodVoid,...k(e)});class X extends I{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return p(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),h;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(p(t,{code:e?s.too_big:s.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new x(t,e,t.path,n)))).then(e=>f.mergeArray(n,e));let a=[...t.data].map((e,n)=>r.type._parseSync(new x(t,e,t.path,n)));return f.mergeArray(n,a)}
3get element(){return this._def.type}min(e,t){return new X({...this._def,minLength:{value:e,message:te.toString(t)}})}max(e,t){return new X({...this._def,maxLength:{value:e,message:te.toString(t)}})}length(e,t){return new X({...this._def,exactLength:{value:e,message:te.toString(t)}})}nonempty(e){return this.min(1,e)}}X.create=(e,t)=>new X({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tr.ZodArray,...k(t)});class ee extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e8.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),h}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof J&&"strip"===this._def.unknownKeys))for(let e in n.data)a.includes(e)||o.push(e);let l=[];for(let e of a){let t=r[e],i=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new x(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof J){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)o.length>0&&(p(n,{code:s.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new x(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return te.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,s;let o=null!=(a=null==(i=(r=this._def).errorMap)?void 0:i.call(r,t,n).message)?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!=(s=te.errToObj(e).message)?s:o}:{message:o}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};return e8.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new ee({...this._def,shape:()=>t})}omit(e){let t={};return e8.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=ey.create(e(i))}return new ee({...t._def,shape:()=>n})}if(t instanceof X)return new X({...t._def,type:e(t.element)});if(t instanceof ey)return ey.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof ea)return ea.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return e8.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new ee({...this._def,shape:()=>t})}required(e){let t={};return e8.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ey;)e=e._def.innerType;t[n]=e}}),new ee({...this._def,shape:()=>t})}keyof(){return ep(e8.objectKeys(this.shape))}}ee.create=(e,t)=>new ee({shape:()=>e,unknownKeys:"strip",catchall:J.create(),typeName:tr.ZodObject,...k(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:J.create(),typeName:tr.ZodObject,...k(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:J.create(),typeName:tr.ZodObject,...k(t)});class et extends I{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new o(e.ctx.common.issues));return p(t,{code:s.invalid_union,unionErrors:n}),h});{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new o(e));return p(t,{code:s.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}et.create=(e,t)=>
3new et({options:e,typeName:tr.ZodUnion,...k(t)});let en=e=>{if(e instanceof ed)return en(e.schema);if(e instanceof em)return en(e.innerType());if(e instanceof ec)return[e.value];if(e instanceof ef)return e.options;if(e instanceof eh)return e8.objectValues(e.enum);else if(e instanceof ev)return en(e._def.innerType);else if(e instanceof W)return[void 0];else if(e instanceof G)return[null];else if(e instanceof ey)return[void 0,...en(e.unwrap())];else if(e instanceof e_)return[null,...en(e.unwrap())];else if(e instanceof ex)return en(e.unwrap());else if(e instanceof ek)return en(e.unwrap());else if(e instanceof eb)return en(e._def.innerType);else return[]};class er extends I{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),h;let n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=en(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new er({typeName:tr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...k(n)})}}class ei extends I{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return h;let o=function e(t,n){let r=a(t),s=a(n);if(t===n)return{valid:!0,data:t};if(r===i.object&&s===i.object){let r=e8.objectKeys(n),i=e8.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===i.array&&s===i.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}if(r===i.date&&s===i.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,r.value);return o.valid?((_(e)||_(r))&&t.dirty(),{status:t.value,value:o.data}):(p(n,{code:s.invalid_intersection_types}),h)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ei.create=(e,t,n)=>new ei({left:e,right:t,typeName:tr.ZodIntersection,...k(n)});class ea extends I{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return p(n,{code:s.invalid_type,expected:i.array,received:n.parsedType}),h;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new x(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>f.mergeArray(t,e)):f.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ea({...this._def,rest:e})}}ea.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ea({items:e,typeName:tr.ZodTuple,rest:null,...k(t)})};class es extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return p(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),h;let r=[],a=this._def.keyType,o=this._def.valueType;for(let e in n.data)r.push({key:a._parse(new x(n,e,n.path,e)),value:o._parse(new x(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?f.mergeObjectAsync(t,r):f.mergeObjectSync(t,r)}
3get element(){return this._def.valueType}static create(e,t,n){return new es(t instanceof I?{keyType:e,valueType:t,typeName:tr.ZodRecord,...k(n)}:{keyType:U.create(),valueType:e,typeName:tr.ZodRecord,...k(t)})}}class eo extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return p(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),h;let r=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new x(n,e,n.path,[i,"key"])),value:a._parse(new x(n,t,n.path,[i,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of o){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return h;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of o){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return h;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}eo.create=(e,t,n)=>new eo({valueType:t,keyType:e,typeName:tr.ZodMap,...k(n)});class el extends I{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return p(n,{code:s.invalid_type,expected:i.set,received:n.parsedType}),h;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let a=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return h;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>a._parse(new x(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new el({...this._def,minSize:{value:e,message:te.toString(t)}})}max(e,t){return new el({...this._def,maxSize:{value:e,message:te.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}el.create=(e,t)=>new el({valueType:e,minSize:null,maxSize:null,typeName:tr.ZodSet,...k(t)});class eu extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return p(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),h;function n(e,n){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:s.invalid_return_type,returnTypeError:n}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof eg){let e=this;return m(async function(...t){let i=new o([]),s=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(n(t,e)),i}),l=await Reflect.apply(u,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(r(l,e)),i})})}{let e=this;return m(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new o([n(t,i.error)]);let s=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new o([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ea.create(e).rest(Y.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eu({args:e||ea.create([]).rest(Y.create()),returns:t||Y.create(),typeName:tr.ZodFunction,...k(n)})}}class ed extends I{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ed.create=(e,t)=>
3new ed({getter:e,typeName:tr.ZodLazy,...k(t)});class ec extends I{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,t){return new ef({values:e,typeName:tr.ZodEnum,...k(t)})}ec.create=(e,t)=>new ec({value:e,typeName:tr.ZodLiteral,...k(t)});class ef extends I{constructor(){super(...arguments),tt.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:e8.joinValues(n),received:t.parsedType,code:s.invalid_type}),h}if(E(this,tt,"f")||S(this,tt,new Set(this._def.values),"f"),!E(this,tt,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),h}return m(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ef.create(e,{...this._def,...t})}exclude(e,t=this._def){return ef.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tt=new WeakMap,ef.create=ep;class eh extends I{constructor(){super(...arguments),tn.set(this,void 0)}_parse(e){let t=e8.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){let e=e8.objectValues(t);return p(n,{expected:e8.joinValues(e),received:n.parsedType,code:s.invalid_type}),h}if(E(this,tn,"f")||S(this,tn,new Set(e8.getValidEnumValues(this._def.values)),"f"),!E(this,tn,"f").has(e.data)){let e=e8.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),h}return m(e.data)}get enum(){return this._def.values}}tn=new WeakMap,eh.create=(e,t)=>new eh({values:e,typeName:tr.ZodNativeEnum,...k(t)});class eg extends I{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(p(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),h):m((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eg.create=(e,t)=>new eg({type:e,typeName:tr.ZodPromise,...k(t)});class em extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?g(r.value):r});{if("aborted"===t.value)return h;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>v(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!v(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}e8.assertNever(r)}}
3em.create=(e,t,n)=>new em({schema:e,typeName:tr.ZodEffects,effect:t,...k(n)}),em.createWithPreprocess=(e,t,n)=>new em({schema:t,effect:{type:"preprocess",transform:e},typeName:tr.ZodEffects,...k(n)});class ey extends I{_parse(e){return this._getType(e)===i.undefined?m(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:tr.ZodOptional,...k(t)});class e_ extends I{_parse(e){return this._getType(e)===i.null?m(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:tr.ZodNullable,...k(t)});class ev extends I{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:tr.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...k(t)});class eb extends I{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return b(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:tr.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...k(t)});class eE extends I{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eE.create=e=>new eE({typeName:tr.ZodNaN,...k(e)});let eS=Symbol("zod_brand");class ex extends I{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eC extends I{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eC({in:e,out:t,typeName:tr.ZodPipeline})}}class ek extends I{_parse(e){let t=this._def.innerType._parse(e),n=e=>(v(e)&&(e.value=Object.freeze(e.value)),e);return b(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function eI(e,t={},n){return e?q.create().superRefine((r,i)=>{var a,s;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,o=null==(s=null!=(a=e.fatal)?a:n)||s,l="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:o})}}):q.create()}ek.create=(e,t)=>new ek({innerType:e,typeName:tr.ZodReadonly,...k(t)});let ew={object:ee.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tr||(tr={}));let eT=U.create,eO=K.create,eN=eE.create,eL=F.create,eD=$.create,eA=Z.create,ej=H.create,eM=W.create,eP=G.create,ez=q.create,eR=Y.create,eB=J.create,eV=Q.create,eU=X.create,eK=ee.create,eF=ee.strictCreate,e$=et.create,eZ=er.create,eH=ei.create,eW=ea.create,eG=es.create,eq=eo.create,eY=el.create,eJ=eu.create,eQ=ed.create,eX=ec.create,e0=ef.create,e1=eh.create,e2=eg.create,e3=em.create,e5=ey.create,e9=e_.create,e4=em.createWithPreprocess,e6=eC.create;var e8,e7,te,tt,tn,tr,ti=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:c,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:f,INVALID:h,DIRTY:g,OK:m,isAborted:y,isDirty:_,isValid:v,isAsync:b,get util(){return e8},get objectUtil(){return e7},ZodParsedType:i,getParsedType:a,ZodType:I,datetimeRegex:V,ZodString:U,ZodNumber:K,ZodBigInt:F,ZodBoolean:$,ZodDate:Z,ZodSymbol:H,ZodUndefined:W,ZodNull:G,ZodAny:q,ZodUnknown:Y,ZodNever:J,ZodVoid:Q,ZodArray:X,ZodObject:ee,ZodUnion:et,ZodDiscriminatedUnion:er,ZodIntersection:ei,ZodTuple:ea,ZodRecord:es,ZodMap:eo,ZodSet:el,ZodFunction:eu,ZodLazy:ed,ZodLiteral:ec,ZodEnum:ef,ZodNativeEnum:eh,ZodPromise:eg,ZodEffects:em,ZodTransformer:em,ZodOptional:ey,ZodNullable:e_,ZodDefault:ev,ZodCatch:eb,ZodNaN:eE,BRAND:eS,ZodBranded:ex,ZodPipeline:eC,ZodReadonly:ek,custom:eI,Schema:I,ZodSchema:I,late:ew,get ZodFirstPartyTypeKind(){return tr},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>K.create({...e,coerce:!0}),boolean:e=>$.create({...e,coerce:!0}),bigint:e=>F.create({...e,coerce:!0}),date:e=>Z.create({...e,coerce:!0})},any:ez,array:eU,bigint:eL,boolean:eD,date:eA,discriminatedUnion:eZ,effect:e3,enum:e0,function:eJ,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eI(t=>t instanceof e,t),intersection:eH,lazy:eQ,literal:eX,map:eq,nan:eN,nativeEnum:e1,never:eB,null:eP,nullable:e9,number:eO,object:eK,oboolean:()=>eD().optional(),onumber:()=>eO().optional(),optional:e5,ostring:()=>eT().optional(),pipeline:e6,preprocess:e4,promise:e2,record:eG,set:eY,strictObject:eF,string:eT,symbol:ej,transformer:e3,tuple:eW,undefined:eM,union:e$,unknown:eR,void:eV,NEVER:h,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:o})},21036:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
3(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigUser=t.useStatsigInternalClientFactoryBootstrap=t.useStatsigInternalClientFactoryAsync=t.useStatsigClient=t.useParameterStore=t.useLayer=t.useGateValue=t.useFeatureGate=t.useExperiment=t.useDynamicConfig=t.useClientBootstrapInit=t.useClientAsyncInit=t.StatsigProvider=t.StatsigContext=void 0;let a=n(1805),s=n(70646);t.StatsigContext=s.default;let o=n(71670);Object.defineProperty(t,"StatsigProvider",{enumerable:!0,get:function(){return o.StatsigProvider}});let l=n(38778);Object.defineProperty(t,"useClientAsyncInit",{enumerable:!0,get:function(){return l.useClientAsyncInit}});let u=n(79364);Object.defineProperty(t,"useClientBootstrapInit",{enumerable:!0,get:function(){return u.useClientBootstrapInit}});let d=n(87034);t.useDynamicConfig=d.default;let c=n(87144);t.useExperiment=c.default;let p=n(59320);t.useFeatureGate=p.default;let f=n(85909);t.useGateValue=f.default;let h=n(63820);t.useLayer=h.default;let g=n(96391);t.useParameterStore=g.default;let m=n(60457);Object.defineProperty(t,"useStatsigClient",{enumerable:!0,get:function(){return m.useStatsigClient}});let y=n(31218);Object.defineProperty(t,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return y.useStatsigInternalClientFactoryAsync}});let _=n(72136);Object.defineProperty(t,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return _.useStatsigInternalClientFactoryBootstrap}});let v=n(12709);Object.defineProperty(t,"useStatsigUser",{enumerable:!0,get:function(){return v.useStatsigUser}}),i(n(13937),t),Object.assign((0,a._getStatsigGlobal)(),{StatsigContext:s.default,StatsigProvider:o.StatsigProvider,useClientAsyncInit:l.useClientAsyncInit,useClientBootstrapInit:u.useClientBootstrapInit,useDynamicConfig:d.default,useExperiment:c.default,useFeatureGate:p.default,useGateValue:f.default,useLayer:h.default,useParameterStore:g.default,useStatsigClient:m.useStatsigClient,useStatsigInternalClientFactoryAsync:y.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:_.useStatsigInternalClientFactoryBootstrap,useStatsigUser:v.useStatsigUser})},21517:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var r=n(7620),i=n(32987),a=n(22017),s=n(39968),o=n(13845),l=n(2016),u=n(14107),d=n(57792);function c(e){return(0,d.Ay)("MuiList",e)}(0,u.A)("MuiList",["root","padding","dense","subheader"]);var p=n(54568);let f=(0,s.default)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return t.subheader},style:{paddingTop:0}}]}),h=r.forwardRef(function(e,t){let n=(0,o.b)({props:e,name:"MuiList"}),{children:s,className:u,component:d="ul",dense:h=!1,disablePadding:g=!1,subheader:m,...y}=n,_=r.useMemo(()=>({dense:h}),[h]),v={...n,component:d,dense:h,disablePadding:g},b=(e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return(0,a.A)({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},c,t)})(v);return(0,p.jsx)(l.A.Provider,{value:_,children:(0,p.jsxs)(f,{as:d,className:(0,i.A)(b.root,u),ref:t,ownerState:v,...y,children:[m,s]})})})},21710:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21829:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.SDKType=void 0;let r={};t.SDKType={_get:e=>{var t;return(null!=(t=r[e])?t:"js-mono")+(null!=n?n:"")},_setClientType(e,t){r[e]=t},_setBindingType(e){n&&"-react"!==n||(n="-"+e)}}},22103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(){this._clicks=[]}isRageClick(e,t,n){var r;return this._clicks=this._clicks.filter(e=>n-e.timestamp<1e3),this._clicks.length>0&&!(Math.abs(e-(r=this._clicks[this._clicks.length-1]).x)+Math.abs(t-r.y)<=30)&&(this._clicks=[]),this._clicks.push({x:e,y:t,timestamp:n}),this._clicks.length>=3}}t.default=n},23382:(e,t,n)=>{"use strict";var r,i,a;
3Object.defineProperty(t,"__esModule",{value:!0}),t._getInstance=t._getStatsigGlobalFlag=t._getStatsigGlobal=void 0;let s=n(967);t._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:c}catch(e){return c}},t._getStatsigGlobalFlag=e=>(0,t._getStatsigGlobal)()[e],t._getInstance=e=>{let n=(0,t._getStatsigGlobal)();return e?n.instances&&n.instances[e]:(n.instances&&Object.keys(n.instances).length>1&&s.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),n.firstInstance)};let o="__STATSIG__",l="undefined"!=typeof window?window:{},u=void 0!==n.g?n.g:{},d="undefined"!=typeof globalThis?globalThis:{},c=null!=(a=null!=(i=null!=(r=l[o])?r:u[o])?i:d[o])?a:{instance:t._getInstance};l[o]=c,u[o]=c,d[o]=c},23925:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t._makeDataAdapterResult=t.DataAdapterCore=void 0;let i=n(967),a=n(18973),s=n(41997),o=n(20317),l=n(83194);class u{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._cacheLimit=10,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new c}attach(e,t,n){this._sdkKey=e,this._options=t}getDataSync(e){let t=e&&(0,s._normalizeUser)(e,this._options),n=this._getCacheKey(t),r=this._inMemoryCache.get(n,t);if(r&&this._getIsCacheValueValid(r))return r;let i=this._loadFromCache(n);return i&&this._getIsCacheValueValid(i)?(this._inMemoryCache.add(n,i,this._cacheLimit),this._inMemoryCache.get(n,t)):null}setData(e,t){let n=t&&(0,s._normalizeUser)(t,this._options),r=this._getCacheKey(n);this._inMemoryCache.add(r,d("Bootstrap",e,null,n),this._cacheLimit)}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===a.StableID.get(this._getSdkKey())}_getDataAsyncImpl(e,t,n){return r(this,void 0,void 0,function*(){o.Storage.isReady()||(yield o.Storage.isReadyResolver());let r=null!=e?e:this.getDataSync(t),a=[this._fetchAndPrepFromNetwork(r,t,n)];return(null==n?void 0:n.timeoutMs)&&a.push(new Promise(e=>setTimeout(e,n.timeoutMs)).then(()=>(i.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(a)})}_prefetchDataImpl(e,t){return r(this,void 0,void 0,function*(){let n=e&&(0,s._normalizeUser)(e,this._options),r=this._getCacheKey(n),i=yield this._getDataAsyncImpl(null,n,t);i&&this._inMemoryCache.add(r,Object.assign(Object.assign({},i),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(e,t,n){return r(this,void 0,void 0,function*(){var r;let s=null!=(r=null==e?void 0:e.data)?r:null,o=null!=e&&this._isCachedResultValidFor204(e,t),u=yield this._fetchFromNetwork(s,t,n,o);if(!u)return i.Log.debug("No response returned for latest value"),null;let c=(0,l._typedJsonParse)(u,"has_updates","Response"),p=this._getSdkKey(),f=a.StableID.get(p),h=null;if((null==c?void 0:c.has_updates)===!0)h=d("Network",u,f,t);else{if(!s||(null==c?void 0:c.has_updates)!==!1)return null;h=d("NetworkNotModified",s,f,t)}let g=this._getCacheKey(t);return this._inMemoryCache.add(g,h,this._cacheLimit),this._writeToCache(g,h),h})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(i.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;let n=null==(t=o.Storage.getItem)?void 0:t.call(o.Storage,e);if(null==n)return null;let r=(0,l._typedJsonParse)(n,"source","Cached Result");return r?Object.assign(Object.assign({},r),{source:"Cache"}):null}_writeToCache(e,t){let n=JSON.stringify(t);for(let t=0;t<8;t++)try{o.Storage.setItem(e,n);break}catch(t){if(!(t instanceof Error)||!(t.toString().includes("QuotaExceededError")||t.toString().includes("QUOTA_EXCEEDED_ERR"))||this._cacheLimit<=1)throw t;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(e,this._cacheLimit-1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this._cacheLimit){var n;let r=null!=(n=(0,o._getObjectFromStorage)(this._lastModifiedStoreKey))?n:{};for(let n of(r[e]=Date.now(),p(r,t)))delete r[n],o.Storage.removeItem(n);(0,o._setObjectInStorage)(this._lastModifiedStoreKey,r)}}function d(e,t,n,r){return{source:e,data:t,receivedAt:Date.now(),stableID:n,fullUserHash:(0,s._getFullUserHash)(r)}}t.DataAdapterCore=u,t._makeDataAdapterResult=d;class c{constructor(){this._data={}}get(e,t){var n;let r=this._data[e],a=null==r?void 0:r.stableID,s=null==(n=null==t?void 0:t.customIDs)?void 0:n.stableID;return s&&a&&s!==a?(i.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):r}add(e,t,n){for(let e of p(this._data,n-1))delete this._data[e];this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function p(e,t){let n=Object.keys(e);return n.length<=t?[]:0===t?n:n.sort((t,n)=>{let r=e[t],i=e[n];return"object"==typeof r&&"object"==typeof i?r.receivedAt-i.receivedAt:r-i}).slice(0,n.length-t)}},24691:(e,t,n)=>{"use strict";n.d(t,{$n:()=>b,DZ:()=>
3S,EY:()=>I,FN:()=>eX,GB:()=>eZ,Lv:()=>x,Mo:()=>e0,NK:()=>e$,NS:()=>eQ,SQ:()=>w,UH:()=>O,UI:()=>eY,Vf:()=>eH,Zc:()=>E,Zk:()=>eq,_V:()=>T,e:()=>eW,el:()=>k,hl:()=>eG,iG:()=>eK,pA:()=>eF,sD:()=>C});var r,i,a,s,o,l,u=n(96282),d=n(7620),c=n(69708),p=n(4963),f=n(20880),h=n(74281);n(17085);var g=n(29906);(0,u.A)(":root{--cf-color-white:#fff;--cf-color-black:#000;--cf-color-gray100:#f7f9fa;--cf-color-gray400:#aec1cc;--cf-color-gray400-rgb:174,193,204;--cf-spacing-0:0rem;--cf-spacing-1:0.125rem;--cf-spacing-2:0.25rem;--cf-spacing-3:0.375rem;--cf-spacing-4:0.5rem;--cf-spacing-5:0.625rem;--cf-spacing-6:0.75rem;--cf-spacing-7:0.875rem;--cf-spacing-8:1rem;--cf-spacing-9:1.25rem;--cf-spacing-10:1.5rem;--cf-spacing-11:1.75rem;--cf-spacing-12:2rem;--cf-spacing-13:2.25rem;--cf-text-xs:0.75rem;--cf-text-sm:0.875rem;--cf-text-base:1rem;--cf-text-lg:1.125rem;--cf-text-xl:1.25rem;--cf-text-2xl:1.5rem;--cf-text-3xl:2rem;--cf-text-4xl:2.75rem;--cf-font-light:300;--cf-font-normal:400;--cf-font-medium:500;--cf-font-semibold:600;--cf-font-bold:700;--cf-font-extra-bold:800;--cf-font-black:900;--cf-border-radius-none:0px;--cf-border-radius-sm:0.125rem;--cf-border-radius:0.25rem;--cf-border-radius-md:0.375rem;--cf-border-radius-lg:0.5rem;--cf-border-radius-xl:0.75rem;--cf-border-radius-2xl:1rem;--cf-border-radius-3xl:1.5rem;--cf-border-radius-full:9999px;--cf-max-width-full:100%;--cf-button-bg:var(--cf-color-black);--cf-button-color:var(--cf-color-white);--cf-text-color:var(--cf-color-black)}*{box-sizing:border-box}"),function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(r||(r={}));let m="contentful-component",y="Contentful",_={section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"},singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}};function v(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(e=>e).map(e=>e.trim()).join(" ")}!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(i||(i={})),(0,u.A)('.cf-button:empty:before{content:"";display:inline-block}');let b=e=>{let{children:t,className:n,label:r,onClick:i,onNavigate:a,target:s,url:o,...l}=e,u=v("cf-button",n),c=d.createElement("button",{className:u,"data-url":o,"data-target":s,onClick:e=>{a&&o&&(e.preventDefault(),a(o,s)),i&&i(e)},...l},r||t);return o?d.createElement("a",{href:o,target:s},c):c},E={id:_.button.id,name:_.button.name,category:y,builtInStyles:["cfMargin","cfMaxWidth","cfLetterSpacing","cfTextItalic","cfTextUnderline","cfTextBold","cfLineHeight","cfBorder","cfBorderRadius"],tooltip:{description:"Drop onto the canvas to add button that can be used to trigger an action."},variables:{cfFontSize:{displayName:"Font Size",type:"Text",group:"style",description:"The font size of the button.",defaultValue:"16px"},cfFontWeight:{displayName:"Font Weight",type:"Text",group:"style",description:"The font weight of the button.",defaultValue:"600"},cfTextColor:{displayName:"Text Color",type:"Text",group:"style",description:"The text color of the button.",defaultValue:"rgba(255, 255, 255, 1)"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",description:"The background color of the button.",defaultValue:"rgba(0, 0, 0, 1)"},cfPadding:{displayName:"Padding",type:"Text",group:"style",description:"The padding of the button.",defaultValue:"6px 12px 6px 12px"},cfWidth:{displayName:"Width",type:"Text",group:"style",description:"The width of the button.",defaultValue:"fit-content"},cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the button.",defaultValue:"fit-content"},cfTextAlign:{displayName:"Text Align",type:"Text",group:"style",description:"The text align of the button.",defaultValue:"center"},label:{displayName:"Text",type:"Text",defaultValue:"Button",validations:{bindingSourceType:["entry","manual"]}},url:{displayName:"URL",type:"Hyperlink",validations:{bindingSourceType:["entry","experience","manual"]}},target:{displayName:"URL behavior",type:"Text",defaultValue:""}}};(0,u.A)(".cf-heading{white-space:pre-line}");let S=e=>{let{children:t,className:n,text:r,type:i="h1",...a}=e,s=v("cf-heading",n);return d.createElement(i,{className:s,...a},r||t)},x={id:_.heading.id,name:_.heading.name,category:y,builtInStyles:["cfMargin","cfPadding","cfFontWeight","cfLetterSpacing","cfTextAlign","cfTextColor","cfTextTransform","cfTextItal
3ic","cfTextUnderline","cfWidth","cfMaxWidth","cfBackgroundColor","cfBorder","cfBorderRadius"],tooltip:{description:"Drop onto the canvas to add a heading."},variables:{cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the heading.",defaultValue:"fit-content"},cfFontSize:{displayName:"Font Size",type:"Text",group:"style",description:"The font size of the heading.",defaultValue:"32px"},cfLineHeight:{displayName:"Line Height",type:"Text",group:"style",description:"The line height of the heading.",defaultValue:"48px"},cfTextBold:{displayName:"Bold",type:"Boolean",group:"style",description:"The text bold of the heading.",defaultValue:!0},text:{displayName:"Text",type:"Text",description:"The text to display in the heading.",defaultValue:"Heading"},type:{displayName:"HTML tag",type:"Text",defaultValue:"h1",group:"style",description:"Determines the HTML tag of the heading. Value can be h1, h2, h3, h4, h5, or h6.",validations:{in:[{value:"h1",displayName:"H1"},{value:"h2",displayName:"H2"},{value:"h3",displayName:"H3"},{value:"h4",displayName:"H4"},{value:"h5",displayName:"H5"},{value:"h6",displayName:"H6"}]}}}};(0,u.A)(".cf-richtext{white-space:pre-line}.cf-richtext>:first-child{margin-top:0}.cf-richtext>:last-child{margin-bottom:0}");let C=e=>{let{as:t="p",className:n,value:r,...i}=e;return d.createElement("div",{className:v("cf-richtext",n),...i},(0,c.i)(r,{renderNode:{[p.BLOCKS.PARAGRAPH]:(e,n)=>d.createElement(t,null,n)}}))},k={id:_.richText.id,name:_.richText.name,category:y,builtInStyles:["cfMargin","cfPadding","cfFontWeight","cfLetterSpacing","cfTextTransform","cfMaxWidth","cfBackgroundColor","cfBorder","cfBorderRadius","cfTextColor"],tooltip:{description:"Drop onto the canvas to add text with Rich text formatting options."},variables:{cfLineHeight:{displayName:"Line Height",type:"Text",group:"style",description:"The line height of the Rich text.",defaultValue:"24px"},cfTextAlign:{displayName:"Text Align",type:"Text",group:"style",description:"The text alignment of the Rich text.",defaultValue:"center"},cfWidth:{displayName:"Width",type:"Text",group:"style",description:"The width of the Rich text.",defaultValue:"fit-content"},cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the Rich text.",defaultValue:"fit-content"},value:{displayName:"Text",description:"The text to display.",type:"RichText",validations:{bindingSourceType:["entry","manual"]},defaultValue:{nodeType:"document",data:{},content:[{nodeType:"paragraph",data:{},content:[{nodeType:"text",value:"Rich text",marks:[],data:{}}]}]}}}};(0,u.A)(".cf-text{white-space:pre-line}.cf-text-link .cf-text{margin:0}");let I=e=>{let{as:t="p",children:n,className:r,value:i,url:a,target:s,onNavigate:o,onClick:l,...u}=e;return a?d.createElement("a",{className:v("cf-text-link",r),href:a,...s?{target:s}:{},...u},d.createElement(t,{className:"cf-text"},i||n)):d.createElement(t,{className:v("cf-text",r),onClick:e=>{o&&a&&(e.preventDefault(),o(a,s)),l&&l(e)},"data-url":a,...s?{"data-target":s}:{},...u},i||n)},w={id:_.text.id,name:_.text.name,category:y,builtInStyles:["cfMargin","cfPadding","cfFontSize","cfFontWeight","cfLineHeight","cfLetterSpacing","cfTextColor","cfTextAlign","cfTextTransform","cfTextBold","cfTextItalic","cfTextUnderline","cfBackgroundColor","cfBorder","cfBorderRadius","cfWidth","cfMaxWidth"],tooltip:{description:"Drop onto the canvas to add plain text."},variables:{cfHeight:{displayName:"Height",type:"Text",group:"style",description:"The height of the text.",defaultValue:"fit-content"},value:{displayName:"Text",description:"The text to display. If not provided, children will be used instead.",type:"Text",defaultValue:"Text"},as:{displayName:"HTML tag",description:"Renders the text in a specific HTML tag.",type:"Text",defaultValue:"p",group:"style",validations:{in:[{value:"p",displayName:"p"},{value:"span",displayName:"span"},{value:"div",displayName:"div"},{value:"label",displayName:"label"},{value:"caption",displayName:"caption"},{value:"small",displayName:"small"},{value:"strong",displayName:"strong"},{value:"em",displayName:"em"}]}},url:{displayName:"URL",type:"Text",defaultValue:"",validations:{bindingSourceType:["entry","experience","manual"]}},target:{displayName:"URL behavior",type:"Text",defaultValue:""}}};(0,u.A)("div.cf-placeholder-wrapper{outline:2px solid rgba(var(--cf-color-gray400-rgb),.5);outline-offset:-2px;overflow:hidden;position:relative}img.cf-placeholder-image{background-color:var(--cf-color-gray100);
3height:100%;width:100%}svg.cf-placeholder-icon{height:var(--cf-text-3xl);left:50%;max-height:100%;max-width:100%;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--cf-text-3xl)}svg.cf-placeholder-icon path{fill:var(--cf-color-gray400)}");let T=e=>{let{className:t="",src:n,cfImageAsset:r,...i}=e;if(!r&&!n)return d.createElement("div",{className:v("cf-placeholder-wrapper",t)},d.createElement("img",{className:"cf-placeholder-image",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxJyBoZWlnaHQ9JzEnLz4=",...i}),d.createElement("svg",{className:"cf-placeholder-icon",fill:"none",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{fill:"#fff",d:"M13.5 2h-10a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m-10 1h10v4.836l-1.543-1.543a1 1 0 0 0-1.414 0L3.836 13H3.5zm10 10H5.25l6-6 2.25 2.25zm-7-5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-2a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"})));let a=v("cf-image",t);if("string"==typeof r)return d.createElement("img",{src:r,className:a,...i});if(r){var s,o;return d.createElement("img",{src:r.url,srcSet:(null==(s=r.srcSet)?void 0:s.length)?null==(o=r.srcSet)?void 0:o.join(", "):void 0,sizes:r.sizes?r.sizes:void 0,loading:r.loading,className:a,...i})}if(n)return d.createElement("img",{src:n,className:a,...i})},O={id:_.image.id,name:_.image.name,category:y,builtInStyles:["cfMargin","cfPadding","cfImageAsset","cfImageOptions","cfBorderRadius"],tooltip:{description:"Drop onto the canvas to upload an image."},variables:{alt:{displayName:"Alt text",type:"Text",description:"Alternative text for the image",validations:{bindingSourceType:["asset","entry","manual"]}}}};!function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(a||(a={})),!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(s||(s={})),Object.values({section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"},singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}}).map(e=>e.id);let N={cfVerticalAlignment:{validations:{in:[{value:"start",displayName:"Align left"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align right"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Vertical alignment"},cfHorizontalAlignment:{validations:{in:[{value:"start",displayName:"Align top"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align bottom"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Horizontal alignment"},cfVisibility:{displayName:"Visibility toggle",type:"Boolean",group:"style",defaultValue:!0},cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 0)"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfHeight:{displayName:"Height",type:"Text",group:"style",defaultValue:"fit-content"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"none"},cfFlexDirection:{displayName:"Direction",type:"Text",group:"style",defaultValue:"column"},cfFlexReverse:{displayName:"Reverse Direction",type:"Boolean",group:"style",defaultValue:!1},cfFlexWrap:{displayName:"Wrap objects",type:"Text",group:"style",defaultValue:"nowrap"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"0px"},cfHyperlink:{displayName:"URL",type:"Hyperlink",defaultValue:"",validations:{format:"URL",bindingSourceType:["entry","experience","manual"]}},cfOpenInNewTab:{displayName:"URL behaviour",type:"Boolean",defaultValue:!1,description:"Open in new tab"}}
3,L={cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(0, 0, 0, 0)"},cfBackgroundImageUrl:{displayName:"Background image",type:"Media",validations:{bindingSourceType:["asset","entry","manual"]}},cfBackgroundImageOptions:{displayName:"Background image options",type:"Object",group:"style",defaultValue:{scaling:"fill",alignment:"left top",targetSize:"2000px"}},cfBorderRadius:{displayName:"Border Radius",type:"Text",group:"style",defaultValue:"0px"}},D={...N,cfBorderRadius:L.cfBorderRadius,cfBackgroundImageUrl:L.cfBackgroundImageUrl,cfBackgroundImageOptions:L.cfBackgroundImageOptions},A={...N,cfBorderRadius:L.cfBorderRadius,cfBackgroundImageUrl:L.cfBackgroundImageUrl,cfBackgroundImageOptions:L.cfBackgroundImageOptions,cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfMaxWidth:{displayName:"Max Width",type:"Text",group:"style",defaultValue:"1192px"}},j={cfVisibility:N.cfVisibility,cfBorderRadius:L.cfBorderRadius,cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"20px 0px 20px 0px"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfHeight:{displayName:"Height",type:"Text",group:"style",defaultValue:"1px"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"none"},cfBackgroundColor:{displayName:"Background color",type:"Text",group:"style",defaultValue:"rgba(204, 204, 204, 1)"}},M={cfVisibility:N.cfVisibility,cfBorderRadius:L.cfBorderRadius,cfBackgroundColor:L.cfBackgroundColor,cfBackgroundImageUrl:L.cfBackgroundImageUrl,cfBackgroundImageOptions:L.cfBackgroundImageOptions,cfVerticalAlignment:{validations:{in:[{value:"start",displayName:"Align left"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align right"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Vertical alignment"},cfHorizontalAlignment:{validations:{in:[{value:"start",displayName:"Align top"},{value:"center",displayName:"Align center"},{value:"end",displayName:"Align bottom"},{value:"stretch",displayName:"Stretch"}]},type:"Text",group:"style",defaultValue:"center",displayName:"Horizontal alignment"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfFlexDirection:{displayName:"Direction",type:"Text",group:"style",defaultValue:"column"},cfFlexWrap:{displayName:"Wrap objects",type:"Text",group:"style",defaultValue:"nowrap"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"0px"},cfColumnSpan:{type:"Text",defaultValue:"6",group:"style"},cfColumnSpanLock:{type:"Boolean",defaultValue:!1,group:"style"}},P={cfVisibility:N.cfVisibility,cfBorderRadius:L.cfBorderRadius,cfBackgroundColor:L.cfBackgroundColor,cfBackgroundImageUrl:L.cfBackgroundImageUrl,cfBackgroundImageOptions:L.cfBackgroundImageOptions,cfMargin:{displayName:"Margin",type:"Text",group:"style",defaultValue:"0 0 0 0"},cfWidth:{displayName:"Width",type:"Text",group:"style",defaultValue:"100%"},cfMaxWidth:{displayName:"Max width",type:"Text",group:"style",defaultValue:"1192px"},cfPadding:{displayName:"Padding",type:"Text",group:"style",defaultValue:"10px 10px 10px 10px"},cfBorder:{displayName:"Border",type:"Text",group:"style",defaultValue:"0px solid rgba(0, 0, 0, 0)"},cfGap:{displayName:"Gap",type:"Text",group:"style",defaultValue:"10px 10px"},cfColumns:{type:"Text",defaultValue:"[6,6]",group:"style"},cfWrapColumns:{type:"Boolean",defaultValue:!1,group:"style"},cfWrapColumnsCount:{type:"Text",defaultValue:"2",group:"style"}},z=f.z.literal("2023-09-28");f.z.union([f.z.literal("2023-08-23"),f.z.literal("2023-07-26"),f.z.literal("2023-06-27")]);let R=f.z.enum(["Text","RichText","Number","Date","Boolean","Location","Media","Object","Hyperlink","Array","Link"]),B=f.z.string().regex(/^[a-zA-Z0-9-_]{1,32}$/,{message:"Property needs to match: /^[a-zA-Z0-9-_]{1,32}$/"}),V=f.z.union([f.z.string(),f.z.boolean(),f.z.number(),f.z.record(f.z.any(),f.z.any()),f.z.undefined()]),U=f.z.array(f.z.object({sys:f.z.object({type:f.z.literal("Link"),id:f.z.string(),linkType:f.z.literal("Entry")})})),K=f.z.string().regex(/^[a-zA-Z0-9-_]{1,21}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,21}$/"}),F=f.z.record(K,f.z.object({sys:f.z.object({type:f.z.literal("Link"),id:f.z.string(),linkType:f.z.enum(["Entry","Asset"])})})),$=f.z.record(K,f.z.object({value:V}
3)),Z=f.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,54}$/"}),H=f.z.string().regex(/^[a-zA-Z0-9]{1,8}$/,{message:"Does not match /^[a-zA-Z0-9]{1,8}$/"}),W=f.z.record(f.z.lazy(()=>V)),G=f.z.array(f.z.enum(["entry","asset","manual","experience"])).nonempty(),q=f.z.object({type:f.z.literal("DesignValue"),valuesByBreakpoint:W}).strict(),Y=f.z.object({type:f.z.literal("BoundValue"),path:f.z.string()}).strict(),J=f.z.object({type:f.z.literal("HyperlinkValue"),linkTargetKey:f.z.string(),overrides:f.z.object({}).optional()}).strict(),Q=f.z.object({type:f.z.literal("UnboundValue"),key:f.z.string()}).strict(),X=f.z.object({type:f.z.literal("ComponentValue"),key:f.z.string()}).strict(),ee=f.z.object({type:f.z.literal("NoValue")}).strict(),et=f.z.discriminatedUnion("type",[q,Y,Q,J,X,ee]),en=f.z.object({type:f.z.literal("BoundValue"),path:f.z.string()}),er=f.z.record(Z,en),ei=/^\*$|^[<>][0-9]+px$/,ea=f.z.object({id:Z,query:f.z.string().refine(e=>ei.test(e)),previewSize:f.z.string().optional(),displayName:f.z.string(),displayIcon:f.z.enum(["desktop","tablet","mobile"]).optional()}).strict(),es=f.z.object({id:H.optional(),definitionId:B,prebindingId:f.z.string().optional(),displayName:f.z.string().optional(),slotId:f.z.string().optional(),variables:f.z.record(Z,et),parameters:er.optional()}),eo=f.z.object({displayName:f.z.string().optional(),type:R,description:f.z.string().optional(),group:f.z.string().optional(),defaultValue:V.or(et).optional(),validations:f.z.object({bindingSourceType:G.optional(),required:f.z.boolean().optional(),format:f.z.literal("URL").optional(),in:f.z.array(f.z.object({value:f.z.union([f.z.string(),f.z.number()]),displayName:f.z.string().optional()})).optional()}).optional()}),el=es.extend({children:f.z.lazy(()=>el.array())}).superRefine((e,t)=>{let{id:n,prebindingId:r,parameters:i}=e;r&&!i&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'Found "prebindingId" but no "parameters" for node with i
3d: "'.concat(n,'"')})}),eu=f.z.object({breakpoints:f.z.array(ea).superRefine((e,t)=>{if(!e.length||"*"!==e[0].query)return void t.addIssue({code:f.z.ZodIssueCode.custom,message:'The first breakpoint should include the following attributes: { "query": "*" }'});if(1===e.length)return;let n=e.map(e=>e.id);if(new Set(n).size!==n.length)return void t.addIssue({code:f.z.ZodIssueCode.custom,message:"Breakpoint IDs must be unique"});let r=e.slice(1),i=r[0].query.startsWith(">"),a=r[0].query.startsWith("<");i?(r.every(e=>{let{query:t}=e;return t.startsWith(">")})||t.addIssue({code:f.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format ">[size]px" for mobile-first strategy'}),r.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,n)=>0===t||e>n[t-1])||t.addIssue({code:f.z.ZodIssueCode.custom,message:"When using a mobile-first strategy, all breakpoints must have strictly increasing pixel values"})):a?(r.every(e=>{let{query:t}=e;return t.startsWith("<")})||t.addIssue({code:f.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format "<[size]px" for desktop-first strategy'}),r.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,n)=>0===t||e<n[t-1])||t.addIssue({code:f.z.ZodIssueCode.custom,message:"When using a desktop-first strategy, all breakpoints must have strictly decreasing pixel values"})):i||a||t.addIssue({code:f.z.ZodIssueCode.custom,message:"You may only use a mobile-first or desktop-first strategy for breakpoints using '<' or '>' queries"})}),children:f.z.array(el),schemaVersion:z}).strict(),ed=e=>f.z.record(f.z.string(),e);f.z.object({componentTree:ed(eu),dataSource:ed(F),unboundValues:ed($),usedComponents:ed(U).optional()});let ec=f.z.object({parameterId:Z,type:f.z.literal("ContentTypeMapping"),pathsByContentType:f.z.record(f.z.string(),f.z.object({path:f.z.string()})).superRefine((e,t)=>{let n=t.path[t.path.length-2];Object.keys(e).length>200&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'Too many paths defined for variable mapping with id "'.concat(n,'", maximum allowed is ').concat(200)})})}),ep=f.z.object({nodeId:Z,parameterId:Z,prebindingId:Z}).strict(),ef=f.z.object({defaultSource:f.z.strictObject({type:f.z.enum(["Entry"]),contentTypeId:f.z.string(),link:f.z.strictObject({sys:f.z.strictObject({type:f.z.literal("Link"),id:f.z.string(),linkType:f.z.enum(["Entry"])})})}).optional(),contentTypes:f.z.array(f.z.string()).min(1),passToNodes:f.z.array(ep).max(1,'At most one "passToNodes" element is allowed per parameter definition.')}),eh=f.z.record(Z,ef),eg=f.z.record(Z,ec),em=f.z.record(f.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/),eo),ey=f.z.object({id:Z,parameterDefinitions:eh,variableMappings:eg.optional(),allowedVariableOverrides:f.z.array(f.z.string()).optional()}).strict(),e_=f.z.object({variableDefinitions:em,thumbnailId:f.z.enum(["columns","columnsPlusRight","imagesSquare","subtitles","rowsPlusBottom","userRectangle","textbox","monitorPlay","article","table","star","heartStraight","frameCorners","rows","dotsThreeOutline","listDashes","checkerBoard","gridFour","slideshow","diamondsFour","cards","textColumns","duplex"]).optional(),category:f.z.string().max(50,"Category must contain at most 50 characters").optional(),prebindingDefinitions:f.z.array(ey).length(1).optional()}).strict().superRefine((e,t)=>{let{variableDefinitions:n,prebindingDefinitions:r}=e;if(!r||0===r.length)return;let{parameterDefinitions:i,variableMappings:a,allowedVariableOverrides:s}=r[0];ev(i,t),eb(a,s,t),eE(a,s,n,t),eS(a,i,t)});f.z.object({componentTree:ed(eu),dataSource:ed(F),unboundValues:ed($),usedComponents:ed(U).optional(),componentSettings:ed(e_)}).superRefine((e,t)=>{let{componentTree:n,componentSettings:r}=e,i=Object.values(n)[0],a=Object.values(r)[0];a&&i&&ex(i.children||[],a||{},t)});let ev=(e,t)=>
3{Object.values(e).filter(e=>!(e.passToNodes&&e.passToNodes.length>0)).length>1&&t.addIssue({code:f.z.ZodIssueCode.custom,message:"Only one native parameter definition (parameter definition without passToNodes) is allowed per prebinding definition."})},eb=(e,t,n)=>{let r=Object.keys(e||{}),i=new Set(t||[]),a=r.filter(e=>i.has(e));a.length>0&&n.addIssue({code:f.z.ZodIssueCode.custom,message:"Found both variable mapping and allowed override for the following keys: ".concat(a.map(e=>'"'.concat(e,'"')).join(", "),".")})},eE=(e,t,n,r)=>{let i=Object.entries(n).filter(e=>{let[t,n]=e;return"style"!==n.group}).map(e=>{let[t]=e;return t}),a=[...Object.keys(e||{}),...t||[]].filter(e=>!i.includes(e));a.length>0&&r.addIssue({code:f.z.ZodIssueCode.custom,message:"The following variable mappings or overrides are missing from the variable definitions: ".concat(a.map(e=>'"'.concat(e,'"')).join(", "),".")})},eS=(e,t,n)=>{let r=Object.keys(t||{});for(let[t,i]of Object.entries(e||{}))r.includes(i.parameterId)||n.addIssue({code:f.z.ZodIssueCode.custom,message:'The variable mapping with id "'.concat(t,'" references a non-existing parameterId "').concat(i.parameterId,'".')})},ex=(e,t,n)=>{if(!t.prebindingDefinitions||0===t.prebindingDefinitions.length)return;let{parameterDefinitions:r}=t.prebindingDefinitions[0],i=new Set;for(let e of Object.values(r||{})){var a;null==(a=e.passToNodes)||a.forEach(e=>i.add(e.nodeId))}if(!function(e,t){let n=e=>{let r=[...e.children];for(let i of(t(e),r))n(i)};if(Array.isArray(e))for(let t of e)n(t);else n(e)}(e,e=>{e.id&&i.has(e.id)&&i.delete(e.id)}),i.size>0){let e=Array.from(i).map(e=>'"'.concat(e,'"')).join(", ");n.addIssue({code:f.z.ZodIssueCode.custom,message:"The following node IDs referenced in passToNodes are not present in the component tree: ".concat(e,".")})}};f.z.object({id:B,name:f.z.string(),category:f.z.string().optional(),thumbnailUrl:f.z.string().optional(),thumbnailId:f.z.string().optional(),hyperlinkPattern:f.z.string().optional(),children:f.z.boolean().optional(),slots:f.z.record(B,f.z.object({displayName:f.z.string().optional()})).optional(),builtInStyles:f.z.array(f.z.string()).optional(),tooltip:f.z.object({imageUrl:f.z.string().optional(),description:f.z.string()}).optional(),variables:f.z.record(B,eo.extend({defaultValue:V.optional()}).superRefine((e,t)=>{switch(e.type){case"Array":void 0!==e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue is not supported for "Array" type for '.concat(t.path.join(".")),fatal:!1});break;case"Boolean":void 0!==e.defaultValue&&"boolean"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be a boolean when type is "Boolean" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Date":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be a string when type is "Date" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Hyperlink":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be a string when type is "Hyperlink" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Link":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue is not supported for "Link" type for '.concat(t.path.join(".")),fatal:!1});break;case"Location":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be an object when type is "Location" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Media":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be a string when type is "Media" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Number":void 0!==e.defaultValue&&"number"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be a number when type is "Number" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Object":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be an object when type is "Object" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"RichText":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be an object when type is "RichText" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1});break;case"Text":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:f.z.ZodIssueCode.custom,message:'defaultValue must be a string when type is "Text" for '.concat(t.path.join("."),", got ").concat(typeof e.defaultValue," instead"),fatal:!1})}}))}).superRefine((e,t)=>
3{var n;!0===e.children&&(e.variables.children||(null==(n=e.slots)?void 0:n.children))&&t.addIssue({code:f.z.ZodIssueCode.custom,message:"Cannot activate 'children: true' and name a variable or slot 'children' at the same time",fatal:!1}),e.variables&&e.slots&&Object.keys(e.variables).forEach(n=>{e.slots[n]&&t.addIssue({code:f.z.ZodIssueCode.custom,message:"Variable and slot cannot have the same name: ".concat(n),fatal:!1})})}),function(e){e.Type="type",e.Required="required",e.Unexpected="unexpected",e.Regex="regex",e.In="in",e.Size="size",e.Custom="custom"}(o||(o={}));let eC="cf_debug",ek=()=>{try{if("undefined"==typeof localStorage||null===localStorage)return!1;let e="cf_test_local_storage";if(localStorage.setItem(e,"yes"),"yes"===localStorage.getItem(e))return localStorage.removeItem(e),!0;return!1}catch(e){return!1}},eI=["error","warn","log","debug"];class ew{static getInstance(){return null===this.instance&&(this.instance=new ew),this.instance}getActiveLevel(){return this.activeLevel}setActiveLevel(e){this.activeLevel=e,ek()&&("debug"===this.activeLevel||"log"===this.activeLevel?localStorage.setItem(eC,"true"):localStorage.removeItem(eC))}logger(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=eI.indexOf(e);a<=eI.indexOf(t.activeLevel)&&console[e](...r)}}constructor(){if(this.activeLevel="warn",this.error=this.logger("error"),this.warn=this.logger("warn"),this.log=this.logger("log"),this.debug=this.logger("debug"),!ek())return;"true"===localStorage.getItem(eC)&&(this.activeLevel="debug")}}ew.instance=null;let eT=ew.getInstance();function eO(e){var t,n,r;return null!==e&&"object"==typeof e&&!!(null==(t=e.sys)?void 0:t.id)&&(null==(n=e.sys)?void 0:n.type)==="Link"&&!!(null==(r=e.sys)?void 0:r.linkType)}let eN=e=>{let t=eL(e.split("/"),{startNextChunkOnElementEqualTo:"fields"});if(t.length<=1||2===t.length)return null;let[n,...r]=t;return/^\/([^/^~]+)$/.test(n.join("/"))&&r.every(e=>/^fields\/[^/^~]+\/~locale$/.test(e.join("/")))?{key:n[1],fields:r.map(e=>e[1])}:null},eL=(e,t)=>{let{startNextChunkOnElementEqualTo:n}=t,r=[],i=[],a=e=>e===n;for(let t=0;t<e.length;t++){let n=0===t,s=e[t];n?i=[s]:a(s)?(r.push(i),i=[s]):i.push(s)}return r.push(i),r.filter(e=>e.length>0)};function eD(e,t){if(!t.length)return e;try{let[n,...r]=t;return eD(e[n],r)}catch(e){return}}let eA=e=>{var t;return null!==e&&"object"==typeof e&&"sys"in e&&(null==(t=e.sys)?void 0:t.type)==="Entry"},ej=e=>{var t;return null!==e&&"object"==typeof e&&"sys"in e&&(null==(t=e.sys)?void 0:t.type)==="Asset"};function eM(e){for(let t of Object.getOwnPropertyNames(e)){let n=e[t];n&&"object"==typeof n&&eM(n)}return Object.freeze(e)}class eP{get entities(){return[...this.entryMap.values(),...this.assetMap.values()]}updateEntity(e){this.addEntity(e)}getEntryOrAsset(e,t){let n;if((e=>{let t=eN(e);return!!t&&t.fields.length>1})(t))return this.getDeepEntry(e,t);if(eO(e)){let t="Entry"===e.sys.linkType?this.entryMap.get(e.sys.id):this.assetMap.get(e.sys.id);if(!t||t.sys.type!==e.sys.linkType)return void eT.warn("[experiences-core::EntityStoreBase] Experience references unresolved entity: ".concat(JSON.stringify(e)));n=t}else if(ej(e)||eA(e))n=e;else throw Error("[experiences-core::EntityStoreBase] Unexpected object when resolving entity: ".concat(JSON.stringify(e)));return n}getValue(e,t){let n=this.getEntity(e.sys.linkType,e.sys.id);return n?eD(n,t):void eT.warn("Unresolved entity reference: ".concat(e.sys.linkType," with ID ").concat(e.sys.id))}getEntityFromLink(e){let t="Entry"===e.sys.linkType?this.entryMap.get(e.sys.id):this.assetMap.get(e.sys.id);return t&&t.sys.type===e.sys.linkType?t:void eT.warn("[experiences-core::EntityStoreBase] Experience references unresolved entity: ".concat(JSON.stringify(e)))}getAssetById(e){let t=this.assetMap.get(e);return t||void eT.warn('[experiences-core::EntityStoreBase] Asset with ID "'.concat(e,'" is not found in the store'))}getEntryById(e){let t=this.entryMap.get(e);return t||void eT.warn('[experiences-core::EntityStoreBase] Entry with ID "'.concat(e,'" is not found in the store'))}getEntitiesFromMap(e,t){let n=[],r=[];for(let i of t){let t=this.getEntity(e,i);t?n.push(t):r.push(i)}return{resolved:n,missing:r}}addEntity(e){if(ej(e))this.assetMap.set(e.sys.id,eM(h(e)));else if(eA(e))this.entryMap.set(e.sys.id,eM(h(e)));else throw Error("Attempted to add an entity to the store that is neither Asset nor Entry: '".concat(JSON.stringify(e),"'"))}async fetchAsset(e){let{resolved:t,missing:n}=this.getEntitiesFromMap("Asset",[e]);return n.length?void eT.warn('[experiences-core::EntityStoreBase] Asset "'.concat(e,'" is not in the store')):t[0]}async fetchAssets(e){let{resolved:t,missing:n}=this.getEntitiesFromMap("Asset",e);if(n.length)throw Error("Missing assets in the store (".concat(n.join(","),")"));return t}async fetchEntry(e){let{resolved:t,missing:n}=this.getEntitiesFromMap("Entry",[e]);return n.length?void eT.warn('[experiences-core::EntityStoreBase] Entry "'.concat(e,'" is not in the store')):t[0]}async fetchEntries(e){let{resolved:t,missing:n}=this.getEntitiesFromMap("Entry",e);if(n.length)throw Error("Missing assets in the store (".concat(n.join(","),")"));return t}getDeepEntry(e,t){let n=(e,t)=>{let n=[],r=t;for(let t=0;t<e.length;t++){let i=t===e.length-1,[,a,s]=e[t];if(!r)throw Error("Logic Error: Cannot resolve field ".concat(a," of a fieldset as there is no entity to resolve it from."));if(i){n.push([r,a,s]);break}let o=eD(r,["fields",a]);if(void 0===o)return{resolvedFieldset:n,isFullyResolved:!1,reason:"Cannot resolve field Link<".concat(r.sys.type,">(sys.id=").concat(r.sys.id,").fields[").concat(a,"] as field value is not defined")};if(eO(o)){let e=this.getEntityFromLink(o);if(void 0===e)return{resolvedFieldset:n,isFullyResolved:!1,reason:"Field reference Link (sys.id=".concat(o.sys.id,") not found in the EntityStore, waiting...")};n.push([r,a,s]),r=e}else{if(!(ej(o)||eA(o)))return{resolvedFieldset:n,isFullyResolved:!1,reason:"Deep path points to an invali
3d field value of type '".concat(typeof o,"' (value=").concat(o,")")};n.push([r,a,s]),r=o}}return{resolvedFieldset:n,isFullyResolved:!0}},r=eO(e)?this.getEntityFromLink(e):e;if(void 0===r)return;let{resolvedFieldset:i,isFullyResolved:a,reason:s}=n((e=>{let t=eN(e);if(null===t)throw Error("Cannot parse path '".concat(e,"' as deep path"));return t.fields.map(e=>[null,e,"~locale"])})(t),r);if(!a){s&&eT.log("[experiences-core::EntityStoreBase] Deep path wasn't resolved till leaf node, falling back to undefined, because: ".concat(s));return}let[o]=i[i.length-1];return o}getEntity(e,t){return"Asset"===e?this.assetMap.get(t):this.entryMap.get(t)}toJSON(){return{entryMap:Object.fromEntries(this.entryMap),assetMap:Object.fromEntries(this.assetMap),locale:this.locale}}constructor({entities:e,locale:t}){for(let n of(this.entryMap=new Map,this.assetMap=new Map,this.locale=t,e))this.addEntity(n)}}class ez extends eP{constructor(){super({entities:[],locale:"uninitialized-locale-in-uninitialized-entity-store"})}}(0,g.vt)((e,t)=>({entityStore:new ez,areEntitiesFetched:!1,setEntitiesFetched(t){e({areEntitiesFetched:t})},resolveAssetById(e){if(!e)return;let{entityStore:n}=t();return n.getAssetById(e)},resolveEntryById(e){if(!e)return;let{entityStore:n}=t();return n.getEntryById(e)},resolveEntity(e){if(!e)return;let{entityStore:n}=t();return n.getEntityFromLink(e)},resetEntityStore(t){e({entityStore:t,areEntitiesFetched:!1})}})),function(e){e.LazyLoad="lazyLoad",e.InjectScript="injectScript"}(l||(l={})),(0,u.A)('.contentful-container{display:flex;pointer-events:all;position:relative}.contentful-container::-webkit-scrollbar{display:none}.cf-container-wrapper{position:relative;width:100%}.contentful-container:after{align-items:center;bottom:0;color:var(--exp-builder-gray400);content:"";display:block;display:flex;font-family:var(--exp-builder-font-stack-primary);font-size:12px;justify-content:center;left:0;overflow-x:clip;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.contentful-section-label:after{content:"Section"}.contentful-container-label:after{content:"Container"}.contentful-container-link,.contentful-container-link:active,.contentful-container-link:focus-visible,.contentful-container-link:hover,.contentful-container-link:read-write,.contentful-container-link:visited{color:inherit;outline:unset;text-decoration:unset}');let eR=(0,d.forwardRef)((e,t)=>{let{id:n,children:r,onMouseEnter:i,onMouseUp:a,onMouseLeave:s,onMouseDown:o,onClick:l,flex:u,flexBasis:c,flexShrink:p,flexDirection:f,gap:h,justifyContent:g,justifyItems:m,justifySelf:y,alignItems:_,alignSelf:v,alignContent:b,order:E,flexWrap:S,flexGrow:x,className:C,cssStyles:k,...I}=e;return d.createElement("div",{id:n,ref:t,style:{display:"flex",flex:u,flexBasis:c,flexShrink:p,flexDirection:f,gap:h,justifyContent:g,justifyItems:m,justifySelf:y,alignItems:_,alignSelf:v,alignContent:b,order:E,flexWrap:S,flexGrow:x,...k},className:C,onMouseEnter:i,onMouseUp:a,onMouseDown:o,onMouseLeave:s,onClick:l,...I},r)});function eB(e){let{isEditorMode:t,isEmpty:n,nodeBlockId:r,children:i,...a}=e;return a}eR.displayName="Flex";let eV=e=>{let{cfHyperlink:t,cfOpenInNewTab:n,isEditorMode:r,className:i,children:a,...s}=e;return d.createElement("a",{className:v(i,"contentful-container","contentful-container-link"),href:t,...n?{target:"_blank",rel:"noopener noreferrer"}:{},...!0===r?{onClick:eU}:{},...eB(s)},a)},eU=e=>{e.stopPropagation(),e.preventDefault()},eK=e=>{let{className:t,isEditorMode:n,isEmpty:r,nodeBlockId:i,children:a,cfHyperlink:s,cfOpenInNewTab:o,...l}=e;if(s)return d.createElement(eV,{...e},a);if(!n)return d.createElement(eR,{"data-test-id":"contentful-container",...eB(l),className:v(t,"contentful-container")},a);let u=i===_.section.id;return d.createElement(eR,{"data-test-id":"contentful-container",...eB(l),className:v(t,"contentful-container",r?u?"contentful-section-label":"contentful-container-label":"")},a)},eF={id:_.container.id,name:_.container.name,category:m,children:!0,variables:A,tooltip:{description:"Create a new area or pattern within your page layout by dragging a container onto the canvas. Other
3components and patterns can be added into a container."}},e$={id:_.section.id,name:_.section.name,category:m,children:!0,variables:D,tooltip:{description:"Create a new full width section of your experience by dragging this component onto the canvas. Other components and patterns can be added into a section."}};(0,u.A)(".cf-divider{display:contents;height:100%;position:relative;width:100%}.cf-divider hr{border:none}");let eZ=e=>{let{className:t="",...n}=e;return d.createElement("div",{className:"cf-divider",...n},d.createElement("hr",{className:t}))},eH={id:_.divider.id,name:_.divider.name,category:y,children:!1,variables:j,tooltip:{description:"Drop onto the canvas to add a divider."}};(0,u.A)('.cf-columns{display:flex;flex-direction:column;gap:24px;grid-template-columns:repeat(12,1fr);min-height:0;min-width:0}@media (min-width:768px){.cf-columns{display:grid}}.cf-single-column-wrapper{position:relative}.cf-single-column-wrapper:after{align-items:center;bottom:0;color:var(--exp-builder-gray400);content:"";display:block;display:flex;font-family:var(--exp-builder-font-stack-primary);font-size:12px;justify-content:center;left:0;overflow-x:clip;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.cf-single-column-label:after{content:"Column"}');let eW=e=>{let{className:t,children:n,...r}=e;return d.createElement("div",{className:v(t,"cf-columns"),style:{display:"grid",gridTemplateColumns:"repeat(12, [col-start] 1fr)"},...eB(r)},n)},eG=e=>{let{className:t,isEditorMode:n}=e;if(!n)return d.createElement(eR,{className:t},e.children);let{isEmpty:r,children:i}=e,a=v("cf-single-column-wrapper",t,r?"cf-single-column-label":"");return d.createElement(eR,{...eB(e),className:a},i)},eq={id:_.columns.id,name:_.columns.name,category:m,children:!0,variables:P,tooltip:{description:"Add columns to a container to create your desired layout and ensure that the experience is responsive across different screen sizes."}},eY={id:_.singleColumn.id,name:_.singleColumn.name,category:m,children:!0,variables:M},eJ={display:"contents"},eQ=e=>d.createElement("div",{"data-test-id":"assembly",...e,style:eJ}),eX=e=>{let{className:t,children:n,...r}=e;return d.createElement("div",{className:v(t,"cf-carousel"),...r},n)},e0={id:_.carousel.id,name:_.carousel.name,category:y,children:!0,builtInStyles:["cfPadding","cfMargin","cfHeight","cfWidth","cfMaxWidth","cfBorderRadius","cfBackgroundColor","cfBorder"],variables:{},tooltip:{description:"Drop onto the canvas to add a carousel."}}},25632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCapture=t.runStatsigAutoCapture=t.StatsigAutoCapturePlugin=void 0;let r=n(1805),i=n(31748),a=n(15007),s=n(50124),o=n(65173),l=n(22103),u=n(1213),d=n(97379),c=n(20814),p=n(13303),f={submit:i.AutoCaptureEventName.FORM_
3SUBMIT,click:i.AutoCaptureEventName.CLICK,copy:i.AutoCaptureEventName.COPY,cut:i.AutoCaptureEventName.COPY};class h{constructor(e){this._options=e,this.__plugin="auto-capture"}bind(e){g(e,this._options)}}function g(e,t){var n;if((0,r._isServerEnv)())return null;let{sdkKey:i}=e.getContext();if(!(0,r._isServerEnv)()){let e=null!=(n=(0,r._getStatsigGlobal)().acInstances)?n:{};if(e[i])return e[i]}return new m(e,t)}t.StatsigAutoCapturePlugin=h,t.runStatsigAutoCapture=g;class m{constructor(e,t){var n,i,d,c;this._client=e,this._disabledEvents={},this._previousLoggedPageViewUrl=null,this._hasLoggedPageViewEnd=!1,this._pageViewLogged=!1;let{sdkKey:p,errorBoundary:f,values:h}=e.getContext();this._options=t,this._disabledEvents=null!=(i=null==(n=null==h?void 0:h.auto_capture_settings)?void 0:n.disabled_events)?i:{},this._errorBoundary=f,this._errorBoundary.wrap(this,"autoCapture:"),this._client.$on("values_updated",()=>{var e,t;let n=this._client.getContext().values;this._disabledEvents=null!=(t=null==(e=null==n?void 0:n.auto_capture_settings)?void 0:e.disabled_events)?t:this._disabledEvents}),this._engagementManager=new o.EngagementManager,this._rageClickManager=new l.default,this._webVitalsManager=new u.WebVitalsManager(this._enqueueAutoCapture.bind(this),f),this._deadClickManager=new s.default(this._enqueueAutoCapture.bind(this),f),this._consoleLogManager=new a.ConsoleLogManager(this._enqueueAutoCapture.bind(this),f,null!=(d=null==t?void 0:t.consoleLogAutoCaptureSettings)?d:{enabled:!1}),this._eventFilterFunc=null==t?void 0:t.eventFilterFunc;let g=(0,r._getDocumentSafe)();if(!(0,r._isServerEnv)()){let e=null!=(c=(__STATSIG__=(0,r._getStatsigGlobal)()).acInstances)?c:{};e[p]=this,__STATSIG__.acInstances=e}if((null==g?void 0:g.readyState)==="loading")return void g.addEventListener("DOMContentLoaded",()=>this._initialize());this._initialize()}_addEventHandlers(){let e=(0,r._getWindowSafe)(),t=(0,r._getDocumentSafe)();if(!e||!t)return;let n=(e,t=!0)=>{var n;let i=e||(null==(n=(0,r._getWindowSafe)())?void 0:n.event);this._autoLogEvent(i),t&&this._engagementManager.bumpInactiveTimer(),"click"===i.type&&i instanceof MouseEvent&&this._rageClickManager.isRageClick(i.clientX,i.clientY,Date.now())&&this._logRageClick(i)};(0,d._registerEventHandler)(t,"click",e=>n(e)),(0,d._registerEventHandler)(t,"submit",e=>n(e)),(0,d._registerEventHandler)(t,"copy",e=>n(e)),(0,d._registerEventHandler)(t,"cut",e=>n(e)),(0,d._registerEventHandler)(e,"error",e=>n(e,!1)),(0,d._registerEventHandler)(e,"pagehide",()=>this._tryLogPageViewEnd()),(0,d._registerEventHandler)(e,"beforeunload",()=>this._tryLogPageViewEnd())}_addPageViewTracking(){let e=(0,r._getWindowSafe)(),t=(0,r._getDocumentSafe)();if(e&&t){if((0,d._registerEventHandler)(e,"popstate",()=>this._tryLogPageView("popstate")),e.history&&"function"==typeof Proxy&&"function"==typeof e.history.pushState)try{let t=e.history.pushState;e.history.pushState=new Proxy(t,{apply:(e,t,[n,r,i])=>{let a=e.apply(t,[n,r,i]);return this._tryLogPageView("pushstate"),a}})}catch(e){}if(e.history&&"function"==typeof Proxy&&"function"==typeof e.history.replaceState)try{let t=e.history.replaceState;e.history.replaceState=new Proxy(t,{apply:(e,t,[n,r,i])=>{let a=e.apply(t,[n,r,i]);return this._tryLogPageView("replacestate"),a}})}catch(e){}this._tryLogPageView()}}_autoLogEvent(e){var t,n,a,s;let o=null==(t=e.type)?void 0:t.toLowerCase();if("error"===o&&e instanceof ErrorEvent)return void this._logError(e);let l=(0,d._getTargetNode)(e);if(!l)return;let u=f[o];if(!u)return;let h=u===i.AutoCaptureEventName.COPY;if(!(0,d._shouldLogEvent)(e,l,h))return;let g={};if(h){let t=null==(a=null==(n=(0,r._getWindowSafe)())?void 0:n.getSelection())?void 0:a.toString();if(!t)return;(null==(s=this._options)?void 0:s.captureCopyText)&&(g.selectedText=(0,d._sanitizeString)(t)),g.clipType=e.type||"clipboard"}let{value:m,metadata:y}=(0,c._gatherEventData)(l);y.isOutbound&&this._engagementManager.setMeaningfulEngagementOccurred(!0),Object.assign(g,y);let _=(0,p._gatherAllMetadata)((0,d._getSafeUrl)());this._enqueueAutoCapture(u,m,Object.assign(Object.assign({},_),g))}_initialize(){this._webVitalsManager.startTracking(),this._deadClickManager.startTracking(),this._consoleLogManager.startTracking(),this._engagementManager.startInactivityTracking(()=>this._tryLogPageViewEnd(!0)),this._addEventHandlers(),this._addPageViewTracking(),this._logSessionStart(),this._logPerformance()}_logError(e){let t=(null==e?void 0:e.error)||{},n=t;if("object"==typeof t)try{n=JSON.stringify(t)}catch(e){n="function"==typeof(null==t?void 0:t.toString)?t.toString():"Unknown Error"}this._enqueueAutoCapture(i.AutoCaptureEventName.ERROR,e.message,{message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error_str:n})}_logSessionStart(){let e=this._getSessionFromClient();try{if(!this._isNewSession(e))return;this._enqueueAutoCapture(i.AutoCaptureEventName.SESSION_START,(0,d._getSanitizedPageUrl)(),Object.assign({sessionID:e.data.sessionID},(0,p._gatherAllMetadata)((0,d._getSafeUrl)())),{flushImmediately:!0})}catch(e){this._errorBoundary.logError("AC::logSession",e)}}_tryLogPageView(e){let t=(0,d._getSafeUrl)(),n=this._previousLoggedPageViewUrl;if(n&&t.pathname===n.pathname)return;this._engagementManager.setLastPageViewTime(Date.now()),this._hasLoggedPageViewEnd=!1;let r=(0,p._gatherAllMetadata)(t);e&&(r.navigation_type=e),this._previousLoggedPageViewUrl&&(r.last_page_view_url=this._previousLoggedPageViewUrl.href),this._pageViewLogged||(this._updateClientWithPossibleFirstTouchMetadata(),this._pageViewLogged=!0),this._enqueueAutoCapture(i.AutoCaptureEventName.PAGE_VIEW,(0,d._getSanitizedPageUrl)(),r,{flushImmediately:!0,addNewSessionMetadata:!0}),this._previousLoggedPageViewUrl=t,this._engagementManager.bumpInactiveTimer()}_tryLogPageViewEnd(e=!1){this._hasLoggedPageViewEnd||(this._hasLoggedPageViewEnd=!0,this._enqueueAutoCapture(i.AutoCaptureEventName.PAGE_VIEW_END,(0,d._getSanitizedPageUrl)(),Object.assign(Object.assign({},this._engagementManager.getPageViewEndMetadata()),{dueToInactivity:e}),{flushImmediately:!0}))}
3_logRageClick(e){if(!(0,d._shouldLogEvent)(e,e.target))return;let{value:t,metadata:n}=(0,c._gatherEventData)(e.target);this._enqueueAutoCapture(i.AutoCaptureEventName.RAGE_CLICK,t,Object.assign(Object.assign({x:e.clientX,y:e.clientY,timestamp:Date.now()},(0,p._gatherAllMetadata)((0,d._getSafeUrl)())),n))}_logPerformance(){let e=(0,r._getWindowSafe)();e&&e.performance&&void 0!==(null==e?void 0:e.performance)&&"function"==typeof e.performance.getEntriesByType&&"function"==typeof e.performance.getEntriesByName&&setTimeout(()=>{let t={},n=e.performance.getEntriesByType("navigation");if(n&&n.length>0&&n[0]instanceof PerformanceNavigationTiming){let e=n[0];t.load_time_ms=e.duration,t.dom_interactive_time_ms=e.domInteractive-e.startTime,t.redirect_count=e.redirectCount,t.transfer_bytes=e.transferSize}let r=e.performance.getEntriesByName("first-contentful-paint");r&&r.length>0&&r[0]instanceof PerformancePaintTiming&&(t.first_contentful_paint_time_ms=r[0].startTime),this._enqueueAutoCapture(i.AutoCaptureEventName.PERFORMANCE,(0,d._getSanitizedPageUrl)(),Object.assign(Object.assign({},t),(0,p._getNetworkInfo)()))},1)}_enqueueAutoCapture(e,t,n,i){var a,s,o;if(!t)return;let l=e.slice(14);if(this._disabledEvents[e]||this._disabledEvents[l])return;let u=this._getSessionFromClient();try{let l=Object.assign({sessionID:u.data.sessionID,page_url:null!=(o=null==(s=null==(a=(0,r._getWindowSafe)())?void 0:a.location)?void 0:s.href)?o:""},n);(null==i?void 0:i.addNewSessionMetadata)&&(l.isNewSession=String(this._isNewSession(u)));let d={eventName:e,value:t,metadata:l};if(this._eventFilterFunc&&!this._eventFilterFunc(d))return;this._client.logEvent(d),(null==i?void 0:i.flushImmediately)&&this._flushImmediately()}catch(e){this._errorBoundary.logError("AC::enqueue",e)}}_updateClientWithPossibleFirstTouchMetadata(){let e=this._client;e._possibleFirstTouchMetadata=(0,p._getPossibleFirstTouchMetadata)((0,d._getSafeUrl)()),Object.keys(e._possibleFirstTouchMetadata).length>0&&(e._user=Object.assign(Object.assign({},e._user),{analyticsOnlyMetadata:Object.assign(Object.assign({},e._possibleFirstTouchMetadata),e._user.analyticsOnlyMetadata)}))}_flushImmediately(){this._client.flush().catch(e=>{r.Log.error(e)})}_isNewSession(e){return 1e3>Math.abs(e.data.startTime-Date.now())}_getSessionFromClient(){return this._client.getContext().session}static getAllMetadata(){return(0,p._gatherAllMetadata)((0,d._getSafeUrl)())}}t.AutoCapture=m},28341:(e,t,n)=>{"use strict";var r=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=n(1805),a=n(10934),s=n(73623),o=n(87968),l=n(38444);class u extends i.StatsigClientBase{static instance(e){let t=(0,i._getStatsigGlobal)().instance(e);return t instanceof u?t:(i.Log.warn((0,i._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new u(null!=e?e:"",{}))}initializeSync(e){var t;return"Uninitialized"!==this.loadingStatus?(0,i.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!=(t=this._store.getWarnings())?t:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(e){return r(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(e)),this._initializePromise})}updateUserSync(e,t){let n=performance.now();try{return this._updateUserSyncImpl(e,t,n)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,n)}}_updateUserSyncImpl(e,t,n){var r;let a=[...null!=(r=this._store.getWarnings())?r:[]];this._resetForUser(e);let s=this.dataAdapter.getDataSync(this._user);null==s&&a.push("NoCachedValues"),this._store.setValues(s,this._user),this._finalizeUpdate(s);let o=null==t?void 0:t.disableBackgroundCacheRefresh;return!0===o||null==o&&(null==s?void 0:s.source)==="Bootstrap"||this._runPostUpdate(null!=s?s:null,this._user),(0,i.createUpdateDetails)(!0,this._store.getSource(),performance.now()-n,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),a)}updateUserAsync(e,t){return r(this,void 0,void 0,function*(){let n=performance.now();try{return yield this._updateUserAsyncImpl(e,t)}catch(t){let e=t instanceof Error?t:Error(String(t));return this._createErrorUpdateDetails(e,n)}})}_updateUserAsyncImpl(e,t){return r(this,void 0,void 0,function*(){this._resetForUser(e);let n=this._user;i.Diagnostics._markInitOverallStart(this._sdkKey);let r=this.dataAdapter.getDataSync(n);if(this._store.setValues(r,this._user),this._setStatus("Loading",r),r=yield this.dataAdapter.getDataAsync(r,n,t),n!==this._user)return(0,i.createUpdateDetails)(!1,this._store.getSource(),-1,Error("User changed during update"),this._network.getLastUsedInitUrlAndReset()
3);let a=!1;null!=r&&(i.Diagnostics._markInitProcessStart(this._sdkKey),a=this._store.setValues(r,this._user),i.Diagnostics._markInitProcessEnd(this._sdkKey,{success:a})),this._finalizeUpdate(r),a||(this._errorBoundary.attachErrorIfNoneExists(i.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),i.Diagnostics._markInitOverallEnd(this._sdkKey,a,this._store.getCurrentSourceDetails());let s=i.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,i.createUpdateDetails)(a,this._store.getSource(),s,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){return{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:JSON.parse(JSON.stringify(this._user)),errorBoundary:this._errorBoundary,session:i.StatsigSession.get(this._sdkKey),stableID:i.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,n){let r="string"==typeof e?{eventName:e,value:t,metadata:n}:e;this.$emt({name:"log_event_called",event:r}),this._logger.enqueue(Object.assign(Object.assign({},r),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(e){return r(this,void 0,void 0,function*(){return i.Storage.isReady()||(yield i.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,e)})}_createErrorUpdateDetails(e,t){var n;return(0,i.createUpdateDetails)(!1,this._store.getSource(),performance.now()-t,e,null,[...null!=(n=this._store.getWarnings())?n:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,t){this.dataAdapter.getDataAsync(e,t,{priority:"low"}).catch(e=>{i.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,t){var n,r,a;let s=(0,i._normalizeUser)(e,t),o=null==(n=s.customIDs)?void 0:n.stableID;if(o){let e=null==(a=(r=this.storageProvider).isReadyResolver)?void 0:a.call(r);e?e.then(()=>i.StableID.setOverride(o,this._sdkKey),()=>i.StableID.setOverride(o,this._sdkKey)):i.StableID.setOverride(o,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(s.analyticsOnlyMetadata=Object.assign(Object.assign({},s.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),s}_getFeatureGateImpl(e,t){var n,r;let{result:a,details:s}=this._store.getGate(e),o=(0,i._makeFeatureGate)(e,s,a),l=null==(r=null==(n=this.overrideAdapter)?void 0:n.getGateOverride)?void 0:r.call(n,o,this._user,t),u=null!=l?l:o;return this._enqueueExposure(e,(0,i._createGateExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"gate_evaluation",gate:u}),u}_getDynamicConfigImpl(e,t){var n,r;let{result:a,details:s}=this._store.getConfig(e),o=(0,i._makeDynamicConfig)(e,s,a),l=null==(r=null==(n=this.overrideAdapter)?void 0:n.getDynamicConfigOverride)?void 0:r.call(n,o,this._user,t),u=null!=l?l:o;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,u,this._store.getExposureMapping()),t),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:u}),u}_getExperimentImpl(e,t){var n,r,a,s;let{result:o,details:l}=this._store.getConfig(e),u=(0,i._makeExperiment)(e,l,o);null!=u.__evaluation&&(u.__evaluation.secondary_exposures=(0,i._mapExposures)(null!=(r=null==(n=u.__evaluation)?void 0:n.secondary_exposures)?r:[],this._store.getExposureMapping()));let d=null==(s=null==(a=this.overrideAdapter)?void 0:a.getExperimentOverride)?void 0:s.call(a,u,this._user,t),c=null!=d?d:u;return this._enqueueExposure(e,(0,i._createConfigExposure)(this._user,c,this._store.getExposureMapping()),t),this.$emt({name:"experiment_evaluation",experiment:c}),c}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,t){var n,r,a;let{result:s,details:o}=this._store.getLayer(e),l=(0,i._makeLayer)(e,o,s),u=null==(r=null==(n=this.overrideAdapter)?void 0:n.getLayerOverride)?void 0:r.call(n,l,this._user,t);(null==t?void 0:t.disableExposureLog)&&this._logger.incrementNonExposureCount(e);let d=(0,i._mergeOverride)(l,u,null!=(a=null==u?void 0:u.__value)?a:l.__value,n=>{null!=t&&t.disableExposureLog||this._enqueueExposure(e,(0,i._createLayerParameterExposure)(this._user,d,n,this._store.getExposureMapping()),t)}
3);return this.$emt({name:"layer_evaluation",layer:d}),d}_getParameterStoreImpl(e,t){var n,r;let{result:i,details:a}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);let s={name:e,details:a,__configuration:i,get:(0,o._makeParamStoreGetter)(this,i,t)},l=null==(r=null==(n=this.overrideAdapter)?void 0:n.getParamStoreOverride)?void 0:r.call(n,s,t);return null!=l&&(s.__configuration=l.config,s.details=l.details,s.get=(0,o._makeParamStoreGetter)(this,l.config,t)),s}constructor(e,t,n=null){var r,o;i.SDKType._setClientType(e,"javascript-client");let u=new s.default(n,e=>{this.$emt(e)});for(let s of(super(e,null!=(r=null==n?void 0:n.dataAdapter)?r:new l.StatsigEvaluationsDataAdapter,u,n),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(i.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(i.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(i.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(i.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(i.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(i.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new a.default(e),this._network=u,this._user=this._configureUser(t,n),this._sdkInstanceID=(0,i.getUUID)(),null!=(o=null==n?void 0:n.plugins)?o:[]))s.bind(this)}}t.default=u},28934:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29906:(e,t,n)=>{"use strict";n.d(t,{vt:()=>p,Pj:()=>d});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(r,i,a);return a};var i=n(7620),a=n(84509);let{useDebugValue:s}=i,{useSyncExternalStoreWithSelector:o}=a,l=!1,u=e=>e;function d(e,t=u,n){n&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);let r=o(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}let c=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(e=>e?r(e):r)(e):e,n=(e,n)=>d(t,e,n);return Object.assign(n,t),n},p=e=>e?c(e):c},31072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDKFlags=void 0;let n={};t.SDKFlags={setFlags:(e,t)=>{n[e]=t},get:(e,t)=>{var r,i;return null!=(i=null==(r=n[e])?void 0:r[t])&&i}}},31218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryAsync=void 0;let r=n(7620),i=n(1805);t.useStatsigInternalClientFactoryAsync=function(e,t){let n=(0,r.useMemo)(()=>{var n;return null!=(n=(0,i._getInstance)(t.sdkKey))?n:e(t)},[]),[a,s]=(0,r.useState)("Ready"!==n.loadingStatus);return(0,r.useMemo)(()=>{"Ready"!==n.loadingStatus&&n.initializeAsync().catch(i.Log.error).finally(()=>s(!1))},[]),{client:n,isLoading:a}}},31748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoCaptureEventName=void 0,t.AutoCaptureEventName={PAGE_VIEW:"auto_capture::page_view",PAGE_VIEW_END:"auto_capture::page_view_end",ERROR:"auto_capture::error",SESSION_START:"auto_capture::session_start",PERFORMANCE:"auto_capture::performance",FORM_SUBMIT:"auto_capture::form_submit",CLICK:"auto_capture::click",RAGE_CLICK:"auto_capture::rage_click",WEB_VITALS:"auto_capture::web_vitals",DEAD_CLICK:"auto_capture::dead_click",COPY:"auto_capture::copy",CONSOLE_LOG:"statsig::log_line"}},32806:(e,t,n)=>{"use strict";var r=n(7620),i=n(13100),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=r.useRef,l=r.useEffect,u=r.useMemo,d=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var c=o(null);if(null===c.current){var p={hasValue:!1,value:null};c.current=p}else p=c.current;var f=s(e,(c=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,o=n)}var s,o,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}
3,[t,n,r,i]))[0],c[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),d(f),f}},33564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNoopClient=t.NoopEvaluationsClient=void 0;let r=n(1805),i={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},a=()=>{},s=()=>i,o=()=>Promise.resolve(),l=()=>Promise.resolve(i),u={reason:"Error:NoClient"},d=e=>(...t)=>{let n="string"==typeof t[0]?t[0]:t[1];switch(e){case"gate":return(0,r._makeFeatureGate)(n,u,null);case"config":return(0,r._makeDynamicConfig)(n,u,null);case"layer":return(0,r._makeLayer)(n,u,null);case"param_store":return{name:n}}},c={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:""},stableID:"",storageProvider:r.Storage,sdkInstanceID:""};t.NoopEvaluationsClient={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:s,initializeAsync:l,shutdown:o,flush:o,updateRuntimeOptions:a,updateUserSync:s,updateUserAsync:l,getContext:()=>Object.assign({},c),checkGate:()=>!1,getFeatureGate:d("gate"),getDynamicConfig:d("config"),getExperiment:d("config"),getLayer:d("layer"),getParameterStore:d("param_store"),logEvent:a,on:a,off:a,$on:a,$emt:a,dataAdapter:{attach:a,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:a,setDataLegacy:a,prefetchData:o}},t.isNoopClient=function(e){return"isNoop"in e}},34345:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(70547).A},36792:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMemoKey=t.MemoPrefix=void 0,t.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};let n=new Set([]),r=new Set(["userPersistedValues"]);t.createMemoKey=function(e,t,i){let a=`${e}|${t}`;if(!i)return a;for(let e of Object.keys(i)){if(r.has(e))return;n.has(e)?a+=`|${e}=true`:a+=`|${e}=${i[e]}`}return a}},37291:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t,n){return"function"==typeof e?e(t,n):e}},38444:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEvaluationsDataAdapter=void 0;let i=n(1805),a=n(73623);class s extends i.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,n){super.attach(e,t,n),null!==n&&n instanceof a.default?this._network=n:this._network=new a.default(null!=t?t:{})}getDataAsync(e,t,n){return this._getDataAsyncImpl(e,(0,i._normalizeUser)(t,this._options),n)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){let t=(0,i._typedJsonParse)(e,"has_updates","data");t&&"user"in t?super.setData(e,t.user):i.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(e,t,n,i){return r(this,void 0,void 0,function*(){var r;let a=yield null==(r=this._network)?void 0:r.fetchEvaluations(this._getSdkKey(),e,null==n?void 0:n.priority,t,i);return null!=a?a:null})}_getCacheKey(e){var t;let n=(0,i._getStorageKey)(this._getSdkKey(),e,null==(t=this._options)?void 0:t.customUserCacheKeyFunc);return`${i.DataAdapterCachePrefix}.${this._cacheSuffix}.${n}`}_isCachedResultValidFor204(e,t){return null!=e.fullUserHash&&e.fullUserHash===(0,i._getFullUserHash)(t)}}t.StatsigEvaluationsDataAdapter=s},38778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientAsyncInit=void 0;let r=n(13937),i=n(31218);t.useClientAsyncInit=function(e,t,n=null){return(0,i.useStatsigInternalClientFactoryAsync)(e=>new r.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,statsigOptions:n})}},38852:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){var n;return null!=e&&(t(e)||"function"==typeof(n=e).readFloatLE&&"function"==typeof n.slice&&t(n.slice(0,0))||!!e._isBuffer)}},39018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(61322),i=n(54568);let a=(0,r.A)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},39319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useFetchByBase:()=>s});var r=n(7620),i=n(98949);let a=e=>e===i.kT.EDITOR||e===i.kT.READ_ONLY,s=(e,t)=>
3{let[n,i]=(0,r.useState)(),[s,o]=(0,r.useState)(!a(t)),[l,u]=(0,r.useState)();return((0,r.useEffect)(()=>{(async()=>{if(!a(t)){o(!0),u(void 0);try{let t=await e();i(t)}catch(e){u(e)}finally{o(!1)}}})()},[e,t]),a(t))?{error:void 0,experience:void 0,isLoading:!1,mode:t}:{error:l,experience:n,isLoading:s,mode:t}}},40238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getStorageKey=t._getUserStorageKey=void 0;let r=n(49457);function i(e,t,n){var i;if(n)return n(e,t);let a=t&&t.customIDs?t.customIDs:{},s=[`uid:${null!=(i=null==t?void 0:t.userID)?i:""}`,`cids:${Object.keys(a).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${a[e]}`).join(",")}`,`k:${e}`];return(0,r._DJB2)(s.join("|"))}t._getUserStorageKey=i,t._getStorageKey=function(e,t,n){return t?i(e,t,n):(0,r._DJB2)(`k:${e}`)}},40251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTag=void 0,t.ErrorTag={NetworkError:"NetworkError"}},40667:function(e,t){(function(e){"use strict";let t,n=-1,r=e=>{addEventListener("pageshow",t=>{t.persisted&&(n=t.timeStamp,e(t))},!0)},i=(e,t,n,r)=>{let i,a;return s=>{let o;t.value>=0&&(s||r)&&((a=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=a,o=t.value,t.rating=o>n[1]?"poor":o>n[0]?"needs-improvement":"good",e(t))}},a=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},s=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},o=()=>{let e=s();return e?.activationStart??0},l=(e,t=-1)=>{let r=s(),i="navigate";return n>=0?i="back-forward-cache":r&&(document.prerendering||o()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(0x82f79cd8fff*Math.random())+1e12}`,navigationType:i}},u=new WeakMap;function d(e,t){return u.get(e)||u.set(e,new t),u.get(e)}class c{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}let p=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},f=e=>{let t=!1;return()=>{t||(e(),t=!0)}},h=-1,g=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,m=e=>{"hidden"===document.visibilityState&&h>-1&&(h="visibilitychange"===e.type?e.timeStamp:0,_())},y=()=>{addEventListener("visibilitychange",m,!0),addEventListener("prerenderingchange",m,!0)},_=()=>{removeEventListener("visibilitychange",m,!0),removeEventListener("prerenderingchange",m,!0)},v=()=>{if(h<0){let e=o();h=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??g(),y(),r(()=>{setTimeout(()=>{h=g(),y()})})}return{get firstHiddenTime(){return h}}},b=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},E=[1800,3e3],S=(e,t={})=>{b(()=>{let n=v(),s,u=l("FCP"),d=p("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<n.firstHiddenTime&&(u.value=Math.max(t.startTime-o(),0),u.entries.push(t),s(!0)))});d&&(s=i(e,u,E,t.reportAllChanges),r(n=>{s=i(e,u=l("FCP"),E,t.reportAllChanges),a(()=>{u.value=performance.now()-n.timeStamp,s(!0)})}))})},x=[.1,.25],C=0,k=1/0,I=0,w=e=>{for(let t of e)t.interactionId&&(k=Math.min(k,t.interactionId),C=(I=Math.max(I,t.interactionId))?(I-k)/7+1:0)},T=()=>t?C:performance.interactionCount??0,O=0;class N{u=[];l=new Map;m;p;v(){O=T(),this.u.length=0,this.l.clear()}T(){let e=Math.min(this.u.length-1,Math.floor((T()-O)/50));return this.u[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;let t=this.u.at(-1),n=this.l.get(e.interactionId);if(n||this.u.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort((e,t)=>
3t.P-e.P),this.u.length>10)for(let e of this.u.splice(10))this.l.delete(e.id);this.p?.(n)}}}let L=e=>{let t=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?e():(e=f(e),document.addEventListener("visibilitychange",e,{once:!0}),t(()=>{e(),document.removeEventListener("visibilitychange",e)}))},D=[200,500];class A{m;h(e){this.m?.(e)}}let j=[2500,4e3],M=[800,1800],P=e=>{document.prerendering?b(()=>P(e)):"complete"!==document.readyState?addEventListener("load",()=>P(e),!0):setTimeout(e)};e.CLSThresholds=x,e.FCPThresholds=E,e.INPThresholds=D,e.LCPThresholds=j,e.TTFBThresholds=M,e.onCLS=(e,t={})=>{S(f(()=>{let n,s=l("CLS",0),o=d(t,c),u=e=>{for(let t of e)o.h(t);o.i>s.value&&(s.value=o.i,s.entries=o.o,n())},f=p("layout-shift",u);f&&(n=i(e,s,x,t.reportAllChanges),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(u(f.takeRecords()),n(!0))}),r(()=>{o.i=0,n=i(e,s=l("CLS",0),x,t.reportAllChanges),a(()=>n())}),setTimeout(n))}))},e.onFCP=S,e.onINP=(e,n={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&b(()=>{"interactionCount"in performance||t||(t=p("event",w,{type:"event",buffered:!0,durationThreshold:0}));let a,s=l("INP"),o=d(n,N),u=e=>{L(()=>{for(let t of e)o.h(t);let t=o.T();t&&t.P!==s.value&&(s.value=t.P,s.entries=t.entries,a())})},c=p("event",u,{durationThreshold:n.durationThreshold??40});a=i(e,s,D,n.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(u(c.takeRecords()),a(!0))}),r(()=>{o.v(),a=i(e,s=l("INP"),D,n.reportAllChanges)}))})},e.onLCP=(e,t={})=>{b(()=>{let n=v(),s,u=l("LCP"),c=d(t,A),h=e=>{for(let r of(t.reportAllChanges||(e=e.slice(-1)),e))c.h(r),r.startTime<n.firstHiddenTime&&(u.value=Math.max(r.startTime-o(),0),u.entries=[r],s())},g=p("largest-contentful-paint",h);if(g){s=i(e,u,j,t.reportAllChanges);let n=f(()=>{h(g.takeRecords()),g.disconnect(),s(!0)});for(let e of["keydown","click","visibilitychange"])addEventListener(e,()=>L(n),{capture:!0,once:!0});r(n=>{s=i(e,u=l("LCP"),j,t.reportAllChanges),a(()=>{u.value=performance.now()-n.timeStamp,s(!0)})})}})},e.onTTFB=(e,t={})=>{let n=l("TTFB"),a=i(e,n,M,t.reportAllChanges);P(()=>{let u=s();u&&(n.value=Math.max(u.responseStart-o(),0),n.entries=[u],a(!0),r(()=>{(a=i(e,n=l("TTFB",0),M,t.reportAllChanges))(!0)}))})}})(t)},41997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getFullUserHash=t._normalizeUser=void 0;let r=n(49457),i=n(967);t._normalizeUser=function(e,t,n){try{let r=JSON.parse(JSON.stringify(e));return null!=t&&null!=t.environment?r.statsigEnvironment=t.environment:null!=n&&(r.statsigEnvironment={tier:n}),r}catch(e){return i.Log.error("Failed to JSON.stringify user"),{statsigEnvironment:void 0}}},t._getFullUserHash=function(e){return e?(0,r._DJB2Object)(e):null}},42066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._isTypeMatch=t._typeOf=void 0,t._typeOf=function(e){return Array.isArray(e)?"array":typeof e},t._isTypeMatch=function(e,t){let n=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return n(e)===n(t)}},49375:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){return"string"==typeof e}},49457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;let r=n(46989);t._DJB2=e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return String(t>>>0)},t._DJB2Object=(e,n)=>(0,t._DJB2)(JSON.stringify((0,t._getSortedObject)(e,n))),t._getSortedObject=(e,n)=>{if(null==e)return null;let i=Object.keys(e).sort(),a={};return i.forEach(i=>{let s=e[i];if(0===n||"object"!==(0,r._typeOf)(s)){a[i]=s;return}a[i]=(0,t._getSortedObject)(s,null!=n?n-1:n)}),a}},50124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadClickConfig=void 0;let r=n(1805),i=n(31748),a=n(97379),s=n(20814),o=n(13303);t.DeadClickConfig={CLICK_CHECK_TIMEOUT:1e3,SCROLL_DELAY_MS:100,SELECTION_CHANGE_DELAY_MS:100,MUTATION_DELAY_MS:2500,ABSOLUTE_DEAD_CLICK_TIMEOUT:2750};class l{constructor(e,n){this._enqueueFn=e,this._errorBoundary=n,this._lastMutationTime=0,this._lastSelectionChangeTime=0,this._clicks=[],this._deadClickConfig=t.DeadClickConfig,this._handleScroll=(0,a.throttle)(()=>{let e=Date.now();this._clicks.forEach(t=>{t.scrollDelayMs||(t.scrollDelayMs=e-t.timestamp)})},50)}startTracking(){try{let e=(0,r._getWindowSafe)();if(!e)return;e.addEventListener("click",e=>this._handleClick(e),{capture:!0}),e.addEventListener("scroll",()=>this._handleScroll(),{capture:!0,passive:!0}),e.addEventListener("selectionchange",()=>this._handleSelectionChange()),this._setupMutationObserver()}catch(e){r.Log.error("Error starting dead click tracking",e),this._errorBoundary.logError("autoCapture:DeadClickManager",e)}}_handleClick(e){var t,n;let i=e.target;if(!i)return;let s={timestamp:Date.now(),eventTarget:i};a.interactiveElements.includes(null==(t=null==i?void 0:i.tagName)?void 0:t.toLowerCase())||this._clicks.push(s),this._clicks.length&&!this._clickCheckTimer&&(this._clickCheckTimer=null==(n=(0,r._getWindowSafe)())?void 0:n.setTimeout(()=>{this._checkForDeadClick()},this._deadClickConfig.CLICK_CHECK_TIMEOUT))}_handleSelectionChange(){this._lastSelectionChangeTime=Date.now()}_setupMutationObserver(){let e=(0,r._getDocumentSafe)();e&&(this._observer=new MutationObserver(()=>{this._lastMutationTime=Date.now()}),this._observer.observe(e.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}
3))}_checkForDeadClick(){var e;if(!this._clicks.length)return;clearTimeout(this._clickCheckTimer),this._clickCheckTimer=void 0;let t=this._clicks;for(let e of(this._clicks=[],t)){this._updateClickDelayMs(e);let t=null!=e.scrollDelayMs&&e.scrollDelayMs<this._deadClickConfig.SCROLL_DELAY_MS,n=null!=e.selectionChangeDelayMs&&e.selectionChangeDelayMs<this._deadClickConfig.SELECTION_CHANGE_DELAY_MS,r=null!=e.mutationDelayMs&&e.mutationDelayMs<this._deadClickConfig.MUTATION_DELAY_MS;if(t||n||r)continue;let i=null!=e.scrollDelayMs&&e.scrollDelayMs>this._deadClickConfig.SCROLL_DELAY_MS,a=null!=e.selectionChangeDelayMs&&e.selectionChangeDelayMs>this._deadClickConfig.SELECTION_CHANGE_DELAY_MS,s=null!=e.mutationDelayMs&&e.mutationDelayMs>this._deadClickConfig.MUTATION_DELAY_MS,o=null!=e.absoluteDelayMs&&e.absoluteDelayMs>this._deadClickConfig.ABSOLUTE_DEAD_CLICK_TIMEOUT;i||a||s||o?this._logDeadClick(e,{scrollTimeout:i,selectionChangeTimeout:a,mutationTimeout:s,absoluteTimeout:o}):null!=e.absoluteDelayMs&&e.absoluteDelayMs<this._deadClickConfig.ABSOLUTE_DEAD_CLICK_TIMEOUT&&this._clicks.push(e)}this._clicks.length&&!this._clickCheckTimer&&(this._clickCheckTimer=null==(e=(0,r._getWindowSafe)())?void 0:e.setTimeout(()=>{this._checkForDeadClick()},this._deadClickConfig.CLICK_CHECK_TIMEOUT))}_logDeadClick(e,t){let{value:n,metadata:r}=(0,s._gatherEventData)(e.eventTarget);n&&this._enqueueFn(i.AutoCaptureEventName.DEAD_CLICK,n,Object.assign(Object.assign(Object.assign(Object.assign({},r),t),(0,o._gatherCommonMetadata)((0,a._getSafeUrl)())),{scrollDelayMs:e.scrollDelayMs,selectionChangeDelayMs:e.selectionChangeDelayMs,mutationDelayMs:e.mutationDelayMs,absoluteDelayMs:e.absoluteDelayMs}))}_updateClickDelayMs(e){!e.mutationDelayMs&&this._lastMutationTime>0&&e.timestamp<=this._lastMutationTime&&(e.mutationDelayMs=Date.now()-this._lastMutationTime),!e.selectionChangeDelayMs&&this._lastSelectionChangeTime>0&&e.timestamp<=this._lastSelectionChangeTime&&(e.selectionChangeDelayMs=Date.now()-this._lastSelectionChangeTime),e.absoluteDelayMs=Date.now()-e.timestamp}}t.default=l},56403:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(7620),i=n(32987),a=n(83957),s=n(95962),o=n(22017),l=n(39968),u=n(13883),d=n(1037),c=n(13845),p=n(23089),f=n(20166),h=n(56866),g=n(14107),m=n(57792);function y(e){return(0,m.Ay)("MuiCollapse",e)}(0,g.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var _=n(54568);let v=(0,l.default)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((0,d.A)(e=>{let{theme:t}=e;return{height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"exited"===t.state&&!t.in&&"0px"===t.collapsedSize},style:{visibility:"hidden"}}]}})),b=(0,l.default)("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),E=(0,l.default)("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),S=r.forwardRef(function(e,t){let n=(0,c.b)({props:e,name:"MuiCollapse"}),{addEndListener:l,children:d,className:g,collapsedSize:m="0px",component:S,easing:x,in:C,onEnter:k,onEntered:I,onEntering:w,onExit:T,onExited:O,onExiting:N,orientation:L="vertical",style:D,timeout:A=p.p0.standard,TransitionComponent:j=a.Ay,...M}=n,P={...n,orientation:L,collapsedSize:m},z=(e=>{let{orientation:t,classes:n}=e;return(0,o.A)({root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]},y,n)})(P),R=(0,u.default)(),B=(0,s.A)(),V=r.useRef(null),U=r.useRef(),K="number"==typeof m?"".concat(m,"px"):m,F="horizontal"===L,$=F?"width":"height",Z=r.useRef(null),H=(0,h.A)(t,Z),W=e=>t=>{if(e){let n=Z.current;void 0===t?e(n):e(n,t)}},G=()=>V.current?V.current[F?"clientWidth":"clientHeight"]:0,q=W((e,t)=>{V.current&&F&&(V.current.style.position="absolute"),e.style[$]=K,k&&k(e,t)}),Y=W((e,t)=>{let n=G();V.current&&F&&(V.current.style.position="");let{duration:r,easing:i}=(0,f.c)({style:D,timeout:A,easing:x},{mode:"enter"});if("auto"===A){let t=R.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(t,"ms"),U.current=t}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style[$]="".concat(n,"px"),e.style.transitionTimingFunction=i,w&&w(e,t)}),J=W((e,t)=>{e.style[$]="auto",I&&I(e,t)}),Q=W(e=>{e.style[$]="".concat(G(),"px"),T&&T(e)}),X=W(O),ee=W(e=>{let t=G(),{duration:n,easing:r}=(0,f.c)({style:D,timeout:A,easing:x},{mode:"exit"});if("auto"===A){let n=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),U.current=n}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style[$]=K,e.style.transitionTimingFunction=r,N&&N(e)});return(0,_.jsx)(j,{in:C,onEnter:q,onEntered:J,onEntering:Y,onExit:Q,onExited:X,onExiting:ee,addEndListener:e=>{"auto"===A&&B.start(U.current||0,e),l&&l(Z.current,e)},nodeRef:Z,timeout:"auto"===A?null:A,...M,children:(e,t)=>{let{ownerState:n,...r}=t;return(0,_.jsx)(v,{as:S,className:(0,i.A)(z.root,g,{entered:z.entered,exited:!C&&"0px"===K&&z.hidden}[e]),style:{[F?"minWidth":"minHeight"]:K,...D},ref:H,ownerState:{...P,state:e},...r,children:(0,_.jsx)(b,{ownerState:{...P,state:e},className:z.wrapper,ref:V,children:(0,_.jsx)(E,{ownerState:{...P,state:e},className:z.wrapperInner,children:d})})})}})});
3S&&(S.muiSupportAuto=!0);let x=S},56513:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataAdapterCachePrefix=void 0,t.DataAdapterCachePrefix="statsig.cached"},59320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.default=function(e,t){let{client:n,renderVersion:o}=(0,r.useContext)(s.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${e}'.`),a.NoopEvaluationsClient.getFeatureGate(e,t)):n.getFeatureGate(e,t),[e,n,o,...t?Object.values(t):[]])}},59807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V1InitializeContainer=void 0;let r=n(1805);class i{constructor(e){this._values=e}getGate(e){return this._getResultFromLookup(this._values.feature_gates,e)}getConfig(e){return this._getResultFromLookup(this._values.dynamic_configs,e)}getLayer(e){return this._getResultFromLookup(this._values.layer_configs,e)}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var n,i;return e&&null!=(i=null!=(n=e[t])?n:e[(0,r._DJB2)(t)])?i:null}}t.V1InitializeContainer=i},60457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigClient=void 0;let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.useStatsigClient=function(){let{client:e,renderVersion:t,isLoading:n}=(0,r.useContext)(s.default),o=(0,r.useMemo)(()=>(0,a.isNoopClient)(e)?(i.Log.warn("Attempting to retrieve a StatsigClient but none was set."),a.NoopEvaluationsClient):e,[e,t]),l=[o,t],u=(0,r.useCallback)((e,t)=>o.checkGate(e,t),l),d=(0,r.useCallback)((e,t)=>o.getFeatureGate(e,t),l),c=(0,r.useCallback)((e,t)=>o.getDynamicConfig(e,t),l),p=(0,r.useCallback)((e,t)=>o.getExperiment(e,t),l),f=(0,r.useCallback)((e,t)=>o.getLayer(e,t),l),h=(0,r.useCallback)((e,t)=>o.getParameterStore(e,t),l),g=(0,r.useCallback)((e,t,n)=>"string"==typeof e?o.logEvent(e,t,n):o.logEvent(e),l);return(0,r.useMemo)(()=>({client:o,checkGate:u,getFeatureGate:d,getDynamicConfig:c,getExperiment:p,getLayer:f,getParameterStore:h,logEvent:g,isLoading:n}),[o,u,d,c,p,f,h,g,n])}},60465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Diagnostics=void 0;let n=new Map,r="start";function i(e,t,n,r){return Object.assign({key:n,action:t,step:r,timestamp:Date.now()},e)}function a(e,t){var r;let i=null!=(r=n.get(e))?r:[];i.push(t),n.set(e,i)}function s(e,t){if(t in e)return e[t]}t.Diagnostics={_getMarkers:e=>n.get(e),_markInitOverallStart:e=>{a(e,i({},r,"overall"))},_markInitOverallEnd:(e,t,n)=>{a(e,i({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},"end","overall"))},_markInitNetworkReqStart:(e,t)=>{a(e,i(t,r,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{a(e,i(t,"end","initialize","network_request"))},_markInitProcessStart:e=>{a(e,i({},r,"initialize","process"))},_markInitProcessEnd:(e,t)=>{a(e,i(t,"end","initialize","process"))},_clearMarkers:e=>{n.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:s(e,"code"),name:s(e,"name"),message:s(e,"message")}},_getDiagnosticsData(e,n,r,i){var a;return{success:(null==e?void 0:e.ok)===!0,statusCode:null==e?void 0:e.status,sdkRegion:null==(a=null==e?void 0:e.headers)?void 0:a.get("x-statsig-region"),isDelta:!0===r.includes('"is_delta":true')||void 0,attempt:n,error:t.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(e,n,r,i){let a=t.Diagnostics._getMarkers(r);if(null==a||a.length<=0)return -1;let s=a[a.length-1].timestamp-a[0].timestamp;t.Diagnostics._clearMarkers(r);let o={eventName:"statsig::diagnostics",user:e,value:null,metadata:{context:"initialize",markers:a.slice(),statsigOptions:i},time:Date.now()};return n.enqueue(o),s}}},60646:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(7620),i=n(32987),a=n(22017),s=n(5950),o=n(77127),l=n(39968),u=n(1037),d=n(5258),c=n(13845),p=n(70253),f=n(61399),h=n(46296),g=n(14107),m=n(57792);function y(e){return(0,m.Ay)("MuiIconButton",e)}let _=(0,g.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var v=n(54568);let b=(0,l.default)(p.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t["color".concat((0,h.A)(n.color))],n.edge&&t["edge".concat((0,h.A)(n.edge))],t["size".concat((0,h.A)(n.size))]]}})((0,u.A)(e=>{let{theme:t}=e;return{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}}),(0,u.A)(e=>{let{theme:t}=e;return{variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[n]=e;return{props:{color:n},style:{color:(t.vars||t).palette[n].main}}}),...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[n]=e;return{props:{color:n},style:{"--IconButton-hoverBg":t.vars?"rgba(".concat((t.vars||t).palette[n].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.X4)((t.vars||t).palette[n].main,t.palette.action.hoverOpacity)}}}),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],["&.".concat(_.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},["&.".concat(_.loading)]:{color:"transparent"}}})),E=(0,l.default)("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(e=>{let{theme:t}=e;return{display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}}),S=r.forwardRef(function(e,t){let n=(0,c.b)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:s,className:l,color:u="default",disabled:d=!1,disableFocusRipple:p=!1,size:g="medium",id:m,loading:_=null,loadingIndicator:S,...x}=n,C=(0,o.A)(m),k=null!=S?S:(0,v.jsx)(f.A,{"aria-labelledby":C,color:"inherit",size:16}),I={...n,edge:r,color:u,disabled:d,disableFocusRipple:p,loading:_,loadingIndicator:k,size:g},w=(e=>{let{classes:t,disabled:n,color:r,edge:i,size:s,loading:o}=e,l={root:["root",o&&"loading",n&&"disabled","default"!==r&&"color".concat((0,h.A)(r)),i&&"edge".concat((0,h.A)(i)),"size".concat((0,h.A)(s))],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,a.A)(l,y,t)}
3)(I);return(0,v.jsxs)(b,{id:_?C:m,className:(0,i.A)(w.root,l),centerRipple:!0,focusRipple:!p,disabled:d||_,ref:t,...x,ownerState:I,children:["boolean"==typeof _&&(0,v.jsx)("span",{className:w.loadingWrapper,style:{display:"contents"},children:(0,v.jsx)(E,{className:w.loadingIndicator,ownerState:I,children:_&&k})}),s]})})},61322:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(7620),i=n(32987),a=n(22017),s=n(46296),o=n(39968),l=n(1037),u=n(13845),d=n(14107),c=n(57792);function p(e){return(0,c.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(54568);let h=(0,o.default)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,s.A)(n.color))],t["fontSize".concat((0,s.A)(n.fontSize))]]}})((0,l.A)(e=>{var t,n,r,i,a,s,o,l,u,d,c,p,f,h,g,m,y,_;let{theme:v}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null==(i=v.transitions)||null==(r=i.create)?void 0:r.call(i,"fill",{duration:null==(n=(null!=(g=v.vars)?g:v).transitions)||null==(t=n.duration)?void 0:t.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null==(s=v.typography)||null==(a=s.pxToRem)?void 0:a.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null==(l=v.typography)||null==(o=l.pxToRem)?void 0:o.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null==(d=v.typography)||null==(u=d.pxToRem)?void 0:u.call(d,35))||"2.1875rem"}},...Object.entries((null!=(m=v.vars)?m:v).palette).filter(e=>{let[,t]=e;return t&&t.main}).map(e=>{var t,n,r;let[i]=e;return{props:{color:i},style:{color:null==(n=(null!=(r=v.vars)?r:v).palette)||null==(t=n[i])?void 0:t.main}}}),{props:{color:"action"},style:{color:null==(p=(null!=(y=v.vars)?y:v).palette)||null==(c=p.action)?void 0:c.active}},{props:{color:"disabled"},style:{color:null==(h=(null!=(_=v.vars)?_:v).palette)||null==(f=h.action)?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),g=r.forwardRef(function(e,t){let n=(0,u.b)({props:e,name:"MuiSvgIcon"}),{children:o,className:l,color:d="inherit",component:c="svg",fontSize:g="medium",htmlColor:m,inheritViewBox:y=!1,titleAccess:_,viewBox:v="0 0 24 24",...b}
3=n,E=r.isValidElement(o)&&"svg"===o.type,S={...n,color:d,component:c,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:E},x={};y||(x.viewBox=v);let C=(e=>{let{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,s.A)(t)),"fontSize".concat((0,s.A)(n))]};return(0,a.A)(i,p,r)})(S);return(0,f.jsxs)(h,{as:c,className:(0,i.A)(C.root,l),focusable:"false",color:m,"aria-hidden":!_||void 0,role:_?"img":void 0,ref:t,...x,...b,...E&&o.props,ownerState:S,children:[E?o.props.children:o,_?(0,f.jsx)("title",{children:_}):null]})});function m(e,t){function n(t,n){return(0,f.jsx)(g,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=g.muiName,r.memo(r.forwardRef(n))}g.muiName="SvgIcon"},61450:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(61322),i=n(54568);let a=(0,r.A)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},62942:(e,t,n)=>{"use strict";var r=n(42418);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}}),n.o(r,"useServerInsertedHTML")&&n.d(t,{useServerInsertedHTML:function(){return r.useServerInsertedHTML}})},63820:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.default=function(e,t){let{client:n,renderVersion:o}=(0,r.useContext)(s.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${e}'.`),a.NoopEvaluationsClient.getLayer(e,t)):n.getLayer(e,t),[e,n,o,...t?Object.values(t):[]])}},65004:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}},65173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EngagementManager=void 0;let r=n(1805);class i{constructor(){this._lastScrollY=0,this._maxScrollY=0,this._lastScrollPercentage=0,this._maxScrollPercentage=0,this._lastPageViewTime=Date.now(),this._inactiveTimer=null,this._onInactivityCallback=null,this._meaningfulEngagementOccurred=!1,this._initializeScrollTracking()}_initializeScrollTracking(){let e=(0,r._getWindowSafe)();e&&(e.addEventListener("scroll",()=>this._handleScroll()),e.addEventListener("scrollend",()=>this._handleScroll()),e.addEventListener("resize",()=>this._handleScroll()))}_handleScroll(){let e=(0,r._getWindowSafe)(),t=(0,r._getDocumentSafe)();if(!e||!t)return;let n=t.body.scrollHeight,i=e.scrollY||t.documentElement.scrollTop||0,a=e.innerHeight;this._lastScrollY=i,this._maxScrollY=Math.max(this._maxScrollY,i);let s=Math.min(100,Math.round((i+a)/n*100));this._lastScrollPercentage=s,this._maxScrollPercentage=Math.max(this._maxScrollPercentage,s),this.bumpInactiveTimer()}getScrollMetrics(){return{lastScrollY:this._lastScrollY,maxScrollY:this._maxScrollY,lastScrollPercentage:this._lastScrollPercentage,maxScrollPercentage:this._maxScrollPercentage,scrollDepth:this._maxScrollPercentage}}getPageViewLength(){return Date.now()-this._lastPageViewTime}setLastPageViewTime(e){this._lastPageViewTime=e}startInactivityTracking(e){this._onInactivityCallback=e}bumpInactiveTimer(){let e=(0,r._getWindowSafe)();e&&(this._inactiveTimer&&clearTimeout(this._inactiveTimer),this._inactiveTimer=e.setTimeout(()=>{this._onInactivityCallback&&this._onInactivityCallback()},6e5))}setMeaningfulEngagementOccurred(e){this._meaningfulEngagementOccurred=e}getPageViewEndMetadata(){let e=Object.assign(Object.assign({},this.getScrollMetrics()),{pageViewLength:this.getPageViewLength(),meaningfulEngagementOccurred:this._meaningfulEngagementOccurred});return this.setMeaningfulEngagementOccurred(!1),e}}t.EngagementManager=i},66467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigMetadataProvider=t.SDK_VERSION=void 0,t.SDK_VERSION="3.30.0";let n={sdkVersion:t.SDK_VERSION,sdkType:"js-mono"};t.StatsigMetadataProvider={get:()=>n,add:e=>{n=Object.assign(Object.assign({},n),e)}}},68544:(e,t,n)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSession=t.SessionID=void 0;let r=n(23382),i=n(40238),a=n(967),s=n(20317),o=n(10936),l={};function u(e,t){return setTimeout(()=>{var t;let n=null==(t=(0,r._getStatsigGlobal)())?void 0:t.instance(e);n&&n.$emt({name:"session_expired"})},t)}function d(e){return`statsig.session_id.${(0,i._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){let t=d(e);return(0,s._getObjectFromStorage)(t)}(e),n=Date.now();return t||(t={sessionID:(0,o.getUUID)(),startTime:n,lastUpdate:n}),{data:t,sdkKey:e}}(e)),function(e){let t=Date.now(),n=e.data,r=e.sdkKey;if(function({lastUpdate:e}){return Date.now()-e>18e5}(n)||function({startTime:e}){return Date.now()-e>144e5}(n)){n.sessionID=(0,o.getUUID)(),n.startTime=t;let e=null==__STATSIG__?void 0:__STATSIG__.instance(r);e&&e.$emt({name:"session_expired"})}n.lastUpdate=t,function(e,t){let n=d(t);try{(0,s._setObjectInStorage)(n,e)}catch(e){a.Log.warn("Failed to save SessionID")}}(n,e.sdkKey),clearTimeout(e.idleTimeoutID),clearTimeout(e.ageTimeoutID);let i=t-n.startTime;return e.idleTimeoutID=u(r,18e5),e.ageTimeoutID=u(r,144e5-i),e}(l[e])),overrideInitialSessionID:(e,t)=>{l[t]=function(e,t){let n=Date.now();return{data:{sessionID:e,startTime:n,lastUpdate:n},sdkKey:t}}(e,t)}}},69708:(e,t,n)=>{"use strict";var r,i,a=n(7620),s=n(4963),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var l=((r={})[s.BLOCKS.DOCUMENT]=function(e,t){return t},r[s.BLOCKS.PARAGRAPH]=function(e,t){return a.createElement("p",null,t)},r[s.BLOCKS.HEADING_1]=function(e,t){return a.createElement("h1",null,t)},r[s.BLOCKS.HEADING_2]=function(e,t){return a.createElement("h2",null,t)},r[s.BLOCKS.HEADING_3]=function(e,t){return a.createElement("h3",null,t)},r[s.BLOCKS.HEADING_4]=function(e,t){return a.createElement("h4",null,t)},r[s.BLOCKS.HEADING_5]=function(e,t){return a.createElement("h5",null,t)},r[s.BLOCKS.HEADING_6]=function(e,t){return a.createElement("h6",null,t)},r[s.BLOCKS.EMBEDDED_ENTRY]=function(e,t){return a.createElement("div",null,t)},r[s.BLOCKS.EMBEDDED_RESOURCE]=function(e,t){return a.createElement("div",null,t)},r[s.BLOCKS.UL_LIST]=function(e,t){return a.createElement("ul",null,t)},r[s.BLOCKS.OL_LIST]=function(e,t){return a.createElement("ol",null,t)},r[s.BLOCKS.LIST_ITEM]=function(e,t){return a.createElement("li",null,t)},r[s.BLOCKS.QUOTE]=function(e,t){return a.createElement("blockquote",null,t)},r[s.BLOCKS.HR]=function(){return a.createElement("hr",null)},r[s.BLOCKS.TABLE]=function(e,t){return a.createElement("table",null,a.createElement("tbody",null,t))},r[s.BLOCKS.TABLE_ROW]=function(e,t){return a.createElement("tr",null,t)},r[s.BLOCKS.TABLE_HEADER_CELL]=function(e,t){return a.createElement("th",
3null,t)},r[s.BLOCKS.TABLE_CELL]=function(e,t){return a.createElement("td",null,t)},r[s.INLINES.ASSET_HYPERLINK]=function(e){return d(s.INLINES.ASSET_HYPERLINK,e)},r[s.INLINES.ENTRY_HYPERLINK]=function(e){return d(s.INLINES.ENTRY_HYPERLINK,e)},r[s.INLINES.RESOURCE_HYPERLINK]=function(e){return c(s.INLINES.RESOURCE_HYPERLINK,e)},r[s.INLINES.EMBEDDED_ENTRY]=function(e){return d(s.INLINES.EMBEDDED_ENTRY,e)},r[s.INLINES.EMBEDDED_RESOURCE]=function(e,t){return c(s.INLINES.EMBEDDED_RESOURCE,e)},r[s.INLINES.HYPERLINK]=function(e,t){return a.createElement("a",{href:e.data.uri},t)},r),u=((i={})[s.MARKS.BOLD]=function(e){return a.createElement("b",null,e)},i[s.MARKS.ITALIC]=function(e){return a.createElement("i",null,e)},i[s.MARKS.UNDERLINE]=function(e){return a.createElement("u",null,e)},i[s.MARKS.CODE]=function(e){return a.createElement("code",null,e)},i[s.MARKS.SUPERSCRIPT]=function(e){return a.createElement("sup",null,e)},i[s.MARKS.SUBSCRIPT]=function(e){return a.createElement("sub",null,e)},i[s.MARKS.STRIKETHROUGH]=function(e){return a.createElement("s",null,e)},i);function d(e,t){return a.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function c(e,t){return a.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}t.i=function(e,t){return(void 0===t&&(t={}),e)?function e(t,n){var r=n.renderNode,i=n.renderMark,o=n.renderText,l=n.preserveWhitespace;if(s.helpers.isText(t)){var u=o?o(t.value):t.value;if(l&&!o){var d=(u=u.replace(/ {2,}/g,function(e){return"\xa0".repeat(e.length)})).split("\n"),c=[];d.forEach(function(e,t){c.push(e),t!==d.length-1&&c.push(a.createElement("br",null))}),u=c}return t.marks.reduce(function(e,t){return i[t.type]?i[t.type](e):e},u)}var p,f=(p=t.content,p.map(function(t,r){var i;return i=e(t,n),a.isValidElement(i)&&null===i.key?a.cloneElement(i,{key:r}):i}));return t.nodeType&&r[t.nodeType]?r[t.nodeType](t,f):a.createElement(a.Fragment,null,f)}(e,{renderNode:o(o({},l),t.renderNode),renderMark:o(o({},u),t.renderMark),renderText:t.renderText,preserveWhitespace:t.preserveWhitespace}):null}},7e4:(e,t,n)=>{"use strict";n.d(t,{default:()=>O});var r=n(7620),i=n(32987),a=n(70547),s=n(57792),o=n(22017),l=n(5431),u=n(90355),d=n(38921),c=n(39793),p=n(67853);let f=(e,t,n)=>{let r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){let i,a;(Object.keys(t).length>e.keys.length?e.keys:(i=e.keys,a=Object.keys(t),i.filter(e=>a.includes(e)))).forEach(i=>{if(e.keys.includes(i)){let a=t[i];void 0!==a&&n((t,n)=>{r===i?Object.assign(t,n):t[e.up(i)]=n},a)}})}else("number"==typeof t||"string"==typeof t)&&n((e,t)=>{Object.assign(e,t)},t)};function h(e){return`--Grid-${e}Spacing`}function g(e){return`--Grid-parent-${e}Spacing`}let m="--Grid-columns",y="--Grid-parent-columns",_=({theme:e,ownerState:t})=>{let n={};return f(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${y}) - (var(${y}) - ${t}) * (var(${g("column")}) / var(${y})))`}),e(n,r)}),n},v=({theme:e,ownerState:t})=>{let n={};return f(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${y}) + var(${g("column")}) * ${t} / var(${y}))`}),e(n,r)}),n},b=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[m]:12};return f(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[m]:r,"> *":{[y]:r}})}),n},E=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return f(e.breakpoints,t.rowSpacing,(t,r)=>{let i="string"==typeof r?r:e.spacing?.(r);t(n,{[h("row")]:i,"> *":{[g("row")]:i}})}),n},S=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return f(e.breakpoints,t.columnSpacing,(t,r)=>{let i="string"==typeof r?r:e.spacing?.(r);t(n,{[h("column")]:i,"> *":{[g("column")]:i}})}),n},x=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return f(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},C=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${h("row")}) var(${h("column")})`}});var k=n(54568);let I=(0,p.A)(),w=(0,l.A)("div",{name:"MuiGrid",slot:"Root"});function T(e){return(0,u.default)({props:e,name:"MuiGrid",defaultTheme:I})}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{createStyledComponent:t=w,useThemeProps:n=T,useTheme:l=d.default,componentName:u="MuiGrid"}=e;function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0,r={};return null===e||(Array.isArray(e)?e.forEach((e,i)=>{null!==e&&n(e)&&t.keys[i]&&(r[t.keys[i]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{let i=e[t];null!=i&&n(i)&&(r[t]=i)}):r[t.keys[0]]=e),r}let f=t(b,S,E,_,x,C,v),h=r.forwardRef(function(e,t){let d=l(),h=n(e),g=(0,c.A)(h);var m,y,_,v,b,E,S=d.breakpoints;let x=[];void 0!==g.item&&(delete g.item,x.push("item")),void 0!==g.zeroMinWidth&&(delete g.zeroMinWidth,x.push("zeroMinWidth")),S.keys.forEach(e
3=>{void 0!==g[e]&&(x.push(e),delete g[e])});let{className:C,children:I,columns:w=12,container:T=!1,component:O="div",direction:N="row",wrap:L="wrap",size:D={},offset:A={},spacing:j=0,rowSpacing:M=j,columnSpacing:P=j,unstable_level:z=0,...R}=g,B=p(D,d.breakpoints,e=>!1!==e),V=p(A,d.breakpoints),U=null!=(m=e.columns)?m:z?void 0:w,K=null!=(y=e.spacing)?y:z?void 0:j,F=null!=(v=null!=(_=e.rowSpacing)?_:e.spacing)?v:z?void 0:M,$=null!=(E=null!=(b=e.columnSpacing)?b:e.spacing)?E:z?void 0:P,Z={...g,level:z,columns:U,container:T,direction:N,wrap:L,spacing:K,rowSpacing:F,columnSpacing:$,size:B,offset:V},H=((e,t)=>{let{container:n,direction:r,spacing:i,wrap:a,size:l}=e,d={root:["root",n&&"container","wrap"!==a&&"wrap-xs-".concat(String(a)),...void 0===r?[]:"object"==typeof r?Object.entries(r).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(r)}`],...(e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t})(l),...n?((e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]})(i,t.breakpoints.keys[0]):[]]};return(0,o.A)(d,e=>(0,s.Ay)(u,e),{})})(Z,d);return(0,k.jsx)(f,{ref:t,as:O,ownerState:Z,className:(0,i.A)(H.root,C),...R,children:r.Children.map(I,e=>{if(r.isValidElement(e)&&(0,a.A)(e,["Grid"])&&T&&e.props.container){var t,n;return r.cloneElement(e,{unstable_level:null!=(n=null==(t=e.props)?void 0:t.unstable_level)?n:z+1})}return e})})});return h.muiName="Grid",h}},70547:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7620);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}},70646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(33564);t.default=(0,r.createContext)({renderVersion:0,client:i.NoopEvaluationsClient,isLoading:!0})},71053:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=t.EXCEPTION_ENDPOINT=void 0;let i=n(967),a=n(21829),s=n(66467);t.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";let o="[Statsig] UnknownError";class l{constructor(e,t,n,r){this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=r,this._seen=new Set}wrap(e,t){try{(function(e){let t=new Set,n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).filter(e=>"function"==typeof(null==n?void 0:n[e])).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)})(e).forEach(n=>{let r=e[n];"$EB"in r||(e[n]=(...i)=>this._capture(t?`${t}:${n}`:n,()=>r.apply(e,i)),e[n].$EB=!0)})}catch(e){this._onError("eb:wrap",e)}}logError(e,t){this._onError(e,t)}getLastSeenErrorAndReset(){let e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=u(e))}_capture(e,t){try{let n=t();if(n&&n instanceof Promise)return n.catch(t=>this._onError(e,t));return n}catch(t){return this._onError(e,t),null}}_onError(e,n){try{i.Log.warn(`Caught error in ${e}`,{error:n}),r(this,void 0,void 0,function*(){var r,i,l,d,c,p,f;let h=n||Error(o),g=h instanceof Error,m=g?h.name:"No Name",y=u(h);if(this._lastSeenError=y,this._seen.has(m))return;if(this._seen.add(m),null==(i=null==(r=this._options)?void 0:r.networkConfig)?void 0:i.preventAllNetworkTraffic){null==(l=this._emitter)||l.call(this,{name:"error",error:n,tag:e});return}let _=a.SDKType._get(this._sdkKey),v=s.StatsigMetadataProvider.get(),b=g?h.stack:function(e){try{return JSON.stringify(e)}catch(e){return o}}(h),E=Object.assign({tag:e,exception:m,info:b,statsigOptions:function(e){if(!e)return{};let t={};return Object.keys(e).forEach(n=>{let r=e[n];switch(typeof r){case"number":case"bigint":case"boolean":t[String(n)]=r;break;case"string":r.length<50?t[String(n)]=r:t[String(n)]="set";break;case"object":"environment"===n?t.environment=r:"networkConfig"===n?t.networkConfig=r:t[String(n)]=null!=r?"set":"unset"}}),t}(this._options)},Object.assign(Object.assign({},v),{sdkType:_})),S=null!=(p=null==(c=null==(d=this._options)?void 0:d.networkConfig)?void 0:c.networkOverrideFunc)?p:fetch;yield S(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(_),"STATSIG-SDK-VERSION":String(v.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(E)}),null==(f=this._emitter)||f.call(this,{name:"error",error:n,tag:e})}).then(()=>{}).catch(()=>{})}catch(e){}}}function u(e){return e instanceof Error?e:"string"==typeof e?Error(e):Error("An unknown error occurred.")}t.ErrorBoundary=l},71670:(e,t,n)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigProvider=void 0;let r=n(54568),i=n(7620),a=n(1805),s=n(70646),o=n(38778);function l(e){let[t,n]=(0,i.useState)(0),a=(0,o.useClientAsyncInit)(e.sdkKey,e.user,e.options).client,[l,u]=(0,i.useState)(!c(a));d(a,n,u);let p=(0,i.useMemo)(()=>({renderVersion:t,client:a,isLoading:l}),[t,a,l]);return(0,r.jsx)(s.default.Provider,{value:p,children:null!=e.loadingComponent&&p.isLoading?e.loadingComponent:e.children})}function u(e){let[t,n]=(0,i.useState)(0),a=e.client,[o,l]=(0,i.useState)(!c(a));d(a,n,l);let u=(0,i.useMemo)(()=>({renderVersion:t,client:a,isLoading:o}),[t,a,o]);return(0,r.jsx)(s.default.Provider,{value:u,children:null!=e.loadingComponent&&u.isLoading?e.loadingComponent:e.children})}function d(e,t,n){(0,i.useEffect)(()=>{let r=()=>{t(e=>e+1),n(!c(e))};return a.SDKType._setBindingType("react"),e.$on("values_updated",r),()=>{e.flush().catch(e=>a.Log.error("An error occurred during flush",e)),e.off("values_updated",r)}},[e,t])}function c(e){return"isNoop"in e||"Ready"===e.loadingStatus}t.StatsigProvider=function(e){return"client"in e?(("sdkKey"in e||"user"in e)&&a.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,r.jsx)(u,Object.assign({},e))):(0,r.jsx)(l,Object.assign({},e))}},72136:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStatsigInternalClientFactoryBootstrap=void 0;let r=n(7620),i=n(1805);t.useStatsigInternalClientFactoryBootstrap=function(e,t){let n=(0,r.useRef)((0,i._getInstance)(t.sdkKey));return(0,r.useMemo)(()=>{if(n.current)return n.current;let r=e(t);return n.current=r,t.useLegacyFormat?r.dataAdapter.setDataLegacy(t.initialValues,t.initialUser):r.dataAdapter.setData(t.initialValues),r.initializeSync(),r},[])}},72290:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(7620),i=n(32987),a=n(22017),s=n(5950),o=n(39968),l=n(13883),u=n(1037),d=n(13845),c=n(99849),p=n(14107),f=n(57792);function h(e){return(0,f.Ay)("MuiPaper",e)}(0,p.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var g=n(54568);let m=(0,o.default)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((0,u.A)(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:"1px solid ".concat((t.vars||t).palette.divider)}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}})),y=r.forwardRef(function(e,t){var n;let r=(0,d.b)({props:e,name:"MuiPaper"}),o=(0,l.default)(),{className:u,component:p="div",elevation:f=1,square:y=!1,variant:_="elevation",...v}=r,b={...r,component:p,elevation:f,square:y,variant:_},E=(e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return(0,a.A)({root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]},h,i)})(b);return(0,g.jsx)(m,{as:p,ownerState:b,className:(0,i.A)(E.root,u),ref:t,...v,style:{..."elevation"===_&&{"--Paper-shadow":(o.vars||o).shadows[f],...o.vars&&{"--Paper-overlay":null==(n=o.vars.overlays)?void 0:n[f]},...!o.vars&&"dark"===o.palette.mode&&{"--Paper-overlay":"linear-gradient(".concat((0,s.X4)("#fff",(0,c.A)(f)),", ").concat((0,s.X4)("#fff",(0,c.A)(f)),")")}},...v.style}})})},73092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V2InitializeContainer=void 0;let r=n(1805);class i{constructor(e){this._values=e}getGate(e){var t,n,r;let i=this._getResultFromLookup(this._values.feature_gates,e);return i?{name:e,value:!0===i.v,rule_id:null!=(t=i.r)?t:"default",secondary_exposures:null!=(n=i.s)?n:[],id_type:null!=(r=i.i)?r:""}:null}getConfig(e){var t,n,r,i;let a=this._getResultFromLookup(this._values.dynamic_configs,e);
3return a?{name:e,value:null!=(t=this._values.values[a.v])?t:{},rule_id:a.r,secondary_exposures:null!=(n=a.s)?n:[],id_type:null!=(r=a.i)?r:"",is_user_in_experiment:!0===a.ue,passed:!0===a.p,group_name:null!=(i=a.gn)?i:void 0,is_experiment_active:!0===a.ea,group:a.r,is_device_based:"stableID"===a.i}:null}getLayer(e){var t,n,r,i,a,s;let o=this._getResultFromLookup(this._values.layer_configs,e);return o?{name:e,value:null!=(t=this._values.values[o.v])?t:{},rule_id:o.r,secondary_exposures:null!=(n=o.s)?n:[],is_user_in_experiment:!0===o.ue,group_name:null!=(r=o.gn)?r:void 0,is_experiment_active:!0===o.ea,group:o.r,is_device_based:"stableID"===o.i,allocated_experiment_name:null!=(i=o.ae)?i:"",explicit_parameters:null!=(a=o.ep)?a:[],undelegated_secondary_exposures:null!=(s=o.us)?s:[],parameter_rule_ids:o.pr}:null}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(e,t){var n,i;return e&&null!=(i=null!=(n=e[t])?n:e[(0,r._DJB2)(t)])?i:null}}t.V2InitializeContainer=i},73623:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});let i=n(1805),a=n(75473);class s extends i.NetworkCore{constructor(e,t){super(e,t);let n=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new i.UrlConfiguration(i.Endpoint._initialize,null==n?void 0:n.initializeUrl,null==n?void 0:n.api,null==n?void 0:n.initializeFallbackUrls)}fetchEvaluations(e,t,n,a,s){return r(this,void 0,void 0,function*(){var r,o,l,u,d,c;let p=t?(0,i._typedJsonParse)(t,"has_updates","InitializeResponse"):null,f={user:a,hash:null!=(l=null==(o=null==(r=this._option)?void 0:r.networkConfig)?void 0:o.initializeHashAlgorithm)?l:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==p?void 0:p.has_updates){let e=(null==p?void 0:p.hash_used)!==(null!=(c=null==(d=null==(u=this._option)?void 0:u.networkConfig)?void 0:d.initializeHashAlgorithm)?c:"djb2");f=Object.assign(Object.assign({},f),{sinceTime:s&&!e?p.time:0,previousDerivedFields:"derived_fields"in p&&s?p.derived_fields:{},deltasResponseRequested:!0,full_checksum:p.full_checksum,partialUserMatchSinceTime:e?0:p.time})}return this._fetchEvaluations(e,p,f,n)})}_fetchEvaluations(e,t,n,i){return r(this,void 0,void 0,function*(){var r,s;let o=yield this.post({sdkKey:e,urlConfig:this._initializeUrlConfig,data:n,retries:2,isStatsigEncodable:!0,priority:i});if((null==o?void 0:o.code)===204)return'{"has_updates": false}';if((null==o?void 0:o.code)!==200)return null!=(r=null==o?void 0:o.body)?r:null;if((null==t?void 0:t.has_updates)!==!0||(null==(s=o.body)?void 0:s.includes('"is_delta":true'))!==!0||!0!==n.deltasResponseRequested)return o.body;let l=(0,a._resolveDeltasResponse)(t,o.body);return"string"==typeof l?l:this._fetchEvaluations(e,t,Object.assign(Object.assign(Object.assign({},n),l),{deltasResponseRequested:!1}),i)})}}t.default=s},73698:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(32987),i=n(84305);let a=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},s=function(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:o,className:l}=e;if(!t){let e=(0,r.A)(n?.className,l,o?.className,s?.className),t={...n?.style,...o?.style,...s?.style},i={...n,...o,...s};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.A)({...o,...s}),d=a(s),c=a(o),p=t(u),f=(0,r.A)(p?.className,n?.className,l,o?.className,s?.className),h={...p?.style,...n?.style,...o?.style,...s?.style},g={...p,...n,...c,...d};return f.length>0&&(g.className=f),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:p.ref}}},74281:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i="[object Arguments]",a="[object Boolean]",s="[object Date]",o="[object Function]",l="[object GeneratorFunction]",u="[object Map]",d="[object Number]",c="[object Object]",p="[object Promise]",f="[object RegExp]",h="[object Set]",g="[object String]",m="[object Symbol]",y="[object WeakMap]",_="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",E="[object Float64Array
3]",S="[object Int8Array]",x="[object Int16Array]",C="[object Int32Array]",k="[object Uint8Array]",I="[object Uint8ClampedArray]",w="[object Uint16Array]",T="[object Uint32Array]",O=/\w*$/,N=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,D={};D[i]=D["[object Array]"]=D[_]=D[v]=D[a]=D[s]=D[b]=D[E]=D[S]=D[x]=D[C]=D[u]=D[d]=D[c]=D[f]=D[h]=D[g]=D[m]=D[k]=D[I]=D[w]=D[T]=!0,D["[object Error]"]=D[o]=D[y]=!1;var A="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,j="object"==typeof self&&self&&self.Object===Object&&self,M=A||j||Function("return this")(),P=t&&!t.nodeType&&t,z=P&&e&&!e.nodeType&&e,R=z&&z.exports===P;function B(e,t){return e.set(t[0],t[1]),e}function V(e,t){return e.add(t),e}function U(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function K(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $(e,t){return function(n){return e(t(n))}}function Z(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var H=Array.prototype,W=Function.prototype,G=Object.prototype,q=M["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=W.toString,Q=G.hasOwnProperty,X=G.toString,ee=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),et=R?M.Buffer:void 0,en=M.Symbol,er=M.Uint8Array,ei=$(Object.getPrototypeOf,Object),ea=Object.create,es=G.propertyIsEnumerable,eo=H.splice,el=Object.getOwnPropertySymbols,eu=et?et.isBuffer:void 0,ed=$(Object.keys,Object),ec=eA(M,"DataView"),ep=eA(M,"Map"),ef=eA(M,"Promise"),eh=eA(M,"Set"),eg=eA(M,"WeakMap"),em=eA(Object,"create"),ey=ez(ec),e_=ez(ep),ev=ez(ef),eb=ez(eh),eE=ez(eg),eS=en?en.prototype:void 0,ex=eS?eS.valueOf:void 0;function eC(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ek(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eI(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ew(e){this.__data__=new ek(e)}function eT(e,t,n){var r=e[t];Q.call(e,t)&&eR(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function eO(e,t){for(var n=e.length;n--;)if(eR(e[n][0],t))return n;return -1}function eN(e){var t=new e.constructor(e.byteLength);return new er(t).set(new er(e)),t}function eL(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],o=r?r(n[s],e[s],s,n,e):void 0;eT(n,s,void 0===o?e[s]:o)}return n}function eD(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function eA(e,t){var n,r=null==e?void 0:e[t];return!(!eF(r)||(n=r,Y&&Y in n))&&(eK(r)||K(r)?ee:N).test(ez(r))?r:void 0}eC.prototype.clear=function(){this.__data__=em?em(null):{}},eC.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eC.prototype.get=function(e){var t=this.__data__;if(em){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},eC.prototype.has=function(e){var t=this.__data__;return em?void 0!==t[e]:Q.call(t,e)},eC.prototype.set=function(e,t){return this.__data__[e]=em&&void 0===t?r:t,this},ek.prototype.clear=function(){this.__data__=[]},ek.prototype.delete=function(e){var t=this.__data__,n=eO(t,e);return!(n<0)&&(n==t.length-1?t.pop():eo.call(t,n,1),!0)},ek.prototype.get=function(e){var t=this.__data__,n=eO(t,e);return n<0?void 0:t[n][1]},ek.prototype.has=function(e){return eO(this.__data__,e)>-1},ek.prototype.set=function(e,t){var n=this.__data__,r=eO(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},eI.prototype.clear=function(){this.__data__={hash:new eC,map:new(ep||ek),string:new eC}},eI.prototype.delete=function(e){return eD(this,e).delete(e)},eI.prototype.get=function(e){return eD(this,e).get(e)},eI.prototype.has=function(e){return eD(this,e).has(e)},eI.prototype.set=function(e,t){return eD(this,e).set(e,t),this},ew.prototype.clear=function(){this.__data__=new ek},ew.prototype.delete=function(e){return this.__data__.delete(e)},ew.prototype.get=function(e){return this.__data__.get(e)},ew.prototype.has=function(e){return this.__data__.has(e)},ew.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ek){var r=n.__data__;if(!ep||r.length<199)return r.push([e,t]),this;n=this.__data__=new eI(r)}return n.set(e,t),this};var ej=el?$(el,Object):function(){return[]},eM=function(e){return X.call(e)};function eP(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function ez(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eR(e,t){return e===t||e!=e&&t!=t}(ec&&eM(new ec(new ArrayBuffer(1)))!=v||ep&&eM(new ep)!=u||ef&&eM(ef.resolve())!=p||eh&&eM(new eh)!=h||eg&&eM(new eg)!=y)&&(eM=function(e){var t=X.call(e),n=t==c?e.constructor:void 0,r=n?ez(n):void 0;if(r)switch(r){case ey:return v;case e_:return u;case ev:return p;case eb:return h;case eE:return y}return t});var eB=Array.isArray;function eV(e){var t;return null!=e&&"number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=0x1fffffffffffff&&!eK(e)}var eU=eu||function(){return!1};function eK(e){var t=eF(e)?X.call(e):"";return t==o||t==l}function eF(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function e$(e){return eV(e)?function(e,t){var n,r,a,s,o,l=eB(e)||(a=r=n=e)&&"object"==typeof a&&eV(r)&&Q.call(n,"callee")&&(!es.call(n,"callee")||X.call(n)==i)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=l.length,d=!!u;for(var c in e){Q.call(e,c)&&!(d&&("length"==c||(s=c,(o=null==(o=u)?0x1fffffffffffff:o)&&("number"==typeof s||L.test(s))&&s>-1&&s%1==0&&s<o)))&&l.push(c)}return l}(e):function(e){if(!eP(e))return ed(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return function e(t,n,r,p,y,N,L){if(p&&(A=N?p(t,y,N,L):p(t)),void 0!==A)return A;if(!eF(t))return t;var A,j=eB(t);if(j){if(P=(M=t).length,z=M.constructor(P),P&&"string"==typeof M[0]&&Q.call(M,"index")&&(z.index=M.index,z.input=M.input),A=z,!n){var M,P,z,R=t,$=A,H=-1,W=R.length;for($||($=Array(W));++H<W;)$[H]=R[H];return $}}else{var G,q,Y,J,X,ee=eM(t),et=ee==o||ee==l;if(eU(t)){var en=t,er=n;if(er)return en.slice();
3var es=new en.constructor(en.length);return en.copy(es),es}if(ee==c||ee==i||et&&!N){if(K(t))return N?t:{};if(A="function"!=typeof(G=et?{}:t).constructor||eP(G)?{}:eF(q=ei(G))?ea(q):{},!n){return Y=t,J=(X=A)&&eL(t,e$(t),X),eL(Y,ej(Y),J)}}else{if(!D[ee])return N?t:{};A=function(e,t,n,r){var i,o,l,c=e.constructor;switch(t){case _:return eN(e);case a:case s:return new c(+e);case v:return i=r?eN(e.buffer):e.buffer,new e.constructor(i,e.byteOffset,e.byteLength);case b:case E:case S:case x:case C:case k:case I:case w:case T:return o=r?eN(e.buffer):e.buffer,new e.constructor(o,e.byteOffset,e.length);case u:return U(r?n(F(e),!0):F(e),B,new e.constructor);case d:case g:return new c(e);case f:return(l=new e.constructor(e.source,O.exec(e))).lastIndex=e.lastIndex,l;case h:return U(r?n(Z(e),!0):Z(e),V,new e.constructor);case m:return ex?Object(ex.call(e)):{}}}(t,ee,e,n)}}L||(L=new ew);var eo=L.get(t);if(eo)return eo;if(L.set(t,A),!j)var el=r?function(e){var t;return t=e$(e),eB(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,ej(e))}(t):e$(t);return!function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(el||t,function(i,a){el&&(i=t[a=i]),eT(A,a,e(i,n,r,p,a,t,L))}),A}(e,!0,!0)}},75473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resolveDeltasResponse=void 0;let r=n(1805);function i(e,t){null==e||e.forEach(e=>{delete t[e]})}t._resolveDeltasResponse=function(e,t){var n,a,s;let o=(0,r._typedJsonParse)(t,"checksum","DeltasEvaluationResponse");if(!o)return{hadBadDeltaChecksum:!0};let l=(i((s=(n=e,a=o,Object.assign(Object.assign(Object.assign({},n),a),{feature_gates:Object.assign(Object.assign({},n.feature_gates),a.feature_gates),layer_configs:Object.assign(Object.assign({},n.layer_configs),a.layer_configs),dynamic_configs:Object.assign(Object.assign({},n.dynamic_configs),a.dynamic_configs)}))).deleted_gates,s.feature_gates),delete s.deleted_gates,i(s.deleted_configs,s.dynamic_configs),delete s.deleted_configs,i(s.deleted_layers,s.layer_configs),delete s.deleted_layers,s),u=(0,r._DJB2Object)({feature_gates:l.feature_gates,dynamic_configs:l.dynamic_configs,layer_configs:l.layer_configs},2);return u!==o.checksumV2?{hadBadDeltaChecksum:!0,badChecksum:u,badMergedConfigs:l,badFullResponse:o.deltas_full_response}:JSON.stringify(l)}},76041:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77237),i=n(65004),a=n(37291),s=n(73698);function o(e,t){let{className:n,elementType:o,ownerState:l,externalForwardedProps:u,internalForwardedProps:d,shouldForwardComponentProp:c=!1,...p}=t,{component:f,slots:h={[e]:void 0},slotProps:g={[e]:void 0},...m}=u,y=h[e]||o,_=(0,a.A)(g[e],l),{props:{component:v,...b},internalRef:E}=(0,s.A)({className:n,...p,externalForwardedProps:"root"===e?m:void 0,externalSlotProps:_}),S=(0,r.A)(E,null==_?void 0:_.ref,t.ref),x="root"===e?v||f:v,C=(0,i.A)(y,{..."root"===e&&!f&&!h[e]&&d,..."root"!==e&&!h[e]&&d,...b,...x&&!c&&{as:x},...x&&c&&{component:x},ref:S},l);return[y,C]}},76164:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkCore=void 0,n(23382);let i=n(23382),a=n(60465),s=n(967),o=n(81313),l=n(1091),u=n(31072),d=n(21829),c=n(8121),p=n(68544),f=n(18973),h=n(40251),g=n(66467),m=n(76289),y=n(96890),_=new Set([408,500,502,503,504,522,524,599]);class v{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 l.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}
3getLastUsedInitUrlAndReset(){let e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){if(!b(e))return!1;let t=this._getInternalRequestArgs("POST",e),n=this._getPopulatedURL(t),r=navigator;return r.sendBeacon.bind(r)(n,t.body)}post(e){return r(this,void 0,void 0,function*(){let t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t)})}get(e){let t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(e){return r(this,void 0,void 0,function*(){var t,n,i,l,u,d,c,p,f;if(!b(e)||this._netConfig.preventAllNetworkTraffic)return null;let{method:g,body:m,retries:v,attempt:E}=e,x=e.urlConfig.endpoint;if(this._isRateLimited(x))return s.Log.warn(`Request to ${x} was blocked because you are making requests too frequently.`),null;let C=null!=E?E:1,k=!1,I=this._getPopulatedURL(e),w=null,T=(0,y._isUnloading)();try{let n,r={method:g,body:m,headers:Object.assign({},e.headers),priority:e.priority,keepalive:T};u=e,d=C,u.urlConfig.endpoint===o.Endpoint._initialize&&a.Diagnostics._markInitNetworkReqStart(u.sdkKey,{attempt:d});let i=this._leakyBucket[x];i&&(i.lastRequestTime=Date.now(),this._leakyBucket[x]=i);let s=null!=(t=this._netConfig.networkOverrideFunc)?t:fetch;if(!(w=yield Promise.race([s(I,r).finally(()=>clearTimeout(n)),new Promise((e,t)=>{n=setTimeout(()=>{k=!0,t(Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})])).ok){let e=yield w.text().catch(()=>"No Text"),t=Error(`NetworkError: ${I} ${e}`);throw t.name="NetworkError",t}let l=yield w.text();return S(e,w,C,l),this._fallbackResolver.tryBumpExpiryTime(e.sdkKey,e.urlConfig),{body:l,code:w.status}}catch(o){let t="string"==typeof(c=o)?c:c instanceof Error?`${c.name}: ${c.message}`:"Unknown Error",a=(p=null!=t?t:"",f=k,p.includes("Timeout")||f);if(S(e,w,C,"",o),(yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(e.sdkKey,e.urlConfig,t,a))&&(e.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(e.sdkKey,e.urlConfig)),!v||C>v||!_.has(null!=(n=null==w?void 0:w.status)?n:500)){null==(i=this._emitter)||i.call(this,{name:"error",error:o,tag:h.ErrorTag.NetworkError,requestArgs:e});let n=`A networking error occurred during ${g} request to ${I}.`;return s.Log.error(n,t,o),null==(l=this._errorBoundary)||l.attachErrorIfNoneExists(n),null}return yield function(e){return r(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(C),this._sendRequest(Object.assign(Object.assign({},e),{retries:v,attempt:C+1}))}})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||(null==e?void 0:e.disableCompression)!==!0||(t=m.LogEventCompressionMode.Disabled),t||(t=m.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;let n=Date.now(),r=null!=(t=this._leakyBucket[e])?t:{count:0,lastRequestTime:n},i=Math.floor((n-r.lastRequestTime)*.05);return r.count=Math.max(0,r.count-i),r.count>=50||(r.count+=1,r.lastRequestTime=n,this._leakyBucket[e]=r,!1)}_getPopulatedURL(e){var t;let n=null!=(t=e.fallbackUrl)?t:e.urlConfig.getUrl();(e.urlConfig.endpoint===o.Endpoint._initialize||e.urlConfig.endpoint===o.Endpoint._download_config_specs)&&(this._lastUsedInitUrl=n);let r=Object.assign({[o.NetworkParam.SdkKey]:e.sdkKey,[o.NetworkParam.SdkType]:d.SDKType._get(e.sdkKey),[o.NetworkParam.SdkVersion]:g.SDK_VERSION,[o.NetworkParam.Time]:String(Date.now()),[o.NetworkParam.SessionID]:p.SessionID.get(e.sdkKey)},e.params),i=Object.keys(r).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(r[e])}`).join("&");return`${n}${i?`?${i}`:""}`}_tryEncodeBody(e){var t;let n=(0,c._getWindowSafe)(),r=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof r&&null==(0,i._getStatsigGlobalFlag)("no-encode")&&(null==n?void 0:n.btoa))try{e.body=n.btoa(r).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[o.NetworkParam.StatsigEncoded]:"1"})}catch(t){s.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,t)}}_tryToCompressBody(e){return r(this,void 0,void 0,function*(){var t;let n=e.body;if("string"==typeof n&&function(e,t){if(!e.isCompressable||null!=(0,i._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;let n=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,r=!0===u.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case m.LogEventCompressionMode.Disabled:return!1;case m.LogEventCompressionMode.Enabled:if(n&&!r)return!1;return!0;case m.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{let r,i=new TextEncoder().encode(n),a=new CompressionStream("gzip"),l=a.writable.getWriter();l.write(i).catch(s.Log.error),l.close().catch(s.Log.error);let u=a.readable.getReader(),d=[];for(;!(r=yield u.read()).done;)d.push(r.value);let c=d.reduce((e,t)=>
3e+t.length,0),p=new Uint8Array(c),f=0;for(let e of d)p.set(e,f),f+=e.length;e.body=p,e.params=Object.assign(Object.assign({},null!=(t=e.params)?t:{}),{[o.NetworkParam.IsGzipped]:"1"})}catch(t){s.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,t)}})}_getInternalRequestArgs(e,t){let n=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),r=Object.assign(Object.assign({},t),{method:e,fallbackUrl:n});return"data"in t&&E(r,t.data),r}}t.NetworkCore=v;let b=e=>!!e.sdkKey||(s.Log.warn("Unable to make request without an SDK key"),!1),E=(e,t)=>{let{sdkKey:n,fallbackUrl:r}=e,i=f.StableID.get(n),a=p.SessionID.get(n),s=d.SDKType._get(n);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},g.StatsigMetadataProvider.get()),{stableID:i,sessionID:a,sdkType:s,fallbackUrl:r})}))};function S(e,t,n,r,i){e.urlConfig.endpoint===o.Endpoint._initialize&&a.Diagnostics._markInitNetworkReqEnd(e.sdkKey,a.Diagnostics._getDiagnosticsData(t,n,r,i))}},76289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingEnabledOption=t.LogEventCompressionMode=void 0,t.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},t.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}},77139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._fastApproxSizeOf=void 0,t._fastApproxSizeOf=(e,n)=>{let r=0,i=Object.keys(e);for(let a=0;a<i.length;a++){let s=i[a],o=e[s];if(r+=s.length,"object"==typeof o&&null!==o?r+=(0,t._fastApproxSizeOf)(o,n)+2:r+=String(o).length+1,r>=n)break}return r}},79364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClientBootstrapInit=void 0;let r=n(13937),i=n(72136);t.useClientBootstrapInit=function(e,t,n,a=null,s){return(0,i.useStatsigInternalClientFactoryBootstrap)(e=>new r.StatsigClient(e.sdkKey,e.initialUser,e.statsigOptions),{sdkKey:e,initialUser:t,initialValues:n,statsigOptions:a,useLegacyFormat:s})}},79812:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createLayerParameterExposure=t._createConfigExposure=t._mapExposures=t._createGateExposure=t._isExposureEvent=void 0;let n="statsig::config_exposure",r="statsig::gate_exposure",i="statsig::layer_exposure",a=(e,t,n,r,i)=>(n.bootstrapMetadata&&(r.bootstrapMetadata=n.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:o(n,r),secondaryExposures:i,time:Date.now()});function s(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}t._isExposureEvent=({eventName:e})=>e===r||e===n||e===i,t._createGateExposure=(e,t,n)=>{var i,o,l;let u={gate:t.name,gateValue:String(t.value),ruleID:t.ruleID};return(null==(i=t.__evaluation)?void 0:i.version)!=null&&(u.configVersion=t.__evaluation.version),a(r,e,t.details,u,s(null!=(l=null==(o=t.__evaluation)?void 0:o.secondary_exposures)?l:[],n))},t._mapExposures=s,t._createConfigExposure=(e,t,r)=>{var i,o,l,u;let d={config:t.name,ruleID:t.ruleID};return(null==(i=t.__evaluation)?void 0:i.version)!=null&&(d.configVersion=t.__evaluation.version),(null==(o=t.__evaluation)?void 0:o.passed)!=null&&(d.rulePassed=String(t.__evaluation.passed)),a(n,e,t.details,d,s(null!=(u=null==(l=t.__evaluation)?void 0:l.secondary_exposures)?u:[],r))},t._createLayerParameterExposure=(e,t,n,r)=>{var o,l,u,d,c,p,f;let h=t.__evaluation,g=(null==(o=null==h?void 0:h.explicit_parameters)?void 0:o.includes(n))===!0,m="",y=null!=(l=null==h?void 0:h.undelegated_secondary_exposures)?l:[];g&&(m=null!=(u=h.allocated_experiment_name)?u:"",y=null!=(d=h.secondary_exposures)?d:[]);let _=null==(c=t.__evaluation)?void 0:c.parameter_rule_ids,v={config:t.name,parameterName:n,ruleID:null!=(p=null==_?void 0:_[n])?p:t.ruleID,allocatedExperiment:m,isExplicitParameter:String(g)};return(null==(f=t.__evaluation)?void 0:f.version)!=null&&(v.configVersion=t.__evaluation.version),a(i,e,t.details,v,s(y,r))};let o=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t)},81313:(e,t)=>{"use strict";
3Object.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"}},83031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83194:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._typedJsonParse=void 0;let r=n(967);t._typedJsonParse=function(e,t,n){try{let n=JSON.parse(e);if(n&&"object"==typeof n&&t in n)return n}catch(e){}return r.Log.error(`Failed to parse ${n}`),null}},83957:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var r=n(28028),i=n(76327),a=n(7620),s=n(97509);let o={disabled:!1};var l=n(86719),u="unmounted",d="exited",c="entering",p="entered",f="exiting",h=function(e){function t(t,n){var r,i=e.call(this,t,n)||this,a=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?a?(r=d,i.appearStatus=c):r=p:r=t.unmountOnExit||t.mountOnEnter?u:d,i.state={status:r},i.nextCallback=null,i}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c&&n!==p&&(t=c):(n===c||n===p)&&(t=f)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[s.findDOMNode(this),r],a=i[0],l=i[1],u=this.getTimeouts(),d=r?u.appear:u.enter;if(!e&&!n||o.disabled)return void this.safeSetState({status:p},function(){t.props.onEntered(a)});this.props.onEnter(a,l),this.safeSetState({status:c},function(){t.props.onEntering(a,l),t.onTransitionEnd(d,function(){t.safeSetState({status:p},function(){t.props.onEntered(a,l)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||o.disabled)return void this.safeSetState({status:d},function(){e.props.onExited(r)});this.props.onExit(r),this.safeSetState({status:f},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(l.A.Provider,{value:null},"function"==typeof n?n(e,i):a.cloneElement(a.Children.only(n),i))},t}(a.Component);function g(){}h.contextType=l.A,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
3:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},h.UNMOUNTED=u,h.EXITED=d,h.ENTERING=c,h.ENTERED=p,h.EXITING=f;let m=h},84305:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}},84509:(e,t,n)=>{"use strict";e.exports=n(32806)},85556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeTypedGet=t._mergeOverride=t._makeLayer=t._makeExperiment=t._makeDynamicConfig=t._makeFeatureGate=void 0;let r=n(967),i=n(46989);function a(e,t,n,r){var i;return{name:e,details:t,ruleID:null!=(i=null==n?void 0:n.rule_id)?i:"",__evaluation:n,value:r}}function s(e,t,n){var r,i;let s=null!=(r=null==n?void 0:n.value)?r:{};return Object.assign(Object.assign({},a(e,t,n,s)),{idType:null!=(i=null==n?void 0:n.id_type)?i:null,get:o(e,null==n?void 0:n.value)})}function o(e,t,n){return(a,s)=>{var o;let l=null!=(o=null==t?void 0:t[a])?o:null;return null==l?null!=s?s:null:null==s||(0,i._isTypeMatch)(l,s)?(null==n||n(a),l):(r.Log.warn(`Parameter type mismatch. '${e}.${a}' was found to be type '${typeof l}' but fallback/return type is '${typeof s}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=s?s:null)}}t._makeFeatureGate=function(e,t,n){var r;return Object.assign(Object.assign({},a(e,t,n,(null==n?void 0:n.value)===!0)),{idType:null!=(r=null==n?void 0:n.id_type)?r:null})},t._makeDynamicConfig=s,t._makeExperiment=function(e,t,n){var r;return Object.assign(Object.assign({},s(e,t,n)),{groupName:null!=(r=null==n?void 0:n.group_name)?r:null})},t._makeLayer=function(e,t,n,r){var i,s;return Object.assign(Object.assign({},a(e,t,n,void 0)),{get:o(e,null==n?void 0:n.value,r),groupName:null!=(i=null==n?void 0:n.group_name)?i:null,__value:null!=(s=null==n?void 0:n.value)?s:{}})},t._mergeOverride=function(e,t,n,r){return Object.assign(Object.assign(Object.assign({},e),t),{get:o(e.name,n,r)})},t._makeTypedGet=o},85909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.default=function(e,t){let{client:n,renderVersion:o}=(0,r.useContext)(s.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${e}'.`),a.NoopEvaluationsClient.checkGate(e,t)):n.checkGate(e,t),[e,n,o,...t?Object.values(t):[]])}},87034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.default=function(e,t){let{client:n,renderVersion:o}=(0,r.useContext)(s.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${e}'.`),a.NoopEvaluationsClient.getDynamicConfig(e,t)):n.getDynamicConfig(e,t),[e,n,o,...t?Object.values(t):[]])}},87144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.default=function(e,t){let{client:n,renderVersion:o}=(0,r.useContext)(s.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${e}'.`),a.NoopEvaluationsClient.getExperiment(e,t)):n.getExperiment(e,t),[e,n,o,...t?Object.values(t):[]])}},87511:(e,t,n)=>{"use strict";n.d(t,{T8:()=>ea,Qj:()=>eh,Yi:()=>ep,ze:()=>ef,bI:()=>eu,MA:()=>ec,u1:()=>el});var r,i=n(24691),a=n(98949),s=n(87068),o=n(20880);let l=o.z.literal("2023-09-28");o.z.union([o.z.literal("2023-08-23"),o.z.literal("2023-07-26"),o.z.literal("2023-06-27")]);let u=o.z.enum(["Text","RichText","Number","Date","Boolean","Location","Media","Object","Hyperlink","Array","Link"]),d=o.z.string().regex(/^[a-zA-Z0-9-_]{1,32}$/,{message:"Property needs to match: /^[a-zA-Z0-9-_]{1,32}$/"}),c=o.z.union([o.z.string(),o.z.boolean(),o.z.number(),o.z.record(o.z.any(),o.z.any()),o.z.undefined()]),p=o.z.array(o.z.object({sys:o.z.object({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.literal("Entry")})})),f=o.z.string().regex(/^[a-zA-Z0-9-_]{1,21}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,21}$/"}),h=o.z.record(f,o.z.object({sys:o.z.object({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.enum
3(["Entry","Asset"])})})),g=o.z.record(f,o.z.object({value:c})),m=o.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/,{message:"Does not match /^[a-zA-Z0-9-_]{1,54}$/"}),y=o.z.string().regex(/^[a-zA-Z0-9]{1,8}$/,{message:"Does not match /^[a-zA-Z0-9]{1,8}$/"}),_=o.z.record(o.z.lazy(()=>c)),v=o.z.array(o.z.enum(["entry","asset","manual","experience"])).nonempty(),b=o.z.object({type:o.z.literal("DesignValue"),valuesByBreakpoint:_}).strict(),E=o.z.object({type:o.z.literal("BoundValue"),path:o.z.string()}).strict(),S=o.z.object({type:o.z.literal("HyperlinkValue"),linkTargetKey:o.z.string(),overrides:o.z.object({}).optional()}).strict(),x=o.z.object({type:o.z.literal("UnboundValue"),key:o.z.string()}).strict(),C=o.z.object({type:o.z.literal("ComponentValue"),key:o.z.string()}).strict(),k=o.z.object({type:o.z.literal("NoValue")}).strict(),I=o.z.discriminatedUnion("type",[b,E,x,S,C,k]),w=o.z.object({type:o.z.literal("BoundValue"),path:o.z.string()}),T=o.z.record(m,w),O=/^\*$|^[<>][0-9]+px$/,N=o.z.object({id:m,query:o.z.string().refine(e=>O.test(e)),previewSize:o.z.string().optional(),displayName:o.z.string(),displayIcon:o.z.enum(["desktop","tablet","mobile"]).optional()}).strict(),L=o.z.object({id:y.optional(),definitionId:d,prebindingId:o.z.string().optional(),displayName:o.z.string().optional(),slotId:o.z.string().optional(),variables:o.z.record(m,I),parameters:T.optional()}),D=o.z.object({displayName:o.z.string().optional(),type:u,description:o.z.string().optional(),group:o.z.string().optional(),defaultValue:c.or(I).optional(),validations:o.z.object({bindingSourceType:v.optional(),required:o.z.boolean().optional(),format:o.z.literal("URL").optional(),in:o.z.array(o.z.object({value:o.z.union([o.z.string(),o.z.number()]),displayName:o.z.string().optional()})).optional()}).optional()}),A=L.extend({children:o.z.lazy(()=>A.array())}).superRefine(({id:e,prebindingId:t,parameters:n},r)=>{t&&!n&&r.addIssue({code:o.z.ZodIssueCode.custom,message:`Found "prebindingId" but no "parameters" for node with i
3d: "${e}"`})}),j=o.z.object({breakpoints:o.z.array(N).superRefine((e,t)=>{if(!e.length||"*"!==e[0].query)return void t.addIssue({code:o.z.ZodIssueCode.custom,message:'The first breakpoint should include the following attributes: { "query": "*" }'});if(1===e.length)return;let n=e.map(e=>e.id);if(new Set(n).size!==n.length)return void t.addIssue({code:o.z.ZodIssueCode.custom,message:"Breakpoint IDs must be unique"});let r=e.slice(1),i=r[0].query.startsWith(">"),a=r[0].query.startsWith("<");i?(r.every(({query:e})=>e.startsWith(">"))||t.addIssue({code:o.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format ">[size]px" for mobile-first strategy'}),r.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,n)=>0===t||e>n[t-1])||t.addIssue({code:o.z.ZodIssueCode.custom,message:"When using a mobile-first strategy, all breakpoints must have strictly increasing pixel values"})):a?(r.every(({query:e})=>e.startsWith("<"))||t.addIssue({code:o.z.ZodIssueCode.custom,message:'Breakpoint queries must be in the format "<[size]px" for desktop-first strategy'}),r.map(e=>parseInt(e.query.replace(/px|<|>/,""))).every((e,t,n)=>0===t||e<n[t-1])||t.addIssue({code:o.z.ZodIssueCode.custom,message:"When using a desktop-first strategy, all breakpoints must have strictly decreasing pixel values"})):i||a||t.addIssue({code:o.z.ZodIssueCode.custom,message:"You may only use a mobile-first or desktop-first strategy for breakpoints using '<' or '>' queries"})}),children:o.z.array(A),schemaVersion:l}).strict(),M=e=>o.z.record(o.z.string(),e);o.z.object({componentTree:M(j),dataSource:M(h),unboundValues:M(g),usedComponents:M(p).optional()});let P=o.z.object({parameterId:m,type:o.z.literal("ContentTypeMapping"),pathsByContentType:o.z.record(o.z.string(),o.z.object({path:o.z.string()})).superRefine((e,t)=>{let n=t.path[t.path.length-2];Object.keys(e).length>200&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Too many paths defined for variable mapping with id "${n}", maximum allowed is 200`})})}),z=o.z.object({nodeId:m,parameterId:m,prebindingId:m}).strict(),R=o.z.object({defaultSource:o.z.strictObject({type:o.z.enum(["Entry"]),contentTypeId:o.z.string(),link:o.z.strictObject({sys:o.z.strictObject({type:o.z.literal("Link"),id:o.z.string(),linkType:o.z.enum(["Entry"])})})}).optional(),contentTypes:o.z.array(o.z.string()).min(1),passToNodes:o.z.array(z).max(1,'At most one "passToNodes" element is allowed per parameter definition.')}),B=o.z.record(m,R),V=o.z.record(m,P),U=o.z.record(o.z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/),D),K=o.z.object({id:m,parameterDefinitions:B,variableMappings:V.optional(),allowedVariableOverrides:o.z.array(o.z.string()).optional()}).strict(),F=o.z.object({variableDefinitions:U,thumbnailId:o.z.enum(["columns","columnsPlusRight","imagesSquare","subtitles","rowsPlusBottom","userRectangle","textbox","monitorPlay","article","table","star","heartStraight","frameCorners","rows","dotsThreeOutline","listDashes","checkerBoard","gridFour","slideshow","diamondsFour","cards","textColumns","duplex"]).optional(),category:o.z.string().max(50,"Category must contain at most 50 characters").optional(),prebindingDefinitions:o.z.array(K).length(1).optional()}).strict().superRefine((e,t)=>{let{variableDefinitions:n,prebindingDefinitions:r}=e;if(!r||0===r.length)return;let{parameterDefinitions:i,variableMappings:a,allowedVariableOverrides:s}=r[0];$(i,t),Z(a,s,t),H(a,s,n,t),W(a,i,t)});o.z.object({componentTree:M(j),dataSource:M(h),unboundValues:M(g),usedComponents:M(p).optional(),componentSettings:M(F)}).superRefine((e,t)=>{let{componentTree:n,componentSettings:r}=e,i=Object.values(n)[0],a=Object.values(r)[0];a&&i&&G(i.children||[],a||{},t)});let $=(e,t)=>{Object.values(e).filter(e=>!(e.passToNodes&&e.passToNodes.length>0)).length>1&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Only one native parameter definition (parameter definition without passToNodes) is allowed per prebinding definition."})},Z=(e,t,n)=>{let r=Object.keys(e||{}),i=new Set(t||[]),a=r.filter(e=>i.has(e));a.length>0&&n.addIssue({code:o.z.ZodIssueCode.custom,message:`Found both variable mapping and allowed override for the following keys: ${a.map(e=>`"${e}"`).join(", ")}.`})},H=(e,t,n,r)=>{let i=Object.entries(n).filter(([e,t])=>"style"!==t.group).map(([e])=>e),a=[...Object.keys(e||{}),...t||[]].filter(e=>!i.includes(e));a.length>0&&r.addIssue({code:o.z.ZodIssueCode.custom,message:`The following variable mappings or overrides are missing from the variable definitions: ${a.map(e=>`"${e}"`).join(", ")}.`})},W=(e,t,n)=>{let r=Object.keys(t||{});for(let[t,i]of Object.entries(e||{}))r.includes(i.parameterId)||n.addIssue({code:o.z.ZodIssueCode.custom,message:`The variable mapping with id "${t}" references a non-existing parameterId "${i.parameterId}".`})},G=(e,t,n)=>{if(!t.prebindingDefinitions||0===t.prebindingDefinitions.length)return;let{parameterDefinitions:r}=t.prebindingDefinitions[0],i=new Set;for(let e of Object.values(r||{}
3))e.passToNodes?.forEach(e=>i.add(e.nodeId));if(!function(e,t){let n=e=>{let r=[...e.children];for(let i of(t(e),r))n(i)};if(Array.isArray(e))for(let t of e)n(t);else n(e)}(e,e=>{e.id&&i.has(e.id)&&i.delete(e.id)}),i.size>0){let e=Array.from(i).map(e=>`"${e}"`).join(", ");n.addIssue({code:o.z.ZodIssueCode.custom,message:`The following node IDs referenced in passToNodes are not present in the component tree: ${e}.`})}},q=o.z.object({id:d,name:o.z.string(),category:o.z.string().optional(),thumbnailUrl:o.z.string().optional(),thumbnailId:o.z.string().optional(),hyperlinkPattern:o.z.string().optional(),children:o.z.boolean().optional(),slots:o.z.record(d,o.z.object({displayName:o.z.string().optional()})).optional(),builtInStyles:o.z.array(o.z.string()).optional(),tooltip:o.z.object({imageUrl:o.z.string().optional(),description:o.z.string()}).optional(),variables:o.z.record(d,D.extend({defaultValue:c.optional()}).superRefine((e,t)=>{switch(e.type){case"Array":void 0!==e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Array" type for ${t.path.join(".")}`,fatal:!1});break;case"Boolean":void 0!==e.defaultValue&&"boolean"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a boolean when type is "Boolean" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Date":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Date" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Hyperlink":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Hyperlink" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Link":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue is not supported for "Link" type for ${t.path.join(".")}`,fatal:!1});break;case"Location":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Location" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Media":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Media" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Number":void 0!==e.defaultValue&&"number"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a number when type is "Number" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Object":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "Object" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"RichText":void 0!==e.defaultValue&&"object"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be an object when type is "RichText" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1});break;case"Text":void 0!==e.defaultValue&&"string"!=typeof e.defaultValue&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`defaultValue must be a string when type is "Text" for ${t.path.join(".")}, got ${typeof e.defaultValue} instead`,fatal:!1})}}))}).superRefine((e,t)=>{!0===e.children&&(e.variables.children||e.slots?.children)&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Cannot activate 'children: true' and name a variable or slot 'children' at the same time",fatal:!1}),e.variables&&e.slots&&Object.keys(e.variables).forEach(n=>{e.slots[n]&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Variable and slot cannot have the same name: ${n}`,fatal:!1})})});!function(e){e.Type="type",e.Required="required",e.Unexpected="unexpected",e.Regex="regex",e.In="in",e.Size="size",e.Custom="custom"}(r||(r={}));let Y=e=>
3{switch(e.code){case o.eq.invalid_type:return(e=>{let t="undefined"===e.received?r.Required:r.Type;return{details:"undefined"===e.received?`The property "${e.path.slice(-1)}" is required here`:`The type of "${e.path.slice(-1)}" is incorrect, expected type: ${e.expected}`,name:t,path:e.path,value:e.received.toString()}})(e);case o.eq.unrecognized_keys:return(e=>{let t=e.keys.map(e=>`"${e}"`).join(", ");return{details:e.keys.length>1?`The properties ${t} are not expected`:`The property ${t} is not expected`,name:r.Unexpected,path:e.path}})(e);case o.eq.invalid_enum_value:return(e=>({details:e.message||"Value must be one of expected values",name:r.In,path:e.path,value:e.received.toString(),expected:e.options}))(e);case o.eq.invalid_string:return(e=>({details:e.message||"Invalid string",name:"regex"===e.validation?r.Regex:r.Unexpected,path:e.path}))(e);case o.eq.too_small:return(e=>({details:e.message||`Size should be at least ${e.minimum}`,name:r.Size,path:e.path,min:e.minimum}))(e);case o.eq.too_big:return(e=>({details:e.message||`Size should be at most ${e.maximum}`,name:r.Size,path:e.path,max:e.maximum}))(e);case o.eq.invalid_literal:return(e=>({details:e.message||"Value must be one of expected values",name:r.In,path:e.path,value:e.received,expected:[e.expected]}))(e);default:return(e=>({details:e.message||"An unexpected error occurred",name:r.Custom,path:e.path.map(String)}))(e)}};var J=n(54568),Q=n(7620);let X={wrapComponent:!0,wrapContainer:"div"};var ee=n(2519);let et=/var\(--[\w-]+\)/,en=e=>"undefined"!=typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e)),er=e=>{let{component:t,definition:n,options:r}=e,i=(e=>{let t=en(e);for(let e of(t.builtInStyles||(t.builtInStyles=["cfMargin"]),t.variables||(t.variables={}),t.variables.cfVisibility=s.UC.cfVisibility,t.builtInStyles||[]))s.UC[e]&&(t.variables[e]=s.UC[e]),s.s4[e]&&(t.variables[e]=s.s4[e]);return t})((e=>{let t=en(e);for(let e of Object.values(t.variables)){var n;e.group=null!=(n=e.group)?n:"content"}return t})(n));return{component:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X;return n=>{var r;let i=null!=(r=t.wrapContainer)?r:"div",{className:a="","data-cf-node-id":s,"data-cf-node-block-id":o,"data-cf-node-block-type":l,...u}=n;return t.wrapComponent?(0,J.jsx)(i,{"data-component-wrapper":!0,className:a,"data-cf-node-id":s,"data-cf-node-block-id":o,"data-cf-node-block-type":l,children:(0,J.jsx)(e,{...u})}):Q.createElement(e,n)}}(t,r),definition:i,options:r}},ei={container:{component:i.iG,definition:i.pA,options:{enableEditorProperties:{isEditorMode:!0,isEmpty:!0,nodeBlockId:!0}}},section:{component:i.iG,definition:i.NK,options:{enableEditorProperties:{isEditorMode:!0,isEmpty:!0,nodeBlockId:!0}}},columns:{component:i.e,definition:i.Zk},singleColumn:{component:i.hl,definition:i.UI,options:{enableEditorProperties:{isEditorMode:!0,isEmpty:!0}}},button:er({component:i.$n,definition:i.Zc,options:{wrapComponent:!1}}),heading:er({component:i.DZ,definition:i.Lv,options:{wrapComponent:!1}}),image:er({component:i._V,definition:i.UH,options:{wrapComponent:!1}}),richText:er({component:i.sD,definition:i.el,options:{wrapComponent:!1}}),text:er({component:i.EY,definition:i.SQ,options:{wrapComponent:!1}}),divider:er({component:i.GB,definition:i.Vf,options:{wrapComponent:!1}}),carousel:er({component:i.FN,definition:i.Mo,options:{wrapComponent:!1}})},ea=new Map([[ei.section.definition.id,ei.section],[ei.container.definition.id,ei.container],[ei.singleColumn.definition.id,ei.singleColumn],[ei.columns.definition.id,ei.columns],[ei.button.definition.id,ei.button],[ei.heading.definition.id,ei.heading],[ei.image.definition.id,ei.image],[ei.richText.definition.id,ei.richText],[ei.text.definition.id,ei.text],[ei.divider.definition.id,ei.divider]]),es=[ei.button.definition.id,ei.heading.definition.id,ei.image.definition.id,ei.richText.definition.id,ei.text.definition.id,ei.divider.definition.id],eo=()=>Array.from(ea.values()).map(e=>{let{definition:t}=e;return t}).filter(e=>!(0,s.uF)(e)),el=()=>{let e=eo();(0,s._z)(a.tc.RegisteredComponents,{definitions:e})},eu=()=>{Array.from(ea.values()).map(e=>{let{definition:t}=e,n=(e=>{let t=q.safeParse(e);return t.success?{success:!0}:{success:!1,errors:t.error.issues.map(Y)}})(t);if(!n.success)throw Error("Invalid component definition for component '".concat(t.name,"'. Failed with errors: \n").concat(JSON.stringify(n.errors,null,2)))})},ed=(e,t,n)=>(e.style[n]=t,getComputedStyle(e).getPropertyValue(n)),ec=()=>{let e=eo();(0,s._z)(a.tc.Connected,{sdkVersion:ee.M,definitions:e}),(0,s._z)(a.tc.RegisteredBreakpoints,{breakpoints:s.oZ}
3),(0,s._z)(a.tc.DesignTokens,{designTokens:s.WN,resolvedCssVariables:(e=>{let{spacing:t,sizing:n,color:r,borderRadius:i,fontSize:a,lineHeight:s,letterSpacing:o,textColor:l,border:u}=e,d={},c=document.createElement("div");if(document.body.appendChild(c),[{variable:t,property:"margin"},{variable:n,property:"width"},{variable:r,property:"background-color"},{variable:i,property:"border-radius"},{variable:a,property:"font-size"},{variable:s,property:"line-height"},{variable:o,property:"letter-spacing"},{variable:l,property:"color"}].forEach(e=>{let{variable:t,property:n}=e;t&&Object.assign(d,((e,t,n)=>{let r={};return Object.keys(t).forEach(i=>{let a=t[i];if(et.test(a)){let t=ed(e,a,n);r[a]=t}}),r})(c,t,n))}),u){let e={};Object.keys(u).forEach(t=>{let{width:n,style:r,color:i}=u[t];if(n&&et.test(n)){let t=ed(c,n,"border-width");e[n]=t}if(r&&et.test(r)){let t=ed(c,r,"border-style");e[r]=t}if(i&&et.test(i)){let t=ed(c,i,"border-color");e[i]=t}Object.assign(d,e)})}return document.body.removeChild(c),d})(s.WN)})},ep=(e,t)=>{var n;if((null==t||null==(n=t.experimentalComponents)?void 0:n.carousel)&&ea.set(a._V.carousel.id,ei.carousel),null==t?void 0:t.enabledBuiltInComponents)for(let e of es)t.enabledBuiltInComponents.includes(e)||ea.delete(e);for(let n of((0,s.qk)({__disableTextAlignmentTransform:!!(null==t?void 0:t.__disableTextAlignmentTransform),__unsafe__enableBuiltInStructureOverwrites:!!(null==t?void 0:t.__unsafe__enableBuiltInStructureOverwrites)}),e)){!(0,s.Lh)(n.definition.id)||(null==t?void 0:t.__unsafe__enableBuiltInStructureOverwrites)||s.Yz.warn("[experience-builder
3-sdk:defineComponents] You are registering a "+"structure component with the reserved id '".concat(n.definition.id,"'. This is not recommended ")+"and can lead to unexpected behavior. If you still want to register it, please provide the registry option '__unsafe__enableBuiltInStructureOverwrites' to fully enable built-in structure overwrites.");let e=er(n);ea.set(e.definition.id,e)}"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(a.UH.ComponentsRegistered))},ef=e=>ea.get(e),eh=e=>{let{definitionId:t,component:n}=e,r=ea.get(t);return r||((e=>{ea.set(e.definition.id,e)})({component:n,definition:(0,s.m6)(t)}),ea.get(t))}},87968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._makeParamStoreGetter=void 0;let r=n(1805),i={disableExposureLog:!0};function a(e){return null==e||!1===e.disableExposureLog}function s(e,t){return null!=t&&!(0,r._isTypeMatch)(e,t)}t._makeParamStoreGetter=function(e,t,n){return(o,l)=>{if(null==t)return l;let u=t[o];if(null==u||null!=l&&(0,r._typeOf)(l)!==u.param_type)return l;switch(u.ref_type){case"static":return u.value;case"gate":return e.getFeatureGate(u.gate_name,a(n)?void 0:i).value?u.pass_value:u.fail_value;case"dynamic_config":let d=e.getDynamicConfig(u.config_name,a(n)?void 0:i).get(u.param_name);return s(d,l)?l:d;case"experiment":let c=e.getExperiment(u.experiment_name,a(n)?void 0:i).get(u.param_name);return s(c,l)?l:c;case"layer":let p=e.getLayer(u.layer_name,a(n)?void 0:i).get(u.param_name);return s(p,l)?l:p;default:return l}}}},88261:(e,t,n)=>{"use strict";var r=n(7620),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,o=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,d=r[1];return o(function(){i.value=n,i.getSnapshot=t,u(i)&&d({inst:i})},[e,n,t]),s(function(){return u(i)&&d({inst:i}),e(function(){u(i)&&d({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},89542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlConfiguration=void 0;let r=n(49457),i=n(81313),a={[i.Endpoint._initialize]:"i",[i.Endpoint._rgstr]:"e",[i.Endpoint._download_config_specs]:"d"};class s{constructor(e,t,n,r){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=a[e],t&&(this.customUrl=t),!t&&n&&(this.customUrl=n.endsWith("/")?`${n}${e}`:`${n}/${e}`),r&&(this.fallbackUrls=r);let s=i.NetworkDefault[e];this.defaultUrl=`${s}/${e}`}getUrl(){var e;return null!=(e=this.customUrl)?e:this.defaultUrl}getChecksum(){var e;let t=(null!=(e=this.fallbackUrls)?e:[]).sort().join(",");return(0,r._DJB2)(this.customUrl+t)}}t.UrlConfiguration=s},90355:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(18724),i=n(38921);function a(e){let{props:t,name:n,defaultTheme:a,themeId:s}=e,o=(0,i.default)(a);return s&&(o=o[s]||o),(0,r.A)({theme:o,name:n,props:t})}},91461:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},91672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94613:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(7e4),i=n(39968),a=n(13845),s=n(13883);let o=(0,r.default)({createStyledComponent:(0,i.default)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>(0,a.b)({props:e,name:"MuiGrid"}),useTheme:s.default})},94719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_DETAIL_ERROR_MESSAGES=t.createUpdateDetails=void 0,t.createUpdateDetails=(e,t,n,r,i,a)=>({duration:n,source:t,success:e,error:r,sourceUrl:i,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 t
3imeout value was specified in the options or ad blocker error."}},96128:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigClientBase=void 0,n(23382);let i=n(23382),a=n(71053),s=n(17825),o=n(967),l=n(36792),u=n(8121),d=n(68544),c=n(18973),p=n(76289),f=n(20317);class h{constructor(e,t,n,r){var l,p,h,g;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};let m=this.$emt.bind(this);(null==r?void 0:r.logLevel)!=null&&(o.Log.level=r.logLevel),(null==r?void 0:r.disableStorage)&&f.Storage._setDisabled(!0),(null==r?void 0:r.initialSessionID)&&d.StatsigSession.overrideInitialSessionID(r.initialSessionID,e),(null==r?void 0:r.storageProvider)&&f.Storage._setProvider(r.storageProvider),(null==r?void 0:r.enableCookies)&&c.StableID._setCookiesEnabled(e,r.enableCookies),(null==r?void 0:r.disableStableID)&&c.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=r?r:{},this._memoCache={},this.overrideAdapter=null!=(l=null==r?void 0:r.overrideAdapter)?l:null,this._logger=new s.EventLogger(e,m,n,r),this._errorBoundary=new a.ErrorBoundary(e,r,m),this._errorBoundary.wrap(this),this._errorBoundary.wrap(t),this._errorBoundary.wrap(this._logger),n.setErrorBoundary(this._errorBoundary),this.dataAdapter=t,this.dataAdapter.attach(e,r,n),this.storageProvider=f.Storage,null==(g=null==(h=null==(p=this.overrideAdapter)?void 0:p.loadFromStorage)?void 0:h.call(p))||g.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,t){var n;if((0,u._isServerEnv)())return;let r=(0,i._getStatsigGlobal)(),a=null!=(n=r.instances)?n:{};null!=a[e]&&o.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]=t,r.firstInstance||(r.firstInstance=t),r.instances=a,__STATSIG__=r}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,f.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,c.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(p.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return r(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){let n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;let n=t=>{try{t(e)}catch(n){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,n);o.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=>n(e)),null==(t=this._listeners["*"])||t.forEach(n)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,n){if((null==n?void 0:n.disableExposureLog)===!0)return void this._logger.incrementNonExposureCount(e);this._logger.enqueue(t)}_memoize(e,t){return(n,r)=>{if(this._options.disableEvaluationMemoization)return t(n,r);let i=(0,l.createMemoKey)(e,n,r);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(n,r)),this._memoCache[i]):t(n,r)}}}t.StatsigClientBase=h},96282:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");
3i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}},96391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(7620),i=n(1805),a=n(33564),s=n(70646);t.default=function(e,t){let{client:n,renderVersion:o}=(0,r.useContext)(s.default);return(0,r.useMemo)(()=>(0,a.isNoopClient)(n)?(i.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${e}'.`),a.NoopEvaluationsClient.getParameterStore(e,t)):n.getParameterStore(e,t),[e,n,o,...t?Object.values(t):[]])}},96890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._notifyVisibilityChanged=t._subscribeToVisiblityChanged=t._isUnloading=t._isCurrentlyVisible=void 0;let r=n(8121),i="foreground",a="background",s=[],o=i,l=!1;t._isCurrentlyVisible=()=>o===i,t._isUnloading=()=>l,t._subscribeToVisiblityChanged=e=>{s.unshift(e)},t._notifyVisibilityChanged=e=>{e!==o&&(o=e,s.forEach(t=>t(e)))},(0,r._addWindowEventListenerSafe)("focus",()=>{l=!1,(0,t._notifyVisibilityChanged)(i)}),(0,r._addWindowEventListenerSafe)("blur",()=>(0,t._notifyVisibilityChanged)(a)),(0,r._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,t._notifyVisibilityChanged)("visible"===document.visibilityState?i:a)}),(0,r._addWindowEventListenerSafe)((0,r._getUnloadEvent)(),()=>{l=!0,(0,t._notifyVisibilityChanged)(a)})},97176:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,useRtl:()=>s});var r=n(7620),i=n(54568);let a=r.createContext(),s=()=>{let e=r.useContext(a);return null!=e&&e},o=function(e){let{value:t,...n}=e;return(0,i.jsx)(a.Provider,{value:null==t||t,...n})}},97379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapFunctionWithRestore=t.throttle=t._sanitizeString=t._getAnchorNodeInHierarchy=t._getSafeTimezoneOffset=t._getSafeTimezone=t._getSafeNetworkInformation=t._registerEventHandler=t._getSanitizedPageUrl=t._getSafeUrlString=t._getSafeUrl=t._shouldLogEvent=t._getTargetNode=t._stripEmptyValues=t.interactiveElements=void 0;let r=n(1805),i=RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),a=RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$");function s(){var e,t,n;let i,a=null!=(n=null==(t=null==(e=(0,r._getWindowSafe)())?void 0:e.location)?void 0:t.href)?n:"";try{i=new URL(a)}catch(e){i=new URL("error:")}return i}function o(e){if(!e)return null;let t=e;for(;t&&!["body","document"].includes(t.tagName.toLowerCase());){if("a"===t.tagName.toLowerCase())return t;t=t.parentElement}return null}t.interactiveElements=["button","a","input","select","textarea","form","select","label"],t._stripEmptyValues=function(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t&&""!==t&&void 0!==t))},t._getTargetNode=function(e){if(!e)return null;let t=e.target||e.srcElement;return t&&t instanceof Element?(3===t.nodeType&&(t=t.parentNode||null),t):null},t._shouldLogEvent=function(e,n,r=!1){if(!e||!n||1!==n.nodeType)return!1;let i=n.tagName.toLowerCase(),a=e.type.toLowerCase();if(n.classList.contains("statsig-no-capture"))return!1;if(r)return!0;switch(i){case"html":return!1;case"form":return["submit"].indexOf(a)>=0;case"input":case"select":case"textarea":return["change","click"].indexOf(a)>=0;default:if("click"===a){let e=window.getComputedStyle(n);if(e&&"pointer"===e.getPropertyValue("cursor")||t.interactiveElements.includes(i)||"true"===n.getAttribute("contenteditable")||o(n))return!0}return!1}},t._getSafeUrl=s,t._getSafeUrlString=function(){let e=s().toString();return e.startsWith("error:")?"":e},t._getSanitizedPageUrl=function(){return(0,r._getCurrentPageUrlSafe)()||""},t._registerEventHandler=function(e,t,n){e&&e.addEventListener&&e.addEventListener(t,n,!0)},t._getSafeNetworkInformation=function(){let e=(0,r._getWindowSafe)();if(!e||!e.navigator)return null;let t=e.navigator.connection;return t||null},t._getSafeTimezone=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return null}},t._getSafeTimezoneOffset=function(){try{return new Date().getTimezoneOffset()}catch(e){return null}},t._getAnchorNodeInHierarchy=o,t._sanitizeString=function(e){return e?e.replace(/<[^>]*>/g,"").trim().split(/(\s+)/).filter(e=>{var t;return t=e,!(i.test((t||"").replace(/[- ]/g,""))||a.test((t||"").replace(/[- ]/g,"")))}).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255):null},t.throttle=function(e,t){let n=0;return function(...r){let i=Date.now();i-n>=t&&(n=i,e(...r))}},t.wrapFunctionWithRestore=function(e,t,n){let r=e[t];if("function"!=typeof r)return()=>{};try{let i=n(r);return Object.defineProperty(i,"__statsig_original__",{enumerable:!1,value:r}),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}},97626:(e,t)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0})},98949:(e,t,n)=>{"use strict";var r,i;n.d(t,{$4:()=>s,N6:()=>u,NG:()=>l,UH:()=>o,_V:()=>d,kT:()=>r,se:()=>c,tc:()=>a});let a={Connected:"connected",DesignTokens:"registerDesignTokens",RegisteredBreakpoints:"registeredBreakpoints",MouseMove:"mouseMove",ComponentSelected:"componentSelected",RegisteredComponents:"registeredComponents",RequestComponentTreeUpdate:"requestComponentTreeUpdate",CanvasReload:"canvasReload",UpdateSelectedComponentCoordinates:"updateSelectedComponentCoordinates",CanvasScroll:"canvasScrolling",CanvasError:"canvasError",OutsideCanvasClick:"outsideCanvasClick",SDKFeatures:"sdkFeatures",RequestEntities:"REQUEST_ENTITIES",CanvasGeometryUpdated:"canvasGeometryUpdated",CanvasPan:"canvasPan"},s={RequestEditorMode:"requestEditorMode",RequestReadOnlyMode:"requestReadOnlyMode",ExperienceUpdated:"componentTreeUpdated",ComponentDraggingChanged:"componentDraggingChanged",ComponentDragCanceled:"componentDragCanceled",ComponentDragStarted:"componentDragStarted",ComponentDragEnded:"componentDragEnded",ComponentMoveEnded:"componentMoveEnded",CanvasResized:"canvasResized",SelectComponent:"selectComponent",HoverComponent:"hoverComponent",UpdatedEntity:"updatedEntity",AssembliesAdded:"assembliesAdded",AssembliesRegistered:"assembliesRegistered",MouseMove:"mouseMove",RequestedEntities:"REQUESTED_ENTITIES"},o={ComponentsRegistered:"cfComponentsRegistered",VisualEditorInitialize:"cfVisualEditorInitialize"},l={Ready:"cfVisualEditorReady"};!function(e){e.READ_ONLY="readOnlyMode",e.EDITOR="editorMode",e.NONE="none"}(r||(r={}));let u="cf-visual-editor",d={section:{id:"contentful-section",name:"Section"},container:{id:"contentful-container",name:"Container"},columns:{id:"contentful-columns",name:"Columns"},singleColumn:{id:"contentful-single-column",name:"Column"},button:{id:"contentful-button",name:"Button"},heading:{id:"contentful-heading",name:"Heading"},image:{id:"contentful-image",name:"Image"},richText:{id:"contentful-richText",name:"Rich Text"},text:{id:"contentful-text",name:"Text"},divider:{id:"contentful-divider",name:"Divider"},carousel:{id:"contentful-carousel",name:"Carousel"}},c="/{locale}/{entry.fields.slug}/";!function(e){e.REQUEST_ENTITIES="REQUEST_ENTITIES",e.REQUESTED_ENTITIES="REQUESTED_ENTITIES"}(i||(i={}))},99167:(e,t,n)=>{"use strict";t.Mf=void 0;let r=n(1805),i=n(25632);Object.defineProperty(t,"Mf",{enumerable:!0,get:function(){return i.StatsigAutoCapturePlugin}}),n(31748),Object.assign((0,r._getStatsigGlobal)(),{AutoCapture:i.AutoCapture,runStatsigAutoCapture:i.runStatsigAutoCapture,StatsigAutoCapturePlugin:i.StatsigAutoCapturePlugin})}}]); 4//# sourceMappingURL=3866-69830c69ac98bf05.js.map 5//# debugId=0a4cd886-650c-54aa-b18a-d2fd87187e22
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.