(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7365],{42510:function(e,t,r){"use strict";let{FetchHTTPClient:n}=r(64167);let AnalyticsResponse=class AnalyticsResponse{constructor(e,t,r,n){this.success=e,this.statusCode=t,this.message=r,this.eventResponseList=n}};let EventResponse=class EventResponse{constructor(e,t,r){this.messageId=e,this.results=t,this.segmentEvent=r}};let BatchInterceptor=class BatchInterceptor{static toAnalyticsResponse(e,t,r){let n=JSON.parse(JSON.stringify(e.batch)),i=[],[o,s,a]=[r.success,t.status,t.statusText];if(s>=200&&s<=299){let e=JSON.parse(JSON.stringify(r));return"validationReports"in e&&e.validationReports.forEach(e=>{let t=n.find(t=>t.messageId===e.messageId);t&&i.push(new EventResponse(t.messageId,e.results,t))}),new AnalyticsResponse(o,s,a,i)}if(s>=400&&s<=499){let e=JSON.parse(JSON.stringify(r)),t=e.message,u="error"in t?t.error:a;return n.forEach(e=>{i.push(new EventResponse(e.messageId,[],e))}),new AnalyticsResponse(o,s,u,i)}return n.forEach(e=>{i.push(new EventResponse(e.messageId,[],e))}),new AnalyticsResponse(o,s,a,i)}};e.exports={AnalyticsFetchHTTPClient:class extends n{constructor(e,t){super(),this.httpClient="function"==typeof e?new n(e):null!=e?e:new n,this.analyticsClient=t}async makeRequest(e){let t=this.httpClient.makeRequest(e),r=await t;if(429===r.status)return t;let n=this.analyticsClient.getResponseCallback();if(null!==n){let t=await r.clone().json(),i=BatchInterceptor.toAnalyticsResponse(e.data,r,t);n(i)}return t}}}},34479:function(e,t,r){"use strict";let n=r(96486),{Analytics:i}=r(64167),{AnalyticsFetchHTTPClient:o}=r(42510),{requireValue:s,validateTrackEvent:a,validateTraitEvent:u,validateUIEvent:l,validateScreenEvent:c,validateOperationalEvent:f,validateAliasType:h,validateGroupType:d,validateEnvOverrideIfPresent:p}=r(29941),g="prod";function useDefault(e,t){return void 0===e?t:e}let LoggingResponseCallback=class LoggingResponseCallback{static callback(e){let t=e.statusCode;t>=200&&t<=299?0===e.eventResponseList.length?console.debug("Event(s) submitted to GASv3"):e.eventResponseList.forEach(e=>{console.warn("Validation report for event with message ID %s:\n",e.messageId,JSON.stringify(e,null,2))}):400===t||404===t?(console.warn("GASv3 submission failed with HTTP Status Code %d: %s",e.statusCode,e.message),e.eventResponseList.forEach(e=>{console.warn("Event with message ID %s:\n",e.messageId,JSON.stringify(e,null,2))})):(console.info("GASv3 submission failed with HTTP Status Code %d: %s",e.statusCode,e.message),e.eventResponseList.forEach(e=>{console.debug("Event with message ID %s:\n",e.messageId,JSON.stringify(e,null,2))}))}};let AnalyticsClient=class AnalyticsClient{static _buildProperties({userIdType:e,tenantIdType:t,tenantId:r,event:i,subproduct:o,product:s,env:a,datacenter:u,version:l,origin:c,orgId:f,workspaceId:h,aliases:d,groups:p},g){return n.merge({},i,{product:s,env:a,datacenter:u,version:l,eventType:g,subproduct:o,userIdType:e,tenantIdType:t,tenantId:r,origin:c,orgId:f,workspaceId:h,aliases:d,groups:p})}constructor({env:e,product:t,subproduct:r,sendEventHook:n,datacenter:a,version:u,origin:l,maxEventsInBatch:c,flushInterval:f,baseUrl:h,logger:d,errorHandler:m,perimeter:y,httpClient:v,httpRequestTimeout:b,maxRetries:_,envOverride:w}){var C,k;s(e,"env"),s(t,"product"),p(w),this.console=useDefault(d,console),this.config={env:e,product:t,subproduct:r,sendEventHook:n,datacenter:a,origin:useDefault(l,"server"),version:u},this.validationMode=e===g?"quiet":"complete",this.responseCallback=LoggingResponseCallback.callback,this.analyticsClient=new i({writeKey:"BLANK",flushAt:c||250,flushInterval:f||1e4,maxRetries:_||3,host:h||(C=e,(k=y)&&"fedramp-moderate"===k?C===g?"https://as.atlassian-us-gov-mod.com/api":"https://as.staging.atl-paas-us-gov-mod.net/api":C===g?"https://as.atlassian.com/api":"https://as.staging.atl-paas.net/api"),path:"/api/v1/batch",httpRequestTimeout:b,httpClient:new o(v,this)}),m&&"function"==typeof m&&this.analyticsClient.on("error",m),this.groups=void 0,this.aliases=void 0}_getTimeoutMilliseconds(e){let t=useDefault(e,6e4);return t<5e3?(this.console.warn(`timeoutMilliseconds was set less than the allowed minimum of 5000. Using the minimum allowed value instead.`),5e3):t}_eventCallback(e){this.config.sendEventHook&&this.config.sendEventHook(e)}_buildCompleteTrackEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:i,tenantId:o,trackEvent:s,subproduct:a,product:u,os:l,timestamp:c,orgId:f,workspaceId:h,groups:d,validationMode:p}){let g=n.merge({},this.groups,d);return{userId:t,anonymousId:r,event:s.actionSubject+" "+s.action,properties:AnalyticsClient._buildProperties({userIdType:e,tenantIdType:i,tenantId:o,event:s,subproduct:useDefault(a,this.config.subproduct),product:useDefault(u,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:useDefault(s.origin,this.config.origin),orgId:f,workspaceId:h,aliases:this.aliases,groups:n.isEmpty(g)?void 0:g},"track"),timestamp:c,context:{os:l,validationMode:null!=p?p:this.validationMode}}}_buildCompleteTraitEvent({entityType:e,entityId:t,entityTraits:r,os:n,timestamp:i,tenantId:o,tenantIdType:s,validationMode:a}){return{anonymousId:"dummy-id",traits:{entityId:t,entityTraits:r,entityType:e},timestamp:i,context:{os:n,validationMode:null!=a?a:this.validationMode},tenantId:o,tenantIdType:s}}_buildCompleteOperationalEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,operationalEvent:o,subproduct:s,product:a,os:u,timestamp:l,orgId:c,workspaceId:f,validationMode:h}){return{userId:t,anonymousId:r,event:o.actionSubject+" "+o.action,properties:AnalyticsClient._buildProperties({userIdType:e,tenantIdType:n,tenantId:i,event:o,subproduct:useDefault(s,this.config.subproduct),product:useDefault(a,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:useDefault(o.origin,this.config.origin),orgId:c,workspaceId:f,aliases:this.aliases,groups:this.groups},"operational"),timestamp:l,context:{os:u,validationMode:null!=h?h:this.validationMode}}}_buildCompleteUIEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,uiEvent:o,subproduct:s,product:a,os:u,timestamp:l,orgId:c,workspaceId:f,validationMode:h}){return{userId:t,anonymousId:r,event:o.actionSubject+" "+o.action,properties:AnalyticsClient._buildProperties({userIdType:e,tenantIdType:n,tenantId:i,event:o,subproduct:useDefault(s,this.config.subproduct),product:useDefault(a,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:useDefault(o.origin,this.config.origin),orgId:c,workspaceId:f,aliases:this.aliases,groups:this.groups},"ui"),timestamp:l,context:{os:u,validationMode:null!=h?h:this.validationMode}}}_buildScreenEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,name:o,screenEvent:s,subproduct:a,product:u,os:l,timestamp:c,orgId:f,workspaceId:h,validationMode:d}){return{userId:t,anonymousId:r,name:o,properties:AnalyticsClient._buildProperties({userIdType:e,tenantIdType:n,tenantId:i,event:s,subproduct:useDefault(a,this.config.subproduct),product:useDefault(u,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:useDefault(s.origin,this.config.origin),orgId:f,workspaceId:h,aliases:this.aliases,groups:this.groups},"screen"),timestamp:c,context:{os:l,validationMode:null!=d?d:this.validationMode}}}sendOperationalEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,operationalEvent:o,subproduct:s,product:a,os:u,timestamp:l,orgId:c,workspaceId:h,validationMode:d}){return f({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,timestamp:l,operationalEvent:o}).then(()=>new Promise((f,p)=>{let g=this._buildCompleteOperationalEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,operationalEvent:o,subproduct:s,product:a,os:u,timestamp:l,orgId:c,workspaceId:h,validationMode:d});this.analyticsClient.track(g,(e,t)=>{e?p(e):(this._eventCallback(g,t),f(t))})}))}sendTrackEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,trackEvent:o,groups:s,subproduct:u,product:l,os:c,timestamp:f,orgId:h,workspaceId:d,validationMode:p}){return a({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,timestamp:f,trackEvent:o,groups:s}).then(()=>new Promise((a,g)=>{let m=this._buildCompleteTrackEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,trackEvent:o,subproduct:u,product:l,os:c,timestamp:f,orgId:h,workspaceId:d,groups:s,validationMode:p});this.analyticsClient.track(m,(e,t)=>{e?g(e):(this._eventCallback(m,t),a(t))})}))}sendTraitEvent({entityType:e,entityId:t,entityTraits:r,os:n,timestamp:i,tenantId:o,tenantIdType:s,validationMode:a}){return u({entityType:e,entityId:t,entityTraits:r,timestamp:i,tenantId:o,tenantIdType:s}).then(()=>new Promise((u,l)=>{let c=this._buildCompleteTraitEvent({entityType:e,entityId:t,entityTraits:r,os:n,timestamp:i,tenantId:o,tenantIdType:s,validationMode:a});this.analyticsClient.identify(c,(e,t)=>{e?l(e):(this._eventCallback(c,t),u(t))})}))}sendUIEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,uiEvent:o,subproduct:s,product:a,os:u,timestamp:c,orgId:f,workspaceId:h,validationMode:d}){return l({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,timestamp:c,uiEvent:o}).then(()=>new Promise((l,p)=>{let g=this._buildCompleteUIEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,uiEvent:o,subproduct:s,product:a,os:u,timestamp:c,orgId:f,workspaceId:h,validationMode:d});this.analyticsClient.track(g,(e,t)=>{e?p(e):(this._eventCallback(g,t),l(t))})}))}sendScreenEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,name:o,screenEvent:s,subproduct:a,product:u,os:l,timestamp:f,orgId:h,workspaceId:d,validationMode:p}){return c({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,name:o,timestamp:f,screenEvent:s}).then(()=>new Promise((c,g)=>{let m=this._buildScreenEvent({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,name:o,screenEvent:s,subproduct:a,product:u,os:l,timestamp:f,orgId:h,workspaceId:d,validationMode:p});this.analyticsClient.page(m,(e,t)=>{e?g(e):(this._eventCallback(m,t),c(t))})}))}gracefulShutdown(){return new Promise((e,t)=>{this.analyticsClient.closeAndFlush().then(t=>{e(t)}).catch(e=>{t(e)})})}setGroup(e,t){this.groups||(this.groups={}),d(e),this.groups[e]=t}clearGroups(){this.groups=void 0}setAlias(e,t){this.aliases||(this.aliases={}),h(e),this.aliases[e]=t}clearAliases(){this.aliases=void 0}setResponseCallback(e){this.responseCallback=e}getResponseCallback(){return this.responseCallback}setEventValidationMode(e){this.validationMode=e}};e.exports={AnalyticsClient}},7796:function(e){"use strict";let t={};e.exports={isAllowedAliasType:function(e){return Object.values(t).includes(e)},ALIAS_TYPE:t}},69385:function(e){"use strict";let t="type",r=["id",t];e.exports={CONTAINER_OBJECT_FIELDS_ALLOWED:r,CONTAINER_OBJECT_FIELDS_MANDATORY:["id"],CONTAINER_OBJECT_FIELD_ID:"id",CONTAINER_OBJECT_FIELD_TYPE:t,isAllowedContainerObjectField:function(e){return r.some(t=>t===e)},isValidContainerObjectField:function(e,t){return r.some(t=>t===e)&&"string"==typeof t}}},24427:function(e,t,r){"use strict";let n=r(96486),i="AJS_ANONYMOUS_USER",o="ATLASSIAN_ACCOUNT",s="EMAIL_UUID",a="SITE",u="SITE_USER",l="TRELLO_USER",c="TRELLO_WORKSPACE",f=[i,o,s,"ORG",a,u,l,c];e.exports={AJS_ANONYMOUS_USER:i,ATLASSIAN_ACCOUNT:o,EMAIL_UUID:s,ORG:"ORG",SITE:a,SITE_USER:u,TRELLO_USER:l,TRELLO_WORKSPACE:c,isValidEntityType:function(e){return f.includes(e)},isValidEntityTraitValue:function(e){return n.isFinite(e)||n.isString(e)&&!n.isEmpty(e)||n.isDate(e)||n.isBoolean(e)}}},79743:function(e){"use strict";let t={FEDRAMP_MODERATE_SANDBOX:"fedramp-moderate-sandbox"};e.exports={isAllowedEnvOverride:function(e){return Object.values(t).includes(e)},ENV_OVERRIDES:t}},10309:function(e){"use strict";let t={TRANSACTION_ACCOUNT_ID:"transactionAccountId",PRODUCT_INTEGRATIONS_VENDOR_ID:"productIntegrationsVendorId"};e.exports={isAllowedGroupType:function(e){return Object.values(t).includes(e)},GROUP_TYPE:t}},57343:function(e){"use strict";let t="cloudId",r="halpTeamId",n="loomOrgId",i="trelloWorkspaceId",o="none",s=[t,r,n,i,o];e.exports={CLOUD_ID:t,HALP_TEAM_ID:r,NONE:o,LOOM_ORG_ID:n,TRELLO_WORKSPACE_ID:i,isValidTenantType:function(e){return s.includes(e)}}},74272:function(e){"use strict";let t="atlassianAccount",r="trello",n="hashedEmail",i="opsgenie",o="halp",s="customerAccount",a="loom";e.exports={ATLASSIAN_ACCOUNT:t,TRELLO:r,HASHED_EMAIL:n,OPSGENIE:i,HALP:o,CUSTOMER_ACCOUNT:s,LOOM:a,isValidUserIdType:function(e){return[t,r,n,i,o,s,a].includes(e)}}},99979:function(e,t,r){"use strict";let{AnalyticsClient:n}=r(34479),i=r(57343),o=r(74272),s=r(24427),{GROUP_TYPE:a}=r(10309),{ALIAS_TYPE:u}=r(7796),{ENV_OVERRIDES:l}=r(79743);e.exports={analyticsClient:function(e){return new n(e)},AnalyticsClient:n,tenantTypes:i,userTypes:o,entityTypes:s,aliasTypes:u,groupTypes:a,envOverrides:l}},29941:function(e,t,r){"use strict";let n=r(96486),i=r(57343),o=r(74272),s=r(24427),{CONTAINER_OBJECT_FIELDS_MANDATORY:a,isAllowedContainerObjectField:u,isValidContainerObjectField:l}=r(69385),{isPlainObject:c}=r(3291),{isAllowedAliasType:f}=r(7796),{isAllowedGroupType:h}=r(10309),{isAllowedEnvOverride:d}=r(79743),p="properties.containers";function requireValidEntityData({entityType:e,entityTraits:t}){if(!s.isValidEntityType(e))throw Error(`Unknown entityType ${e}`);if(!n.isObject(t))throw Error("traits.entityTraits should be Object");n.forEach(t,(e,t)=>{if(!s.isValidEntityTraitValue(e))throw Error(`entityTraits.${t}: ${e} should be one of [String|Number|Boolean|Date]`)})}function requireValidTenantData({tenantId:e,tenantIdType:t}){if(e&&requireValue(t,"tenantIdType"),t){if(!i.isValidTenantType(t))throw Error(`Unknown tenantIdType ${t}`);t!==i.NONE&&requireValue(e,"tenantId")}}function requireValidUserData({userIdType:e,userId:t,anonymousId:r}){if(function({userIdType:e,userId:t}){if(t&&requireValue(e,"userIdType"),e){if(!o.isValidUserIdType(e))throw Error(`Unknown userIdType ${e}`);requireValue(t,"userId")}}({userIdType:e,userId:t}),!t&&!r)throw Error("At least one set of identifiers must be passed - userIdType and userId, or anonymousId")}function requireValue(e,t){if(!e)throw Error(`Value ${t} cannot be undefined`);return e}function requireValidContainers(e){if(e&&e.containers){let t=e.containers;if(c(t)){let r={};Object.keys(t).forEach(e=>{r[e]=function(e,t){let r=t[e];if(r){if(c(r)){let e={};return n.merge(e,function(e){let t={};return a.forEach(r=>{let n=e[r];if(l(r,n))t[r]=n;else throw Error(`Mandatory ContainerObject field "${r}" is not valid: "${n}" ; expected a value of type "string"`)}),t}(r)),n.merge(e,function(e){let t={};return Object.keys(e).forEach(r=>{let n=e[r];if(u(r)){if(l(r,n))t[r]=n;else throw Error(`ContainerObject field "${r}" is not valid: "${n}" ; expected a value of type "string"`)}}),t}(r)),e}throw Error(`ContainerObject "${p}.${e}" is not an object.`)}throw Error(`Container Key "${p}.${e}" has no ContainerObject.`)}(e,t)}),e.containers=r}else throw Error(`"${p}" is not an object.`)}}e.exports={requireValue,validateOperationalEvent:function({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,operationalEvent:o}){try{return requireValidUserData({userIdType:e,userId:t,anonymousId:r}),requireValidTenantData({tenantId:i,tenantIdType:n}),requireValue(o,"operationalEvent"),requireValue(o.source,"operationalEvent.source"),requireValue(o.action,"operationalEvent.action"),requireValue(o.actionSubject,"operationalEvent.actionSubject"),requireValidContainers(o),Promise.resolve()}catch(e){return Promise.reject(e)}},validateTrackEvent:function({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,trackEvent:o,groups:s}){try{return requireValidUserData({userIdType:e,userId:t,anonymousId:r}),requireValidTenantData({tenantId:i,tenantIdType:n}),requireValue(o,"trackEvent"),requireValue(o.source,"trackEvent.source"),requireValue(o.action,"trackEvent.action"),requireValue(o.actionSubject,"trackEvent.actionSubject"),requireValidContainers(o),s&&Object.keys(s).forEach(e=>{if(!h(e))throw Error(`groups object has unsupported groupKey: ${e}`)}),Promise.resolve()}catch(e){return Promise.reject(e)}},validateUIEvent:function({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,uiEvent:o}){try{return requireValidUserData({userIdType:e,userId:t,anonymousId:r}),requireValidTenantData({tenantId:i,tenantIdType:n}),requireValue(o,"uiEvent"),requireValue(o.action,"uiEvent.action"),requireValue(o.actionSubject,"uiEvent.actionSubject"),requireValidContainers(o),Promise.resolve()}catch(e){return Promise.reject(e)}},validateScreenEvent:function({userIdType:e,userId:t,anonymousId:r,tenantIdType:n,tenantId:i,name:o,screenEvent:s}){try{return requireValidUserData({userIdType:e,userId:t,anonymousId:r}),requireValidTenantData({tenantId:i,tenantIdType:n}),requireValue(o,"name"),requireValue(s,"screenEvent"),requireValue(s.platform,"screenEvent.platform"),requireValidContainers(s),Promise.resolve()}catch(e){return Promise.reject(e)}},validateTraitEvent:function({entityType:e,entityId:t,entityTraits:r,tenantId:n,tenantIdType:i}){try{return requireValue(e,"entityType"),requireValue(t,"entityId"),requireValue(r,"entityTraits"),requireValidEntityData({entityType:e,entityTraits:r}),requireValidTenantData({tenantId:n,tenantIdType:i}),Promise.resolve()}catch(e){return Promise.reject(e)}},requireValidEntityData,requireValidUserData,requireValidTenantData,requireValidContainers,validateAliasType:function(e){if(requireValue(e,"aliasType"),!f(e))throw Error(`Unknown aliasType ${e}`)},validateGroupType:function(e){if(requireValue(e,"groupType"),!h(e))throw Error(`Unknown groupType ${e}`)},validateEnvOverrideIfPresent:function(e){if(e&&!d(e))throw Error(`Unknown envOverrides value ${e}`)},CONTAINERS_PATH_PREFIX:p}},3291:function(e){"use strict";function isObjectObject(e){return!0==(null!==e&&"object"==typeof e&&!1===Array.isArray(e))&&"[object Object]"===Object.prototype.toString.call(e)}e.exports={isPlainObject:function(e){if(!1===isObjectObject(e))return!1;let t=e.constructor;if("function"!=typeof t)return!1;let r=t.prototype;return!1!==isObjectObject(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}}},52117:function(e,t,r){"use strict";r.d(t,{Ni:function(){return v},iv:function(){return css_browser_esm},F4:function(){return keyframes},Xn:function(){return emotion_element_04d85134_browser_esm_withEmotionCache}});var n,i,o,s,a,u,l,c,f=r(67294),h=function(){function StyleSheet(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var e=StyleSheet.prototype;return e.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r,n=((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t);r=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,r),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;tn&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(a,"$1"+e.trim());case 58:return e.trim()+t.replace(a,"$1"+e.trim());default:if(0<1*r&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0a)&&(D=(z=z.replace(" ",":")).length),0=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(12717),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.Z)(function(e){return isCustomProperty(e)?e:e.replace(s,"-$&").toLowerCase()}),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(e,t,r,i){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)n={name:o.name,styles:o.styles,next:n},o=o.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;ie.charCodeAt(2)}),u=r(52117),l=r(68087),c=r(32434),testOmitPropsOnComponent=function(e){return"theme"!==e&&"innerRef"!==e},getDefaultShouldForwardProp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?a:testOmitPropsOnComponent};function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var Noop=function(){return null},f=(function createStyled(e,t){void 0!==t&&(r=t.label,s=t.target,o=e.__emotion_forwardProp&&t.shouldForwardProp?function(r){return e.__emotion_forwardProp(r)&&t.shouldForwardProp(r)}:t.shouldForwardProp);var r,o,s,a=e.__emotion_real===e,f=a&&e.__emotion_base||e;"function"!=typeof o&&a&&(o=e.__emotion_forwardProp);var h=o||getDefaultShouldForwardProp(f),d=!h("as");return function(){var p=arguments,g=a&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==r&&g.push("label:"+r+";"),null==p[0]||void 0===p[0].raw)g.push.apply(g,p);else{g.push(p[0][0]);for(var m=p.length,y=1;y0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]{if(!e.writeKey)throw new n("writeKey","writeKey is missing.")},i="1.3.0";function backoff(e){var t=e.minTimeout,r=e.factor,n=e.attempt,i=e.maxTimeout;return Math.min((Math.random()+1)*(void 0===t?500:t)*Math.pow(void 0===r?2:r,n),void 0===i?1/0:i)}let stripTrailingSlash=e=>e.replace(/\/$/,""),tryCreateFormattedUrl=(e,t)=>stripTrailingSlash(new URL(t||"",e).href);for(var o,createDeferred=function(){var e,t,r=new Promise(function(r,n){e=r,t=n});return{resolve:e,reject:t,promise:r}},s=256,a=[];s--;)a[s]=(s+256).toString(16).substring(1);function v4(){var e,t=0,r="";if(!o||s+16>256){for(o=Array(t=256);t--;)o[t]=256*Math.random()|0;t=s=0}for(;t<16;t++)e=o[s+t],6==t?r+=a[15&e|64]:8==t?r+=a[63&e|128]:r+=a[e],1&t&&t>1&&t<11&&(r+="-");return s++,r}let ContextBatch=class ContextBatch{constructor(e){this.id=v4(),this.items=[],this.sizeInBytes=0,this.maxEventCount=Math.max(1,e)}tryAdd(e){if(this.length===this.maxEventCount)return{success:!1,message:`Event limit of ${this.maxEventCount} has been exceeded.`};let t=this.calculateSize(e.context);return t>32768?{success:!1,message:"Event exceeds maximum event size of 32 KB"}:this.sizeInBytes+t>491520?{success:!1,message:"Event has caused batch size to exceed 480 KB"}:(this.items.push(e),this.sizeInBytes+=t,{success:!0})}get length(){return this.items.length}calculateSize(e){return encodeURI(JSON.stringify(e.event)).split(/%..|i/).length}getEvents(){let e=this.items.map(({context:e})=>e.event);return e}getContexts(){return this.items.map(e=>e.context)}resolveEvents(){this.items.forEach(({resolver:e,context:t})=>e(t))}};var u=r(66784);let b64encode=e=>u.lW.from(e).toString("base64");function noop(){}let Publisher=class Publisher{constructor({host:e,path:t,maxRetries:r,flushAt:n,flushInterval:i,writeKey:o,httpRequestTimeout:s,httpClient:a,disable:u},l){this._emitter=l,this._maxRetries=r,this._flushAt=Math.max(n,1),this._flushInterval=i,this._auth=b64encode(`${o}:`),this._url=tryCreateFormattedUrl(e??"https://api.segment.io",t??"/v1/batch"),this._httpRequestTimeout=s??1e4,this._disable=!!u,this._httpClient=a}createBatch(){this.pendingFlushTimeout&&clearTimeout(this.pendingFlushTimeout);let e=new ContextBatch(this._flushAt);return this._batch=e,this.pendingFlushTimeout=setTimeout(()=>{e===this._batch&&(this._batch=void 0),this.pendingFlushTimeout=void 0,e.length&&this.send(e).catch(noop)},this._flushInterval),e}clearBatch(){this.pendingFlushTimeout&&clearTimeout(this.pendingFlushTimeout),this._batch=void 0}flush(e){if(!e||(this._flushPendingItemsCount=e,!this._batch))return;let t=this._batch.length===e;t&&(this.send(this._batch).catch(noop),this.clearBatch())}enqueue(e){let t=this._batch??this.createBatch(),{promise:r,resolve:n}=createDeferred(),i={context:e,resolver:n},o=t.tryAdd(i);if(o.success){let e=t.length===this._flushPendingItemsCount,n=t.length===this._flushAt;return(n||e)&&(this.send(t).catch(noop),this.clearBatch()),r}t.length&&(this.send(t).catch(noop),this.clearBatch());let s=this.createBatch(),a=s.tryAdd(i);if(!a.success)return e.setFailedDelivery({reason:Error(a.message)}),Promise.resolve(e);{let e=s.length===this._flushPendingItemsCount;return e&&(this.send(s).catch(noop),this.clearBatch()),r}}async send(e){this._flushPendingItemsCount&&(this._flushPendingItemsCount-=e.length);let t=e.getEvents(),r=this._maxRetries+1,n=0;for(;n=200&&n.status<300){e.resolveEvents();return}if(400===n.status){resolveFailedBatch(e,Error(`[${n.status}] ${n.statusText}`));return}i=Error(`[${n.status}] ${n.statusText}`)}catch(e){i=e}if(n===r){resolveFailedBatch(e,i);return}await function(e){return new Promise(t=>setTimeout(t,e))}(backoff({attempt:n,minTimeout:25,maxTimeout:1e3}))}}};function resolveFailedBatch(e,t){e.getContexts().forEach(e=>e.setFailedDelivery({reason:t})),e.resolveEvents()}var l=r(83454);let detectRuntime=()=>"object"==typeof l&&l&&"object"==typeof l.env&&l.env&&"string"==typeof l.version?"node":"object"==typeof window?"browser":"undefined"!=typeof WebSocketPair?"cloudflare-worker":"string"==typeof EdgeRuntime?"vercel-edge":"undefined"!=typeof WorkerGlobalScope&&"function"==typeof importScripts?"web-worker":"unknown";var c=r(83454);let createConfiguredNodePlugin=(e,t)=>{let r=new Publisher(e,t);return{publisher:r,plugin:function(e){function action(t){return!function(e){e.updateEvent("context.library.name","@segment/analytics-node"),e.updateEvent("context.library.version",i);let t=detectRuntime();"node"===t&&e.updateEvent("_metadata.nodeVersion",c.version),e.updateEvent("_metadata.jsRuntime",t)}(t),e.enqueue(t)}return{name:"Segment.io",type:"destination",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),alias:action,group:action,identify:action,page:action,screen:action,track:action}}(r)}};function dset(e,t,r){t.split&&(t=t.split("."));for(var n,i,o=0,s=t.length,a=e;ot.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["options"]),p=__assign(__assign(__assign({timestamp:new Date},c),{integrations:s,context:u}),l),g=__assign(__assign({},p),{messageId:this.createMessageId()});return function(e){if(!(null!=e))throw new n("Event",d);if("object"!=typeof e)throw new n("Event",h)}(g),function(e){if(!isString(e.type))throw new n(".type",f)}(g),"track"===g.type&&(function(e){if(!isString(e.event))throw new n(".event",f)}(g),function(e){if(!isPlainObject(e.properties))throw new n(".properties",h)}(g)),["group","identify"].includes(g.type)&&function(e){if(!isPlainObject(e.traits))throw new n(".traits",h)}(g),function(e){var t,r,i,o=".userId/anonymousId/previousId/groupId",s=null!==(i=null!==(r=null!==(t=e.userId)&&void 0!==t?t:e.anonymousId)&&void 0!==r?r:e.groupId)&&void 0!==i?i:e.previousId;if(null!=s){if(!isString(s))throw new n(o,f)}else throw new n(o,d)}(g),g},EventFactory}();let createMessageId=()=>`node-next-${Date.now()}-${v4()}`;let NodeEventFactory=class NodeEventFactory extends p{constructor(){super({createMessageId:createMessageId})}};var g=function(){function CoreLogger(){this._logs=[]}return CoreLogger.prototype.log=function(e,t,r){var n=new Date;this._logs.push({level:e,message:t,time:n,extras:r})},Object.defineProperty(CoreLogger.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),CoreLogger.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var r,n,i,o=__assign(__assign({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete o.time;var s=null!==(i=null===(n=t.time)||void 0===n?void 0:n.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),__assign(__assign({},e),((r={})[s]=o,r))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,r=e.message,n=e.extras;"info"===t||"debug"===t?console.log(r,null!=n?n:""):console[t](r,null!=n?n:"")});this._logs=[]},CoreLogger}(),m=function(e){function NullStats(){return null!==e&&e.apply(this,arguments)||this}return __extends(NullStats,e),NullStats.prototype.gauge=function(){for(var e=[],t=0;tt=>{let r=t.failedDelivery();return r?e(r.reason,t):e(void 0,t)},dispatchAndEmit=async(e,t,r,n)=>{try{let i=new Context(e),o=await function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i,o;return __generator(this,function(s){switch(s.label){case 0:if(r.emit("dispatch_start",e),i=Date.now(),!t.isEmpty())return[3,2];return[4,t.dispatchSingle(e)];case 1:return o=s.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=s.sent(),s.label=4;case 4:var a,u,l,c,f,h;if(!(null==n?void 0:n.callback))return[3,6];return[4,(l=o,c=n.callback,a=i,f=Math.max((null!=(u=n.timeout)?u:300)-(Date.now()-a),0),h=function(){try{return Promise.resolve(c(l))}catch(e){return Promise.reject(e)}},new Promise(function(e){return setTimeout(e,f)}).then(function(){return pTimeout(h(),1e3)}).catch(function(e){null==l||l.log("warn","Callback Error",{error:e}),null==l||l.stats.increment("callback_error")}).then(function(){return l}))];case 5:o=s.sent(),s.label=6;case 6:return(null==n?void 0:n.debug)&&o.flush(),[2,o]}})})}(i,t,r,{...n?{callback:normalizeDispatchCb(n)}:{}}),s=o.failedDelivery();s?r.emit("error",{code:"delivery_failure",reason:s.reason,ctx:o}):r.emit(e.type,o)}catch(e){r.emit("error",{code:"unknown",reason:e})}};var v=function(){function Emitter(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return Emitter.prototype.warnIfPossibleMemoryLeak=function(e){!this.warned&&this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},Emitter.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},Emitter.prototype.once=function(e,t){var r=this,on=function(){for(var n=[],i=0;ie.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,r){return e.getAttempts(t)-e.getAttempts(r)}),n},PriorityQueue.prototype.pushWithBackoff=function(e){var t=this;if(0===this.getAttempts(e))return this.push(e)[0];var r=this.updateAttempts(e);return!(r>this.maxAttempts||this.includes(e))&&(setTimeout(function(){t.queue.push(e),t.future=t.future.filter(function(t){return t.id!==e.id}),t.emit(b)},backoff({attempt:r-1})),this.future.push(e),!0)},PriorityQueue.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},PriorityQueue.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},PriorityQueue.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(t){return t.id===e.id})||!!this.future.find(function(t){return t.id===e.id})},PriorityQueue.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(PriorityQueue.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(PriorityQueue.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),PriorityQueue}(v),createTaskGroup=function(){var e,t,r=0;return{done:function(){return e},run:function(n){var i=n();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++r&&(e=new Promise(function(e){return t=e})),i.finally(function(){return 0==--r&&t()})),i}}};function attempt(e,t){e.log("debug","plugin",{plugin:t.name});var r=new Date().getTime(),n=t[e.event.type];return void 0===n?Promise.resolve(e):(function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return[2,Promise.reject(t.sent())];case 3:return[2]}})})})(function(){return n.apply(t,[e])}).then(function(e){var n=new Date().getTime()-r;return e.stats.gauge("plugin_time",n,["plugin:".concat(t.name)]),e}).catch(function(r){if(r instanceof ContextCancelation&&"middleware_cancellation"===r.type)throw r;return r instanceof ContextCancelation?e.log("warn",r.type,{plugin:t.name,error:r}):(e.log("error","plugin Error",{plugin:t.name,error:r}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)])),r})}var w=function(e){function CoreEventQueue(t){var r=e.call(this)||this;return r.criticalTasks=createTaskGroup(),r.plugins=[],r.failedInitializations=[],r.flushing=!1,r.queue=t,r.queue.on(b,function(){r.scheduleFlush(0)}),r}return __extends(CoreEventQueue,e),CoreEventQueue.prototype.register=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(i){switch(i.label){case 0:return[4,Promise.resolve(t.load(e,r)).then(function(){n.plugins.push(t)}).catch(function(r){if("destination"===t.type){n.failedInitializations.push(t.name),console.warn(t.name,r),e.log("warn","Failed to load destination",{plugin:t.name,error:r});return}throw r})];case 1:return i.sent(),[2]}})})},CoreEventQueue.prototype.deregister=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!t.unload)return[3,2];return[4,Promise.resolve(t.unload(e,r))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(e){return e.name!==t.name}),[3,4];case 3:return n=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:n}),[3,4];case 4:return[2]}})})},CoreEventQueue.prototype.dispatch=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]})})},CoreEventQueue.prototype.subscribeToDelivery=function(e){return __awaiter(this,void 0,void 0,function(){var t=this;return __generator(this,function(r){return[2,new Promise(function(r){var onDeliver=function(n,i){n.isSame(e)&&(t.off("flush",onDeliver),r(n))};t.on("flush",onDeliver)})]})})},CoreEventQueue.prototype.dispatchSingle=function(e){return __awaiter(this,void 0,void 0,function(){var t=this;return __generator(this,function(r){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch(function(r){return t.enqueuRetry(r,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:r}),e)})]})})},CoreEventQueue.prototype.isEmpty=function(){return 0===this.queue.length},CoreEventQueue.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout(function(){t.flush().then(function(){setTimeout(function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)},0)})},e))},CoreEventQueue.prototype.deliver=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,i;return __generator(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),t=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=o.sent(),r=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",r),e.log("debug","Delivered",e.event),[2,e];case 4:throw i=n=o.sent(),e.log("error","Failed to deliver",i),this.emit("delivery_failure",e,i),e.stats.increment("delivery_failed"),n;case 5:return[2]}})})},CoreEventQueue.prototype.enqueuRetry=function(e,t){return(!(e instanceof ContextCancelation)||!!e.retry)&&this.queue.pushWithBackoff(t)},CoreEventQueue.prototype.flush=function(){return __awaiter(this,void 0,void 0,function(){var e,t;return __generator(this,function(r){switch(r.label){case 0:if(0===this.queue.length||!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=r.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=r.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}})})},CoreEventQueue.prototype.isReady=function(){return!0},CoreEventQueue.prototype.availableExtensions=function(e){var t,r,n=(t="type",r={},this.plugins.filter(function(t){if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var r,n,i,o=void 0;return null===(r=t.alternativeNames)||void 0===r||r.forEach(function(t){void 0!==e[t]&&(o=e[t])}),null!==(i=null!==(n=e[t.name])&&void 0!==n?n:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)}).forEach(function(e){var n,i=void 0;if("string"==typeof t){var o=e[t];i="string"!=typeof o?JSON.stringify(o):o}else t instanceof Function&&(i=t(e));void 0!==i&&(r[i]=__spreadArray(__spreadArray([],null!==(n=r[i])&&void 0!==n?n:[],!0),[e],!1))}),r),i=n.before,o=n.enrichment,s=n.destination,a=n.after;return{before:void 0===i?[]:i,enrichment:void 0===o?[]:o,destinations:void 0===s?[]:s,after:void 0===a?[]:a}},CoreEventQueue.prototype.flushOne=function(e){var t,r;return __awaiter(this,void 0,void 0,function(){var n,i,o,s,a,u,l,c,f,h,d,p,g;return __generator(this,function(m){switch(m.label){case 0:if(!this.isReady())throw Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),i=(n=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{})).before,o=n.enrichment,s=0,a=i,m.label=1;case 1:var v;if(!(s{if("cloudflare-worker"===detectRuntime())return[];let t=new(globalThis.AbortController||AbortController),r=setTimeout(()=>{t.abort()},e);return r?.unref?.(),[t.signal,r]},fetch=async(...e)=>{if(globalThis.fetch)return globalThis.fetch(...e);if("string"!=typeof EdgeRuntime)return(await r.e(1068).then(r.t.bind(r,1068,23))).default(...e);throw Error("Invariant: an edge runtime that does not support fetch should not exist")};let FetchHTTPClient=class FetchHTTPClient{constructor(e){this._fetch=e??fetch}async makeRequest(e){let[t,r]=abortSignalAfterTimeout(e.httpRequestTimeout),n={url:e.url,method:e.method,headers:e.headers,body:JSON.stringify(e.data),signal:t};return this._fetch(e.url,n).finally(()=>clearTimeout(r))}};let Analytics=class Analytics extends NodeEmitter{constructor(e){super(),this._isClosed=!1,this._pendingEvents=0,this._isFlushing=!1,validateSettings(e),this._eventFactory=new NodeEventFactory,this._queue=new NodeEventQueue;let t=e.flushInterval??1e4;this._closeAndFlushDefaultTimeout=1.25*t;let{plugin:r,publisher:n}=createConfiguredNodePlugin({writeKey:e.writeKey,host:e.host,path:e.path,maxRetries:e.maxRetries??3,flushAt:e.flushAt??e.maxEventsInBatch??15,httpRequestTimeout:e.httpRequestTimeout,disable:e.disable,flushInterval:t,httpClient:"function"==typeof e.httpClient?new FetchHTTPClient(e.httpClient):e.httpClient??new FetchHTTPClient},this);this._publisher=n,this.ready=this.register(r).then(()=>void 0),this.emit("initialize",e),function(e){for(var t=e.constructor.prototype,r=0,n=Object.getOwnPropertyNames(t);r{this._pendingEvents?this.once("drained",()=>{e()}):e()}).finally(()=>{this._isFlushing=!1});return e?pTimeout(r,e).catch(()=>void 0):r}_dispatch(e,t){if(this._isClosed){this.emit("call_after_close",e);return}this._pendingEvents++,dispatchAndEmit(e,this._queue,this,t).catch(e=>e).finally(()=>{this._pendingEvents--,this._pendingEvents||this.emit("drained")})}alias({userId:e,previousId:t,context:r,timestamp:n,integrations:i},o){let s=this._eventFactory.alias(e,t,{context:r,integrations:i,timestamp:n});this._dispatch(s,o)}group({timestamp:e,groupId:t,userId:r,anonymousId:n,traits:i={},context:o,integrations:s},a){let u=this._eventFactory.group(t,i,{context:o,anonymousId:n,userId:r,timestamp:e,integrations:s});this._dispatch(u,a)}identify({userId:e,anonymousId:t,traits:r={},context:n,timestamp:i,integrations:o},s){let a=this._eventFactory.identify(e,r,{context:n,anonymousId:t,userId:e,timestamp:i,integrations:o});this._dispatch(a,s)}page({userId:e,anonymousId:t,category:r,name:n,properties:i,context:o,timestamp:s,integrations:a},u){let l=this._eventFactory.page(r??null,n??null,i,{context:o,anonymousId:t,userId:e,timestamp:s,integrations:a});this._dispatch(l,u)}screen({userId:e,anonymousId:t,category:r,name:n,properties:i,context:o,timestamp:s,integrations:a},u){let l=this._eventFactory.screen(r??null,n??null,i,{context:o,anonymousId:t,userId:e,timestamp:s,integrations:a});this._dispatch(l,u)}track({userId:e,anonymousId:t,event:r,properties:n,context:i,timestamp:o,integrations:s},a){let u=this._eventFactory.track(r,n,{context:i,userId:e,anonymousId:t,timestamp:o,integrations:s});this._dispatch(u,a)}register(...e){return this._queue.criticalTasks.run(async()=>{let t=Context.system(),r=e.map(e=>this._queue.register(t,e,this));await Promise.all(r),this.emit("register",e.map(e=>e.name))})}async deregister(...e){let t=Context.system(),r=e.map(e=>{let r=this._queue.plugins.find(t=>t.name===e);if(r)return this._queue.deregister(t,r,this);t.log("warn",`plugin ${e} not found`)});await Promise.all(r),this.emit("deregister",e)}};var C=Analytics},66784:function(e,t,r){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */let n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!Buffer.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|byteLength(e,t),n=createBuffer(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(isInstance(e,Uint8Array)){let t=new Uint8Array(e);return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayLike(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return fromArrayBuffer(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return Buffer.from(n,t,r);let i=function(e){var t;if(Buffer.isBuffer(e)){let t=0|checked(e.length),r=createBuffer(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?createBuffer(0):fromArrayLike(e):"Buffer"===e.type&&Array.isArray(e.data)?fromArrayLike(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){let t=e.length<0?0:0|checked(e.length),r=createBuffer(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(i)return n?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),i=!0}}function slowToString(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,i){let o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,u/=2,r/=2}function read(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(u=(31&t)<<6|63&r)>127&&(o=u);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(u=(15&t)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,i,o){if(!Buffer.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function wrtBigUInt64LE(e,t,r,n,i){checkIntBI(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function wrtBigUInt64BE(e,t,r,n,i){checkIntBI(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function checkIEEE754(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function writeFloat(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=Buffer,t.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,t,r){return(assertSize(e),e<=0)?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);in.length?(Buffer.isBuffer(t)||(t=Buffer.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(Buffer.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(Buffer.prototype[o]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,t,r,n,i){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,a=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let d=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let s=t.length;for(n>s/2&&(n=s/2),i=0;i>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,f);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||checkOffset(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||checkOffset(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod(function(e){validateNumber(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&boundsError(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&boundsError(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||checkOffset(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Buffer.prototype.readInt8=function(e,t){return(e>>>=0,t||checkOffset(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod(function(e){validateNumber(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&boundsError(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&boundsError(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;checkInt(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;checkInt(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod(function(e,t=0){return wrtBigUInt64LE(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod(function(e,t=0){return wrtBigUInt64BE(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);checkInt(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);checkInt(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod(function(e,t=0){return wrtBigUInt64LE(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeBigInt64BE=defineBigIntMethod(function(e,t=0){return wrtBigUInt64BE(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(!Buffer.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function checkIntBI(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new s.ERR_OUT_OF_RANGE("value",n,e)}validateNumber(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&boundsError(i,n.length-(o+1))}function validateNumber(e,t){if("number"!=typeof e)throw new s.ERR_INVALID_ARG_TYPE(t,"number",e)}function boundsError(e,t,r){if(Math.floor(e)!==e)throw validateNumber(e,r),new s.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new s.ERR_BUFFER_OUT_OF_BOUNDS;throw new s.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=addNumericalSeparator(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=addNumericalSeparator(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let a=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let s=0;s55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function base64ToBytes(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(a,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,n){let i;for(i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let u=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function defineBigIntMethod(e){return"undefined"==typeof BigInt?BufferBigIntNotDefined:e}function BufferBigIntNotDefined(){throw Error("BigInt not supported")}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=getLens(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=getLens(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),l=0,c=a>0?s-4:s;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},80645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:(d?-1:1)*(1/0);s+=Math.pow(2,n),o-=l}return(d?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;e[r+d]=255&s,d+=p,s/=256,l-=8);e[r+d-p]|=128*g}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},17282:function(e,t,r){"use strict";var n=r(82729),i=r(93733),o=r(34297),s=r(67294),a=r(31666);function _templateObject(){var e=(0,n._)(["\n background-color: ",";\n border: none;\n appearance: none;\n cursor: pointer;\n padding: 0;\n width: ",";\n height: ",";\n position: relative;\n outline: 1px solid transparent;\n transition: 0.6s background-color;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n ",";\n font: inherit;\n\n &:hover {\n transition: 0.3s background-color;\n background-color: ",";\n }\n\n &:active {\n transition: 0s background-color;\n background-color: ",";\n }\n\n &:disabled {\n color: ",";\n pointer-events: none;\n }\n\n &:before {\n content: '';\n width: 100%;\n height: 100%;\n display: block;\n position: absolute;\n top: 0;\n ",";\n }\n\n &:focus-visible:before {\n ",";\n }\n\n &:focus::-moz-focus-inner {\n border: 0;\n }\n"]);return _templateObject=function(){return e},e}var __rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},u={small:{size:(0,i.u)(3),iconSize:2.25},medium:{size:(0,i.u)(4),iconSize:3}},l=a.Z.button(_templateObject(),function(e){return e.isActive?(0,i.Rv)("backgroundActive"):"transparent"},function(e){return u[e.size].size},function(e){return u[e.size].size},(0,i.H5)("full"),function(e){return(0,i.Rv)(e.isActive?"backgroundActive":"backgroundHover")},(0,i.Rv)("backgroundActive"),(0,i.Rv)("disabledContent"),(0,i.H5)("full"),(0,i.yb)());t.Z=function(e){var t=e.altText,r=e.icon,n=e.onClick,i=e.iconColor,a=e.isActive,c=e.isDisabled,f=e.size,h=void 0===f?"medium":f,d=__rest(e,["altText","icon","onClick","iconColor","isActive","isDisabled","size"]);return s.createElement(l,Object.assign({"aria-label":t,onClick:n,isActive:a,disabled:c,size:h},d),s.createElement(o.Z,{icon:r,size:u[h].iconSize,color:c?"disabledContent":void 0===i?"body":i}))}},34297:function(e,t,r){"use strict";var n=r(82729),i=r(93733),o=r(67294),s=r(31666),a=r(72662);function _templateObject(){var e=(0,n._)(["\n display: block;\n color: ",";\n\n & > svg,\n & > img {\n display: block;\n ",";\n ",";\n }\n"]);return _templateObject=function(){return e},e}var __rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},u=s.Z.span(_templateObject(),function(e){return(0,i.Rv)(e.color)},function(e){return!e.hasWidthOffset&&(0,i.ap)("width",e.size)},function(e){return(0,i.ap)("height",e.size)});t.Z=function(e){var t=e.altText,r=e.icon,n=e.color,i=e.size,s=e.hasWidthOffset,l=__rest(e,["altText","icon","color","size","hasWidthOffset"]),c=o.useRef(null),f=3*a.bf;return o.useEffect(function(){if(s){var e=c.current.querySelector("svg");if(e){var t=e.getBBox();e.setAttribute("viewBox","".concat(t.x," 0 ").concat(t.width||f," ").concat(f))}}},[]),o.createElement(u,Object.assign({ref:c,"aria-label":t,color:void 0===n?"body":n,size:void 0===i?3:i,hasWidthOffset:s},l),r)}},95429:function(e,t,r){"use strict";var n=r(82729),i=r(248),o=r(67294),s=r(93733),a=r(31666);function _templateObject(){var e=(0,n._)(["\n display: block;\n ",";\n\n & > svg.lns-logoSvg {\n display: block;\n width: 100%;\n height: 100%;\n ",";\n }\n"]);return _templateObject=function(){return e},e}var __rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},LoomAiGradientDef=function(e){return o.createElement("defs",null,o.createElement("radialGradient",{id:"ai-logo-".concat(e,"-gradient-1"),cx:"50%",cy:"50%",r:"100%",fx:"0%",fy:"0%"},o.createElement("stop",{offset:"30%",stopColor:"#97ACFD"}),o.createElement("stop",{offset:"33%",stopColor:"#B3B2F4"}),o.createElement("stop",{offset:"43%",stopColor:"#DEB0E0"}),o.createElement("stop",{offset:"50%",stopColor:"#DFC6E5"}),o.createElement("stop",{offset:"72%",stopColor:"#6663F6"})),o.createElement("radialGradient",{id:"ai-logo-".concat(e,"-gradient-2"),r:"100%",fx:"40%",fy:"72%"},o.createElement("stop",{offset:"20%",stopColor:"#615CF500"}),o.createElement("stop",{offset:"32%",stopColor:"#615CF550"}),o.createElement("stop",{offset:"48%",stopColor:"#6663F6"})),o.createElement("radialGradient",{id:"ai-logo-".concat(e,"-gradient-3"),r:"100%",fx:"0%",fy:"100%"},o.createElement("stop",{offset:"25%",stopColor:"#6663F6"}),o.createElement("stop",{offset:"38%",stopColor:"#6E68F450"}),o.createElement("stop",{offset:"45%",stopColor:"#6E68F400"})))},u="M30 15.4433C30 16.6091 29.0933 16.8581 27.9562 16.9301C22.5158 17.2323 16.7962 22.686 16.4795 28.112C16.422 29.2634 16.173 30.1702 15.0072 30.1702C13.8414 30.1702 13.578 29.2634 13.5205 28.0976C13.2038 22.686 7.48416 17.2323 2.05814 16.9301C0.906735 16.8581 0 16.6091 0 15.4433C0 14.2775 0.906735 14.043 2.05814 13.971C7.48416 13.6687 13.2038 7.65433 13.5205 2.22831C13.578 1.0769 13.827 0.170166 15.0072 0.170166C16.1874 0.170166 16.422 1.0769 16.4795 2.22831C16.7962 7.65433 22.5158 13.6687 27.9419 13.971C29.0933 14.043 30 14.2919 30 15.4433Z",SymbolLogoSvg=function(e){var t=e.brand,r=e.symbolColor,n=e.customId,a=e.title,l=__rest(e,["brand","symbolColor","customId","title"]);return"ai"===t?o.createElement("svg",Object.assign({viewBox:"0 0 30 31",fill:"none"},l),a&&o.createElement("title",null,a),r?o.createElement("path",{d:u,fill:(0,s.Rv)(r)}):o.createElement(o.Fragment,null,LoomAiGradientDef(n),(0,i._)([,,,]).map(function(e,t){return o.createElement("path",{key:t,d:u,fill:"url(#ai-logo-".concat(n,"-gradient-").concat(t+1)})}))):o.createElement("svg",Object.assign({viewBox:"0 0 31 30",fill:"none"},l),a&&o.createElement("title",null,a),o.createElement("path",{d:"M30.01 13.43h-9.142l7.917-4.57-1.57-2.72-7.918 4.57 4.57-7.915-2.72-1.57-4.571 7.913V0h-3.142v9.139L8.863 1.225l-2.721 1.57 4.57 7.913L2.796 6.14 1.225 8.86l7.917 4.57H0v3.141h9.141l-7.916 4.57 1.57 2.72 7.918-4.57-4.571 7.915 2.72 1.57 4.572-7.914V30h3.142v-9.334l4.655 8.06 2.551-1.472-4.656-8.062 8.087 4.668 1.571-2.72-7.916-4.57h9.141v-3.14h.001zm-15.005 5.84a4.271 4.271 0 11-.001-8.542 4.271 4.271 0 01.001 8.542z",fill:r?(0,s.Rv)(r):(0,s.Rv)("primary")}))},WordmarkLogoSvg=function(e){var t=e.brand,r=e.wordmarkColor,n=e.title,i=__rest(e,["brand","wordmarkColor","title"]);return"ai"===t?o.createElement("svg",Object.assign({viewBox:"0 0 94 23",fill:r},i),n&&o.createElement("title",null,n),o.createElement("path",{d:"M4.12637 22.4624H0V0H4.12637V22.4624Z"}),o.createElement("path",{d:"M13.3999 19.1737C15.4166 19.1737 17.2781 17.7155 17.2781 14.8301C17.2781 11.9448 15.4166 10.4866 13.3999 10.4866C11.3833 10.4866 9.52175 11.9448 9.52175 14.8301C9.52175 17.6845 11.3833 19.1737 13.3999 19.1737ZM13.3999 6.7325C17.9606 6.7325 21.4045 10.1143 21.4045 14.8301C21.4045 19.515 17.9606 22.9277 13.3999 22.9277C8.83919 22.9277 5.39538 19.515 5.39538 14.8301C5.39538 10.1143 8.83919 6.7325 13.3999 6.7325Z"}),o.createElement("path",{d:"M29.7548 19.1737C31.7714 19.1737 33.6329 17.7155 33.6329 14.8301C33.6329 11.9448 31.7714 10.4866 29.7548 10.4866C27.7381 10.4866 25.8766 11.9448 25.8766 14.8301C25.8766 17.6845 27.7381 19.1737 29.7548 19.1737ZM29.7548 6.7325C34.3155 6.7325 37.7593 10.1143 37.7593 14.8301C37.7593 19.515 34.3155 22.9277 29.7548 22.9277C25.194 22.9277 21.7502 19.515 21.7502 14.8301C21.7502 10.1143 25.194 6.7325 29.7548 6.7325Z"}),o.createElement("path",{d:"M43.1622 22.4624H39.0358V7.19788H42.976V9.05941C43.8137 7.57019 45.7683 6.76353 47.4437 6.76353C49.5224 6.76353 51.1978 7.66326 51.9734 9.30761C53.1834 7.44609 54.7967 6.76353 56.8134 6.76353C59.6367 6.76353 62.3359 8.46992 62.3359 12.5653V22.4624H58.3336V13.403C58.3336 11.7586 57.5269 10.5176 55.6344 10.5176C53.8659 10.5176 52.8111 11.8827 52.8111 13.5271V22.4624H48.7157V13.403C48.7157 11.7586 47.878 10.5176 46.0165 10.5176C44.2171 10.5176 43.1622 11.8517 43.1622 13.5271V22.4624Z"}),o.createElement("path",{d:"M84.1324 22.4624L82.3019 17.4363H73.3666L71.5361 22.4624H67.0064L75.4453 0.46538H80.4093L88.7862 22.4624H84.1324ZM77.8342 5.21226L74.7937 13.5271H80.8747L77.8342 5.21226Z"}),o.createElement("path",{d:"M94 22.4624H89.6565V0.46538H94V22.4624Z"})):o.createElement("svg",Object.assign({viewBox:"0 0 62 23",fill:r},i),n&&o.createElement("title",null,n),o.createElement("path",{d:"M.109 21.973V.027h4.028v21.946H.109zM38.742 7.059h3.846v1.82c.818-1.456 2.727-2.244 4.362-2.244 2.03 0 3.665.88 4.422 2.485 1.18-1.82 2.756-2.485 4.725-2.485 2.756 0 5.39 1.667 5.39 5.668v9.67h-3.906v-8.851c0-1.607-.788-2.82-2.636-2.82-1.727 0-2.757 1.335-2.757 2.942v8.73h-3.997v-8.852c0-1.607-.817-2.82-2.635-2.82-1.757 0-2.787 1.305-2.787 2.942v8.73h-4.027V7.059zM13.24 22.405c-4.537 0-7.824-3.367-7.824-7.889 0-4.45 3.276-7.896 7.824-7.896 4.57 0 7.824 3.478 7.824 7.896 0 4.49-3.288 7.889-7.824 7.889zm0-12.135a4.25 4.25 0 00-4.244 4.247 4.25 4.25 0 004.244 4.247 4.25 4.25 0 004.243-4.247 4.25 4.25 0 00-4.243-4.247zM29.667 22.405c-4.538 0-7.824-3.367-7.824-7.889 0-4.45 3.276-7.896 7.824-7.896 4.57 0 7.824 3.478 7.824 7.896 0 4.49-3.29 7.889-7.824 7.889zm0-12.186a4.3 4.3 0 00-4.293 4.296 4.3 4.3 0 004.293 4.296 4.3 4.3 0 004.293-4.296 4.3 4.3 0 00-4.293-4.296z"}))},l="M100 7.76427C100 8.35691 99.539 8.48348 98.961 8.52007C96.1953 8.67371 93.2877 11.4461 93.1267 14.2045C93.0975 14.7898 92.9709 15.2508 92.3783 15.2508C91.7856 15.2508 91.6517 14.7898 91.6225 14.1972C91.4615 11.4461 88.5539 8.67371 85.7955 8.52007C85.2102 8.48348 84.7492 8.35691 84.7492 7.76427C84.7492 7.17162 85.2102 7.05237 85.7955 7.01578C88.5539 6.86213 91.4615 3.80464 91.6225 1.04628C91.6517 0.460948 91.7783 0 92.3783 0C92.9782 0 93.0975 0.460948 93.1267 1.04628C93.2877 3.80464 96.1953 6.86213 98.9537 7.01578C99.539 7.05237 100 7.17894 100 7.76427Z",CombinedLogoSvg=function(e){var t=e.brand,r=e.wordmarkColor,n=e.symbolColor,a=e.customId,u=e.title,c=__rest(e,["brand","wordmarkColor","symbolColor","customId","title"]);return"ai"===t?o.createElement("svg",Object.assign({viewBox:"0 0 100 30",fill:"none"},c),u&&o.createElement("title",null,u),n?o.createElement("path",{d:l,fill:(0,s.Rv)(n)}):o.createElement(o.Fragment,null,LoomAiGradientDef(a),(0,i._)([,,,]).map(function(e,t){return o.createElement("path",{key:t,d:l,fill:"url(#ai-logo-".concat(a,"-gradient-").concat(t+1)})})),o.createElement("g",{fill:r},o.createElement("path",{d:"M4.1997 29.5909H0.570312V9.83386H4.1997V29.5909Z"}),o.createElement("path",{d:"M12.3563 26.6983C14.1301 26.6983 15.7674 25.4157 15.7674 22.8778C15.7674 20.34 14.1301 19.0574 12.3563 19.0574C10.5826 19.0574 8.94526 20.34 8.94526 22.8778C8.94526 25.3884 10.5826 26.6983 12.3563 26.6983ZM12.3563 15.7555C16.3678 15.7555 19.3968 18.73 19.3968 22.8778C19.3968 26.9984 16.3678 30.0002 12.3563 30.0002C8.34491 30.0002 5.31587 26.9984 5.31587 22.8778C5.31587 18.73 8.34491 15.7555 12.3563 15.7555Z"}),o.createElement("path",{d:"M26.7414 26.6983C28.5152 26.6983 30.1525 25.4157 30.1525 22.8778C30.1525 20.34 28.5152 19.0574 26.7414 19.0574C24.9676 19.0574 23.3303 20.34 23.3303 22.8778C23.3303 25.3884 24.9676 26.6983 26.7414 26.6983ZM26.7414 15.7555C30.7528 15.7555 33.7819 18.73 33.7819 22.8778C33.7819 26.9984 30.7528 30.0002 26.7414 30.0002C22.73 30.0002 19.7009 26.9984 19.7009 22.8778C19.7009 18.73 22.73 15.7555 26.7414 15.7555Z"}),o.createElement("path",{d:"M38.534 29.5909H34.9047V16.1648H38.3703V17.8022C39.1071 16.4923 40.8263 15.7828 42.2999 15.7828C44.1282 15.7828 45.6018 16.5742 46.284 18.0205C47.3483 16.3831 48.7673 15.7828 50.5411 15.7828C53.0243 15.7828 55.3984 17.2837 55.3984 20.8858V29.5909H51.8782V21.6226C51.8782 20.1763 51.1687 19.0847 49.5041 19.0847C47.9486 19.0847 47.0208 20.2854 47.0208 21.7317V29.5909H43.4187V21.6226C43.4187 20.1763 42.6819 19.0847 41.0446 19.0847C39.4619 19.0847 38.534 20.2581 38.534 21.7317V29.5909Z"}),o.createElement("path",{d:"M74.5698 29.5909L72.9598 25.1701H65.1006L63.4906 29.5909H59.5064L66.929 10.2432H71.2951L78.6631 29.5909H74.5698ZM69.0302 14.4184L66.3559 21.7317H71.7045L69.0302 14.4184Z"}),o.createElement("path",{d:"M83.249 29.5909H79.4285V10.2432H83.249V29.5909Z"}))):o.createElement("svg",Object.assign({viewBox:"0 0 100 30",fill:"none"},c),u&&o.createElement("title",null,u),o.createElement("path",{d:"M30.01 13.43h-9.142l7.917-4.57-1.57-2.72-7.918 4.57 4.57-7.915-2.72-1.57-4.571 7.913V0h-3.142v9.139L8.863 1.225l-2.721 1.57 4.57 7.913L2.796 6.14 1.225 8.86l7.917 4.57H0v3.141h9.141l-7.916 4.57 1.57 2.72 7.918-4.57-4.571 7.915 2.72 1.57 4.572-7.914V30h3.142v-9.334l4.655 8.06 2.551-1.472-4.656-8.062 8.087 4.668 1.571-2.72-7.916-4.57h9.141v-3.14h.001zm-15.005 5.84a4.271 4.271 0 11-.001-8.542 4.271 4.271 0 01.001 8.542z",fill:n?(0,s.Rv)(n):(0,s.Rv)("primary")}),o.createElement("path",{d:"M38.109 25.973V4.027h4.028v21.946h-4.028zM76.742 11.059h3.846v1.82c.818-1.455 2.727-2.244 4.362-2.244 2.03 0 3.665.88 4.422 2.485 1.18-1.82 2.756-2.485 4.725-2.485 2.756 0 5.39 1.667 5.39 5.668v9.67h-3.906v-8.851c0-1.607-.788-2.82-2.636-2.82-1.727 0-2.757 1.335-2.757 2.942v8.73h-3.996v-8.852c0-1.607-.818-2.82-2.636-2.82-1.757 0-2.787 1.305-2.787 2.942v8.73h-4.027V11.059zM51.24 26.405c-4.538 0-7.824-3.367-7.824-7.889 0-4.45 3.276-7.896 7.824-7.896 4.57 0 7.824 3.478 7.824 7.896 0 4.49-3.288 7.889-7.824 7.889zm0-12.135a4.25 4.25 0 00-4.244 4.247 4.25 4.25 0 004.244 4.247 4.25 4.25 0 004.243-4.247 4.25 4.25 0 00-4.243-4.247zM67.667 26.405c-4.538 0-7.824-3.367-7.824-7.889 0-4.45 3.276-7.896 7.824-7.896 4.57 0 7.824 3.478 7.824 7.896 0 4.49-3.29 7.889-7.824 7.889zm0-12.186a4.3 4.3 0 00-4.293 4.296 4.3 4.3 0 004.293 4.296 4.3 4.3 0 004.293-4.296 4.3 4.3 0 00-4.293-4.296z",fill:r}))},c=a.Z.span(_templateObject(),function(e){return e.maxWidth&&(0,s.ap)("max-width",e.maxWidth)},function(e){return e.maxWidth&&(0,s.ap)("max-width",e.maxWidth)});t.Z=function(e){var t=e.variant,r=void 0===t?"combined":t,n=e.maxWidth,i=e.symbolColor,a=e.wordmarkColor,u=void 0===a?"body":a,l=e.brand,f=void 0===l?"loom":l,h=e.customId,d=void 0===h?"":h,p=e.title,g=void 0===p?"":p,m=__rest(e,["variant","maxWidth","symbolColor","wordmarkColor","brand","customId","title"]);return o.createElement(c,Object.assign({variant:r,maxWidth:n},m),"combined"===r&&o.createElement(CombinedLogoSvg,{brand:f,symbolColor:i,wordmarkColor:(0,s.Rv)(u),customId:d,className:"lns-logoSvg",title:g}),"symbol"===r&&o.createElement(SymbolLogoSvg,{brand:f,symbolColor:i,customId:d,className:"lns-logoSvg",title:g}),"wordmark"===r&&o.createElement(WordmarkLogoSvg,{brand:f,wordmarkColor:(0,s.Rv)(u),className:"lns-logoSvg",title:g}))}},85040:function(e,t,r){"use strict";function clientHookInServerComponentError(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),r(38754),r(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6104:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(48564),i=r(2267);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return useSearchParams},usePathname:function(){return usePathname},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return c.useServerInsertedHTML},useRouter:function(){return useRouter},useParams:function(){return useParams},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},redirect:function(){return f.redirect},permanentRedirect:function(){return f.permanentRedirect},RedirectType:function(){return f.RedirectType},notFound:function(){return h.notFound}});var o=r(67294),s=r(1158),a=r(98197),u=r(85040),l=r(11130),c=r(94198),f=r(76282),h=r(69498),d=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}var p=function(){function ReadonlyURLSearchParams(e){n._(this,ReadonlyURLSearchParams),this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}return i._(ReadonlyURLSearchParams,[{key:Symbol.iterator,value:function(){return this[d][Symbol.iterator]()}},{key:"append",value:function(){throw readonlyURLSearchParamsError()}},{key:"delete",value:function(){throw readonlyURLSearchParamsError()}},{key:"set",value:function(){throw readonlyURLSearchParamsError()}},{key:"sort",value:function(){throw readonlyURLSearchParamsError()}}]),ReadonlyURLSearchParams}();function useSearchParams(){(0,u.clientHookInServerComponentError)("useSearchParams");var e=(0,o.useContext)(a.SearchParamsContext);return(0,o.useMemo)(function(){return e?new p(e):null},[e])}function usePathname(){return(0,u.clientHookInServerComponentError)("usePathname"),(0,o.useContext)(a.PathnameContext)}function useRouter(){(0,u.clientHookInServerComponentError)("useRouter");var e=(0,o.useContext)(s.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function useParams(){(0,u.clientHookInServerComponentError)("useParams");var e=(0,o.useContext)(s.GlobalLayoutRouterContext),t=(0,o.useContext)(a.PathParamsContext);return(0,o.useMemo)(function(){return(null==e?void 0:e.tree)?function getSelectedParams(e,t){void 0===t&&(t={});var r=e[1],n=!0,i=!1,o=void 0;try{for(var s,a=Object.values(r)[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var u=s.value,l=u[0],c=Array.isArray(l),f=c?l[1]:l;!f||f.startsWith("__PAGE__")||(c&&("c"===l[2]||"oc"===l[2])?t[l[0]]=l[1].split("/"):c&&(t[l[0]]=l[1]),t=getSelectedParams(u,t))}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return t}(e.tree):t},[null==e?void 0:e.tree,t])}function useSelectedLayoutSegments(e){return void 0===e&&(e="children"),(0,u.clientHookInServerComponentError)("useSelectedLayoutSegments"),function getSelectedLayoutSegmentPath(e,t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=[]),r)i=e[1][t];else{var i,o,s=e[1];i=null!=(o=s.children)?o:Object.values(s)[0]}if(!i)return n;var a=i[0],u=(0,l.getSegmentValue)(a);return!u||u.startsWith("__PAGE__")?n:(n.push(u),getSelectedLayoutSegmentPath(i,t,!1,n))}((0,o.useContext)(s.LayoutRouterContext).tree,e)}function useSelectedLayoutSegment(e){void 0===e&&(e="children"),(0,u.clientHookInServerComponentError)("useSelectedLayoutSegment");var t=useSelectedLayoutSegments(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69498:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return notFound},isNotFoundError:function(){return isNotFoundError}});var r="NEXT_NOT_FOUND";function notFound(){var e=Error(r);throw e.digest=r,e}function isNotFoundError(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76282:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(24043);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return i},getRedirectError:function(){return getRedirectError},redirect:function(){return redirect},permanentRedirect:function(){return permanentRedirect},isRedirectError:function(){return isRedirectError},getURLFromRedirectError:function(){return getURLFromRedirectError},getRedirectTypeFromError:function(){return getRedirectTypeFromError}});var s=r(19344),a="NEXT_REDIRECT";function getRedirectError(e,t,r){void 0===r&&(r=!1);var n=Error(a);n.digest=a+";"+t+";"+e+";"+r;var i=s.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function redirect(e,t){throw void 0===t&&(t="replace"),getRedirectError(e,t,!1)}function permanentRedirect(e,t){throw void 0===t&&(t="replace"),getRedirectError(e,t,!0)}function isRedirectError(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;var t=o._(e.digest.split(";",4),4),r=t[0],n=t[1],i=t[2],s=t[3];return r===a&&("replace"===n||"push"===n)&&"string"==typeof i&&("true"===s||"false"===s)}function getURLFromRedirectError(e){return isRedirectError(e)?e.digest.split(";",3)[2]:null}function getRedirectTypeFromError(e){if(!isRedirectError(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(n=i||(i={})).push="push",n.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11130:function(e,t){"use strict";function getSegmentValue(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return getSegmentValue}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94198:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return useServerInsertedHTML}});var n=r(61757)._(r(67294)),i=n.default.createContext(null);function useServerInsertedHTML(e){var t=(0,n.useContext)(i);t&&t(e)}},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();var o=[],s=!1,a=-1;function cleanUpNextTick(){s&&n&&(s=!1,n.length?o=n.concat(o):a=-1,o.length&&drainQueue())}function drainQueue(){if(!s){var e=runTimeout(cleanUpNextTick);s=!0;for(var t=o.length;t;){for(n=o,o=[];++a1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!("string"==typeof r&&o.test(r)))throw TypeError("Stringified UUID is invalid");return r},esm_browser_v4=function(e,t,r){var o=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=o[s];return t}return esm_browser_stringify(o)}},27346:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(85414),i=r(14526);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});var o=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),s=function(){function FakeAsyncLocalStorage(){n._(this,FakeAsyncLocalStorage)}return i._(FakeAsyncLocalStorage,[{key:"disable",value:function(){throw o}},{key:"getStore",value:function(){}},{key:"run",value:function(){throw o}},{key:"exit",value:function(){throw o}},{key:"enterWith",value:function(){throw o}}]),FakeAsyncLocalStorage}(),a=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return a?new a:new s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19344:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});var n=(0,r(27346).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93967:function(e,t){var r;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function classNames(){for(var e="",t=0;t