98110-c88c5da31c1c159a.js 224 KB

12
  1. "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98110],{12708:function(e,t,n){n.r(t),n.d(t,{ApiService:function(){return o}});var i=n(76815),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};class o{constructor(e){this.backendUrl=e,this.isAuthenticated=!1,this.httpClient=new i.HttpClient(e)}setAuthorizationToken(e){this.httpClient.setAuthorizationToken(e),this.isAuthenticated=!0}disposeAuthorizationToken(){this.httpClient.disposeAuthorizationToken(),this.isAuthenticated=!1}updateAction(e,t,n,i){return r(this,void 0,void 0,(function*(){return yield this.httpClient.post(`/widgets/messages/${e}/actions/${t}`,{executedType:t,status:n,payload:i})}))}markMessageAs(e,t){return r(this,void 0,void 0,(function*(){const n=void 0===t.seen&&void 0===t.read?{seen:!0}:t;return yield this.httpClient.post("/widgets/messages/markAs",{messageId:e,mark:n})}))}removeMessage(e){return r(this,void 0,void 0,(function*(){return yield this.httpClient.delete(`/widgets/messages/${e}`,{})}))}removeMessages(e){return r(this,void 0,void 0,(function*(){return yield this.httpClient.post("/widgets/messages/bulk/delete",{messageIds:e})}))}removeAllMessages(e){return r(this,void 0,void 0,(function*(){const t=e?`/widgets/messages?feedId=${e}`:"/widgets/messages";return yield this.httpClient.delete(t)}))}markAllMessagesAsRead(e){return r(this,void 0,void 0,(function*(){return yield this.httpClient.post("/widgets/messages/read",{feedId:e})}))}markAllMessagesAsSeen(e){return r(this,void 0,void 0,(function*(){return yield this.httpClient.post("/widgets/messages/seen",{feedId:e})}))}getNotificationsList(e,t={}){var{payload:n}=t,i=s(t,["payload"]);return r(this,void 0,void 0,(function*(){const t=n?btoa(JSON.stringify(n)):void 0;return yield this.httpClient.getFullResponse("/widgets/notifications/feed",Object.assign({page:e,payload:t},i))}))}initializeSession(e,t,n=null){return r(this,void 0,void 0,(function*(){return yield this.httpClient.post("/widgets/session/initialize",{applicationIdentifier:e,subscriberId:t,hmacHash:n})}))}postUsageLog(e,t){return r(this,void 0,void 0,(function*(){return yield this.httpClient.post("/widgets/usage/log",{name:`[Widget] - ${e}`,payload:t})}))}getUnseenCount(e={}){return r(this,void 0,void 0,(function*(){return yield this.httpClient.get("/widgets/notifications/unseen",e)}))}getUnreadCount(e={}){return r(this,void 0,void 0,(function*(){return yield this.httpClient.get("/widgets/notifications/unread",e)}))}getTabCount(e={}){return r(this,void 0,void 0,(function*(){return yield this.httpClient.get("/widgets/notifications/count",e)}))}getOrganization(){return r(this,void 0,void 0,(function*(){return this.httpClient.get("/widgets/organization")}))}getUserPreference(){return r(this,void 0,void 0,(function*(){return this.httpClient.get("/widgets/preferences")}))}getUserGlobalPreference(){return r(this,void 0,void 0,(function*(){return this.httpClient.get("/widgets/preferences/global")}))}updateSubscriberPreference(e,t,n){return r(this,void 0,void 0,(function*(){return yield this.httpClient.patch(`/widgets/preferences/${e}`,{channel:{type:t,enabled:n}})}))}updateSubscriberGlobalPreference(e,t){return r(this,void 0,void 0,(function*(){return yield this.httpClient.patch("/widgets/preferences",{preferences:e.map((e=>Object.assign(Object.assign({},e),{type:e.channelType}))),enabled:t})}))}}},75541:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(28260),t),r(n(75856),t)},10902:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HeadlessService=t.NOTIFICATION_CENTER_TOKEN_KEY=void 0;const s=n(33041),o=r(n(21756)),a=n(12708),c=n(76815),u=n(64161),l=n(75856);t.NOTIFICATION_CENTER_TOKEN_KEY="nc_token";const d="undefined"!==typeof window;t.HeadlessService=class{constructor(e){var n,i,r,o,c,h,p,A,f;this.options=e,this.queryClient=null,this.session=null,this.socket=null,this.sessionQueryOptions={queryKey:l.SESSION_QUERY_KEY,cacheTime:1/0,staleTime:1/0,queryFn:()=>this.api.initializeSession(this.options.applicationIdentifier,this.options.subscriberId,this.options.subscriberHash)},this.organizationQueryOptions={queryKey:l.ORGANIZATION_QUERY_KEY,cacheTime:1/0,staleTime:1/0,queryFn:()=>this.api.getOrganization()},this.unseenCountQueryOptions={queryKey:l.UNSEEN_COUNT_QUERY_KEY,queryFn:()=>this.api.getUnseenCount()},this.unreadCountQueryOptions={queryKey:l.UNREAD_COUNT_QUERY_KEY,queryFn:()=>this.api.getUnreadCount()},this.userPreferencesQueryOptions={queryKey:l.USER_PREFERENCES_QUERY_KEY,queryFn:()=>this.api.getUserPreference()},this.userGlobalPreferencesQueryOptions={queryKey:l.USER_GLOBAL_PREFERENCES_QUERY_KEY,queryFn:()=>this.api.getUserGlobalPreference()},this.callFetchListener=(e,t)=>t({data:e.data,error:e.error,status:e.status,isLoading:e.isLoading,isFetching:e.isFetching,isError:e.isError}),this.callFetchListenerWithPagination=(e,t)=>t({data:e.data,error:e.error,status:e.status,isLoading:e.isLoading,isFetching:e.isFetching,isError:e.isError}),this.callUpdateListener=(e,t)=>t({data:e.data,error:e.error,status:e.status,isLoading:e.isLoading,isError:e.isError});const y=null!==(n=e.backendUrl)&&void 0!==n?n:"https://api.novu.co",E=d?localStorage.getItem(t.NOTIFICATION_CENTER_TOKEN_KEY):null;this.api=new a.ApiService(y),this.applyToken(E),this.queryClient=new s.QueryClient({defaultOptions:{queries:Object.assign({refetchOnWindowFocus:!1,retry:null!==(r=null===(i=null===e||void 0===e?void 0:e.config)||void 0===i?void 0:i.retry)&&void 0!==r?r:3},(null===(o=null===e||void 0===e?void 0:e.config)||void 0===o?void 0:o.retryDelay)&&{retryDelay:null===(c=null===e||void 0===e?void 0:e.config)||void 0===c?void 0:c.retryDelay}),mutations:Object.assign({retry:null!==(p=null===(h=null===e||void 0===e?void 0:e.config)||void 0===h?void 0:h.retry)&&void 0!==p?p:3},(null===(A=null===e||void 0===e?void 0:e.config)||void 0===A?void 0:A.retryDelay)&&{retryDelay:null===(f=null===e||void 0===e?void 0:e.config)||void 0===f?void 0:f.retryDelay})}}),this.queryService=new u.QueryService(this.queryClient)}assertSessionInitialized(){if(!this.session)throw new Error("Session is not initialized, please use the initializeSession method first")}applyToken(e){e?(d&&localStorage.setItem(t.NOTIFICATION_CENTER_TOKEN_KEY,e),this.api.setAuthorizationToken(e)):(d&&localStorage.removeItem(t.NOTIFICATION_CENTER_TOKEN_KEY),this.api.disposeAuthorizationToken())}initializeSocket(e){var t;const n=null!==(t=this.options.socketUrl)&&void 0!==t?t:"https://ws.novu.co";this.socket&&this.socket.disconnect(),e&&(this.socket=(0,o.default)(n,{reconnectionDelayMax:1e4,transports:["websocket"],query:{token:`${e}`}}),this.socket.on("connect_error",(e=>{console.error(e.message)})))}initializeSession({listener:e,onSuccess:t,onError:n}){this.session=null,this.queryClient.clear();const{unsubscribe:i}=this.queryService.subscribeQuery({options:Object.assign(Object.assign({},this.sessionQueryOptions),{onSuccess:e=>{this.session=e,this.applyToken(e.token),this.initializeSocket(e.token),null===t||void 0===t||t(e)},onError:n}),listener:t=>this.callFetchListener(t,e)});return i}fetchOrganization({listener:e,onSuccess:t,onError:n}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{unsubscribe:i}=this.queryService.subscribeQuery({options:Object.assign(Object.assign({},this.organizationQueryOptions),{onSuccess:t,onError:n}),listener:t=>this.callFetchListener(t,e)});return i}))}fetchUnseenCount({listener:e,onSuccess:t,onError:n}){this.assertSessionInitialized();const{unsubscribe:i}=this.queryService.subscribeQuery({options:Object.assign(Object.assign({},this.unseenCountQueryOptions),{onSuccess:t,onError:n}),listener:t=>this.callFetchListener(t,e)});return i}fetchUnreadCount({listener:e,onSuccess:t,onError:n}){this.assertSessionInitialized();const{unsubscribe:i}=this.queryService.subscribeQuery({options:Object.assign(Object.assign({},this.unreadCountQueryOptions),{onSuccess:t,onError:n}),listener:t=>this.callFetchListener(t,e)});return i}listenNotificationReceive({listener:e}){return this.assertSessionInitialized(),this.socket&&this.socket.on(c.WebSocketEventEnum.RECEIVED,(t=>{(null===t||void 0===t?void 0:t.message)&&(this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1}),e(t.message))})),()=>{this.socket&&this.socket.off(c.WebSocketEventEnum.RECEIVED)}}listenUnseenCountChange({listener:e}){return this.assertSessionInitialized(),this.socket&&this.socket.on(c.WebSocketEventEnum.UNSEEN,(t=>{Number.isInteger(null===t||void 0===t?void 0:t.unseenCount)&&(this.queryClient.setQueryData(l.UNSEEN_COUNT_QUERY_KEY,(e=>{var n;return{count:null!==(n=null===t||void 0===t?void 0:t.unseenCount)&&void 0!==n?n:e.count}})),e(t.unseenCount))})),()=>{this.socket&&this.socket.off(c.WebSocketEventEnum.UNSEEN)}}listenUnreadCountChange({listener:e}){return this.assertSessionInitialized(),this.socket&&this.socket.on(c.WebSocketEventEnum.UNREAD,(t=>{Number.isInteger(null===t||void 0===t?void 0:t.unreadCount)&&(this.queryClient.setQueryData(l.UNREAD_COUNT_QUERY_KEY,(e=>{var n;return{count:null!==(n=null===t||void 0===t?void 0:t.unreadCount)&&void 0!==n?n:e.count}})),e(t.unreadCount))})),()=>{this.socket&&this.socket.off(c.WebSocketEventEnum.UNREAD)}}fetchNotifications({page:e=0,storeId:t="default_store",query:n={},listener:i,onSuccess:r,onError:s}){this.assertSessionInitialized();const{unsubscribe:o}=this.queryService.subscribeQuery({options:{queryKey:[...l.NOTIFICATIONS_QUERY_KEY,t,e,n],queryFn:()=>this.api.getNotificationsList(e,n),onSuccess:r,onError:s},listener:e=>this.callFetchListenerWithPagination(e,i)});return o}fetchUserPreferences({listener:e,onSuccess:t,onError:n}){this.assertSessionInitialized();const{unsubscribe:i}=this.queryService.subscribeQuery({options:Object.assign(Object.assign({},this.userPreferencesQueryOptions),{onSuccess:t,onError:n}),listener:t=>this.callFetchListener(t,e)});return i}fetchUserGlobalPreferences({listener:e,onSuccess:t,onError:n}){this.assertSessionInitialized();const{unsubscribe:i}=this.queryService.subscribeQuery({options:Object.assign(Object.assign({},this.userGlobalPreferencesQueryOptions),{onSuccess:t,onError:n}),listener:t=>this.callFetchListener(t,e)});return i}updateUserPreferences({templateId:e,channelType:t,checked:n,listener:r,onSuccess:s,onError:o}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:a}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.updateSubscriberPreference(e.templateId,e.channelType,e.checked),onSuccess:e=>{this.queryClient.setQueryData(l.USER_PREFERENCES_QUERY_KEY,(t=>t.map((t=>t.template._id===e.template._id?e:t))))}},listener:e=>this.callUpdateListener(e,r)});i.mutate({templateId:e,channelType:t,checked:n}).then((e=>(null===s||void 0===s||s(e),e))).catch((e=>{null===o||void 0===o||o(e)})).finally((()=>{a()}))}))}updateUserGlobalPreferences({preferences:e,enabled:t,listener:n,onSuccess:r,onError:s}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:o}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.updateSubscriberGlobalPreference(e.preferences,e.enabled),onSuccess:e=>{this.queryClient.setQueryData(l.USER_GLOBAL_PREFERENCES_QUERY_KEY,(()=>[e]))}},listener:e=>this.callUpdateListener(e,n)});i.mutate({preferences:e,enabled:t}).then((e=>(null===r||void 0===r||r(e),e))).catch((e=>{null===s||void 0===s||s(e)})).finally((()=>{o()}))}))}markNotificationsAsRead({messageId:e,listener:t,onSuccess:n,onError:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.markMessageAs(e.messageId,{seen:!0,read:!0}),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,t)});i.mutate({messageId:e}).then((e=>(null===n||void 0===n||n(e),e))).catch((e=>{null===r||void 0===r||r(e)})).finally((()=>{s()}))}))}markNotificationsAsSeen({messageId:e,listener:t,onSuccess:n,onError:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.markMessageAs(e.messageId,{seen:!0}),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,t)});i.mutate({messageId:e}).then((e=>(null===n||void 0===n||n(e),e))).catch((e=>{null===r||void 0===r||r(e)})).finally((()=>{s()}))}))}markNotificationsAs({messageId:e,mark:t,listener:n,onSuccess:r,onError:s}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:o}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.markMessageAs(e.messageId,t),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,n)});i.mutate({messageId:e}).then((e=>(null===r||void 0===r||r(e),e))).catch((e=>{null===s||void 0===s||s(e)})).finally((()=>{o()}))}))}removeNotification({messageId:e,listener:t,onSuccess:n,onError:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.removeMessage(e.messageId),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,t)});i.mutate({messageId:e}).then((e=>(null===n||void 0===n||n(e),e))).catch((e=>{null===r||void 0===r||r(e)})).finally((()=>{s()}))}))}removeNotifications({messageIds:e,listener:t,onSuccess:n,onError:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.removeMessages(e.messageIds),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,t)});i.mutate({messageIds:e}).then((e=>(null===n||void 0===n||n(e),e))).catch((e=>{null===r||void 0===r||r(e)})).finally((()=>{s()}))}))}updateAction({messageId:e,actionButtonType:t,status:n,payload:r,listener:s,onSuccess:o,onError:a}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:c}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.updateAction(e.messageId,e.actionButtonType,e.status,e.payload),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,s)});i.mutate({messageId:e,actionButtonType:t,status:n,payload:r}).then((e=>(null===o||void 0===o||o(e),e))).catch((e=>{null===a||void 0===a||a(e)})).finally((()=>{c()}))}))}markAllMessagesAsRead({listener:e,onSuccess:t,onError:n,feedId:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.markAllMessagesAsRead(null===e||void 0===e?void 0:e.feedId),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:t=>this.callUpdateListener(t,e)});i.mutate({feedId:r}).then((e=>(null===t||void 0===t||t(e),e))).catch((e=>{null===n||void 0===n||n(e)})).finally((()=>{s()}))}))}markAllMessagesAsSeen({listener:e,onSuccess:t,onError:n,feedId:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.markAllMessagesAsSeen(null===e||void 0===e?void 0:e.feedId),onSuccess:e=>{this.queryClient.refetchQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:t=>this.callUpdateListener(t,e)});i.mutate({feedId:r}).then((e=>(null===t||void 0===t||t(e),e))).catch((e=>{null===n||void 0===n||n(e)})).finally((()=>{s()}))}))}removeAllNotifications({feedId:e,listener:t,onSuccess:n,onError:r}){return i(this,void 0,void 0,(function*(){this.assertSessionInitialized();const{result:i,unsubscribe:s}=this.queryService.subscribeMutation({options:{mutationFn:e=>this.api.removeAllMessages(null===e||void 0===e?void 0:e.feedId),onSuccess:e=>{this.queryClient.removeQueries(l.NOTIFICATIONS_QUERY_KEY,{exact:!1})}},listener:e=>this.callUpdateListener(e,t)});i.mutate({feedId:e}).then((e=>(null===n||void 0===n||n(),e))).catch((e=>{null===r||void 0===r||r(e)})).finally((()=>{s()}))}))}}},28260:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(10902),t),r(n(8778),t)},64161:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QueryService=void 0;const i=n(33041);t.QueryService=class{constructor(e){this.queryClient=null!==e&&void 0!==e?e:new i.QueryClient,this.queryClient.mount()}subscribeQuery({options:e,listener:t}){const n=this.queryClient.defaultQueryOptions(e),r=new i.QueryObserver(this.queryClient,n);return{result:r.getOptimisticResult(n),unsubscribe:r.subscribe(t),queryObserver:r}}subscribeMutation({options:e,listener:t}){const n=this.queryClient.defaultMutationOptions(e),r=new i.MutationObserver(this.queryClient,n);return{result:r.getCurrentResult(),unsubscribe:r.subscribe(t),mutationObserver:r}}}},8778:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketEventEnum=t.MessageActionStatusEnum=t.ChannelTypeEnum=t.ButtonTypeEnum=void 0;const i=n(76815);Object.defineProperty(t,"ButtonTypeEnum",{enumerable:!0,get:function(){return i.ButtonTypeEnum}}),Object.defineProperty(t,"ChannelTypeEnum",{enumerable:!0,get:function(){return i.ChannelTypeEnum}}),Object.defineProperty(t,"MessageActionStatusEnum",{enumerable:!0,get:function(){return i.MessageActionStatusEnum}}),Object.defineProperty(t,"WebSocketEventEnum",{enumerable:!0,get:function(){return i.WebSocketEventEnum}})},75856:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(86191),t),r(n(88334),t)},86191:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UNREAD_COUNT_QUERY_KEY=t.UNSEEN_COUNT_QUERY_KEY=t.USER_GLOBAL_PREFERENCES_QUERY_KEY=t.USER_PREFERENCES_QUERY_KEY=t.NOTIFICATIONS_QUERY_KEY=t.ORGANIZATION_QUERY_KEY=t.SESSION_QUERY_KEY=void 0,t.SESSION_QUERY_KEY=["session"],t.ORGANIZATION_QUERY_KEY=["organization"],t.NOTIFICATIONS_QUERY_KEY=["notifications"],t.USER_PREFERENCES_QUERY_KEY=["user_preferences"],t.USER_GLOBAL_PREFERENCES_QUERY_KEY=["user_global_preferences"],t.UNSEEN_COUNT_QUERY_KEY=["unseen_count"],t.UNREAD_COUNT_QUERY_KEY=["unread_count"]},88334:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},76815:function(e,t,n){n.r(t),n.d(t,{ActorTypeEnum:function(){return C},AddressingTypeEnum:function(){return k},ApiAuthSchemeEnum:function(){return Z},ApiRateLimitAlgorithmEnum:function(){return z},ApiRateLimitCategoryEnum:function(){return X},ApiRateLimitConfigEnum:function(){return J},ApiRateLimitCostEnum:function(){return $},ApiServiceLevelEnum:function(){return B},AuthProviderEnum:function(){return i},ButtonTypeEnum:function(){return d},CHANNELS_WITH_PRIMARY:function(){return v},ChangeEntityTypeEnum:function(){return le},ChannelCTADto:function(){return Ie},ChannelCTATypeEnum:function(){return N},ChannelTypeEnum:function(){return R},ChatProviderIdEnum:function(){return De},CredentialsKeyEnum:function(){return ke},CronExpressionEnum:function(){return ne},DEFAULT_API_RATE_LIMIT_ALGORITHM_CONFIG:function(){return In},DEFAULT_API_RATE_LIMIT_COST_CONFIG:function(){return Sn},DEFAULT_API_RATE_LIMIT_SERVICE_MAXIMUM_CONFIG:function(){return Rn},DEFAULT_MESSAGE_GENERIC_RETENTION_DAYS:function(){return Me},DEFAULT_MESSAGE_IN_APP_RETENTION_DAYS:function(){return Pe},DEFAULT_NOTIFICATION_RETENTION_DAYS:function(){return Oe},DELAYED_STEPS:function(){return O},DaysEnum:function(){return he},DelayTypeEnum:function(){return Ae},DigestCreationResultEnum:function(){return _e},DigestTypeEnum:function(){return pe},DigestUnitEnum:function(){return de},EmailBlockTypeEnum:function(){return w},EmailProviderIdEnum:function(){return Ue},ExecutionDetailsSourceEnum:function(){return u},ExecutionDetailsStatusEnum:function(){return l},FILTER_TO_LABEL:function(){return fn},FeatureFlagsKeysEnum:function(){return L},FieldLogicalOperatorEnum:function(){return E},FieldOperatorEnum:function(){return y},FilterPartTypeEnum:function(){return _},HandlebarHelpers:function(){return un},HandlebarHelpersEnum:function(){return cn},HttpClient:function(){return Er},IApiRateLimitAlgorithm:function(){return ie},IGroupedBlueprint:function(){return A},InAppProviderIdEnum:function(){return Fe},JobCronNameEnum:function(){return Ir},JobStatusEnum:function(){return me},JobTitleEnum:function(){return K},JobTopicNameEnum:function(){return gr},LayoutDto:function(){return Re},LogCodeEnum:function(){return ue},LogStatusEnum:function(){return ce},MarkMessagesAsEnum:function(){return V},MemberRoleEnum:function(){return s},MemberStatusEnum:function(){return o},MessageActionStatusEnum:function(){return h},MessageTemplateDto:function(){return Se},MonthlyTypeEnum:function(){return fe},NOVU_ENCRYPTION_SUB_MASK:function(){return f},NOVU_PROVIDERS:function(){return en},NOVU_SMS_EMAIL_PROVIDERS:function(){return tn},NotificationStepDto:function(){return ve},NovuComponentEnum:function(){return _r},ObservabilityBackgroundTransactionEnum:function(){return Rr},OrderDirectionEnum:function(){return x},OrdinalEnum:function(){return ye},OrdinalValueEnum:function(){return Ee},PassportStrategyEnum:function(){return ee},PreferenceLevelEnum:function(){return ge},PreferenceOverrideSourceEnum:function(){return j},PreviousStepTypeEnum:function(){return g},ProductUseCasesEnum:function(){return q},PushProviderIdEnum:function(){return we},ReservedVariablesMap:function(){return ae},STEP_TYPE_TO_CHANNEL_TYPE:function(){return S},SignUpOriginEnum:function(){return Q},SmsProviderIdEnum:function(){return Le},StepTypeEnum:function(){return I},StepVariantDto:function(){return be},SubscriberDto:function(){return Ne},SubscriberSourceEnum:function(){return H},SystemAvatarIconEnum:function(){return b},SystemCriticalFlagsEnum:function(){return D},SystemVariablesWithTypes:function(){return se},TemplateSystemVariables:function(){return re},TemplateVariableTypeEnum:function(){return T},TextAlignEnum:function(){return F},TimeOperatorEnum:function(){return m},TimezoneEnum:function(){return te},TopicDto:function(){return Te},TopicSubscribersDto:function(){return Ce},TriggerContextTypeEnum:function(){return c},TriggerEventStatusEnum:function(){return M},TriggerRecipientsTypeEnum:function(){return P},TriggerRequestCategoryEnum:function(){return U},TriggerReservedVariables:function(){return oe},TriggerTypeEnum:function(){return a},UTM_CAMPAIGN_QUERY_PARAM:function(){return Vt},UserRoleEnum:function(){return r},WebSocketEventEnum:function(){return W},africasTalkingConfig:function(){return Dt},apnsConfig:function(){return St},azureSmsConfig:function(){return xt},bandwidthConfig:function(){return Kt},brazeEmailConfig:function(){return Ot},brevoSmsConfig:function(){return Qt},bulkSmsConfig:function(){return ct},burstSmsConfig:function(){return at},chatProviders:function(){return Jt},clickSendConfig:function(){return Bt},clickatellConfig:function(){return lt},darkButtonStyle:function(){return sn},emailProviders:function(){return Wt},emailWebhookConfig:function(){return Lt},expoConfig:function(){return _t},fcmConfig:function(){return mt},firetextConfig:function(){return Tt},fortySixElksConfig:function(){return Mt},genericSmsConfig:function(){return Gt},getContextPath:function(){return Nr},getGetStartedTemplateIds:function(){return gn},getPopularTemplateIds:function(){return _n},getRedisPrefix:function(){return Cr},getTemplateVariables:function(){return ln},getstreamConfig:function(){return Et},grafanaOnCallConfig:function(){return yt},gupshupConfig:function(){return Nt},iSendSmsConfig:function(){return ut},inAppProviders:function(){return Xt},infobipEmailConfig:function(){return vt},infobipSMSConfig:function(){return bt},isBrowser:function(){return Nn},isReservedVariableName:function(){return pn},jobTitleToLabelMapper:function(){return Y},kannelConfig:function(){return Pt},lightButtonStyle:function(){return on},mailJsConfig:function(){return Ye},mailerSendConfig:function(){return it},mailgunConfig:function(){return xe},mailjetConfig:function(){return He},mailtrapConfig:function(){return $e},mandrillConfig:function(){return Qe},maqsamConfig:function(){return kt},messagebirdConfig:function(){return At},netCoreConfig:function(){return et},nexmoConfig:function(){return je},nodemailerConfig:function(){return Ve},notificationItemButtons:function(){return an},novuInAppConfig:function(){return wt},novuReservedVariableNames:function(){return hn},oneSignalConfig:function(){return Rt},outlook365Config:function(){return Ct},passwordConstraints:function(){return An},plivoConfig:function(){return rt},plunkConfig:function(){return Xe},postmarkConfig:function(){return We},prepareBooleanStringFeatureFlag:function(){return mr},providers:function(){return Zt},pushProviders:function(){return $t},pushWebhookConfig:function(){return gt},pusherBeamsConfig:function(){return Yt},pushpadConfig:function(){return It},resendConfig:function(){return Je},ringCentralConfig:function(){return jt},rocketChatConfig:function(){return Ht},secureCredentials:function(){return Be},sendchampConfig:function(){return Ft},sendgridConfig:function(){return ze},sendinblueConfig:function(){return tt},sesConfig:function(){return nt},simpleTextingConfig:function(){return qt},slackConfig:function(){return ft},sms77Config:function(){return st},smsCentralConfig:function(){return Ut},smsProviders:function(){return zt},snsConfig:function(){return dt},sparkpostConfig:function(){return Ze},telnyxConfig:function(){return ht},termiiConfig:function(){return ot},testFlagEnumValidity:function(){return G},twilioConfig:function(){return pt}});var i,r,s,o,a,c,u,l,d,h,p={};n.r(p),n.d(p,{hasBrowserEnv:function(){return Ti},hasStandardBrowserEnv:function(){return Ci},hasStandardBrowserWebWorkerEnv:function(){return vi}}),function(e){e.GOOGLE="google",e.GITHUB="github"}(i||(i={})),function(e){e.USER="user"}(r||(r={})),function(e){e.ADMIN="admin",e.MEMBER="member"}(s||(s={})),function(e){e.NEW="new",e.ACTIVE="active",e.INVITED="invited"}(o||(o={}));class A{}!function(e){e.EVENT="event"}(a||(a={})),function(e){e.TENANT="tenant",e.ACTOR="actor"}(c||(c={})),function(e){e.CREDENTIALS="Credentials",e.INTERNAL="Internal",e.PAYLOAD="Payload",e.WEBHOOK="Webhook"}(u||(u={})),function(e){e.SUCCESS="Success",e.WARNING="Warning",e.FAILED="Failed",e.PENDING="Pending",e.QUEUED="Queued",e.READ_CONFIRMATION="ReadConfirmation"}(l||(l={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.CLICKED="clicked"}(d||(d={})),function(e){e.PENDING="pending",e.DONE="done"}(h||(h={}));const f="nvsk.";var y,E,m,_,g,R,I;!function(e){e.ALL_IN="ALL_IN",e.ANY_IN="ANY_IN",e.BETWEEN="BETWEEN",e.EQUAL="EQUAL",e.IN="IN",e.IS_DEFINED="IS_DEFINED",e.LARGER="LARGER",e.LARGER_EQUAL="LARGER_EQUAL",e.LIKE="LIKE",e.NOT_BETWEEN="NOT_BETWEEN",e.NOT_EQUAL="NOT_EQUAL",e.NOT_IN="NOT_IN",e.NOT_LIKE="NOT_LIKE",e.SMALLER="SMALLER",e.SMALLER_EQUAL="SMALLER_EQUAL"}(y||(y={})),function(e){e.AND="AND",e.OR="OR"}(E||(E={})),function(e){e.DAYS="days",e.HOURS="hours",e.MINUTES="minutes"}(m||(m={})),function(e){e.PAYLOAD="payload",e.SUBSCRIBER="subscriber",e.WEBHOOK="webhook",e.IS_ONLINE="isOnline",e.IS_ONLINE_IN_LAST="isOnlineInLast",e.PREVIOUS_STEP="previousStep",e.TENANT="tenant"}(_||(_={})),function(e){e.READ="read",e.UNREAD="unread",e.SEEN="seen",e.UNSEEN="unseen"}(g||(g={})),function(e){e.IN_APP="in_app",e.EMAIL="email",e.SMS="sms",e.CHAT="chat",e.PUSH="push"}(R||(R={})),function(e){e.IN_APP="in_app",e.EMAIL="email",e.SMS="sms",e.CHAT="chat",e.PUSH="push",e.DIGEST="digest",e.TRIGGER="trigger",e.DELAY="delay"}(I||(I={}));const S=new Map([[I.IN_APP,R.IN_APP],[I.EMAIL,R.EMAIL],[I.SMS,R.SMS],[I.CHAT,R.CHAT],[I.PUSH,R.PUSH]]);var N,T,C,b;!function(e){e.REDIRECT="redirect"}(N||(N={})),function(e){e.STRING="String",e.ARRAY="Array",e.BOOLEAN="Boolean"}(T||(T={})),function(e){e.NONE="none",e.USER="user",e.SYSTEM_ICON="system_icon",e.SYSTEM_CUSTOM="system_custom"}(C||(C={})),function(e){e.WARNING="warning",e.INFO="info",e.ERROR="error",e.SUCCESS="success",e.UP="up",e.QUESTION="question"}(b||(b={}));const v=[R.EMAIL,R.SMS],O=[I.DELAY,I.DIGEST];var M,P,k,U,L,D,w,F,B,q,K;function G(e){}!function(e){e.ERROR="error",e.NOT_ACTIVE="trigger_not_active",e.NO_WORKFLOW_ACTIVE_STEPS="no_workflow_active_steps_defined",e.NO_WORKFLOW_STEPS="no_workflow_steps_defined",e.PROCESSED="processed",e.SUBSCRIBER_MISSING="subscriber_id_missing",e.TENANT_MISSING="no_tenant_found"}(M||(M={})),function(e){e.SUBSCRIBER="Subscriber",e.TOPIC="Topic"}(P||(P={})),function(e){e.BROADCAST="broadcast",e.MULTICAST="multicast"}(k||(k={})),function(e){e.SINGLE="single",e.BULK="bulk"}(U||(U={})),function(e){e.IS_TEMPLATE_STORE_ENABLED="IS_TEMPLATE_STORE_ENABLED",e.IS_TOPIC_NOTIFICATION_ENABLED="IS_TOPIC_NOTIFICATION_ENABLED",e.IS_MULTI_TENANCY_ENABLED="IS_MULTI_TENANCY_ENABLED",e.IS_USE_MERGED_DIGEST_ID_ENABLED="IS_USE_MERGED_DIGEST_ID_ENABLED",e.IS_API_RATE_LIMITING_ENABLED="IS_API_RATE_LIMITING_ENABLED",e.IS_API_IDEMPOTENCY_ENABLED="IS_API_IDEMPOTENCY_ENABLED",e.IS_TRANSLATION_MANAGER_ENABLED="IS_TRANSLATION_MANAGER_ENABLED",e.IS_API_EXECUTION_LOG_QUEUE_ENABLED="IS_API_EXECUTION_LOG_QUEUE_ENABLED",e.IS_BILLING_ENABLED="IS_BILLING_ENABLED",e.IS_IMPROVED_ONBOARDING_ENABLED="IS_IMPROVED_ONBOARDING_ENABLED",e.IS_NEW_MESSAGES_API_RESPONSE_ENABLED="IS_NEW_MESSAGES_API_RESPONSE_ENABLED"}(L||(L={})),function(e){e.IS_IN_MEMORY_CLUSTER_MODE_ENABLED="IS_IN_MEMORY_CLUSTER_MODE_ENABLED"}(D||(D={})),function(e){e.BUTTON="button",e.TEXT="text"}(w||(w={})),function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(F||(F={})),function(e){e.FREE="free",e.BUSINESS="business",e.ENTERPRISE="enterprise",e.UNLIMITED="unlimited"}(B||(B={})),function(e){e.IN_APP="in_app",e.MULTI_CHANNEL="multi_channel",e.DELAY="delay",e.TRANSLATION="translation",e.DIGEST="digest"}(q||(q={})),function(e){e.ENGINEER="engineer",e.ENGINEERING_MANAGER="engineering_manager",e.ARCHITECT="architect",e.PRODUCT_MANAGER="product_manager",e.DESIGNER="designer",e.OTHER="other"}(K||(K={}));const Y={[K.ENGINEER]:"Engineer",[K.ARCHITECT]:"Architect",[K.PRODUCT_MANAGER]:"Product Manager",[K.DESIGNER]:"Designer",[K.ENGINEERING_MANAGER]:"Engineering Manager",[K.OTHER]:"Other"};var x,H,j,Q,V,W,z,J,$,X,Z,ee,te,ne;!function(e){e[e.ASC=1]="ASC",e[e.DESC=-1]="DESC"}(x||(x={})),function(e){e.BROADCAST="broadcast",e.SINGLE="single",e.TOPIC="topic"}(H||(H={})),function(e){e.SUBSCRIBER="subscriber",e.TEMPLATE="template",e.WORKFLOW_OVERRIDE="workflowOverride"}(j||(j={})),function(e){e.WEB="web",e.CLI="cli",e.VERCEL="vercel"}(Q||(Q={})),function(e){e.READ="read",e.SEEN="seen",e.UNREAD="unread",e.UNSEEN="unseen"}(V||(V={})),function(e){e.RECEIVED="notification_received",e.UNREAD="unread_count_changed",e.UNSEEN="unseen_count_changed"}(W||(W={})),function(e){e.BURST_ALLOWANCE="burst_allowance",e.WINDOW_DURATION="window_duration"}(z||(z={}));class ie{}z.BURST_ALLOWANCE,z.WINDOW_DURATION,function(e){e.ALGORITHM="algorithm",e.COST="cost",e.MAXIMUM="maximum"}(J||(J={})),function(e){e.SINGLE="single",e.BULK="bulk"}($||($={})),function(e){e.TRIGGER="trigger",e.CONFIGURATION="configuration",e.GLOBAL="global"}(X||(X={})),function(e){e.BEARER="Bearer",e.API_KEY="ApiKey"}(Z||(Z={})),function(e){e.JWT="jwt",e.HEADER_API_KEY="headerapikey"}(ee||(ee={})),function(e){e.AFRICA_ABIDJAN="Africa/Abidjan",e.AFRICA_ACCRA="Africa/Accra",e.AFRICA_ADDIS_ABABA="Africa/Addis_Ababa",e.AFRICA_ALGIERS="Africa/Algiers",e.AFRICA_ASMARA="Africa/Asmara",e.AFRICA_ASMERA="Africa/Asmera",e.AFRICA_BAMAKO="Africa/Bamako",e.AFRICA_BANGUI="Africa/Bangui",e.AFRICA_BANJUL="Africa/Banjul",e.AFRICA_BISSAU="Africa/Bissau",e.AFRICA_BLANTYRE="Africa/Blantyre",e.AFRICA_BRAZZAVILLE="Africa/Brazzaville",e.AFRICA_BUJUMBURA="Africa/Bujumbura",e.AFRICA_CAIRO="Africa/Cairo",e.AFRICA_CASABLANCA="Africa/Casablanca",e.AFRICA_CEUTA="Africa/Ceuta",e.AFRICA_CONAKRY="Africa/Conakry",e.AFRICA_DAKAR="Africa/Dakar",e.AFRICA_DAR_ES_SALAAM="Africa/Dar_es_Salaam",e.AFRICA_DJIBOUTI="Africa/Djibouti",e.AFRICA_DOUALA="Africa/Douala",e.AFRICA_EL_AAIUN="Africa/El_Aaiun",e.AFRICA_FREETOWN="Africa/Freetown",e.AFRICA_GABORONE="Africa/Gaborone",e.AFRICA_HARARE="Africa/Harare",e.AFRICA_JOHANNESBURG="Africa/Johannesburg",e.AFRICA_JUBA="Africa/Juba",e.AFRICA_KAMPALA="Africa/Kampala",e.AFRICA_KHARTOUM="Africa/Khartoum",e.AFRICA_KIGALI="Africa/Kigali",e.AFRICA_KINSHASA="Africa/Kinshasa",e.AFRICA_LAGOS="Africa/Lagos",e.AFRICA_LIBREVILLE="Africa/Libreville",e.AFRICA_LOME="Africa/Lome",e.AFRICA_LUANDA="Africa/Luanda",e.AFRICA_LUBUMBASHI="Africa/Lubumbashi",e.AFRICA_LUSAKA="Africa/Lusaka",e.AFRICA_MALABO="Africa/Malabo",e.AFRICA_MAPUTO="Africa/Maputo",e.AFRICA_MASERU="Africa/Maseru",e.AFRICA_MBABANE="Africa/Mbabane",e.AFRICA_MOGADISHU="Africa/Mogadishu",e.AFRICA_MONROVIA="Africa/Monrovia",e.AFRICA_NAIROBI="Africa/Nairobi",e.AFRICA_NDJAMENA="Africa/Ndjamena",e.AFRICA_NIAMEY="Africa/Niamey",e.AFRICA_NOUAKCHOTT="Africa/Nouakchott",e.AFRICA_OUAGADOUGOU="Africa/Ouagadougou",e.AFRICA_PORTO_NOVO="Africa/Porto-Novo",e.AFRICA_SAO_TOME="Africa/Sao_Tome",e.AFRICA_TIMBUKTU="Africa/Timbuktu",e.AFRICA_TRIPOLI="Africa/Tripoli",e.AFRICA_TUNIS="Africa/Tunis",e.AFRICA_WINDHOEK="Africa/Windhoek",e.AMERICA_ADAK="America/Adak",e.AMERICA_ANCHORAGE="America/Anchorage",e.AMERICA_ANGUILLA="America/Anguilla",e.AMERICA_ANTIGUA="America/Antigua",e.AMERICA_ARAGUAINA="America/Araguaina",e.AMERICA_ARGENTINA_BUENOS_AIRES="America/Argentina/Buenos_Aires",e.AMERICA_ARGENTINA_CATAMARCA="America/Argentina/Catamarca",e.AMERICA_ARGENTINA_COMOD_RIVADAVIA="America/Argentina/ComodRivadavia",e.AMERICA_ARGENTINA_CORDOBA="America/Argentina/Cordoba",e.AMERICA_ARGENTINA_JUJUY="America/Argentina/Jujuy",e.AMERICA_ARGENTINA_LA_RIOJA="America/Argentina/La_Rioja",e.AMERICA_ARGENTINA_MENDOZA="America/Argentina/Mendoza",e.AMERICA_ARGENTINA_RIO_GALLEGOS="America/Argentina/Rio_Gallegos",e.AMERICA_ARGENTINA_SALTA="America/Argentina/Salta",e.AMERICA_ARGENTINA_SAN_JUAN="America/Argentina/San_Juan",e.AMERICA_ARGENTINA_SAN_LUIS="America/Argentina/San_Luis",e.AMERICA_ARGENTINA_TUCUMAN="America/Argentina/Tucuman",e.AMERICA_ARGENTINA_USHUAIA="America/Argentina/Ushuaia",e.AMERICA_ARUBA="America/Aruba",e.AMERICA_ASUNCION="America/Asuncion",e.AMERICA_ATIKOKAN="America/Atikokan",e.AMERICA_ATKA="America/Atka",e.AMERICA_BAHIA="America/Bahia",e.AMERICA_BAHIA_BANDERAS="America/Bahia_Banderas",e.AMERICA_BARBADOS="America/Barbados",e.AMERICA_BELEM="America/Belem",e.AMERICA_BELIZE="America/Belize",e.AMERICA_BLANC_SABLON="America/Blanc-Sablon",e.AMERICA_BOA_VISTA="America/Boa_Vista",e.AMERICA_BOGOTA="America/Bogota",e.AMERICA_BOISE="America/Boise",e.AMERICA_BUENOS_AIRES="America/Buenos_Aires",e.AMERICA_CAMBRIDGE_BAY="America/Cambridge_Bay",e.AMERICA_CAMPO_GRANDE="America/Campo_Grande",e.AMERICA_CANCUN="America/Cancun",e.AMERICA_CARACAS="America/Caracas",e.AMERICA_CATAMARCA="America/Catamarca",e.AMERICA_CAYENNE="America/Cayenne",e.AMERICA_CAYMAN="America/Cayman",e.AMERICA_CHICAGO="America/Chicago",e.AMERICA_CHIHUAHUA="America/Chihuahua",e.AMERICA_CORAL_HARBOUR="America/Coral_Harbour",e.AMERICA_CORDOBA="America/Cordoba",e.AMERICA_COSTA_RICA="America/Costa_Rica",e.AMERICA_CRESTON="America/Creston",e.AMERICA_CUIABA="America/Cuiaba",e.AMERICA_CURACAO="America/Curacao",e.AMERICA_DANMARKSHAVN="America/Danmarkshavn",e.AMERICA_DAWSON="America/Dawson",e.AMERICA_DAWSON_CREEK="America/Dawson_Creek",e.AMERICA_DENVER="America/Denver",e.AMERICA_DETROIT="America/Detroit",e.AMERICA_DOMINICA="America/Dominica",e.AMERICA_EDMONTON="America/Edmonton",e.AMERICA_EIRUNEPE="America/Eirunepe",e.AMERICA_EL_SALVADOR="America/El_Salvador",e.AMERICA_ENSENADA="America/Ensenada",e.AMERICA_FORT_NELSON="America/Fort_Nelson",e.AMERICA_FORT_WAYNE="America/Fort_Wayne",e.AMERICA_FORTALEZA="America/Fortaleza",e.AMERICA_GLACE_BAY="America/Glace_Bay",e.AMERICA_GODTHAB="America/Godthab",e.AMERICA_GOOSE_BAY="America/Goose_Bay",e.AMERICA_GRAND_TURK="America/Grand_Turk",e.AMERICA_GRENADA="America/Grenada",e.AMERICA_GUADELOUPE="America/Guadeloupe",e.AMERICA_GUATEMALA="America/Guatemala",e.AMERICA_GUAYAQUIL="America/Guayaquil",e.AMERICA_GUYANA="America/Guyana",e.AMERICA_HALIFAX="America/Halifax",e.AMERICA_HAVANA="America/Havana",e.AMERICA_HERMOSILLO="America/Hermosillo",e.AMERICA_INDIANA_INDIANAPOLIS="America/Indiana/Indianapolis",e.AMERICA_INDIANA_KNOX="America/Indiana/Knox",e.AMERICA_INDIANA_MARENGO="America/Indiana/Marengo",e.AMERICA_INDIANA_PETERSBURG="America/Indiana/Petersburg",e.AMERICA_INDIANA_TELL_CITY="America/Indiana/Tell_City",e.AMERICA_INDIANA_VEVAY="America/Indiana/Vevay",e.AMERICA_INDIANA_VINCENNES="America/Indiana/Vincennes",e.AMERICA_INDIANA_WINAMAC="America/Indiana/Winamac",e.AMERICA_INDIANAPOLIS="America/Indianapolis",e.AMERICA_INUVIK="America/Inuvik",e.AMERICA_IQALUIT="America/Iqaluit",e.AMERICA_JAMAICA="America/Jamaica",e.AMERICA_JUJUY="America/Jujuy",e.AMERICA_JUNEAU="America/Juneau",e.AMERICA_KENTUCKY_LOUISVILLE="America/Kentucky/Louisville",e.AMERICA_KENTUCKY_MONTICELLO="America/Kentucky/Monticello",e.AMERICA_KNOX_IN="America/Knox_IN",e.AMERICA_KRALENDIJK="America/Kralendijk",e.AMERICA_LA_PAZ="America/La_Paz",e.AMERICA_LIMA="America/Lima",e.AMERICA_LOS_ANGELES="America/Los_Angeles",e.AMERICA_LOUISVILLE="America/Louisville",e.AMERICA_LOWER_PRINCES="America/Lower_Princes",e.AMERICA_MACEIO="America/Maceio",e.AMERICA_MANAGUA="America/Managua",e.AMERICA_MANAUS="America/Manaus",e.AMERICA_MARIGOT="America/Marigot",e.AMERICA_MARTINIQUE="America/Martinique",e.AMERICA_MATAMOROS="America/Matamoros",e.AMERICA_MAZATLAN="America/Mazatlan",e.AMERICA_MENDOZA="America/Mendoza",e.AMERICA_MENOMINEE="America/Menominee",e.AMERICA_MERIDA="America/Merida",e.AMERICA_METLAKATLA="America/Metlakatla",e.AMERICA_MEXICO_CITY="America/Mexico_City",e.AMERICA_MIQUELON="America/Miquelon",e.AMERICA_MONCTON="America/Moncton",e.AMERICA_MONTERREY="America/Monterrey",e.AMERICA_MONTEVIDEO="America/Montevideo",e.AMERICA_MONTREAL="America/Montreal",e.AMERICA_MONTSERRAT="America/Montserrat",e.AMERICA_NASSAU="America/Nassau",e.AMERICA_NEW_YORK="America/New_York",e.AMERICA_NIPIGON="America/Nipigon",e.AMERICA_NOME="America/Nome",e.AMERICA_NORONHA="America/Noronha",e.AMERICA_NORTH_DAKOTA_BEULAH="America/North_Dakota/Beulah",e.AMERICA_NORTH_DAKOTA_CENTER="America/North_Dakota/Center",e.AMERICA_NORTH_DAKOTA_NEW_SALEM="America/North_Dakota/New_Salem",e.AMERICA_OJINAGA="America/Ojinaga",e.AMERICA_PANAMA="America/Panama",e.AMERICA_PANGNIRTUNG="America/Pangnirtung",e.AMERICA_PARAMARIBO="America/Paramaribo",e.AMERICA_PHOENIX="America/Phoenix",e.AMERICA_PORT_AU_PRINCE="America/Port-au-Prince",e.AMERICA_PORT_OF_SPAIN="America/Port_of_Spain",e.AMERICA_PORTO_ACRE="America/Porto_Acre",e.AMERICA_PORTO_VELHO="America/Porto_Velho",e.AMERICA_PUERTO_RICO="America/Puerto_Rico",e.AMERICA_PUNTA_ARENAS="America/Punta_Arenas",e.AMERICA_RAINY_RIVER="America/Rainy_River",e.AMERICA_RANKIN_INLET="America/Rankin_Inlet",e.AMERICA_RECIFE="America/Recife",e.AMERICA_REGINA="America/Regina",e.AMERICA_RESOLUTE="America/Resolute",e.AMERICA_RIO_BRANCO="America/Rio_Branco",e.AMERICA_ROSARIO="America/Rosario",e.AMERICA_SANTA_ISABEL="America/Santa_Isabel",e.AMERICA_SANTAREM="America/Santarem",e.AMERICA_SANTIAGO="America/Santiago",e.AMERICA_SANTO_DOMINGO="America/Santo_Domingo",e.AMERICA_SAO_PAULO="America/Sao_Paulo",e.AMERICA_SCORESBYSUND="America/Scoresbysund",e.AMERICA_SHIPROCK="America/Shiprock",e.AMERICA_SITKA="America/Sitka",e.AMERICA_ST_BARTHELEMY="America/St_Barthelemy",e.AMERICA_ST_JOHNS="America/St_Johns",e.AMERICA_ST_KITTS="America/St_Kitts",e.AMERICA_ST_LUCIA="America/St_Lucia",e.AMERICA_ST_THOMAS="America/St_Thomas",e.AMERICA_ST_VINCENT="America/St_Vincent",e.AMERICA_SWIFT_CURRENT="America/Swift_Current",e.AMERICA_TEGUCIGALPA="America/Tegucigalpa",e.AMERICA_THULE="America/Thule",e.AMERICA_THUNDER_BAY="America/Thunder_Bay",e.AMERICA_TIJUANA="America/Tijuana",e.AMERICA_TORONTO="America/Toronto",e.AMERICA_TORTOLA="America/Tortola",e.AMERICA_VANCOUVER="America/Vancouver",e.AMERICA_VIRGIN="America/Virgin",e.AMERICA_WHITEHORSE="America/Whitehorse",e.AMERICA_WINNIPEG="America/Winnipeg",e.AMERICA_YAKUTAT="America/Yakutat",e.AMERICA_YELLOWKNIFE="America/Yellowknife",e.ANTARCTICA_CASEY="Antarctica/Casey",e.ANTARCTICA_DAVIS="Antarctica/Davis",e.ANTARCTICA_DUMONT_D_URVILLE="Antarctica/DumontDUrville",e.ANTARCTICA_MACQUARIE="Antarctica/Macquarie",e.ANTARCTICA_MAWSON="Antarctica/Mawson",e.ANTARCTICA_MC_MURDO="Antarctica/McMurdo",e.ANTARCTICA_PALMER="Antarctica/Palmer",e.ANTARCTICA_ROTHERA="Antarctica/Rothera",e.ANTARCTICA_SOUTH_POLE="Antarctica/South_Pole",e.ANTARCTICA_SYOWA="Antarctica/Syowa",e.ANTARCTICA_TROLL="Antarctica/Troll",e.ANTARCTICA_VOSTOK="Antarctica/Vostok",e.ARCTIC_LONGYEARBYEN="Arctic/Longyearbyen",e.ASIA_ADEN="Asia/Aden",e.ASIA_ALMATY="Asia/Almaty",e.ASIA_AMMAN="Asia/Amman",e.ASIA_ANADYR="Asia/Anadyr",e.ASIA_AQTAU="Asia/Aqtau",e.ASIA_AQTOBE="Asia/Aqtobe",e.ASIA_ASHGABAT="Asia/Ashgabat",e.ASIA_ASHKHABAD="Asia/Ashkhabad",e.ASIA_ATYRAU="Asia/Atyrau",e.ASIA_BAGHDAD="Asia/Baghdad",e.ASIA_BAHRAIN="Asia/Bahrain",e.ASIA_BAKU="Asia/Baku",e.ASIA_BANGKOK="Asia/Bangkok",e.ASIA_BARNAUL="Asia/Barnaul",e.ASIA_BEIRUT="Asia/Beirut",e.ASIA_BISHKEK="Asia/Bishkek",e.ASIA_BRUNEI="Asia/Brunei",e.ASIA_CALCUTTA="Asia/Calcutta",e.ASIA_CHITA="Asia/Chita",e.ASIA_CHOIBALSAN="Asia/Choibalsan",e.ASIA_CHONGQING="Asia/Chongqing",e.ASIA_CHUNGKING="Asia/Chungking",e.ASIA_COLOMBO="Asia/Colombo",e.ASIA_DACCA="Asia/Dacca",e.ASIA_DAMASCUS="Asia/Damascus",e.ASIA_DHAKA="Asia/Dhaka",e.ASIA_DILI="Asia/Dili",e.ASIA_DUBAI="Asia/Dubai",e.ASIA_DUSHANBE="Asia/Dushanbe",e.ASIA_FAMAGUSTA="Asia/Famagusta",e.ASIA_GAZA="Asia/Gaza",e.ASIA_HARBIN="Asia/Harbin",e.ASIA_HEBRON="Asia/Hebron",e.ASIA_HO_CHI_MINH="Asia/Ho_Chi_Minh",e.ASIA_HONG_KONG="Asia/Hong_Kong",e.ASIA_HOVD="Asia/Hovd",e.ASIA_IRKUTSK="Asia/Irkutsk",e.ASIA_ISTANBUL="Asia/Istanbul",e.ASIA_JAKARTA="Asia/Jakarta",e.ASIA_JAYAPURA="Asia/Jayapura",e.ASIA_JERUSALEM="Asia/Jerusalem",e.ASIA_KABUL="Asia/Kabul",e.ASIA_KAMCHATKA="Asia/Kamchatka",e.ASIA_KARACHI="Asia/Karachi",e.ASIA_KASHGAR="Asia/Kashgar",e.ASIA_KATHMANDU="Asia/Kathmandu",e.ASIA_KATMANDU="Asia/Katmandu",e.ASIA_KHANDYGA="Asia/Khandyga",e.ASIA_KOLKATA="Asia/Kolkata",e.ASIA_KRASNOYARSK="Asia/Krasnoyarsk",e.ASIA_KUALA_LUMPUR="Asia/Kuala_Lumpur",e.ASIA_KUCHING="Asia/Kuching",e.ASIA_KUWAIT="Asia/Kuwait",e.ASIA_MACAO="Asia/Macao",e.ASIA_MACAU="Asia/Macau",e.ASIA_MAGADAN="Asia/Magadan",e.ASIA_MAKASSAR="Asia/Makassar",e.ASIA_MANILA="Asia/Manila",e.ASIA_MUSCAT="Asia/Muscat",e.ASIA_NICOSIA="Asia/Nicosia",e.ASIA_NOVOKUZNETSK="Asia/Novokuznetsk",e.ASIA_NOVOSIBIRSK="Asia/Novosibirsk",e.ASIA_OMSK="Asia/Omsk",e.ASIA_ORAL="Asia/Oral",e.ASIA_PHNOM_PENH="Asia/Phnom_Penh",e.ASIA_PONTIANAK="Asia/Pontianak",e.ASIA_PYONGYANG="Asia/Pyongyang",e.ASIA_QATAR="Asia/Qatar",e.ASIA_QOSTANAY="Asia/Qostanay",e.ASIA_QYZYLORDA="Asia/Qyzylorda",e.ASIA_RANGOON="Asia/Rangoon",e.ASIA_RIYADH="Asia/Riyadh",e.ASIA_SAIGON="Asia/Saigon",e.ASIA_SAKHALIN="Asia/Sakhalin",e.ASIA_SAMARKAND="Asia/Samarkand",e.ASIA_SEOUL="Asia/Seoul",e.ASIA_SHANGHAI="Asia/Shanghai",e.ASIA_SINGAPORE="Asia/Singapore",e.ASIA_SREDNEKOLYMSK="Asia/Srednekolymsk",e.ASIA_TAIPEI="Asia/Taipei",e.ASIA_TASHKENT="Asia/Tashkent",e.ASIA_TBILISI="Asia/Tbilisi",e.ASIA_TEHRAN="Asia/Tehran",e.ASIA_TEL_AVIV="Asia/Tel_Aviv",e.ASIA_THIMBU="Asia/Thimbu",e.ASIA_THIMPHU="Asia/Thimphu",e.ASIA_TOKYO="Asia/Tokyo",e.ASIA_TOMSK="Asia/Tomsk",e.ASIA_UJUNG_PANDANG="Asia/Ujung_Pandang",e.ASIA_ULAANBAATAR="Asia/Ulaanbaatar",e.ASIA_ULAN_BATOR="Asia/Ulan_Bator",e.ASIA_URUMQI="Asia/Urumqi",e.ASIA_UST_NERA="Asia/Ust-Nera",e.ASIA_VIENTIANE="Asia/Vientiane",e.ASIA_VLADIVOSTOK="Asia/Vladivostok",e.ASIA_YAKUTSK="Asia/Yakutsk",e.ASIA_YANGON="Asia/Yangon",e.ASIA_YEKATERINBURG="Asia/Yekaterinburg",e.ASIA_YEREVAN="Asia/Yerevan",e.ATLANTIC_AZORES="Atlantic/Azores",e.ATLANTIC_BERMUDA="Atlantic/Bermuda",e.ATLANTIC_CANARY="Atlantic/Canary",e.ATLANTIC_CAPE_VERDE="Atlantic/Cape_Verde",e.ATLANTIC_FAEROE="Atlantic/Faeroe",e.ATLANTIC_FAROE="Atlantic/Faroe",e.ATLANTIC_JAN_MAYEN="Atlantic/Jan_Mayen",e.ATLANTIC_MADEIRA="Atlantic/Madeira",e.ATLANTIC_REYKJAVIK="Atlantic/Reykjavik",e.ATLANTIC_SOUTH_GEORGIA="Atlantic/South_Georgia",e.ATLANTIC_ST_HELENA="Atlantic/St_Helena",e.ATLANTIC_STANLEY="Atlantic/Stanley",e.AUSTRALIA_ACT="Australia/ACT",e.AUSTRALIA_ADELAIDE="Australia/Adelaide",e.AUSTRALIA_BRISBANE="Australia/Brisbane",e.AUSTRALIA_BROKEN_HILL="Australia/Broken_Hill",e.AUSTRALIA_CANBERRA="Australia/Canberra",e.AUSTRALIA_CURRIE="Australia/Currie",e.AUSTRALIA_DARWIN="Australia/Darwin",e.AUSTRALIA_EUCLA="Australia/Eucla",e.AUSTRALIA_HOBART="Australia/Hobart",e.AUSTRALIA_LHI="Australia/LHI",e.AUSTRALIA_LINDEMAN="Australia/Lindeman",e.AUSTRALIA_LORD_HOWE="Australia/Lord_Howe",e.AUSTRALIA_MELBOURNE="Australia/Melbourne",e.AUSTRALIA_NORTH="Australia/North",e.AUSTRALIA_NSW="Australia/NSW",e.AUSTRALIA_PERTH="Australia/Perth",e.AUSTRALIA_QUEENSLAND="Australia/Queensland",e.AUSTRALIA_SOUTH="Australia/South",e.AUSTRALIA_SYDNEY="Australia/Sydney",e.AUSTRALIA_TASMANIA="Australia/Tasmania",e.AUSTRALIA_VICTORIA="Australia/Victoria",e.AUSTRALIA_WEST="Australia/West",e.AUSTRALIA_YANCOWINNA="Australia/Yancowinna",e.BRAZIL_ACRE="Brazil/Acre",e.BRAZIL_DE_NORONHA="Brazil/DeNoronha",e.BRAZIL_EAST="Brazil/East",e.BRAZIL_WEST="Brazil/West",e.CANADA_ATLANTIC="Canada/Atlantic",e.CANADA_CENTRAL="Canada/Central",e.CANADA_EASTERN="Canada/Eastern",e.CANADA_MOUNTAIN="Canada/Mountain",e.CANADA_NEWFOUNDLAND="Canada/Newfoundland",e.CANADA_PACIFIC="Canada/Pacific",e.CANADA_SASKATCHEWAN="Canada/Saskatchewan",e.CANADA_YUKON="Canada/Yukon",e.CET="CET",e.CHILE_CONTINENTAL="Chile/Continental",e.CHILE_EASTER_ISLAND="Chile/EasterIsland",e.CST6_CDT="CST6CDT",e.CUBA="Cuba",e.EET="EET",e.EGYPT="Egypt",e.EIRE="Eire",e.EST="EST",e.EST5_EDT="EST5EDT",e.ETC_GMT="Etc/GMT",e.ETC_GMT_0="Etc/GMT+0",e.ETC_GMT_MINUS_0="Etc/GMT-0",e.ETC_GMT_MINUS_1="Etc/GMT-1",e.ETC_GMT_MINUS_10="Etc/GMT-10",e.ETC_GMT_MINUS_11="Etc/GMT-11",e.ETC_GMT_MINUS_12="Etc/GMT-12",e.ETC_GMT_MINUS_13="Etc/GMT-13",e.ETC_GMT_MINUS_14="Etc/GMT-14",e.ETC_GMT_MINUS_2="Etc/GMT-2",e.ETC_GMT_MINUS_3="Etc/GMT-3",e.ETC_GMT_MINUS_4="Etc/GMT-4",e.ETC_GMT_MINUS_5="Etc/GMT-5",e.ETC_GMT_MINUS_6="Etc/GMT-6",e.ETC_GMT_MINUS_7="Etc/GMT-7",e.ETC_GMT_MINUS_8="Etc/GMT-8",e.ETC_GMT_MINUS_9="Etc/GMT-9",e.ETC_GMT_PLUS_1="Etc/GMT+1",e.ETC_GMT_PLUS_10="Etc/GMT+10",e.ETC_GMT_PLUS_11="Etc/GMT+11",e.ETC_GMT_PLUS_12="Etc/GMT+12",e.ETC_GMT_PLUS_2="Etc/GMT+2",e.ETC_GMT_PLUS_3="Etc/GMT+3",e.ETC_GMT_PLUS_4="Etc/GMT+4",e.ETC_GMT_PLUS_5="Etc/GMT+5",e.ETC_GMT_PLUS_6="Etc/GMT+6",e.ETC_GMT_PLUS_7="Etc/GMT+7",e.ETC_GMT_PLUS_8="Etc/GMT+8",e.ETC_GMT_PLUS_9="Etc/GMT+9",e.ETC_GMT0="Etc/GMT0",e.ETC_GREENWICH="Etc/Greenwich",e.ETC_UCT="Etc/UCT",e.ETC_UNIVERSAL="Etc/Universal",e.ETC_UTC="Etc/UTC",e.ETC_ZULU="Etc/Zulu",e.EUROPE_AMSTERDAM="Europe/Amsterdam",e.EUROPE_ANDORRA="Europe/Andorra",e.EUROPE_ASTRAKHAN="Europe/Astrakhan",e.EUROPE_ATHENS="Europe/Athens",e.EUROPE_BELFAST="Europe/Belfast",e.EUROPE_BELGRADE="Europe/Belgrade",e.EUROPE_BERLIN="Europe/Berlin",e.EUROPE_BRATISLAVA="Europe/Bratislava",e.EUROPE_BRUSSELS="Europe/Brussels",e.EUROPE_BUCHAREST="Europe/Bucharest",e.EUROPE_BUDAPEST="Europe/Budapest",e.EUROPE_BUSINGEN="Europe/Busingen",e.EUROPE_CHISINAU="Europe/Chisinau",e.EUROPE_COPENHAGEN="Europe/Copenhagen",e.EUROPE_DUBLIN="Europe/Dublin",e.EUROPE_GIBRALTAR="Europe/Gibraltar",e.EUROPE_GUERNSEY="Europe/Guernsey",e.EUROPE_HELSINKI="Europe/Helsinki",e.EUROPE_ISLE_OF_MAN="Europe/Isle_of_Man",e.EUROPE_ISTANBUL="Europe/Istanbul",e.EUROPE_JERSEY="Europe/Jersey",e.EUROPE_KALININGRAD="Europe/Kaliningrad",e.EUROPE_KIEV="Europe/Kiev",e.EUROPE_KIROV="Europe/Kirov",e.EUROPE_LISBON="Europe/Lisbon",e.EUROPE_LJUBLJANA="Europe/Ljubljana",e.EUROPE_LONDON="Europe/London",e.EUROPE_LUXEMBOURG="Europe/Luxembourg",e.EUROPE_MADRID="Europe/Madrid",e.EUROPE_MALTA="Europe/Malta",e.EUROPE_MARIEHAMN="Europe/Mariehamn",e.EUROPE_MINSK="Europe/Minsk",e.EUROPE_MONACO="Europe/Monaco",e.EUROPE_MOSCOW="Europe/Moscow",e.EUROPE_NICOSIA="Europe/Nicosia",e.EUROPE_OSLO="Europe/Oslo",e.EUROPE_PARIS="Europe/Paris",e.EUROPE_PODGORICA="Europe/Podgorica",e.EUROPE_PRAGUE="Europe/Prague",e.EUROPE_RIGA="Europe/Riga",e.EUROPE_ROME="Europe/Rome",e.EUROPE_SAMARA="Europe/Samara",e.EUROPE_SAN_MARINO="Europe/San_Marino",e.EUROPE_SARAJEVO="Europe/Sarajevo",e.EUROPE_SARATOV="Europe/Saratov",e.EUROPE_SIMFEROPOL="Europe/Simferopol",e.EUROPE_SKOPJE="Europe/Skopje",e.EUROPE_SOFIA="Europe/Sofia",e.EUROPE_STOCKHOLM="Europe/Stockholm",e.EUROPE_TALLINN="Europe/Tallinn",e.EUROPE_TIRANE="Europe/Tirane",e.EUROPE_TIRASPOL="Europe/Tiraspol",e.EUROPE_ULYANOVSK="Europe/Ulyanovsk",e.EUROPE_UZHGOROD="Europe/Uzhgorod",e.EUROPE_VADUZ="Europe/Vaduz",e.EUROPE_VATICAN="Europe/Vatican",e.EUROPE_VIENNA="Europe/Vienna",e.EUROPE_VILNIUS="Europe/Vilnius",e.EUROPE_VOLGOGRAD="Europe/Volgograd",e.EUROPE_WARSAW="Europe/Warsaw",e.EUROPE_ZAGREB="Europe/Zagreb",e.EUROPE_ZAPOROZHYE="Europe/Zaporozhye",e.EUROPE_ZURICH="Europe/Zurich",e.FACTORY="Factory",e.GB="GB",e.GB_EIRE="GB-Eire",e.GMT="GMT",e.GMT_MINUS_0="GMT-0",e.GMT_PLUS_0="GMT+0",e.GMT0="GMT0",e.GREENWICH="Greenwich",e.HONGKONG="Hongkong",e.HST="HST",e.ICELAND="Iceland",e.INDIAN_ANTANANARIVO="Indian/Antananarivo",e.INDIAN_CHAGOS="Indian/Chagos",e.INDIAN_CHRISTMAS="Indian/Christmas",e.INDIAN_COCOS="Indian/Cocos",e.INDIAN_COMORO="Indian/Comoro",e.INDIAN_KERGUELEN="Indian/Kerguelen",e.INDIAN_MAHE="Indian/Mahe",e.INDIAN_MALDIVES="Indian/Maldives",e.INDIAN_MAURITIUS="Indian/Mauritius",e.INDIAN_MAYOTTE="Indian/Mayotte",e.INDIAN_REUNION="Indian/Reunion",e.IRAN="Iran",e.ISRAEL="Israel",e.JAMAICA="Jamaica",e.JAPAN="Japan",e.KWAJALEIN="Kwajalein",e.LIBYA="Libya",e.MET="MET",e.MEXICO_BAJA_NORTE="Mexico/BajaNorte",e.MEXICO_BAJA_SUR="Mexico/BajaSur",e.MEXICO_GENERAL="Mexico/General",e.MST="MST",e.MST7_MDT="MST7MDT",e.NAVAJO="Navajo",e.NZ="NZ",e.NZ_CHAT="NZ-CHAT",e.PACIFIC_APIA="Pacific/Apia",e.PACIFIC_AUCKLAND="Pacific/Auckland",e.PACIFIC_BOUGAINVILLE="Pacific/Bougainville",e.PACIFIC_CHATHAM="Pacific/Chatham",e.PACIFIC_CHUUK="Pacific/Chuuk",e.PACIFIC_EASTER="Pacific/Easter",e.PACIFIC_EFATE="Pacific/Efate",e.PACIFIC_ENDERBURY="Pacific/Enderbury",e.PACIFIC_FAKAOFO="Pacific/Fakaofo",e.PACIFIC_FIJI="Pacific/Fiji",e.PACIFIC_FUNAFUTI="Pacific/Funafuti",e.PACIFIC_GALAPAGOS="Pacific/Galapagos",e.PACIFIC_GAMBIER="Pacific/Gambier",e.PACIFIC_GUADALCANAL="Pacific/Guadalcanal",e.PACIFIC_GUAM="Pacific/Guam",e.PACIFIC_HONOLULU="Pacific/Honolulu",e.PACIFIC_JOHNSTON="Pacific/Johnston",e.PACIFIC_KIRITIMATI="Pacific/Kiritimati",e.PACIFIC_KOSRAE="Pacific/Kosrae",e.PACIFIC_KWAJALEIN="Pacific/Kwajalein",e.PACIFIC_MAJURO="Pacific/Majuro",e.PACIFIC_MARQUESAS="Pacific/Marquesas",e.PACIFIC_MIDWAY="Pacific/Midway",e.PACIFIC_NAURU="Pacific/Nauru",e.PACIFIC_NIUE="Pacific/Niue",e.PACIFIC_NORFOLK="Pacific/Norfolk",e.PACIFIC_NOUMEA="Pacific/Noumea",e.PACIFIC_PAGO_PAGO="Pacific/Pago_Pago",e.PACIFIC_PALAU="Pacific/Palau",e.PACIFIC_PITCAIRN="Pacific/Pitcairn",e.PACIFIC_POHNPEI="Pacific/Pohnpei",e.PACIFIC_PONAPE="Pacific/Ponape",e.PACIFIC_PORT_MORESBY="Pacific/Port_Moresby",e.PACIFIC_RAROTONGA="Pacific/Rarotonga",e.PACIFIC_SAIPAN="Pacific/Saipan",e.PACIFIC_SAMOA="Pacific/Samoa",e.PACIFIC_TAHITI="Pacific/Tahiti",e.PACIFIC_TARAWA="Pacific/Tarawa",e.PACIFIC_TONGATAPU="Pacific/Tongatapu",e.PACIFIC_TRUK="Pacific/Truk",e.PACIFIC_WAKE="Pacific/Wake",e.PACIFIC_WALLIS="Pacific/Wallis",e.PACIFIC_YAP="Pacific/Yap",e.POLAND="Poland",e.PORTUGAL="Portugal",e.PRC="PRC",e.PST8_PDT="PST8PDT",e.ROC="ROC",e.ROK="ROK",e.SINGAPORE="Singapore",e.TURKEY="Turkey",e.UCT="UCT",e.UNIVERSAL="Universal",e.US_ALASKA="US/Alaska",e.US_ALEUTIAN="US/Aleutian",e.US_ARIZONA="US/Arizona",e.US_CENTRAL="US/Central",e.US_EAST_INDIANA="US/East-Indiana",e.US_EASTERN="US/Eastern",e.US_HAWAII="US/Hawaii",e.US_INDIANA_STARKE="US/Indiana-Starke",e.US_MICHIGAN="US/Michigan",e.US_MOUNTAIN="US/Mountain",e.US_PACIFIC="US/Pacific",e.US_PACIFIC_NEW="US/Pacific-New",e.US_SAMOA="US/Samoa",e.UTC="UTC",e.W_SU="W-SU",e.WET="WET",e.ZULU="Zulu"}(te||(te={})),function(e){e.EVERY_SECOND="* * * * * *",e.EVERY_5_SECONDS="*/5 * * * * *",e.EVERY_10_SECONDS="*/10 * * * * *",e.EVERY_30_SECONDS="*/30 * * * * *",e.EVERY_MINUTE="*/1 * * * *",e.EVERY_5_MINUTES="0 */5 * * * *",e.EVERY_10_MINUTES="0 */10 * * * *",e.EVERY_30_MINUTES="0 */30 * * * *",e.EVERY_HOUR="0 0-23/1 * * *",e.EVERY_2_HOURS="0 0-23/2 * * *",e.EVERY_3_HOURS="0 0-23/3 * * *",e.EVERY_4_HOURS="0 0-23/4 * * *",e.EVERY_5_HOURS="0 0-23/5 * * *",e.EVERY_6_HOURS="0 0-23/6 * * *",e.EVERY_7_HOURS="0 0-23/7 * * *",e.EVERY_8_HOURS="0 0-23/8 * * *",e.EVERY_9_HOURS="0 0-23/9 * * *",e.EVERY_10_HOURS="0 0-23/10 * * *",e.EVERY_11_HOURS="0 0-23/11 * * *",e.EVERY_12_HOURS="0 0-23/12 * * *",e.EVERY_DAY_AT_1AM="0 01 * * *",e.EVERY_DAY_AT_2AM="0 02 * * *",e.EVERY_DAY_AT_3AM="0 03 * * *",e.EVERY_DAY_AT_4AM="0 04 * * *",e.EVERY_DAY_AT_5AM="0 05 * * *",e.EVERY_DAY_AT_6AM="0 06 * * *",e.EVERY_DAY_AT_7AM="0 07 * * *",e.EVERY_DAY_AT_8AM="0 08 * * *",e.EVERY_DAY_AT_9AM="0 09 * * *",e.EVERY_DAY_AT_10AM="0 10 * * *",e.EVERY_DAY_AT_11AM="0 11 * * *",e.EVERY_DAY_AT_NOON="0 12 * * *",e.EVERY_DAY_AT_1PM="0 13 * * *",e.EVERY_DAY_AT_2PM="0 14 * * *",e.EVERY_DAY_AT_3PM="0 15 * * *",e.EVERY_DAY_AT_4PM="0 16 * * *",e.EVERY_DAY_AT_5PM="0 17 * * *",e.EVERY_DAY_AT_6PM="0 18 * * *",e.EVERY_DAY_AT_7PM="0 19 * * *",e.EVERY_DAY_AT_8PM="0 20 * * *",e.EVERY_DAY_AT_9PM="0 21 * * *",e.EVERY_DAY_AT_10PM="0 22 * * *",e.EVERY_DAY_AT_11PM="0 23 * * *",e.EVERY_DAY_AT_MIDNIGHT="0 0 * * *",e.EVERY_WEEK="0 0 * * 0",e.EVERY_WEEKDAY="0 0 * * 1-5",e.EVERY_WEEKEND="0 0 * * 6,0",e.EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT="0 0 1 * *",e.EVERY_1ST_DAY_OF_MONTH_AT_NOON="0 12 1 * *",e.EVERY_2ND_HOUR="0 */2 * * *",e.EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM="0 1-23/2 * * *",e.EVERY_2ND_MONTH="0 0 1 */2 *",e.EVERY_QUARTER="0 0 1 */3 *",e.EVERY_6_MONTHS="0 0 1 */6 *",e.EVERY_YEAR="0 0 1 0 *",e.EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM="0 */30 9-17 * * *",e.EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM="0 */30 9-18 * * *",e.EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM="0 */30 10-19 * * *",e.MONDAY_TO_FRIDAY_AT_1AM="0 0 01 * * 1-5",e.MONDAY_TO_FRIDAY_AT_2AM="0 0 02 * * 1-5",e.MONDAY_TO_FRIDAY_AT_3AM="0 0 03 * * 1-5",e.MONDAY_TO_FRIDAY_AT_4AM="0 0 04 * * 1-5",e.MONDAY_TO_FRIDAY_AT_5AM="0 0 05 * * 1-5",e.MONDAY_TO_FRIDAY_AT_6AM="0 0 06 * * 1-5",e.MONDAY_TO_FRIDAY_AT_7AM="0 0 07 * * 1-5",e.MONDAY_TO_FRIDAY_AT_8AM="0 0 08 * * 1-5",e.MONDAY_TO_FRIDAY_AT_9AM="0 0 09 * * 1-5",e.MONDAY_TO_FRIDAY_AT_09_30AM="0 30 09 * * 1-5",e.MONDAY_TO_FRIDAY_AT_10AM="0 0 10 * * 1-5",e.MONDAY_TO_FRIDAY_AT_11AM="0 0 11 * * 1-5",e.MONDAY_TO_FRIDAY_AT_11_30AM="0 30 11 * * 1-5",e.MONDAY_TO_FRIDAY_AT_12PM="0 0 12 * * 1-5",e.MONDAY_TO_FRIDAY_AT_1PM="0 0 13 * * 1-5",e.MONDAY_TO_FRIDAY_AT_2PM="0 0 14 * * 1-5",e.MONDAY_TO_FRIDAY_AT_3PM="0 0 15 * * 1-5",e.MONDAY_TO_FRIDAY_AT_4PM="0 0 16 * * 1-5",e.MONDAY_TO_FRIDAY_AT_5PM="0 0 17 * * 1-5",e.MONDAY_TO_FRIDAY_AT_6PM="0 0 18 * * 1-5",e.MONDAY_TO_FRIDAY_AT_7PM="0 0 19 * * 1-5",e.MONDAY_TO_FRIDAY_AT_8PM="0 0 20 * * 1-5",e.MONDAY_TO_FRIDAY_AT_9PM="0 0 21 * * 1-5",e.MONDAY_TO_FRIDAY_AT_10PM="0 0 22 * * 1-5",e.MONDAY_TO_FRIDAY_AT_11PM="0 0 23 * * 1-5"}(ne||(ne={}));const re=["subscriber","step","branding","tenant","preheader","actor"],se={subscriber:{firstName:"string",lastName:"string",email:"string",phone:"string",avatar:"string",locale:"string",subscriberId:"string"},actor:{firstName:"string",lastName:"string",email:"string",phone:"string",avatar:"string",locale:"string",subscriberId:"string"},step:{digest:"boolean",events:"array",total_count:"number"},branding:{logo:"string",color:"string"},tenant:{name:"string",data:"object"}},oe=["tenant","actor"],ae={[c.TENANT]:[{name:"identifier",type:T.STRING}],[c.ACTOR]:[{name:"subscriberId",type:T.STRING}]};var ce,ue,le,de,he,pe,Ae,fe,ye,Ee,me,_e,ge;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info"}(ce||(ce={})),function(e){e[e.TRIGGER_RECEIVED=1e3]="TRIGGER_RECEIVED",e[e.TEMPLATE_NOT_ACTIVE=1001]="TEMPLATE_NOT_ACTIVE",e[e.TEMPLATE_NOT_FOUND=1002]="TEMPLATE_NOT_FOUND",e[e.SMS_ERROR=1004]="SMS_ERROR",e[e.CHAT_ERROR=1005]="CHAT_ERROR",e[e.MISSING_SMS_PROVIDER=1006]="MISSING_SMS_PROVIDER",e[e.IN_APP_MESSAGE_CREATED=1007]="IN_APP_MESSAGE_CREATED",e[e.MAIL_PROVIDER_DELIVERY_ERROR=1008]="MAIL_PROVIDER_DELIVERY_ERROR",e[e.TRIGGER_PROCESSED=1009]="TRIGGER_PROCESSED",e[e.PUSH_ERROR=1010]="PUSH_ERROR",e[e.MISSING_PUSH_PROVIDER=1011]="MISSING_PUSH_PROVIDER",e[e.SUBSCRIBER_NOT_FOUND=3001]="SUBSCRIBER_NOT_FOUND",e[e.SUBSCRIBER_MISSING_EMAIL=3002]="SUBSCRIBER_MISSING_EMAIL",e[e.SUBSCRIBER_MISSING_PHONE=3003]="SUBSCRIBER_MISSING_PHONE",e[e.SUBSCRIBER_MISSING_CHAT_CHANNEL_ID=3006]="SUBSCRIBER_MISSING_CHAT_CHANNEL_ID",e[e.SUBSCRIBER_ID_MISSING=3004]="SUBSCRIBER_ID_MISSING",e[e.MISSING_EMAIL_INTEGRATION=3005]="MISSING_EMAIL_INTEGRATION",e[e.MISSING_SMS_INTEGRATION=3007]="MISSING_SMS_INTEGRATION",e[e.MISSING_CHAT_INTEGRATION=3008]="MISSING_CHAT_INTEGRATION",e[e.MISSING_PUSH_INTEGRATION=3009]="MISSING_PUSH_INTEGRATION",e[e.SUBSCRIBER_MISSING_PUSH=3010]="SUBSCRIBER_MISSING_PUSH",e[e.MISSING_PAYLOAD_VARIABLE=3011]="MISSING_PAYLOAD_VARIABLE",e[e.AVATAR_ACTOR_ERROR=3012]="AVATAR_ACTOR_ERROR",e[e.SYNTAX_ERROR_IN_EMAIL_EDITOR=3013]="SYNTAX_ERROR_IN_EMAIL_EDITOR",e[e.TOPIC_ERROR=4001]="TOPIC_ERROR",e[e.TOPIC_SUBSCRIBERS_ERROR=4002]="TOPIC_SUBSCRIBERS_ERROR"}(ue||(ue={})),function(e){e.FEED="Feed",e.MESSAGE_TEMPLATE="MessageTemplate",e.LAYOUT="Layout",e.DEFAULT_LAYOUT="DefaultLayout",e.NOTIFICATION_TEMPLATE="NotificationTemplate",e.NOTIFICATION_GROUP="NotificationGroup",e.TRANSLATION_GROUP="TranslationGroup",e.TRANSLATION="Translation"}(le||(le={})),function(e){e.SECONDS="seconds",e.MINUTES="minutes",e.HOURS="hours",e.DAYS="days",e.WEEKS="weeks",e.MONTHS="months"}(de||(de={})),function(e){e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday",e.SUNDAY="sunday"}(he||(he={})),function(e){e.REGULAR="regular",e.BACKOFF="backoff",e.TIMED="timed"}(pe||(pe={})),function(e){e.REGULAR="regular",e.SCHEDULED="scheduled"}(Ae||(Ae={})),function(e){e.EACH="each",e.ON="on"}(fe||(fe={})),function(e){e.FIRST="1",e.SECOND="2",e.THIRD="3",e.FOURTH="4",e.FIFTH="5",e.LAST="last"}(ye||(ye={})),function(e){e.DAY="day",e.WEEKDAY="weekday",e.WEEKEND="weekend",e.SUNDAY="sunday",e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday"}(Ee||(Ee={})),function(e){e.PENDING="pending",e.QUEUED="queued",e.RUNNING="running",e.COMPLETED="completed",e.FAILED="failed",e.DELAYED="delayed",e.CANCELED="canceled",e.MERGED="merged",e.SKIPPED="skipped"}(me||(me={})),function(e){e.MERGED="MERGED",e.CREATED="CREATED",e.SKIPPED="SKIPPED"}(_e||(_e={})),function(e){e.GLOBAL="global",e.TEMPLATE="template"}(ge||(ge={}));class Re{}class Ie{}class Se{}class Ne{}class Te{}class Ce{}class be{}class ve extends be{}const Oe=30,Me=30,Pe=365;var ke,Ue,Le,De,we,Fe;!function(e){e.ApiKey="apiKey",e.User="user",e.SecretKey="secretKey",e.Domain="domain",e.Password="password",e.Host="host",e.Port="port",e.Secure="secure",e.Region="region",e.AccountSid="accountSid",e.MessageProfileId="messageProfileId",e.Token="token",e.From="from",e.SenderName="senderName",e.ContentType="contentType",e.ApplicationId="applicationId",e.ClientId="clientId",e.ProjectName="projectName",e.ServiceAccount="serviceAccount",e.BaseUrl="baseUrl",e.WebhookUrl="webhookUrl",e.RequireTls="requireTls",e.IgnoreTls="ignoreTls",e.TlsOptions="tlsOptions",e.RedirectUrl="redirectUrl",e.Hmac="hmac",e.IpPoolName="ipPoolName",e.ApiKeyRequestHeader="apiKeyRequestHeader",e.SecretKeyRequestHeader="secretKeyRequestHeader",e.IdPath="idPath",e.DatePath="datePath",e.AuthenticateByToken="authenticateByToken",e.AuthenticationTokenKey="authenticationTokenKey",e.AccessKey="accessKey",e.InstanceId="instanceId",e.ApiToken="apiToken",e.ApiURL="apiURL",e.AppID="appID",e.alertUid="alertUid",e.title="title",e.imageUrl="imageUrl",e.state="state",e.externalLink="externalLink"}(ke||(ke={})),function(e){e.EmailJS="emailjs",e.Mailgun="mailgun",e.Mailjet="mailjet",e.Mandrill="mandrill",e.CustomSMTP="nodemailer",e.Postmark="postmark",e.SendGrid="sendgrid",e.Sendinblue="sendinblue",e.SES="ses",e.NetCore="netcore",e.Infobip="infobip-email",e.Resend="resend",e.Plunk="plunk",e.MailerSend="mailersend",e.Mailtrap="mailtrap",e.Clickatell="clickatell",e.Outlook365="outlook365",e.Novu="novu-email",e.SparkPost="sparkpost",e.EmailWebhook="email-webhook",e.Braze="braze"}(Ue||(Ue={})),function(e){e.Nexmo="nexmo",e.Plivo="plivo",e.Sms77="sms77",e.SmsCentral="sms-central",e.SNS="sns",e.Telnyx="telnyx",e.Twilio="twilio",e.Gupshup="gupshup",e.Firetext="firetext",e.Infobip="infobip-sms",e.BurstSms="burst-sms",e.BulkSms="bulk-sms",e.ISendSms="isend-sms",e.Clickatell="clickatell",e.FortySixElks="forty-six-elks",e.Kannel="kannel",e.Maqsam="maqsam",e.Termii="termii",e.AfricasTalking="africas-talking",e.Novu="novu-sms",e.Sendchamp="sendchamp",e.GenericSms="generic-sms",e.Clicksend="clicksend",e.Bandwidth="bandwidth",e.MessageBird="messagebird",e.Simpletexting="simpletexting",e.AzureSms="azure-sms",e.RingCentral="ring-central",e.BrevoSms="brevo-sms"}(Le||(Le={})),function(e){e.Slack="slack",e.Discord="discord",e.MsTeams="msteams",e.Mattermost="mattermost",e.Ryver="ryver",e.Zulip="zulip",e.GrafanaOnCall="grafana-on-call",e.GetStream="getstream",e.RocketChat="rocket-chat"}(De||(De={})),function(e){e.FCM="fcm",e.APNS="apns",e.EXPO="expo",e.OneSignal="one-signal",e.Pushpad="pushpad",e.PushWebhook="push-webhook",e.PusherBeams="pusher-beams"}(we||(we={})),function(e){e.Novu="novu"}(Fe||(Fe={}));const Be=[ke.ApiKey,ke.ApiToken,ke.SecretKey,ke.Token,ke.Password,ke.ServiceAccount],qe=[{key:ke.From,displayName:"From email address",description:"Use the same email address you used to authenticate your delivery provider",type:"string",required:!0},{key:ke.SenderName,displayName:"Sender name",type:"string",required:!0}],Ke=[{key:ke.From,displayName:"From",type:"string",required:!0}],Ge=[],Ye=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.SecretKey,displayName:"Secret key",type:"string",required:!0},...qe],xe=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.BaseUrl,displayName:"Base URL",type:"string",required:!1},{key:ke.User,displayName:"User name",type:"string",required:!0},{key:ke.Domain,displayName:"Domain",type:"string",required:!0},...qe],He=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.SecretKey,displayName:"API Secret",type:"string",required:!0},...qe],je=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.SecretKey,displayName:"API secret",type:"string",required:!0},...Ke],Qe=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],Ve=[{key:ke.User,displayName:"User",type:"string",required:!1},{key:ke.Password,displayName:"Password",type:"string",required:!1},{key:ke.Host,displayName:"Host",type:"string",required:!0},{key:ke.Port,displayName:"Port",type:"number",required:!0},{key:ke.Secure,displayName:"Secure",type:"boolean",required:!1},{key:ke.RequireTls,displayName:"Require TLS",type:"switch",required:!1},{key:ke.IgnoreTls,displayName:"Ignore TLS",type:"switch",required:!1},{key:ke.TlsOptions,displayName:"TLS options",type:"object",required:!1},{key:ke.Domain,displayName:"DKIM: Domain name",type:"string",required:!1},{key:ke.SecretKey,displayName:"DKIM: Private key",type:"string",required:!1},{key:ke.AccountSid,displayName:"DKIM: Key selector",type:"string",required:!1},...qe],We=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],ze=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.IpPoolName,displayName:"IP Pool Name",type:"string",required:!1},...qe],Je=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],$e=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],Xe=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],Ze=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.Region,displayName:"Region",description:"Use EU if your account is registered to SparkPost EU",type:"dropdown",required:!1,value:null,dropdown:[{name:"Default",value:null},{name:"EU",value:"eu"}]},...qe],et=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],tt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],nt=[{key:ke.ApiKey,displayName:"Access key ID",type:"string",required:!0},{key:ke.SecretKey,displayName:"Secret access key",type:"string",required:!0},{key:ke.Region,displayName:"Region",type:"string",required:!0},...qe],it=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...qe],rt=[{key:ke.AccountSid,displayName:"Account SID",type:"string",required:!0},{key:ke.Token,displayName:"Auth token",type:"string",required:!0},...Ke],st=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...Ke],ot=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...Ke],at=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.SecretKey,displayName:"API Secret",type:"string",required:!0}],ct=[{key:ke.ApiToken,displayName:"API Token",type:"string",required:!0}],ut=[{key:ke.ApiToken,displayName:"API Token",type:"string",required:!0},{key:ke.From,displayName:"Default Sender ID",type:"string",required:!1},{key:ke.ContentType,displayName:"Content Type",type:"dropdown",required:!1,value:null,dropdown:[{name:"Default",value:null},{name:"Unicode",value:"unicode"},{name:"Plain",value:"plain"}]}],lt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0}],dt=[{key:ke.ApiKey,displayName:"Access key ID",type:"string",required:!0},{key:ke.SecretKey,displayName:"Secret access key",type:"string",required:!0},{key:ke.Region,displayName:"AWS region",type:"string",required:!0}],ht=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.MessageProfileId,displayName:"Message profile ID",type:"string",required:!0},...Ke],pt=[{key:ke.AccountSid,displayName:"Account SID",type:"string",required:!0},{key:ke.Token,displayName:"Auth token",type:"string",required:!0},...Ke],At=[{key:ke.AccessKey,displayName:"Access key",type:"string",required:!0},...Ke],ft=[{key:ke.ApplicationId,displayName:"Application Id",type:"string",required:!0},{key:ke.ClientId,displayName:"Client ID",type:"string",required:!0},{key:ke.SecretKey,displayName:"Client Secret",type:"string",required:!0},{key:ke.RedirectUrl,displayName:"Redirect URL",description:"Redirect after Slack OAuth flow finished (default behaviour will close the tab)",type:"string",required:!1},{key:ke.Hmac,displayName:"HMAC",type:"switch",required:!1}],yt=[{key:ke.alertUid,displayName:"Alert UID",type:"string",description:"a unique alert ID for grouping, maps to alert_uid of grafana webhook body content",required:!1},{key:ke.title,displayName:"Title.",type:"string",description:"title for the alert",required:!1},{key:ke.imageUrl,displayName:"Image URL",type:"string",description:"a URL for an image attached to alert, maps to image_url of grafana webhook body content",required:!1},{key:ke.state,displayName:"Alert State",type:"string",description:'either "ok" or "alerting". Helpful for auto-resolving',required:!1},{key:ke.externalLink,displayName:"External Link",type:"string",description:'link back to your monitoring system, maps to "link_to_upstream_details" of grafana webhook body content',required:!1}],Et=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0}],mt=[{key:ke.ServiceAccount,displayName:"Service Account (entire JSON file)",type:"text",required:!0},...Ge],_t=[{key:ke.ApiKey,displayName:"Access Token",type:"text",required:!0},...Ge],gt=[{key:ke.WebhookUrl,displayName:"Webhook URL",type:"string",description:"the webhook URL to call to trigger push notifications",required:!0},{key:ke.SecretKey,displayName:"Secret Hmac Key",type:"string",description:"the secret used to sign webhooks calls",required:!0},...Ge],Rt=[{key:ke.ApplicationId,displayName:"Application ID",type:"text",required:!0},{key:ke.ApiKey,displayName:"API Key",type:"text",required:!0},...Ge],It=[{key:ke.ApiKey,displayName:"Auth Token",type:"text",required:!0},{key:ke.ApplicationId,displayName:"Project ID",type:"text",required:!0},...Ge],St=[{key:ke.SecretKey,displayName:"Private Key",type:"text",required:!0},{key:ke.ApiKey,displayName:"Key ID",type:"string",required:!0},{key:ke.ProjectName,displayName:"Team ID",type:"string",required:!0},{key:ke.ApplicationId,displayName:"Bundle ID",type:"string",required:!0},{key:ke.Secure,displayName:"Production",type:"switch",required:!1},...Ge],Nt=[{key:ke.User,displayName:"User id",type:"string",required:!0},{key:ke.Password,displayName:"Password",type:"string",required:!0}],Tt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...Ke],Ct=[{key:ke.Password,displayName:"Password",type:"string",required:!0},...qe],bt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.BaseUrl,displayName:"Base URL",type:"string",required:!0},...Ke],vt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.BaseUrl,displayName:"Base URL",type:"string",required:!0},...qe],Ot=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.ApiURL,displayName:"Base URL",type:"string",required:!0},{key:ke.AppID,displayName:"Base URL",type:"string",required:!0},...qe],Mt=[{key:ke.User,displayName:"Username",type:"string",required:!0},{key:ke.Password,displayName:"Password",type:"string",required:!0},...Ke],Pt=[{key:ke.Host,displayName:"Host",type:"string",required:!0},{key:ke.Port,displayName:"Port",type:"number",required:!0},{key:ke.User,displayName:"Username",type:"string",required:!1},{key:ke.Password,displayName:"Password",type:"string",required:!1},...Ke],kt=[{key:ke.ApiKey,displayName:"Access Key ID",type:"string",required:!0},{key:ke.SecretKey,displayName:"Access Secret",type:"string",required:!0},...Ke],Ut=[{key:ke.User,displayName:"Username",type:"string",required:!0},{key:ke.Password,displayName:"Password",type:"string",required:!0},{key:ke.BaseUrl,displayName:"Base URL",type:"string",required:!1},...Ke],Lt=[{key:ke.WebhookUrl,displayName:"Webhook URL",type:"string",description:"the webhook URL to call instead of sending the email",required:!0},{key:ke.SecretKey,displayName:"Secret Hmac Key",type:"string",description:"the secret used to sign webhooks calls",required:!0},...qe],Dt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},{key:ke.User,displayName:"Username",type:"string",required:!0},...Ke],wt=[{key:ke.Hmac,displayName:"Security HMAC encryption",type:"switch",required:!1,tooltip:{text:"When active it verifies if a request is performed by a specific user",when:!1}}],Ft=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...Ke],Bt=[{key:ke.User,displayName:"Username",description:"Your Clicksend API username",type:"text",required:!0},{key:ke.ApiKey,displayName:"API Key",type:"text",required:!0},...Ke],qt=[{key:ke.ApiKey,displayName:"API Key",type:"text",required:!0},...Ke],Kt=[{key:ke.User,displayName:"Username",description:"Your Bandwidth account username",type:"text",required:!0},{key:ke.Password,displayName:"Password",type:"password",required:!0},{key:ke.AccountSid,displayName:"Account ID",type:"text",required:!0},...Ke],Gt=[{key:ke.BaseUrl,displayName:"Base URL",type:"string",required:!0},{key:ke.ApiKeyRequestHeader,displayName:"API Key Request Header",type:"string",description:"The name of the header attribute to use for the API key ex. (X-API-KEY, apiKey, ...)",required:!0},{key:ke.ApiKey,displayName:"API Key",type:"string",description:"The value of the header attribute to use for the API key.",required:!0},{key:ke.SecretKeyRequestHeader,displayName:"Secret Key Request Header",type:"string",description:"The name of the header attribute to use for the secret key ex. (X-SECRET-KEY, secretKey, ...)",required:!1},{key:ke.SecretKey,displayName:"Secret Key",type:"string",description:"The value of the header attribute to use for the secret key",required:!1},{key:ke.IdPath,displayName:"Id Path",type:"string",value:"data.id",description:"The path to the id field in the response data ex. (id, message.id, ...)",required:!0},{key:ke.DatePath,displayName:"Date Path",type:"string",value:"data.date",description:"The path to the date field in the response data ex. (date, message.date, ...)",required:!1},{key:ke.AuthenticateByToken,displayName:"Authenticate by token",type:"switch",description:"If enabled, the API key and secret key will be sent as a token in the Authorization header",required:!1},{key:ke.Domain,displayName:"Auth URL",type:"string",description:"The URL to use for authentication in case the Authenticate by token option is enabled",required:!1,tooltip:{text:"The URL to use for authentication in case the Authenticate by token option is enabled",when:!0}},{key:ke.AuthenticationTokenKey,displayName:"Authentication Token Key",type:"string",description:"The name of the header attribute to use for the authentication token ex. (X-AUTH-TOKEN, auth-token, ...)",required:!1},...Ke],Yt=[{key:ke.InstanceId,displayName:"Instance ID",description:"The unique identifier for your Beams instance",type:"string",required:!0},{key:ke.SecretKey,displayName:"Secret Key",description:"The secret key your server will use to access your Beams instance",type:"string",required:!0},...Ge],xt=[{key:ke.AccessKey,displayName:"Connection string",description:"Your Azure account connection string",type:"text",required:!0},...Ke],Ht=[{key:ke.Token,displayName:"Personal Access Token (x-auth-token)",description:"Personal Access Token of your user",type:"text",required:!0},{key:ke.User,displayName:"User id (x-user-id)",description:"Your User id",type:"text",required:!0}],jt=[{key:ke.ClientId,displayName:"Client ID",description:"Your RingCentral app client ID",type:"string",required:!0},{key:ke.SecretKey,displayName:"Client secret",description:"Your RingCentral app client secret",type:"string",required:!0},{key:ke.Secure,displayName:"Is sandbox",type:"switch",required:!1},{key:ke.Token,displayName:"JWT token",description:"Your RingCentral user JWT token",type:"string",required:!0},...Ke],Qt=[{key:ke.ApiKey,displayName:"API Key",type:"string",required:!0},...Ke],Vt="?utm_campaign=in-app",Wt=[{id:Ue.Novu,displayName:"Novu Email",channel:R.EMAIL,credentials:[],docReference:`https://docs.novu.co/channels-and-providers/default-providers${Vt}#novu-email-provider`,logoFileName:{light:"novu.png",dark:"novu.png"}},{id:Ue.Mailgun,displayName:"Mailgun",channel:R.EMAIL,credentials:xe,docReference:`https://docs.novu.co/channels-and-providers/email/mailgun${Vt}`,logoFileName:{light:"mailgun.svg",dark:"mailgun.svg"}},{id:Ue.Mailjet,displayName:"Mailjet",channel:R.EMAIL,credentials:He,docReference:`https://docs.novu.co/channels-and-providers/email/mailjet${Vt}`,logoFileName:{light:"mailjet.png",dark:"mailjet.png"}},{id:Ue.Mailtrap,displayName:"Mailtrap",channel:R.EMAIL,credentials:$e,docReference:`https://docs.novu.co/channels-and-providers/email/mailtrap${Vt}`,logoFileName:{light:"mailtrap.svg",dark:"mailtrap.svg"}},{id:Ue.Mandrill,displayName:"Mandrill",channel:R.EMAIL,credentials:Qe,docReference:`https://docs.novu.co/channels-and-providers/email/mandrill${Vt}`,logoFileName:{light:"mandrill.svg",dark:"mandrill.svg"}},{id:Ue.Postmark,displayName:"Postmark",channel:R.EMAIL,credentials:We,docReference:`https://docs.novu.co/channels-and-providers/email/postmark${Vt}`,logoFileName:{light:"postmark.png",dark:"postmark.png"}},{id:Ue.SendGrid,displayName:"SendGrid",channel:R.EMAIL,credentials:ze,docReference:`https://docs.novu.co/channels-and-providers/email/sendgrid${Vt}`,logoFileName:{light:"sendgrid.png",dark:"sendgrid.png"}},{id:Ue.Sendinblue,displayName:"Sendinblue",channel:R.EMAIL,credentials:tt,docReference:`https://docs.novu.co/channels-and-providers/email/sendinblue${Vt}`,logoFileName:{light:"sendinblue.png",dark:"sendinblue.png"}},{id:Ue.SES,displayName:"SES",channel:R.EMAIL,credentials:nt,docReference:`https://docs.novu.co/channels-and-providers/email/amazonses${Vt}`,logoFileName:{light:"ses.svg",dark:"ses.svg"}},{id:Ue.NetCore,displayName:"Netcore",channel:R.EMAIL,credentials:et,docReference:`https://docs.novu.co/channels-and-providers/email/netcore${Vt}`,logoFileName:{light:"netcore.png",dark:"netcore.png"}},{id:Ue.CustomSMTP,displayName:"Custom SMTP",channel:R.EMAIL,credentials:Ve,docReference:`https://docs.novu.co/channels-and-providers/email/custom-smtp${Vt}`,logoFileName:{light:"custom_smtp.svg",dark:"custom_smtp.svg"}},{id:Ue.MailerSend,displayName:"MailerSend",channel:R.EMAIL,credentials:it,docReference:`https://docs.novu.co/channels-and-providers/email/mailersend${Vt}`,logoFileName:{light:"mailersend.svg",dark:"mailersend.svg"}},{id:Ue.Outlook365,displayName:"Microsoft Outlook365",channel:R.EMAIL,credentials:Ct,docReference:`https://docs.novu.co/channels-and-providers/email/outlook365${Vt}`,logoFileName:{light:"outlook365.png",dark:"outlook365.png"}},{id:Ue.Infobip,displayName:"Infobip",channel:R.EMAIL,credentials:vt,docReference:`https://docs.novu.co/channels-and-providers/email/infobip${Vt}`,logoFileName:{light:"infobip.png",dark:"infobip.png"}},{id:Ue.Braze,displayName:"Braze",channel:R.EMAIL,credentials:Ot,docReference:"https://www.braze.com/docs/api/endpoints/messaging/send_messages/post_send_messages/",logoFileName:{light:"braze.svg",dark:"braze.svg"}},{id:Ue.Resend,displayName:"Resend",channel:R.EMAIL,credentials:Je,docReference:`https://docs.novu.co/channels-and-providers/email/resend${Vt}`,logoFileName:{light:"resend.svg",dark:"resend.svg"}},{id:Ue.Plunk,displayName:"Plunk",channel:R.EMAIL,credentials:Xe,docReference:`https://docs.novu.co/channels/email/plunk${Vt}`,logoFileName:{light:"plunk.png",dark:"plunk.png"}},{id:Ue.SparkPost,displayName:"SparkPost",channel:R.EMAIL,credentials:Ze,docReference:`https://docs.novu.co/channels-and-providers/email/sparkpost${Vt}`,logoFileName:{light:"sparkpost.svg",dark:"sparkpost.svg"}},{id:Ue.EmailWebhook,displayName:"Email Webhook",channel:R.EMAIL,credentials:Lt,betaVersion:!0,docReference:`https://docs.novu.co/channels/email/email-webhook${Vt}`,logoFileName:{light:"email_webhook.svg",dark:"email_webhook.svg"}}],zt=[{id:Le.Novu,displayName:"Novu SMS",channel:R.SMS,credentials:[],docReference:`https://docs.novu.co/channels-and-providers/default-providers${Vt}#novu-sms-provider`,logoFileName:{light:"novu.png",dark:"novu.png"}},{id:Le.Nexmo,displayName:"Nexmo",channel:R.SMS,credentials:je,docReference:`https://docs.novu.co/channels-and-providers/sms/nexmo${Vt}`,logoFileName:{light:"nexmo.png",dark:"nexmo.png"}},{id:Le.Plivo,displayName:"Plivo",channel:R.SMS,credentials:rt,docReference:`https://docs.novu.co/channels-and-providers/sms/plivo${Vt}`,logoFileName:{light:"plivo.png",dark:"plivo.png"}},{id:Le.Sms77,displayName:"sms77",channel:R.SMS,credentials:st,docReference:`https://docs.novu.co/channels-and-providers/sms/sms77${Vt}`,logoFileName:{light:"sms77.svg",dark:"sms77.svg"}},{id:Le.SNS,displayName:"SNS",channel:R.SMS,credentials:dt,docReference:`https://docs.novu.co/channels-and-providers/sms/aws-sns${Vt}`,logoFileName:{light:"sns.svg",dark:"sns.svg"}},{id:Le.Telnyx,displayName:"Telnyx",channel:R.SMS,credentials:ht,docReference:`https://docs.novu.co/channels-and-providers/sms/telnyx${Vt}`,logoFileName:{light:"telnyx.png",dark:"telnyx.png"}},{id:Le.MessageBird,displayName:"MessageBird",channel:R.SMS,credentials:At,docReference:"https://developers.messagebird.com/quickstarts/sms-overview/",logoFileName:{light:"messagebird.png",dark:"messagebird.png"}},{id:Le.Twilio,displayName:"Twilio",channel:R.SMS,credentials:pt,docReference:`https://docs.novu.co/channels-and-providers/sms/twilio${Vt}`,logoFileName:{light:"twilio.png",dark:"twilio.png"}},{id:Le.Gupshup,displayName:"Gupshup",channel:R.SMS,credentials:Nt,docReference:"https://docs.gupshup.io/docs/send-single-message",logoFileName:{light:"gupshup.png",dark:"gupshup.png"}},{id:Le.Firetext,displayName:"Firetext",channel:R.SMS,credentials:Tt,docReference:"https://www.firetext.co.uk/docs",logoFileName:{light:"firetext.svg",dark:"firetext.svg"}},{id:Le.Infobip,displayName:"Infobip",channel:R.SMS,credentials:bt,docReference:`https://docs.novu.co/channels-and-providers/sms/infobip${Vt}`,logoFileName:{light:"infobip.png",dark:"infobip.png"}},{id:Le.BurstSms,displayName:"BurstSMS",channel:R.SMS,credentials:at,docReference:"https://developer.transmitsms.com/",logoFileName:{light:"burst-sms.svg",dark:"burst-sms.svg"}},{id:Le.BulkSms,displayName:"BulkSMS",channel:R.SMS,credentials:ct,docReference:"https://www.bulksms.com/developer/json/v1/",logoFileName:{light:"bulk-sms.png",dark:"bulk-sms.png"}},{id:Le.ISendSms,displayName:"iSend SMS",channel:R.SMS,credentials:ut,docReference:"https://send.com.ly/developers/docs",logoFileName:{light:"isend-sms.svg",dark:"isend-sms.svg"}},{id:Le.Clickatell,displayName:"clickatell",channel:R.SMS,credentials:lt,betaVersion:!0,docReference:"https://docs.clickatell.com/",logoFileName:{light:"clickatell.png",dark:"clickatell.png"}},{id:Le.FortySixElks,displayName:"46elks",channel:R.SMS,credentials:Mt,docReference:"https://46elks.com/docs/send-sms",logoFileName:{light:"46elks.png",dark:"46elks.png"}},{id:Le.Kannel,displayName:"Kannel SMS",channel:R.SMS,credentials:Pt,betaVersion:!0,docReference:"https://www.kannel.org/doc.shtml",logoFileName:{light:"kannel.png",dark:"kannel.png"}},{id:Le.Maqsam,displayName:"Maqsam",channel:R.SMS,credentials:kt,docReference:"https://portal.maqsam.com/docs/v2/sms",logoFileName:{light:"maqsam.png",dark:"maqsam.png"}},{id:Le.SmsCentral,displayName:"SMS Central",channel:R.SMS,credentials:Ut,docReference:"https://www.smscentral.com.au/sms-api/",logoFileName:{light:"sms-central.png",dark:"sms-central.png"}},{id:Le.Termii,displayName:"Termii",channel:R.SMS,credentials:ot,docReference:`https://docs.novu.co/channels-and-providers/sms/termii${Vt}`,logoFileName:{light:"termii.png",dark:"termii.png"}},{id:Le.AfricasTalking,displayName:"Africa's Talking",channel:R.SMS,credentials:Dt,docReference:`https://docs.novu.co/channels-and-providers/sms/africas-talking${Vt}`,logoFileName:{light:"africas-talking.svg",dark:"africas-talking.svg"}},{id:Le.Sendchamp,displayName:"Sendchamp",channel:R.SMS,credentials:Ft,docReference:`https://docs.novu.co/channels-and-providers/sms/sendchamp${Vt}`,logoFileName:{light:"sendchamp.svg",dark:"sendchamp.svg"}},{id:Le.GenericSms,displayName:"Generic SMS",channel:R.SMS,credentials:Gt,docReference:`https://docs.novu.co/channels/sms/generic-sms${Vt}`,logoFileName:{light:"generic-sms.svg",dark:"generic-sms.svg"}},{id:Le.Clicksend,displayName:"Clicksend",channel:R.SMS,credentials:Bt,docReference:"https://developers.clicksend.com/docs/rest/v3/?javascript--nodejs#send-sms",logoFileName:{light:"clicksend.png",dark:"clicksend.png"}},{id:Le.Simpletexting,displayName:"SimpleTexting",channel:R.SMS,credentials:qt,docReference:"https://simpletexting.com/api/docs/v2/",logoFileName:{light:"simpletexting.png",dark:"simpletexting.png"}},{id:Le.Bandwidth,displayName:"Bandwidth",channel:R.SMS,credentials:Kt,betaVersion:!0,docReference:"https://dev.bandwidth.com/docs/messaging/createMessage",logoFileName:{light:"bandwidth.png",dark:"bandwidth.png"}},{id:Le.AzureSms,displayName:"Azure Sms",channel:R.SMS,credentials:xt,docReference:"https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/sms/receive-sms",logoFileName:{light:"azure-sms.png",dark:"azure-sms.png"}},{id:Le.RingCentral,displayName:"RingCentral",channel:R.SMS,credentials:jt,docReference:"https://developers.ringcentral.com/guide/messaging",logoFileName:{light:"ring-central.svg",dark:"ring-central.svg"}},{id:Le.BrevoSms,displayName:"Brevo",channel:R.SMS,credentials:Qt,docReference:"https://developers.brevo.com/reference/sendtransacsms",logoFileName:{light:"brevo.svg",dark:"brevo.svg"}}],Jt=[{id:De.Slack,displayName:"Slack",channel:R.CHAT,credentials:ft,docReference:`https://docs.novu.co/channels-and-providers/chat/slack${Vt}`,logoFileName:{light:"slack.svg",dark:"slack.svg"}},{id:De.Discord,displayName:"Discord",channel:R.CHAT,credentials:[],docReference:`https://docs.novu.co/channels-and-providers/chat/discord${Vt}`,logoFileName:{light:"discord.svg",dark:"discord.svg"}},{id:De.GrafanaOnCall,displayName:"Grafana On Call Webhook",channel:R.CHAT,credentials:yt,docReference:"https://grafana.com/docs/oncall/latest/integrations/webhook/",logoFileName:{light:"grafana-on-call.png",dark:"grafana-on-call.png"}},{id:De.MsTeams,displayName:"MSTeams",channel:R.CHAT,credentials:[],docReference:`https://docs.novu.co/channels-and-providers/chat/ms-teams${Vt}`,logoFileName:{light:"msteams.svg",dark:"msteams.svg"}},{id:De.Mattermost,displayName:"Mattermost",channel:R.CHAT,credentials:[],docReference:"https://developers.mattermost.com/integrate/webhooks/incoming/",logoFileName:{light:"mattermost.svg",dark:"mattermost.svg"}},{id:De.Ryver,displayName:"Ryver",channel:R.CHAT,credentials:[],docReference:"https://api.ryver.com/ryvrest_api_examples.html#create-chat-message",logoFileName:{light:"ryver.png",dark:"ryver.png"}},{id:De.Zulip,displayName:"Zulip",channel:R.CHAT,credentials:[],docReference:`https://docs.novu.co/channels-and-providers/chat/zulip${Vt}`,logoFileName:{light:"zulip.svg",dark:"zulip.svg"}},{id:De.GetStream,displayName:"GetStream",channel:R.CHAT,credentials:Et,docReference:"https://getstream.io/chat/docs/node/?language=javascript",logoFileName:{light:"getstream.svg",dark:"getstream.svg"}},{id:De.RocketChat,displayName:"Rocket.Chat",channel:R.CHAT,credentials:Ht,docReference:"https://developer.rocket.chat/reference/api/rest-api/endpoints",logoFileName:{light:"rocket-chat.svg",dark:"rocket-chat.svg"}}],$t=[{id:we.OneSignal,displayName:"OneSignal",channel:R.PUSH,credentials:Rt,docReference:`https://docs.novu.co/channels-and-providers/push/onesignal${Vt}`,logoFileName:{light:"one-signal.svg",dark:"one-signal.svg"}},{id:we.Pushpad,displayName:"Pushpad",channel:R.PUSH,credentials:It,docReference:`https://docs.novu.co/channels-and-providers/push/pushpad${Vt}`,logoFileName:{light:"pushpad.svg",dark:"pushpad.svg"}},{id:we.FCM,displayName:"Firebase Cloud Messaging",channel:R.PUSH,credentials:mt,docReference:`https://docs.novu.co/channels-and-providers/push/fcm${Vt}`,logoFileName:{light:"fcm.svg",dark:"fcm.svg"}},{id:we.EXPO,displayName:"Expo Push",channel:R.PUSH,credentials:_t,docReference:`https://docs.novu.co/channels-and-providers/push/expo-push${Vt}`,logoFileName:{light:"expo.svg",dark:"expo.svg"}},{id:we.APNS,displayName:"APNs",channel:R.PUSH,credentials:St,docReference:`https://docs.novu.co/channels-and-providers/push/apns${Vt}`,logoFileName:{light:"apns.png",dark:"apns.png"},betaVersion:!0},{id:we.PushWebhook,displayName:"Push Webhook",channel:R.PUSH,credentials:gt,docReference:`https://docs.novu.co/channels-and-providers/push/push-webhook${Vt}`,logoFileName:{light:"push-webhook.svg",dark:"push-webhook.svg"},betaVersion:!0},{id:we.PusherBeams,displayName:"Pusher Beams",channel:R.PUSH,credentials:Yt,docReference:`https://docs.novu.co/channels-and-providers/push/pusher-beams${Vt}`,logoFileName:{light:"pusher-beams.svg",dark:"pusher-beams.svg"}}],Xt=[{id:Fe.Novu,displayName:"Novu In-App",channel:R.IN_APP,credentials:wt,docReference:`https://docs.novu.co/notification-center/introduction${Vt}`,logoFileName:{light:"novu.png",dark:"novu.png"}}],Zt=[...Wt,...zt,...Jt,...$t,...Xt],en=[Fe.Novu,Le.Novu,Ue.Novu],tn=[Le.Novu,Ue.Novu],nn={key:d.PRIMARY,displayName:"Primary"},rn={key:d.SECONDARY,displayName:"Secondary"},sn={primary:{backGroundColor:"linear-gradient(99deg,#DD2476 0% 0%, #FF512F 100% 100%)",fontColor:"#FFFFFF",removeCircleColor:"white"},secondary:{backGroundColor:"#3D3D4D",fontColor:"#FFFFFF",removeCircleColor:"#525266"},clicked:{backGroundColor:"white",fontColor:"#FFFFFF",removeCircleColor:"#525266"}},on={primary:{backGroundColor:"linear-gradient(99deg,#DD2476 0% 0%, #FF512F 100% 100%)",fontColor:"#FFFFFF",removeCircleColor:"white"},secondary:{backGroundColor:"#F5F8FA",fontColor:"#525266",removeCircleColor:"#525266"},clicked:{backGroundColor:"white",fontColor:"#525266",removeCircleColor:"#525266"}},an=[nn,rn];var cn;!function(e){e.EQUALS="equals",e.TITLECASE="titlecase",e.UPPERCASE="uppercase",e.LOWERCASE="lowercase",e.PLURALIZE="pluralize",e.DATEFORMAT="dateFormat",e.UNIQUE="unique",e.GROUP_BY="groupBy",e.SORT_BY="sortBy",e.NUMBERFORMAT="numberFormat",e.I18N="i18n"}(cn||(cn={}));const un={[cn.EQUALS]:{description:"assert equal"},[cn.TITLECASE]:{description:"transform to TitleCase"},[cn.UPPERCASE]:{description:"transform to UPPERCASE"},[cn.LOWERCASE]:{description:"transform to lowercase"},[cn.PLURALIZE]:{description:"pluralize if needed"},[cn.DATEFORMAT]:{description:"format date"},[cn.UNIQUE]:{description:"filter unique values in an array"},[cn.GROUP_BY]:{description:"group by a property"},[cn.SORT_BY]:{description:"sort an array of objects by a property"},[cn.NUMBERFORMAT]:{description:"format number"},[cn.I18N]:{description:"translate"}};function ln(e){const t=e.filter((e=>"MustacheStatement"===e.type)).flatMap((e=>{var t,n,i;const r=(null===(t=e.params[0])||void 0===t?void 0:t.original)||e.path.original;return e.path.original===cn.I18N?[]:dn(r)?(null===(n=e.params[0])||void 0===n?void 0:n.original)&&!Object.values(cn).includes(e.path.original)?[]:{type:T.STRING,name:(null===(i=e.params[0])||void 0===i?void 0:i.original)||e.path.original,defaultValue:"",required:!1}:[]})),n=e.filter((e=>"BlockStatement"===e.type&&["each","with"].includes(e.path.original))).flatMap((e=>{var t;const n=(null===(t=e.params[0])||void 0===t?void 0:t.original)||e.path.original;if(!dn(n))return[];const i=ln(e.program.body).map((e=>Object.assign(Object.assign({},e),{name:`${n}.${e.name}`})));return["with"].includes(e.path.original)?[...i]:[{type:T.ARRAY,name:n,required:!1},...i]})),i=e.filter((e=>"BlockStatement"===e.type&&["if","unless"].includes(e.path.original))).flatMap((e=>{var t;const n=(null===(t=e.params[0])||void 0===t?void 0:t.original)||e.path.original;if(!dn(n))return[];if(e.params.length>1)return[];const i=ln(e.program.body);return[{type:T.BOOLEAN,name:n,defaultValue:!0,required:!1},...i]}));return t.concat(n).concat(i)}const dn=e=>e.match(/^[a-zA-Z_][a-zA-Z0-9_-]*?/),hn=["body"];function pn(e){return hn.includes(e)}const An={minLength:8,maxLength:64,pattern:/^(?=[^A-Z\n]*[A-Z])(?=[^a-z\n]*[a-z])(?=[^0-9\n]*[0-9])(?=[^#?!@$%^&*\-()\n]*[#?!@$%^&*()-]).\S{8,64}$/},fn={[_.PAYLOAD]:"Payload",[_.TENANT]:"Tenant",[_.SUBSCRIBER]:"Subscriber",[_.WEBHOOK]:"Webhook",[_.IS_ONLINE]:"Is online",[_.IS_ONLINE_IN_LAST]:"Last time was online",[_.PREVIOUS_STEP]:"Previous step"},yn=["646c77cf693b8e668a900a73","646f123c720b54f89ed2130a","646c7aee958d8bed2e00b8e9"],En=["64731d4e1084f5a48293ce9f","64731d4e1084f5a48293ceab"],mn=["65c25bd6f4de5ad335bb8e48","65c25bd5f4de5ad335bb8dc0","65c25bd1f4de5ad335bb8c91","65c25bd3f4de5ad335bb8d2a"];function _n({production:e}){return e?yn:En}function gn({production:e}){return e?[]:mn}const Rn={[B.FREE]:{[X.TRIGGER]:60,[X.CONFIGURATION]:15,[X.GLOBAL]:30},[B.BUSINESS]:{[X.TRIGGER]:600,[X.CONFIGURATION]:150,[X.GLOBAL]:300},[B.ENTERPRISE]:{[X.TRIGGER]:6e3,[X.CONFIGURATION]:1500,[X.GLOBAL]:3e3},[B.UNLIMITED]:{[X.TRIGGER]:6e3,[X.CONFIGURATION]:1500,[X.GLOBAL]:3e3}},In={[z.BURST_ALLOWANCE]:.1,[z.WINDOW_DURATION]:1},Sn={[$.SINGLE]:1,[$.BULK]:100};function Nn(){return"undefined"!==typeof window}function Tn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Cn}=Object.prototype,{getPrototypeOf:bn}=Object,vn=(On=Object.create(null),e=>{const t=Cn.call(e);return On[t]||(On[t]=t.slice(8,-1).toLowerCase())});var On;const Mn=e=>(e=e.toLowerCase(),t=>vn(t)===e),Pn=e=>t=>typeof t===e,{isArray:kn}=Array,Un=Pn("undefined");const Ln=Mn("ArrayBuffer");const Dn=Pn("string"),wn=Pn("function"),Fn=Pn("number"),Bn=e=>null!==e&&"object"===typeof e,qn=e=>{if("object"!==vn(e))return!1;const t=bn(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kn=Mn("Date"),Gn=Mn("File"),Yn=Mn("Blob"),xn=Mn("FileList"),Hn=Mn("URLSearchParams");function jn(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,r;if("object"!==typeof e&&(e=[e]),kn(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let o;for(i=0;i<s;i++)o=r[i],t.call(null,e[o],o,e)}}function Qn(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Vn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,Wn=e=>!Un(e)&&e!==Vn;const zn=(Jn="undefined"!==typeof Uint8Array&&bn(Uint8Array),e=>Jn&&e instanceof Jn);var Jn;const $n=Mn("HTMLFormElement"),Xn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zn=Mn("RegExp"),ei=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};jn(n,((n,r)=>{let s;!1!==(s=t(n,r,e))&&(i[r]=s||n)})),Object.defineProperties(e,i)},ti="abcdefghijklmnopqrstuvwxyz",ni="0123456789",ii={DIGIT:ni,ALPHA:ti,ALPHA_DIGIT:ti+ti.toUpperCase()+ni};const ri=Mn("AsyncFunction");var si={isArray:kn,isArrayBuffer:Ln,isBuffer:function(e){return null!==e&&!Un(e)&&null!==e.constructor&&!Un(e.constructor)&&wn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||wn(e.append)&&("formdata"===(t=vn(e))||"object"===t&&wn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ln(e.buffer),t},isString:Dn,isNumber:Fn,isBoolean:e=>!0===e||!1===e,isObject:Bn,isPlainObject:qn,isUndefined:Un,isDate:Kn,isFile:Gn,isBlob:Yn,isRegExp:Zn,isFunction:wn,isStream:e=>Bn(e)&&wn(e.pipe),isURLSearchParams:Hn,isTypedArray:zn,isFileList:xn,forEach:jn,merge:function e(){const{caseless:t}=Wn(this)&&this||{},n={},i=(i,r)=>{const s=t&&Qn(n,r)||r;qn(n[s])&&qn(i)?n[s]=e(n[s],i):qn(i)?n[s]=e({},i):kn(i)?n[s]=i.slice():n[s]=i};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&jn(arguments[r],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(jn(t,((t,i)=>{n&&wn(t)?e[i]=Tn(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,s,o;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)o=r[s],i&&!i(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&bn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:vn,kindOfTest:Mn,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(kn(e))return e;let t=e.length;if(!Fn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:$n,hasOwnProperty:Xn,hasOwnProp:Xn,reduceDescriptors:ei,freezeMethods:e=>{ei(e,((t,n)=>{if(wn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];wn(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return kn(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Qn,global:Vn,isContextDefined:Wn,ALPHABET:ii,generateString:(e=16,t=ii.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&wn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Bn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=kn(e)?[]:{};return jn(e,((e,t)=>{const s=n(e,i+1);!Un(s)&&(r[t]=s)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:ri,isThenable:e=>e&&(Bn(e)||wn(e))&&wn(e.then)&&wn(e.catch)};function oi(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}si.inherits(oi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:si.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ai=oi.prototype,ci={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ci[e]={value:e}})),Object.defineProperties(oi,ci),Object.defineProperty(ai,"isAxiosError",{value:!0}),oi.from=(e,t,n,i,r,s)=>{const o=Object.create(ai);return si.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oi.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};var ui=oi,li=n(46785).lW;function di(e){return si.isPlainObject(e)||si.isArray(e)}function hi(e){return si.endsWith(e,"[]")?e.slice(0,-2):e}function pi(e,t,n){return e?e.concat(t).map((function(e,t){return e=hi(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Ai=si.toFlatObject(si,{},null,(function(e){return/^is[A-Z]/.test(e)}));var fi=function(e,t,n){if(!si.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=si.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!si.isUndefined(t[e])}))).metaTokens,r=n.visitor||u,s=n.dots,o=n.indexes,a=(n.Blob||"undefined"!==typeof Blob&&Blob)&&si.isSpecCompliantForm(t);if(!si.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(si.isDate(e))return e.toISOString();if(!a&&si.isBlob(e))throw new ui("Blob is not supported. Use a Buffer instead.");return si.isArrayBuffer(e)||si.isTypedArray(e)?a&&"function"===typeof Blob?new Blob([e]):li.from(e):e}function u(e,n,r){let a=e;if(e&&!r&&"object"===typeof e)if(si.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(si.isArray(e)&&function(e){return si.isArray(e)&&!e.some(di)}(e)||(si.isFileList(e)||si.endsWith(n,"[]"))&&(a=si.toArray(e)))return n=hi(n),a.forEach((function(e,i){!si.isUndefined(e)&&null!==e&&t.append(!0===o?pi([n],i,s):null===o?n:n+"[]",c(e))})),!1;return!!di(e)||(t.append(pi(r,n,s),c(e)),!1)}const l=[],d=Object.assign(Ai,{defaultVisitor:u,convertValue:c,isVisitable:di});if(!si.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!si.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+i.join("."));l.push(n),si.forEach(n,(function(n,s){!0===(!(si.isUndefined(n)||null===n)&&r.call(t,n,si.isString(s)?s.trim():s,i,d))&&e(n,i?i.concat(s):[s])})),l.pop()}}(e),t};function yi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ei(e,t){this._pairs=[],e&&fi(e,this,t)}const mi=Ei.prototype;mi.append=function(e,t){this._pairs.push([e,t])},mi.toString=function(e){const t=e?function(t){return e.call(this,t,yi)}:yi;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var _i=Ei;function gi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ri(e,t,n){if(!t)return e;const i=n&&n.encode||gi,r=n&&n.serialize;let s;if(s=r?r(t,n):si.isURLSearchParams(t)?t.toString():new _i(t,n).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}var Ii=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){si.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Si={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ni={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:_i,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ti="undefined"!==typeof window&&"undefined"!==typeof document,Ci=(bi="undefined"!==typeof navigator&&navigator.product,Ti&&["ReactNative","NativeScript","NS"].indexOf(bi)<0);var bi;const vi="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts;var Oi={...p,...Ni};var Mi=function(e){function t(e,n,i,r){let s=e[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=e.length;if(s=!s&&si.isArray(i)?i.length:s,a)return si.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!o;i[s]&&si.isObject(i[s])||(i[s]=[]);return t(e,n,i[s],r)&&si.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[s])),!o}if(si.isFormData(e)&&si.isFunction(e.entries)){const n={};return si.forEachEntry(e,((e,i)=>{t(function(e){return si.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null};const Pi={transitional:Si,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=si.isObject(e);r&&si.isHTMLForm(e)&&(e=new FormData(e));if(si.isFormData(e))return i?JSON.stringify(Mi(e)):e;if(si.isArrayBuffer(e)||si.isBuffer(e)||si.isStream(e)||si.isFile(e)||si.isBlob(e))return e;if(si.isArrayBufferView(e))return e.buffer;if(si.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return fi(e,new Oi.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Oi.isNode&&si.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=si.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return fi(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(si.isString(e))try{return(t||JSON.parse)(e),si.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pi.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&si.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(r){if(n){if("SyntaxError"===r.name)throw ui.from(r,ui.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oi.classes.FormData,Blob:Oi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};si.forEach(["delete","get","head","post","put","patch"],(e=>{Pi.headers[e]={}}));var ki=Pi;const Ui=si.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Li=Symbol("internals");function Di(e){return e&&String(e).trim().toLowerCase()}function wi(e){return!1===e||null==e?e:si.isArray(e)?e.map(wi):String(e)}function Fi(e,t,n,i,r){return si.isFunction(i)?i.call(this,t,n):(r&&(t=n),si.isString(t)?si.isString(i)?-1!==t.indexOf(i):si.isRegExp(i)?i.test(t):void 0:void 0)}class Bi{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=Di(t);if(!r)throw new Error("header name must be a non-empty string");const s=si.findKey(i,r);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(i[s||t]=wi(e))}const s=(e,t)=>si.forEach(e,((e,n)=>r(e,n,t)));return si.isPlainObject(e)||e instanceof this.constructor?s(e,t):si.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?s((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&Ui[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=Di(e)){const n=si.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(si.isFunction(t))return t.call(this,e,n);if(si.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Di(e)){const n=si.findKey(this,e);return!(!n||void 0===this[n]||t&&!Fi(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=Di(e)){const r=si.findKey(n,e);!r||t&&!Fi(0,n[r],r,t)||(delete n[r],i=!0)}}return si.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!Fi(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return si.forEach(this,((i,r)=>{const s=si.findKey(n,r);if(s)return t[s]=wi(i),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();o!==r&&delete t[r],t[o]=wi(i),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return si.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&si.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Li]=this[Li]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Di(e);t[i]||(!function(e,t){const n=si.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return si.isArray(e)?e.forEach(i):i(e),this}}Bi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),si.reduceDescriptors(Bi.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),si.freezeMethods(Bi);var qi=Bi;function Ki(e,t){const n=this||ki,i=t||n,r=qi.from(i.headers);let s=i.data;return si.forEach(e,(function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)})),r.normalize(),s}function Gi(e){return!(!e||!e.__CANCEL__)}function Yi(e,t,n){ui.call(this,null==e?"canceled":e,ui.ERR_CANCELED,t,n),this.name="CanceledError"}si.inherits(Yi,ui,{__CANCEL__:!0});var xi=Yi;var Hi=Oi.hasStandardBrowserEnv?{write(e,t,n,i,r,s){const o=[e+"="+encodeURIComponent(t)];si.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),si.isString(i)&&o.push("path="+i),si.isString(r)&&o.push("domain="+r),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ji(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Qi=Oi.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=si.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};var Vi=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=i[o];r||(r=c),n[s]=a,i[s]=c;let l=o,d=0;for(;l!==s;)d+=n[l++],l%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-r<t)return;const h=u&&c-u;return h?Math.round(1e3*d/h):void 0}};function Wi(e,t){let n=0;const i=Vi(50,250);return r=>{const s=r.loaded,o=r.lengthComputable?r.total:void 0,a=s-n,c=i(a);n=s;const u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const zi={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const r=qi.from(e.headers).normalize();let s,o,{responseType:a,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}if(si.isFormData(i))if(Oi.hasStandardBrowserEnv||Oi.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(o=r.getContentType())){const[e,...t]=o?o.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const d=ji(e.baseURL,e.url);function h(){if(!l)return;const i=qi.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new ui("Request failed with status code "+n.status,[ui.ERR_BAD_REQUEST,ui.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),u()}),(function(e){n(e),u()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:i,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Ri(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(new ui("Request aborted",ui.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new ui("Network Error",ui.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||Si;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ui(t,i.clarifyTimeoutError?ui.ETIMEDOUT:ui.ECONNABORTED,e,l)),l=null},Oi.hasStandardBrowserEnv&&(c&&si.isFunction(c)&&(c=c(e)),c||!1!==c&&Qi(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Hi.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in l&&si.forEach(r.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),si.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&l.addEventListener("progress",Wi(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Wi(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{l&&(n(!t||t.type?new xi(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===Oi.protocols.indexOf(p)?n(new ui("Unsupported protocol "+p+":",ui.ERR_BAD_REQUEST,e)):l.send(i||null)}))}};si.forEach(zi,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ji=e=>`- ${e}`,$i=e=>si.isFunction(e)||null===e||!1===e;var Xi=e=>{e=si.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let s=0;s<t;s++){let t;if(n=e[s],i=n,!$i(n)&&(i=zi[(t=String(n)).toLowerCase()],void 0===i))throw new ui(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+s]=i}if(!i){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Ji).join("\n"):" "+Ji(e[0]):"as no adapter specified";throw new ui("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function Zi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xi(null,e)}function er(e){Zi(e),e.headers=qi.from(e.headers),e.data=Ki.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Xi(e.adapter||ki.adapter)(e).then((function(t){return Zi(e),t.data=Ki.call(e,e.transformResponse,t),t.headers=qi.from(t.headers),t}),(function(t){return Gi(t)||(Zi(e),t&&t.response&&(t.response.data=Ki.call(e,e.transformResponse,t.response),t.response.headers=qi.from(t.response.headers))),Promise.reject(t)}))}const tr=e=>e instanceof qi?{...e}:e;function nr(e,t){t=t||{};const n={};function i(e,t,n){return si.isPlainObject(e)&&si.isPlainObject(t)?si.merge.call({caseless:n},e,t):si.isPlainObject(t)?si.merge({},t):si.isArray(t)?t.slice():t}function r(e,t,n){return si.isUndefined(t)?si.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function s(e,t){if(!si.isUndefined(t))return i(void 0,t)}function o(e,t){return si.isUndefined(t)?si.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>r(tr(e),tr(t),!0)};return si.forEach(Object.keys(Object.assign({},e,t)),(function(i){const s=c[i]||r,o=s(e[i],t[i],i);si.isUndefined(o)&&s!==a||(n[i]=o)})),n}const ir="1.6.8",rr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const sr={};rr.transitional=function(e,t,n){function i(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new ui(i(r," has been removed"+(t?" in "+t:"")),ui.ERR_DEPRECATED);return t&&!sr[r]&&(sr[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}};var or={assertOptions:function(e,t,n){if("object"!==typeof e)throw new ui("options must be an object",ui.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new ui("option "+s+" must be "+n,ui.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ui("Unknown option "+s,ui.ERR_BAD_OPTION)}},validators:rr};const ar=or.validators;class cr{constructor(e){this.defaults=e,this.interceptors={request:new Ii,response:new Ii}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=nr(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&or.assertOptions(n,{silentJSONParsing:ar.transitional(ar.boolean),forcedJSONParsing:ar.transitional(ar.boolean),clarifyTimeoutError:ar.transitional(ar.boolean)},!1),null!=i&&(si.isFunction(i)?t.paramsSerializer={serialize:i}:or.assertOptions(i,{encode:ar.function,serialize:ar.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&si.merge(r.common,r[t.method]);r&&si.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=qi.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!a){const e=[er.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=o.length;let h=t;for(d=0;d<l;){const e=o[d++],t=o[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{u=er.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Ri(ji((e=nr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}si.forEach(["delete","get","head","options"],(function(e){cr.prototype[e]=function(t,n){return this.request(nr(n||{},{method:e,url:t,data:(n||{}).data}))}})),si.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(nr(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}cr.prototype[e]=t(),cr.prototype[e+"Form"]=t(!0)}));var ur=cr;class lr{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new xi(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new lr((function(t){e=t})),cancel:e}}}var dr=lr;const hr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hr).forEach((([e,t])=>{hr[t]=e}));var pr=hr;const Ar=function e(t){const n=new ur(t),i=Tn(ur.prototype.request,n);return si.extend(i,ur.prototype,n,{allOwnKeys:!0}),si.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(nr(t,n))},i}(ki);Ar.Axios=ur,Ar.CanceledError=xi,Ar.CancelToken=dr,Ar.isCancel=Gi,Ar.VERSION=ir,Ar.toFormData=fi,Ar.AxiosError=ui,Ar.Cancel=Ar.CanceledError,Ar.all=function(e){return Promise.all(e)},Ar.spread=function(e){return function(t){return e.apply(null,t)}},Ar.isAxiosError=function(e){return si.isObject(e)&&!0===e.isAxiosError},Ar.mergeConfig=nr,Ar.AxiosHeaders=qi,Ar.formToJSON=e=>Mi(si.isHTMLForm(e)?new FormData(e):e),Ar.getAdapter=Xi,Ar.HttpStatusCode=pr,Ar.default=Ar;var fr=Ar,yr=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(t){s(t)}}function a(e){try{c(i.throw(e))}catch(t){s(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))};class Er{constructor(e){this.backendUrl=e,this.axiosClient=fr.create({baseURL:e+"/v1"})}setAuthorizationToken(e){this.axiosClient.defaults.headers.common.Authorization=`Bearer ${e}`}disposeAuthorizationToken(){delete this.axiosClient.defaults.headers.common.Authorization}getFullResponse(e,t){return yr(this,void 0,void 0,(function*(){return yield this.axiosClient.get(e,{params:t}).then((e=>e.data))}))}get(e,t){return yr(this,void 0,void 0,(function*(){return yield this.axiosClient.get(e,{params:t}).then((e=>e.data.data))}))}post(e,t={}){return yr(this,void 0,void 0,(function*(){return yield this.axiosClient.post(e,t).then((e=>e.data.data))}))}patch(e,t={}){return yr(this,void 0,void 0,(function*(){return yield this.axiosClient.patch(e,t).then((e=>e.data.data))}))}delete(e,t={}){return yr(this,void 0,void 0,(function*(){return yield this.axiosClient.delete(e,t).then((e=>e.data.data))}))}}const mr=(e,t)=>e?"true"===e:t;var _r,gr,Rr,Ir,Sr=n(25620);function Nr(e){let t="";const n="undefined"!==typeof Sr&&(null===Sr||void 0===Sr?void 0:Sr.env)?null===Sr||void 0===Sr?void 0:Sr.env:window._env_;if(!n)return t;switch(n.GLOBAL_CONTEXT_PATH&&(t+=n.GLOBAL_CONTEXT_PATH+"/"),e){case _r.API:n.API_CONTEXT_PATH&&(t+=n.API_CONTEXT_PATH+"/");break;case _r.WEB:n.FRONT_BASE_CONTEXT_PATH&&(t+=n.FRONT_BASE_CONTEXT_PATH+"/");break;case _r.WIDGET:n.WIDGET_CONTEXT_PATH&&(t+=n.WIDGET_CONTEXT_PATH+"/");break;case _r.WS:n.WS_CONTEXT_PATH&&(t+=n.WS_CONTEXT_PATH+"/")}return t}!function(e){e[e.WEB=0]="WEB",e[e.API=1]="API",e[e.WIDGET=2]="WIDGET",e[e.WS=3]="WS"}(_r||(_r={})),function(e){e.EXECUTION_LOG="execution-logs",e.ACTIVE_JOBS_METRIC="metric-active-jobs",e.INBOUND_PARSE_MAIL="inbound-parse-mail",e.STANDARD="standard",e.WEB_SOCKETS="ws_socket_queue",e.WORKFLOW="trigger-handler",e.PROCESS_SUBSCRIBER="process-subscriber"}(gr||(gr={})),function(e){e.JOB_PROCESSING_QUEUE="job-processing-queue",e.SUBSCRIBER_PROCESSING_QUEUE="subscriber-processing-queue",e.TRIGGER_HANDLER_QUEUE="trigger-handler-queue",e.EXECUTION_LOG_QUEUE="execution-log-queue",e.WS_SOCKET_QUEUE="ws_socket_queue",e.WS_SOCKET_SOCKET_CONNECTION="ws_socket_handle_connection",e.WS_SOCKET_HANDLE_DISCONNECT="ws_socket_handle_disconnect",e.CRON_JOB_QUEUE="cron-job-queue"}(Rr||(Rr={})),function(e){e.SEND_CRON_METRICS="send-cron-metrics",e.CREATE_BILLING_USAGE_RECORDS="create-billing-usage-records"}(Ir||(Ir={}));var Tr=n(25620);function Cr(){let e="";return Tr.env.REDIS_PREFIX&&(e=Tr.env.REDIS_PREFIX),e}},70379:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(70658),r=n(2970);class s extends i.Subscribable{constructor(){super(),this.setup=e=>{if(!r.isServer&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const o=new s;t.FocusManager=s,t.focusManager=o},2419:function(e,t){function n(e){return e.state.isPaused}function i(e){return"success"===e.state.status}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultShouldDehydrateMutation=n,t.defaultShouldDehydrateQuery=i,t.dehydrate=function(e,t={}){const r=[],s=[];if(!1!==t.dehydrateMutations){const i=t.shouldDehydrateMutation||n;e.getMutationCache().getAll().forEach((e=>{i(e)&&r.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const n=t.shouldDehydrateQuery||i;e.getQueryCache().getAll().forEach((e=>{n(e)&&s.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:r,queries:s}},t.hydrate=function(e,t,n){if("object"!==typeof t||null===t)return;const i=e.getMutationCache(),r=e.getQueryCache(),s=t.mutations||[],o=t.queries||[];s.forEach((t=>{var r;i.build(e,{...null==n||null==(r=n.defaultOptions)?void 0:r.mutations,mutationKey:t.mutationKey},t.state)})),o.forEach((({queryKey:t,state:i,queryHash:s})=>{var o;const a=r.get(s);if(a){if(a.state.dataUpdatedAt<i.dataUpdatedAt){const{fetchStatus:e,...t}=i;a.setState(t)}}else r.build(e,{...null==n||null==(o=n.defaultOptions)?void 0:o.queries,queryKey:t,queryHash:s},{...i,fetchStatus:"idle"})}))}},33041:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(9148),r=n(54668),s=n(13470),o=n(73229),a=n(80117),c=n(50910),u=n(88253),l=n(23071),d=n(90764),h=n(70379),p=n(16736),A=n(2970),f=n(2419),y=n(97593);t.CancelledError=i.CancelledError,t.isCancelledError=i.isCancelledError,t.QueryCache=r.QueryCache,t.QueryClient=s.QueryClient,t.QueryObserver=o.QueryObserver,t.QueriesObserver=a.QueriesObserver,t.InfiniteQueryObserver=c.InfiniteQueryObserver,t.MutationCache=u.MutationCache,t.MutationObserver=l.MutationObserver,t.notifyManager=d.notifyManager,t.focusManager=h.focusManager,t.onlineManager=p.onlineManager,t.hashQueryKey=A.hashQueryKey,t.isError=A.isError,t.isServer=A.isServer,t.matchQuery=A.matchQuery,t.parseFilterArgs=A.parseFilterArgs,t.parseMutationArgs=A.parseMutationArgs,t.parseMutationFilterArgs=A.parseMutationFilterArgs,t.parseQueryArgs=A.parseQueryArgs,t.replaceEqualDeep=A.replaceEqualDeep,t.defaultShouldDehydrateMutation=f.defaultShouldDehydrateMutation,t.defaultShouldDehydrateQuery=f.defaultShouldDehydrateQuery,t.dehydrate=f.dehydrate,t.hydrate=f.hydrate,t.Query=y.Query},12012:function(e,t){function n(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function i(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPageParam=n,t.getPreviousPageParam=i,t.hasNextPage=function(e,t){if(e.getNextPageParam&&Array.isArray(t)){const i=n(e,t);return"undefined"!==typeof i&&null!==i&&!1!==i}},t.hasPreviousPage=function(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=i(e,t);return"undefined"!==typeof n&&null!==n&&!1!==n}},t.infiniteQueryBehavior=function(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,s,o,a,c;const u=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,l=null==(s=e.fetchOptions)||null==(o=s.meta)?void 0:o.fetchMore,d=null==l?void 0:l.pageParam,h="forward"===(null==l?void 0:l.direction),p="backward"===(null==l?void 0:l.direction),A=(null==(a=e.state.data)?void 0:a.pages)||[],f=(null==(c=e.state.data)?void 0:c.pageParams)||[];let y=f,E=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),_=(e,t,n,i)=>(y=i?[t,...y]:[...y,t],i?[n,...e]:[...e,n]),g=(t,n,i,r)=>{if(E)return Promise.reject("Cancelled");if("undefined"===typeof i&&!n&&t.length)return Promise.resolve(t);const s={queryKey:e.queryKey,pageParam:i,meta:e.options.meta};var o;o=s,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?E=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{E=!0})),e.signal}});const a=m(s);return Promise.resolve(a).then((e=>_(t,i,e,r)))};let R;if(A.length)if(h){const t="undefined"!==typeof d,i=t?d:n(e.options,A);R=g(A,t,i)}else if(p){const t="undefined"!==typeof d,n=t?d:i(e.options,A);R=g(A,t,n,!0)}else{y=[];const t="undefined"===typeof e.options.getNextPageParam;R=!u||!A[0]||u(A[0],0,A)?g([],t,f[0]):Promise.resolve(_([],f[0],A[0]));for(let i=1;i<A.length;i++)R=R.then((r=>{if(!u||!A[i]||u(A[i],i,A)){const s=t?f[i]:n(e.options,r);return g(r,t,s)}return Promise.resolve(_(r,f[i],A[i]))}))}else R=g([]);return R.then((e=>({pages:e,pageParams:y})))}}}}},50910:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(73229),r=n(12012);class s extends i.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:r.infiniteQueryBehavior()},t)}getOptimisticResult(e){return e.behavior=r.infiniteQueryBehavior(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,i,s,o,a,c;const{state:u}=e,l=super.createResult(e,t),{isFetching:d,isRefetching:h}=l,p=d&&"forward"===(null==(n=u.fetchMeta)||null==(i=n.fetchMore)?void 0:i.direction),A=d&&"backward"===(null==(s=u.fetchMeta)||null==(o=s.fetchMore)?void 0:o.direction);return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:r.hasNextPage(t,null==(a=u.data)?void 0:a.pages),hasPreviousPage:r.hasPreviousPage(t,null==(c=u.data)?void 0:c.pages),isFetchingNextPage:p,isFetchingPreviousPage:A,isRefetching:h&&!p&&!A}}}t.InfiniteQueryObserver=s},33536:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(43928),r=n(90764),s=n(42983),o=n(9148);class a extends s.Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||i.defaultLogger,this.observers=[],this.state=e.state||c(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=o.createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,i,r,s,a,c,u,l;if(!t){var d,h,p,A;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(d=(h=this.mutationCache.config).onMutate)?void 0:d.call(h,this.state.variables,this));const e=await(null==(p=(A=this.options).onMutate)?void 0:p.call(A,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const o=await e();return await(null==(n=(i=this.mutationCache.config).onSuccess)?void 0:n.call(i,o,this.state.variables,this.state.context,this)),await(null==(r=(s=this.options).onSuccess)?void 0:r.call(s,o,this.state.variables,this.state.context)),await(null==(a=(c=this.mutationCache.config).onSettled)?void 0:a.call(c,o,null,this.state.variables,this.state.context,this)),await(null==(u=(l=this.options).onSettled)?void 0:u.call(l,o,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:o}),o}catch(S){try{var f,y,E,m,_,g,R,I;throw await(null==(f=(y=this.mutationCache.config).onError)?void 0:f.call(y,S,this.state.variables,this.state.context,this)),await(null==(E=(m=this.options).onError)?void 0:E.call(m,S,this.state.variables,this.state.context)),await(null==(_=(g=this.mutationCache.config).onSettled)?void 0:_.call(g,void 0,S,this.state.variables,this.state.context,this)),await(null==(R=(I=this.options).onSettled)?void 0:R.call(I,void 0,S,this.state.variables,this.state.context)),S}finally{this.dispatch({type:"error",error:S})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!o.canFetch(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),r.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function c(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}t.Mutation=a,t.getDefaultState=c},88253:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(90764),r=n(33536),s=n(2970),o=n(70658);class a extends o.Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const i=new r.Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){i.notifyManager.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((t=>s.matchMutation(e,t)))}findAll(e){return this.mutations.filter((t=>s.matchMutation(e,t)))}notify(e){i.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return i.notifyManager.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(s.noop)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}t.MutationCache=a},23071:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(33536),r=n(90764),s=n(70658),o=n(2970);class a extends s.Subscribable{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),o.shallowEqualObjects(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:"undefined"!==typeof e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:i.getDefaultState(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){r.notifyManager.batch((()=>{var t,n,i,r;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(r=this.mutateOptions).onSettled)||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var s,o,a,c;null==(s=(o=this.mutateOptions).onError)||s.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(c=this.mutateOptions).onSettled)||a.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}t.MutationObserver=a},90764:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970);function r(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const s=r=>{t?e.push(r):i.scheduleMicrotask((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&i.scheduleMicrotask((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{s((()=>{e(...t)}))},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}const s=r();t.createNotifyManager=r,t.notifyManager=s},16736:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(70658),r=n(2970);const s=["online","offline"];class o extends i.Subscribable{constructor(){super(),this.setup=e=>{if(!r.isServer&&window.addEventListener){const t=()=>e();return s.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{s.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}}const a=new o;t.OnlineManager=o,t.onlineManager=a},80117:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970),r=n(90764),s=n(73229),o=n(70658);class a extends o.Subscribable{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,r.notifyManager.batch((()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)));const r=n.map((e=>e.observer)),s=Object.fromEntries(r.map((e=>[e.options.queryHash,e]))),o=r.map((e=>e.getCurrentResult())),a=r.some(((t,n)=>t!==e[n]));(e.length!==r.length||a)&&(this.observers=r,this.observersMap=s,this.result=o,this.hasListeners()&&(i.difference(e,r).forEach((e=>{e.destroy()})),i.difference(r,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,n=new Map(t.map((e=>[e.options.queryHash,e]))),i=e.map((e=>this.client.defaultQueryOptions(e))),r=i.flatMap((e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=new Set(r.map((e=>e.defaultedQueryOptions.queryHash))),a=i.filter((e=>!o.has(e.queryHash))),c=new Set(r.map((e=>e.observer))),u=t.filter((e=>!c.has(e))),l=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new s.QueryObserver(this.client,t)},d=a.map(((e,t)=>{if(e.keepPreviousData){const n=u[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:l(e)}}));return r.concat(d).sort(((e,t)=>i.indexOf(e.defaultedQueryOptions)-i.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=i.replaceAt(this.result,n,t),this.notify())}notify(){r.notifyManager.batch((()=>{this.listeners.forEach((({listener:e})=>{e(this.result)}))}))}}t.QueriesObserver=a},97593:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970),r=n(43928),s=n(90764),o=n(9148),a=n(42983);class c extends a.Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||r.defaultLogger,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,i=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=i.replaceData(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.noop).catch(i.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!i.timeUntilStale(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const a=i.getAbortController(),c={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(c);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(c)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var d;(u(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(d=l.fetchOptions)?void 0:d.meta});const h=e=>{var t,n,i,r;(o.isCancelledError(e)&&e.silent||this.dispatch({type:"error",error:e}),o.isCancelledError(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=o.createRetryer({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,i,r;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):h(new Error(this.queryHash+" data is undefined"))},onError:h,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,i;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:o.canFetch(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return o.isCancelledError(r)&&r.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}t.Query=c},54668:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970),r=n(97593),s=n(90764),o=n(70658);class a extends o.Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var s;const o=t.queryKey,a=null!=(s=t.queryHash)?s:i.hashQueryKeyByOptions(o,t);let c=this.get(a);return c||(c=new r.Query({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(c)),c}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){s.notifyManager.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=i.parseFilterArgs(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((e=>i.matchQuery(n,e)))}findAll(e,t){const[n]=i.parseFilterArgs(e,t);return Object.keys(n).length>0?this.queries.filter((e=>i.matchQuery(n,e))):this.queries}notify(e){s.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){s.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){s.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}t.QueryCache=a},13470:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970),r=n(54668),s=n(88253),o=n(70379),a=n(16736),c=n(90764),u=n(12012),l=n(43928);t.QueryClient=class{constructor(e={}){this.queryCache=e.queryCache||new r.QueryCache,this.mutationCache=e.mutationCache||new s.MutationCache,this.logger=e.logger||l.defaultLogger,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=o.focusManager.subscribe((()=>{o.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=a.onlineManager.subscribe((()=>{a.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=i.parseFilterArgs(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=i.parseQueryArgs(e,t,n),s=this.getQueryData(r.queryKey);return s?Promise.resolve(s):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),s=null==r?void 0:r.state.data,o=i.functionalUpdate(t,s);if("undefined"===typeof o)return;const a=i.parseQueryArgs(e),c=this.defaultQueryOptions(a);return this.queryCache.build(this,c).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return c.notifyManager.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=i.parseFilterArgs(e,t),r=this.queryCache;c.notifyManager.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,s]=i.parseFilterArgs(e,t,n),o=this.queryCache,a={type:"active",...r};return c.notifyManager.batch((()=>(o.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(a,s))))}cancelQueries(e,t,n){const[r,s={}]=i.parseFilterArgs(e,t,n);"undefined"===typeof s.revert&&(s.revert=!0);const o=c.notifyManager.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(s)))));return Promise.all(o).then(i.noop).catch(i.noop)}invalidateQueries(e,t,n){const[r,s]=i.parseFilterArgs(e,t,n);return c.notifyManager.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,s)}))}refetchQueries(e,t,n){const[r,s]=i.parseFilterArgs(e,t,n),o=c.notifyManager.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...s,cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let a=Promise.all(o).then(i.noop);return null!=s&&s.throwOnError||(a=a.catch(i.noop)),a}fetchQuery(e,t,n){const r=i.parseQueryArgs(e,t,n),s=this.defaultQueryOptions(r);"undefined"===typeof s.retry&&(s.retry=!1);const o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(i.noop).catch(i.noop)}fetchInfiniteQuery(e,t,n){const r=i.parseQueryArgs(e,t,n);return r.behavior=u.infiniteQueryBehavior(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.noop).catch(i.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>i.hashQueryKey(e)===i.hashQueryKey(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>i.partialMatchKey(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>i.hashQueryKey(e)===i.hashQueryKey(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>i.partialMatchKey(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=i.hashQueryKeyByOptions(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},73229:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970),r=n(90764),s=n(70379),o=n(70658),a=n(9148);class c extends o.Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),u(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),i.shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const s=this.hasListeners();s&&d(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!s||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const o=this.computeRefetchInterval();!s||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!i.shallowEqualObjects(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(i.noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),i.isServer||this.currentResult.isStale||!i.isValidTimeout(this.options.staleTime))return;const e=i.timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!i.isServer&&!1!==this.options.enabled&&i.isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,s=this.currentResult,o=this.currentResultState,c=this.currentResultOptions,l=e!==n,p=l?e.state:this.currentQueryInitialState,A=l?this.currentResult:this.previousQueryResult,{state:f}=e;let y,{dataUpdatedAt:E,error:m,errorUpdatedAt:_,fetchStatus:g,status:R}=f,I=!1,S=!1;if(t._optimisticResults){const i=this.hasListeners(),s=!i&&u(e,t),o=i&&d(e,n,t,r);(s||o)&&(g=a.canFetch(e.options.networkMode)?"fetching":"paused",E||(R="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!f.dataUpdatedAt&&null!=A&&A.isSuccess&&"error"!==R)y=A.data,E=A.dataUpdatedAt,R=A.status,I=!0;else if(t.select&&"undefined"!==typeof f.data)if(s&&f.data===(null==o?void 0:o.data)&&t.select===this.selectFn)y=this.selectResult;else try{this.selectFn=t.select,y=t.select(f.data),y=i.replaceData(null==s?void 0:s.data,y,t),this.selectResult=y,this.selectError=null}catch(b){0,this.selectError=b}else y=f.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof y&&"loading"===R){let e;if(null!=s&&s.isPlaceholderData&&t.placeholderData===(null==c?void 0:c.placeholderData))e=s.data;else if(e="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof e)try{e=t.select(e),this.selectError=null}catch(b){0,this.selectError=b}"undefined"!==typeof e&&(R="success",y=i.replaceData(null==s?void 0:s.data,e,t),S=!0)}this.selectError&&(m=this.selectError,y=this.selectResult,_=Date.now(),R="error");const N="fetching"===g,T="loading"===R,C="error"===R;return{status:R,fetchStatus:g,isLoading:T,isSuccess:"success"===R,isError:C,isInitialLoading:T&&N,data:y,dataUpdatedAt:E,error:m,errorUpdatedAt:_,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>p.dataUpdateCount||f.errorUpdateCount>p.errorUpdateCount,isFetching:N,isRefetching:N&&!T,isLoadingError:C&&0===f.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:S,isPreviousData:I,isRefetchError:C&&0!==f.dataUpdatedAt,isStale:h(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,i.shallowEqualObjects(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const i=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&i.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||a.isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){r.notifyManager.batch((()=>{var t,n,i,r;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(i=(r=this.options).onSettled)||i.call(r,this.currentResult.data,null);else if(e.onError){var s,o,a,c;null==(s=(o=this.options).onError)||s.call(o,this.currentResult.error),null==(a=(c=this.options).onSettled)||a.call(c,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function u(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&l(e,t,t.refetchOnMount)}function l(e,t,n){if(!1!==t.enabled){const i="function"===typeof n?n(e):n;return"always"===i||!1!==i&&h(e,t)}return!1}function d(e,t,n,i){return!1!==n.enabled&&(e!==t||!1===i.enabled)&&(!n.suspense||"error"!==e.state.status)&&h(e,n)}function h(e,t){return e.isStaleByTime(t.staleTime)}t.QueryObserver=c},42983:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2970);t.Removable=class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),i.isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i.isServer?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},9148:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(70379),r=n(16736),s=n(2970);function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return"online"!==(null!=e?e:"online")||r.onlineManager.isOnline()}class c{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}t.CancelledError=c,t.canFetch=a,t.createRetryer=function(e){let t,n,u,l=!1,d=0,h=!1;const p=new Promise(((e,t)=>{n=e,u=t})),A=()=>!i.focusManager.isFocused()||"always"!==e.networkMode&&!r.onlineManager.isOnline(),f=i=>{h||(h=!0,null==e.onSuccess||e.onSuccess(i),null==t||t(),n(i))},y=n=>{h||(h=!0,null==e.onError||e.onError(n),null==t||t(),u(n))},E=()=>new Promise((n=>{t=e=>{const t=h||!A();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,h||null==e.onContinue||e.onContinue()})),m=()=>{if(h)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(f).catch((t=>{var n,i;if(h)return;const r=null!=(n=e.retry)?n:3,a=null!=(i=e.retryDelay)?i:o,c="function"===typeof a?a(d,t):a,u=!0===r||"number"===typeof r&&d<r||"function"===typeof r&&r(d,t);!l&&u?(d++,null==e.onFail||e.onFail(d,t),s.sleep(c).then((()=>{if(A())return E()})).then((()=>{l?y(t):m()}))):y(t)}))};return a(e.networkMode)?m():E().then(m),{promise:p,cancel:t=>{h||(y(new c(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1}}},t.isCancelledError=function(e){return e instanceof c}},70658:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},2970:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"===typeof window||"Deno"in window;function i(e,t){return((null==t?void 0:t.queryKeyHashFn)||r)(e)}function r(e){return JSON.stringify(e,((e,t)=>u(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function s(e,t){return o(e,t)}function o(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!o(e[n],t[n]))))}function a(e,t){if(e===t)return e;const n=c(e)&&c(t);if(n||u(e)&&u(t)){const i=n?e.length:Object.keys(e).length,r=n?t:Object.keys(t),s=r.length,o=n?[]:{};let c=0;for(let u=0;u<s;u++){const i=n?u:r[u];o[i]=a(e[i],t[i]),o[i]===e[i]&&c++}return i===s&&c===i?e:o}return t}function c(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u(e){if(!l(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!l(n)&&!!n.hasOwnProperty("isPrototypeOf")}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Array.isArray(e)}function h(e){return new Promise((t=>{setTimeout(t,e)}))}t.difference=function(e,t){return e.filter((e=>!t.includes(e)))},t.functionalUpdate=function(e,t){return"function"===typeof e?e(t):e},t.getAbortController=function(){if("function"===typeof AbortController)return new AbortController},t.hashQueryKey=r,t.hashQueryKeyByOptions=i,t.isError=function(e){return e instanceof Error},t.isPlainArray=c,t.isPlainObject=u,t.isQueryKey=d,t.isServer=n,t.isValidTimeout=function(e){return"number"===typeof e&&e>=0&&e!==1/0},t.matchMutation=function(e,t){const{exact:n,fetching:i,predicate:o,mutationKey:a}=e;if(d(a)){if(!t.options.mutationKey)return!1;if(n){if(r(t.options.mutationKey)!==r(a))return!1}else if(!s(t.options.mutationKey,a))return!1}return("boolean"!==typeof i||"loading"===t.state.status===i)&&!(o&&!o(t))},t.matchQuery=function(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:c,stale:u}=e;if(d(c))if(r){if(t.queryHash!==i(c,t.options))return!1}else if(!s(t.queryKey,c))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof u||t.isStale()===u)&&(("undefined"===typeof o||o===t.state.fetchStatus)&&!(a&&!a(t)))},t.noop=function(){},t.parseFilterArgs=function(e,t,n){return d(e)?[{...t,queryKey:e},n]:[e||{},t]},t.parseMutationArgs=function(e,t,n){return d(e)?"function"===typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"===typeof e?{...t,mutationFn:e}:{...e}},t.parseMutationFilterArgs=function(e,t,n){return d(e)?[{...t,mutationKey:e},n]:[e||{},t]},t.parseQueryArgs=function(e,t,n){return d(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e},t.partialDeepEqual=o,t.partialMatchKey=s,t.replaceAt=function(e,t,n){const i=e.slice(0);return i[t]=n,i},t.replaceData=function(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?a(e,t):t},t.replaceEqualDeep=a,t.scheduleMicrotask=function(e){h(0).then(e)},t.shallowEqualObjects=function(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0},t.sleep=h,t.timeUntilStale=function(e,t){return Math.max(e+(t||0)-Date.now(),0)}},59341:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let n=!1;try{n="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(i){}t.hasCORS=n},9624:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){let t={},n=e.split("&");for(let i=0,r=n.length;i<r;i++){let e=n[i].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1])}return t}},10120:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const n=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),s=e.indexOf("]");-1!=r&&-1!=s&&(e=e.substring(0,r)+e.substring(r,s).replace(/:/g,";")+e.substring(s,e.length));let o=n.exec(e||""),a={},c=14;for(;c--;)a[i[c]]=o[c]||"";return-1!=r&&-1!=s&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||i.splice(0,1);"/"==t.slice(-1)&&i.splice(i.length-1,1);return i}(0,a.path),a.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,i){t&&(n[t]=i)})),n}(0,a.query),a}},52650:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i={};let r,s=0,o=0;function a(e){let t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=a,t.decode=function(e){let t=0;for(o=0;o<e.length;o++)t=64*t+i[e.charAt(o)];return t},t.yeast=function(){const e=a(+new Date);return e!==r?(s=0,r=e):e+"."+a(s++)};o<64;o++)i[n[o]]=o},74332:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim="undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")()},56058:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.TransportError=t.Transport=t.protocol=t.Socket=void 0;const i=n(82766);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}}),t.protocol=i.Socket.protocol;var r=n(94776);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return r.Transport}}),Object.defineProperty(t,"TransportError",{enumerable:!0,get:function(){return r.TransportError}});var s=n(29295);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return s.transports}});var o=n(80519);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var a=n(10120);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var c=n(93798);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return c.nextTick}})},82766:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const r=n(29295),s=n(80519),o=n(9624),a=n(10120),c=i(n(90676)),u=n(56982),l=n(40495),d=n(93798),h=(0,c.default)("engine.io-client:socket");class p extends u.Emitter{constructor(e,t={}){super(),this.binaryType=d.defaultBinaryType,this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=(0,a.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,a.parse)(t.host).host),(0,s.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=(0,o.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){h('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=l.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return h("options: %j",n),new r.transports[e](n)}open(){let e;if(this.opts.rememberUpgrade&&p.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return h("error while creating transport: %s",t),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){h("setting transport %s",e.name),this.transport&&(h("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){h('probing transport "%s"',e);let t=this.createTransport(e),n=!1;p.priorWebsocketSuccess=!1;const i=()=>{n||(h('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(i=>{if(!n)if("pong"===i.type&&"probe"===i.data){if(h('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;p.priorWebsocketSuccess="websocket"===t.name,h('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{n||"closed"!==this.readyState&&(h("changing transport and sending upgrade packet"),u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{h('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,this.emitReserved("upgradeError",n)}})))};function r(){n||(n=!0,u(),t.close(),t=null)}const s=n=>{const i=new Error("probe error: "+n);i.transport=t.name,r(),h('probe transport "%s" failed because of error: %s',e,n),this.emitReserved("upgradeError",i)};function o(){s("transport closed")}function a(){s("socket closed")}function c(e){t&&e.name!==t.name&&(h('"%s" works - aborting "%s"',e.name,t.name),r())}const u=()=>{t.removeListener("open",i),t.removeListener("error",s),t.removeListener("close",o),this.off("close",a),this.off("upgrading",c)};t.once("open",i),t.once("error",s),t.once("close",o),this.once("close",a),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onOpen(){if(h("socket open"),this.readyState="open",p.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){h("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(h('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else h('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();h("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const n=this.writeBuffer[t].data;if(n&&(e+=(0,s.byteLength)(n)),t>0&&e>this.maxPayload)return h("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return h("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,i){if("function"===typeof t&&(i=t,t=void 0),"function"===typeof n&&(i=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),h("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(e){h("socket error %j",e),p.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(h('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const i=e.length;for(;n<i;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}t.Socket=p,p.protocol=l.protocol},94776:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.TransportError=void 0;const r=n(40495),s=n(56982),o=n(80519),a=i(n(90676)),c=n(9624),u=(0,a.default)("engine.io-client:transport");class l extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}t.TransportError=l;class d extends s.Emitter{constructor(e){super(),this.writable=!1,(0,o.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new l(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):u("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,r.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=(0,c.encode)(e);return t.length?"?"+t:""}}t.Transport=d},29295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const i=n(57964),r=n(47522),s=n(75899);t.transports={websocket:r.WS,webtransport:s.WT,polling:i.Polling}},57964:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const r=n(94776),s=i(n(90676)),o=n(52650),a=n(40495),c=n(91297),u=n(56982),l=n(80519),d=n(74332),h=(0,s.default)("engine.io-client:polling");function p(){}const A=null!=new c.XHR({xdomain:!1}).responseType;class f extends r.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=A&&!t,this.opts.withCredentials&&(this.cookieJar=(0,c.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{h("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(h("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){h("pre-pause polling complete"),--e||t()}))),this.writable||(h("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){h("pre-pause writing complete"),--e||t()})))}else t()}poll(){h("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){h("polling got data %s",e);(0,a.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{h("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(h("transport open - closing"),e()):(h("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,a.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new y(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){h("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=f;class y extends u.Emitter{constructor(e,t){super(),(0,l.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=(0,l.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new c.XHR(t);try{h("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(i){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof n.status?n.status:0)}),0))},h("xhr data %s",this.data),n.send(this.data)}catch(i){return void this.setTimeoutFn((()=>{this.onError(i)}),0)}"undefined"!==typeof document&&(this.index=y.requestsCount++,y.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=p,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete y.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=y,y.requestsCount=0,y.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",E);else if("function"===typeof addEventListener){const e="onpagehide"in d.globalThisShim?"pagehide":"unload";addEventListener(e,E,!1)}function E(){for(let e in y.requests)y.requests.hasOwnProperty(e)&&y.requests[e].abort()}},93798:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;const i=n(74332);t.nextTick="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=i.globalThisShim.WebSocket||i.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},47522:function(e,t,n){var i=n(46785).lW,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const s=n(94776),o=n(52650),a=n(80519),c=n(93798),u=r(n(90676)),l=n(40495),d=(0,u.default)("engine.io-client:websocket"),h="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class p extends s.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=h?{}:(0,a.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!h?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,n)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;(0,l.encodePacket)(n,this.supportsBinary,(e=>{const t={};if(!c.usingBrowserWebSocket&&(n.options&&(t.compress=n.options.compress),this.opts.perMessageDeflate)){("string"===typeof e?i.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{c.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(s){d("websocket closed before onclose event")}r&&(0,c.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,o.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!c.WebSocket}}t.WS=p},75899:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WT=void 0;const r=n(94776),s=n(93798),o=n(40495),a=(0,i(n(90676)).default)("engine.io-client:webtransport");class c extends r.Transport{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{a("transport closed gracefully"),this.onClose()})).catch((e=>{a("transport closed due to %s",e),this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=(0,o.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),i=(0,o.createPacketEncoderStream)();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{n.read().then((({done:e,value:t})=>{e?a("session is closed"):(a("received chunk: %o",t),this.onPacket(t),r())})).catch((e=>{a("an error occurred while reading: %s",e)}))};r();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],i=t===e.length-1;this.writer.write(n).then((()=>{i&&(0,s.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}t.WT=c},91297:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createCookieJar=t.XHR=void 0;const i=n(59341),r=n(74332);t.XHR=function(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||i.hasCORS))return new XMLHttpRequest}catch(n){}if(!t)try{return new(r.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}},t.createCookieJar=function(){}},80519:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const i=n(74332);t.pick=function(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})};const r=i.globalThisShim.setTimeout,s=i.globalThisShim.clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=r.bind(i.globalThisShim),e.clearTimeoutFn=s.bind(i.globalThisShim)):(e.setTimeoutFn=i.globalThisShim.setTimeout.bind(i.globalThisShim),e.clearTimeoutFn=i.globalThisShim.clearTimeout.bind(i.globalThisShim))};t.byteLength=function(e){return"string"===typeof e?function(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))}},81111:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const n=Object.create(null);t.PACKET_TYPES=n,n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const i=Object.create(null);t.PACKET_TYPES_REVERSE=i,Object.keys(n).forEach((e=>{i[n[e]]=e}));t.ERROR_PACKET={type:"error",data:"parser error"}},20929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<n.length;r++)i[n.charCodeAt(r)]=r;t.encode=e=>{let t,i=new Uint8Array(e),r=i.length,s="";for(t=0;t<r;t+=3)s+=n[i[t]>>2],s+=n[(3&i[t])<<4|i[t+1]>>4],s+=n[(15&i[t+1])<<2|i[t+2]>>6],s+=n[63&i[t+2]];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};t.decode=e=>{let t,n,r,s,o,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),d=new Uint8Array(l);for(t=0;t<c;t+=4)n=i[e.charCodeAt(t)],r=i[e.charCodeAt(t+1)],s=i[e.charCodeAt(t+2)],o=i[e.charCodeAt(t+3)],d[u++]=n<<2|r>>4,d[u++]=(15&r)<<4|s>>2,d[u++]=(3&s)<<6|63&o;return l}},89813:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.decodePacket=void 0;const i=n(81111),r=n(20929),s="function"===typeof ArrayBuffer;t.decodePacket=(e,t)=>{if("string"!==typeof e)return{type:"message",data:a(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:o(e.substring(1),t)};return i.PACKET_TYPES_REVERSE[n]?e.length>1?{type:i.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:i.PACKET_TYPES_REVERSE[n]}:i.ERROR_PACKET};const o=(e,t)=>{if(s){const n=(0,r.decode)(e);return a(n,t)}return{base64:!0,data:e}},a=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},49224:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacket=t.encodePacketToBinary=void 0;const i=n(81111),r="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"===typeof ArrayBuffer,o=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,a=({type:e,data:t},n,a)=>r&&t instanceof Blob?n?a(t):c(t,a):s&&(t instanceof ArrayBuffer||o(t))?n?a(t):c(new Blob([t]),a):a(i.PACKET_TYPES[e]+(t||""));t.encodePacket=a;const c=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let l;t.encodePacketToBinary=function(e,t){return r&&e.data instanceof Blob?e.data.arrayBuffer().then(u).then(t):s&&(e.data instanceof ArrayBuffer||o(e.data))?t(u(e.data)):void a(e,!1,(e=>{l||(l=new TextEncoder),t(l.encode(e))}))}},40495:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=t.createPacketDecoderStream=t.createPacketEncoderStream=void 0;const i=n(49224);Object.defineProperty(t,"encodePacket",{enumerable:!0,get:function(){return i.encodePacket}});const r=n(89813);Object.defineProperty(t,"decodePacket",{enumerable:!0,get:function(){return r.decodePacket}});const s=n(81111),o=String.fromCharCode(30);t.encodePayload=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach(((e,a)=>{(0,i.encodePacket)(e,!1,(e=>{r[a]=e,++s===n&&t(r.join(o))}))}))};let a;function c(e){return e.reduce(((e,t)=>e+t.length),0)}function u(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let i=0;for(let r=0;r<t;r++)n[r]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),n}t.decodePayload=(e,t)=>{const n=e.split(o),i=[];for(let s=0;s<n.length;s++){const e=(0,r.decodePacket)(n[s],t);if(i.push(e),"error"===e.type)break}return i},t.createPacketEncoderStream=function(){return new TransformStream({transform(e,t){(0,i.encodePacketToBinary)(e,(n=>{const i=n.length;let r;if(i<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,i);else if(i<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126),e.setUint16(1,i)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!==typeof e.data&&(r[0]|=128),t.enqueue(r),t.enqueue(n)}))}})},t.createPacketDecoderStream=function(e,t){a||(a=new TextDecoder);const n=[];let i=0,o=-1,l=!1;return new TransformStream({transform(d,h){for(n.push(d);;){if(0===i){if(c(n)<1)break;const e=u(n,1);l=128===(128&e[0]),o=127&e[0],i=o<126?3:126===o?1:2}else if(1===i){if(c(n)<2)break;const e=u(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),i=3}else if(2===i){if(c(n)<8)break;const e=u(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),r=t.getUint32(0);if(r>Math.pow(2,21)-1){h.enqueue(s.ERROR_PACKET);break}o=r*Math.pow(2,32)+t.getUint32(4),i=3}else{if(c(n)<o)break;const e=u(n,o);h.enqueue((0,r.decodePacket)(l?e:a.decode(e),t)),i=0}if(0===o||o>e){h.enqueue(s.ERROR_PACKET);break}}}})},t.protocol=4},73942:function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},21756:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=n(3330),s=n(6793);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return s.Manager}});const o=n(95467);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}});const a=i(n(90676)).default("socket.io-client"),c={};function u(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};const n=r.url(e,t.path||"/socket.io"),i=n.source,o=n.id,u=n.path,l=c[o]&&u in c[o].nsps;let d;return t.forceNew||t["force new connection"]||!1===t.multiplex||l?(a("ignoring socket cache for %s",i),d=new s.Manager(i,t)):(c[o]||(a("new io instance for %s",i),c[o]=new s.Manager(i,t)),d=c[o]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}t.io=u,t.connect=u,t.default=u,Object.assign(u,{Manager:s.Manager,Socket:o.Socket,io:u,connect:u});var l=n(35239);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return l.protocol}}),e.exports=u},6793:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const a=n(56058),c=n(95467),u=s(n(35239)),l=n(92271),d=n(73942),h=n(56982),p=o(n(90676)).default("socket.io-client:manager");class A extends h.Emitter{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,a.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new d.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||u;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(p("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const i=l.on(t,"open",(function(){n.onopen(),e&&e()})),r=t=>{p("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},s=l.on(t,"error",r);if(!1!==this._timeout){const e=this._timeout;p("connect attempt will timeout after %d",e);const n=this.setTimeoutFn((()=>{p("connect attempt timed out after %d",e),i(),r(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(i),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){p("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(l.on(e,"ping",this.onping.bind(this)),l.on(e,"data",this.ondata.bind(this)),l.on(e,"error",this.onerror.bind(this)),l.on(e,"close",this.onclose.bind(this)),l.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){a.nextTick((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){p("error",e),this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new c.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t){if(this.nsps[n].active)return void p("socket %s is still active, skipping close",n)}this._close()}_packet(e){p("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){p("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){p("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){p("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();p("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(p("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(p("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(p("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=A},92271:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},95467:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const r=n(35239),s=n(92271),o=n(56982),a=i(n(90676)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u extends o.Emitter{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[s.on(e,"open",this.onopen.bind(this)),s.on(e,"packet",this.onpacket.bind(this)),s.on(e,"error",this.onerror.bind(this)),s.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(c.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:r.PacketType.EVENT,data:t,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"===typeof t[t.length-1]){const e=this.ids++;a("emitting packet with ack id %d",e);const i=t.pop();this._registerAckCallback(e,i),n.id=e}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)?a("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n),this.flags={},this}_registerAckCallback(e,t){var n;const i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===i)return void(this.acks[e]=t);const r=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(a("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));a("event with ack id %d has timed out after %d ms",e,i),t.call(this,new Error("operation has timed out"))}),i);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((i,r)=>{t.push(((e,t)=>n?e?r(e):i(t):i(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...i)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",n.id,n.tryCount),this._queue.shift(),t&&t(e)):(a("packet [%d] was successfully sent",n.id),this._queue.shift(),t&&t(null,...i)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const t=this._queue[0];!t.pending||e?(t.pending=!0,t.tryCount++,a("sending packet [%d] (try n\xb0%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)):a("packet [%d] has already been sent and is waiting for an ack",t.id)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:r.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){a("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case r.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(e);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(e);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];a("emitting event %j",t),null!=e.id&&(a("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...i){n||(n=!0,a("sending ack %j",i),t.packet({type:r.PacketType.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];"function"===typeof t?(a("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):a("bad ack %s",e.id)}onconnect(e,t){a("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:r.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}t.Socket=u},3330:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const r=n(56058),s=i(n(90676)).default("socket.io-client:url");t.url=function(e,t="",n){let i=e;n=n||"undefined"!==typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(s("protocol-less url %s",e),e="undefined"!==typeof n?n.protocol+"//"+e:"https://"+e),s("parse %s",e),i=r.parse(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+t,i.href=i.protocol+"://"+o+(n&&n.port===i.port?"":":"+i.port),i}},73826:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const i=n(73019);function r(e,t){if(!e)return e;if((0,i.isBinary)(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=r(e[i],t);return n}if("object"===typeof e&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=r(e[i],t));return n}return e}function s(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"===typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=s(e[n],t);else if("object"===typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=s(e[n],t));return e}t.deconstructPacket=function(e){const t=[],n=e.data,i=e;return i.data=r(n,t),i.attachments=t.length,{packet:i,buffers:t}},t.reconstructPacket=function(e,t){return e.data=s(e.data,t),delete e.attachments,e}},35239:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const i=n(56982),r=n(73826),s=n(73019),o=(0,n(90676).default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var c;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(c=t.PacketType||(t.PacketType={}));function u(e){return"[object Object]"===Object.prototype.toString.call(e)}t.Encoder=class{constructor(e){this.replacer=e}encode(e){return o("encoding packet %j",e),e.type!==c.EVENT&&e.type!==c.ACK||!(0,s.hasBinary)(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===c.EVENT?c.BINARY_EVENT:c.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==c.BINARY_EVENT&&e.type!==c.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),o("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=(0,r.deconstructPacket)(e),n=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(n),i}};class l extends i.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"===typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===c.BINARY_EVENT;n||t.type===c.BINARY_ACK?(t.type=n?c.EVENT:c.ACK,this.reconstructor=new d(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!(0,s.isBinary)(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===c[n.type])throw new Error("unknown packet type "+n.type);if(n.type===c.BINARY_EVENT||n.type===c.BINARY_ACK){const i=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const r=e.substring(i,t);if(r!=Number(r)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===e.charAt(t+1)){const i=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(i,t)}else n.nsp="/";const i=e.charAt(t+1);if(""!==i&&Number(i)==i){const i=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){const i=this.tryParse(e.substr(t));if(!l.isPayloadValid(n.type,i))throw new Error("invalid payload");n.data=i}return o("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(t){return!1}}static isPayloadValid(e,t){switch(e){case c.CONNECT:return u(t);case c.DISCONNECT:return void 0===t;case c.CONNECT_ERROR:return"string"===typeof t||u(t);case c.EVENT:case c.BINARY_EVENT:return Array.isArray(t)&&("number"===typeof t[0]||"string"===typeof t[0]&&-1===a.indexOf(t[0]));case c.ACK:case c.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}t.Decoder=l;class d{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=(0,r.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},73019:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const n="function"===typeof ArrayBuffer,i=Object.prototype.toString,r="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===i.call(File);function o(e){return n&&(e instanceof ArrayBuffer||(e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||r&&e instanceof Blob||s&&e instanceof File}t.isBinary=o,t.hasBinary=function e(t,n){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let n=0,i=t.length;n<i;n++)if(e(t[n]))return!0;return!1}if(o(t))return!0;if(t.toJSON&&"function"===typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return!0;return!1}},64826:function(e,t,n){n.d(t,{Fw:function(){return I},fC:function(){return T},xz:function(){return C}});var i=n(57384),r=n(67597),s=n(90149),o=n(61544),a=n(82305),c=n(65672),u=n(71641),l=n(4300),d=n(8591),h=n(57458);const p="Collapsible",[A,f]=(0,o.b)(p),[y,E]=A(p),m=(0,r.forwardRef)(((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:o,disabled:c,onOpenChange:u,...d}=e,[p=!1,A]=(0,a.T)({prop:s,defaultProp:o,onChange:u});return(0,r.createElement)(y,{scope:n,disabled:c,contentId:(0,h.M)(),open:p,onOpenToggle:(0,r.useCallback)((()=>A((e=>!e))),[A])},(0,r.createElement)(l.WV.div,(0,i.Z)({"data-state":N(p),"data-disabled":c?"":void 0},d,{ref:t})))})),_="CollapsibleTrigger",g=(0,r.forwardRef)(((e,t)=>{const{__scopeCollapsible:n,...o}=e,a=E(_,n);return(0,r.createElement)(l.WV.button,(0,i.Z)({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":N(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},o,{ref:t,onClick:(0,s.M)(e.onClick,a.onOpenToggle)}))})),R="CollapsibleContent",I=(0,r.forwardRef)(((e,t)=>{const{forceMount:n,...s}=e,o=E(R,e.__scopeCollapsible);return(0,r.createElement)(d.z,{present:n||o.open},(({present:e})=>(0,r.createElement)(S,(0,i.Z)({},s,{ref:t,present:e}))))})),S=(0,r.forwardRef)(((e,t)=>{const{__scopeCollapsible:n,present:s,children:o,...a}=e,d=E(R,n),[h,p]=(0,r.useState)(s),A=(0,r.useRef)(null),f=(0,u.e)(t,A),y=(0,r.useRef)(0),m=y.current,_=(0,r.useRef)(0),g=_.current,I=d.open||h,S=(0,r.useRef)(I),T=(0,r.useRef)();return(0,r.useEffect)((()=>{const e=requestAnimationFrame((()=>S.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,c.b)((()=>{const e=A.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();y.current=t.height,_.current=t.width,S.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),p(s)}}),[d.open,s]),(0,r.createElement)(l.WV.div,(0,i.Z)({"data-state":N(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!I},a,{ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style}}),I&&o)}));function N(e){return e?"open":"closed"}const T=m,C=g},79519:function(e,t,n){n.d(t,{bU:function(){return S},fC:function(){return I}});var i=n(57384),r=n(67597),s=n(90149),o=n(71641),a=n(61544),c=n(82305),u=n(10810),l=n(81319),d=n(4300);const h="Switch",[p,A]=(0,a.b)(h),[f,y]=p(h),E=(0,r.forwardRef)(((e,t)=>{const{__scopeSwitch:n,name:a,checked:u,defaultChecked:l,required:h,disabled:p,value:A="on",onCheckedChange:y,...E}=e,[m,_]=(0,r.useState)(null),I=(0,o.e)(t,(e=>_(e))),S=(0,r.useRef)(!1),N=!m||Boolean(m.closest("form")),[T=!1,C]=(0,c.T)({prop:u,defaultProp:l,onChange:y});return(0,r.createElement)(f,{scope:n,checked:T,disabled:p},(0,r.createElement)(d.WV.button,(0,i.Z)({type:"button",role:"switch","aria-checked":T,"aria-required":h,"data-state":R(T),"data-disabled":p?"":void 0,disabled:p,value:A},E,{ref:I,onClick:(0,s.M)(e.onClick,(e=>{C((e=>!e)),N&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())}))})),N&&(0,r.createElement)(g,{control:m,bubbles:!S.current,name:a,value:A,checked:T,required:h,disabled:p,style:{transform:"translateX(-100%)"}}))})),m="SwitchThumb",_=(0,r.forwardRef)(((e,t)=>{const{__scopeSwitch:n,...s}=e,o=y(m,n);return(0,r.createElement)(d.WV.span,(0,i.Z)({"data-state":R(o.checked),"data-disabled":o.disabled?"":void 0},s,{ref:t}))})),g=e=>{const{control:t,checked:n,bubbles:s=!0,...o}=e,a=(0,r.useRef)(null),c=(0,u.D)(n),d=(0,l.t)(t);return(0,r.useEffect)((()=>{const e=a.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked").set;if(c!==n&&i){const t=new Event("click",{bubbles:s});i.call(e,n),e.dispatchEvent(t)}}),[c,n,s]),(0,r.createElement)("input",(0,i.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:a,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function R(e){return e?"checked":"unchecked"}const I=E,S=_},10810:function(e,t,n){n.d(t,{D:function(){return r}});var i=n(67597);function r(e){const t=(0,i.useRef)({value:e,previous:e});return(0,i.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}},56982:function(e,t,n){function i(e){if(e)return function(e){for(var t in i.prototype)e[t]=i.prototype[t];return e}(e)}n.r(t),n.d(t,{Emitter:function(){return i}}),i.prototype.on=i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},i.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<i.length;r++)if((n=i[r])===t||n.fn===t){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},i.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,t)}return this},i.prototype.emitReserved=i.prototype.emit,i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}},43928:function(e,t,n){n.r(t),n.d(t,{defaultLogger:function(){return i}});const i=console}}]);
  2. //# sourceMappingURL=98110-c88c5da31c1c159a.js.map