"use strict";
var A = Object.defineProperty;
var r = Object.getOwnPropertyDescriptor;
var D = Object.getOwnPropertyNames;
var I = Object.prototype.hasOwnProperty;
var o = (S, R) => {
  for (var T in R)
    A(S, T, { get: R[T], enumerable: !0 });
}, C = (S, R, T, N) => {
  if (R && typeof R == "object" || typeof R == "function")
    for (let _ of D(R))
      !I.call(S, _) && _ !== T && A(S, _, { get: () => R[_], enumerable: !(N = r(R, _)) || N.enumerable });
  return S;
};
var P = (S) => C(A({}, "__esModule", { value: !0 }), S);

// src/core-events/index.ts
var UE = {};
o(UE, {
  ARGTYPES_INFO_REQUEST: () => YE,
  ARGTYPES_INFO_RESPONSE: () => aE,
  CHANNEL_CREATED: () => a,
  CHANNEL_WS_DISCONNECT: () => Y,
  CONFIG_ERROR: () => U,
  CREATE_NEW_STORYFILE_REQUEST: () => G,
  CREATE_NEW_STORYFILE_RESPONSE: () => W,
  CURRENT_STORY_WAS_SET: () => H,
  DOCS_PREPARED: () => d,
  DOCS_RENDERED: () => t,
  FILE_COMPONENT_SEARCH_REQUEST: () => p,
  FILE_COMPONENT_SEARCH_RESPONSE: () => i,
  FORCE_REMOUNT: () => l,
  FORCE_RE_RENDER: () => F,
  GLOBALS_UPDATED: () => e,
  NAVIGATE_URL: () => y,
  PLAY_FUNCTION_THREW_EXCEPTION: () => c,
  PRELOAD_ENTRIES: () => f,
  PREVIEW_BUILDER_PROGRESS: () => g,
  PREVIEW_KEYDOWN: () => u,
  REGISTER_SUBSCRIPTION: () => s,
  REQUEST_WHATS_NEW_DATA: () => rE,
  RESET_STORY_ARGS: () => x,
  RESULT_WHATS_NEW_DATA: () => DE,
  SAVE_STORY_REQUEST: () => PE,
  SAVE_STORY_RESPONSE: () => LE,
  SELECT_STORY: () => m,
  SET_CONFIG: () => M,
  SET_CURRENT_STORY: () => Q,
  SET_FILTER: () => V,
  SET_GLOBALS: () => w,
  SET_INDEX: () => B,
  SET_STORIES: () => X,
  SET_WHATS_NEW_CACHE: () => IE,
  SHARED_STATE_CHANGED: () => b,
  SHARED_STATE_SET: () => q,
  STORIES_COLLAPSE_ALL: () => K,
  STORIES_EXPAND_ALL: () => j,
  STORY_ARGS_UPDATED: () => k,
  STORY_CHANGED: () => z,
  STORY_ERRORED: () => J,
  STORY_FINISHED: () => RE,
  STORY_INDEX_INVALIDATED: () => Z,
  STORY_MISSING: () => $,
  STORY_PREPARED: () => n,
  STORY_RENDERED: () => EE,
  STORY_RENDER_PHASE_CHANGED: () => v,
  STORY_SPECIFIED: () => SE,
  STORY_THREW_EXCEPTION: () => _E,
  STORY_UNCHANGED: () => TE,
  TELEMETRY_ERROR: () => CE,
  TOGGLE_WHATS_NEW_NOTIFICATIONS: () => oE,
  UNHANDLED_ERRORS_WHILE_PLAYING: () => h,
  UPDATE_GLOBALS: () => AE,
  UPDATE_QUERY_PARAMS: () => OE,
  UPDATE_STORY_ARGS: () => NE,
  default: () => L
});
module.exports = P(UE);
var O = /* @__PURE__ */ ((E) => (E.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", E.CHANNEL_CREATED = "channelCreated", E.CONFIG_ERROR = "co\
nfigError", E.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", E.STORY_SPECIFIED = "storySpecified", E.SET_CONFIG = "setConfig", E.SET_STORIES =
"setStories", E.SET_INDEX = "setIndex", E.SET_CURRENT_STORY = "setCurrentStory", E.CURRENT_STORY_WAS_SET = "currentStoryWasSet", E.FORCE_RE_RENDER =
"forceReRender", E.FORCE_REMOUNT = "forceRemount", E.PRELOAD_ENTRIES = "preloadStories", E.STORY_PREPARED = "storyPrepared", E.DOCS_PREPARED =
"docsPrepared", E.STORY_CHANGED = "storyChanged", E.STORY_UNCHANGED = "storyUnchanged", E.STORY_RENDERED = "storyRendered", E.STORY_FINISHED =
"storyFinished", E.STORY_MISSING = "storyMissing", E.STORY_ERRORED = "storyErrored", E.STORY_THREW_EXCEPTION = "storyThrewException", E.STORY_RENDER_PHASE_CHANGED =
"storyRenderPhaseChanged", E.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", E.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErro\
rsWhilePlaying", E.UPDATE_STORY_ARGS = "updateStoryArgs", E.STORY_ARGS_UPDATED = "storyArgsUpdated", E.RESET_STORY_ARGS = "resetStoryArgs", E.
SET_FILTER = "setFilter", E.SET_GLOBALS = "setGlobals", E.UPDATE_GLOBALS = "updateGlobals", E.GLOBALS_UPDATED = "globalsUpdated", E.REGISTER_SUBSCRIPTION =
"registerSubscription", E.PREVIEW_KEYDOWN = "previewKeydown", E.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", E.SELECT_STORY = "sel\
ectStory", E.STORIES_COLLAPSE_ALL = "storiesCollapseAll", E.STORIES_EXPAND_ALL = "storiesExpandAll", E.DOCS_RENDERED = "docsRendered", E.SHARED_STATE_CHANGED =
"sharedStateChanged", E.SHARED_STATE_SET = "sharedStateSet", E.NAVIGATE_URL = "navigateUrl", E.UPDATE_QUERY_PARAMS = "updateQueryParams", E.
REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", E.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", E.SET_WHATS_NEW_CACHE = "setWhatsNewCache", E.
TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", E.TELEMETRY_ERROR = "telemetryError", E.FILE_COMPONENT_SEARCH_REQUEST = "fil\
eComponentSearchRequest", E.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", E.SAVE_STORY_REQUEST = "saveStoryRequest", E.SAVE_STORY_RESPONSE =
"saveStoryResponse", E.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", E.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", E.CREATE_NEW_STORYFILE_REQUEST =
"createNewStoryfileRequest", E.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", E))(O || {}), L = O, {
  CHANNEL_WS_DISCONNECT: Y,
  CHANNEL_CREATED: a,
  CONFIG_ERROR: U,
  CREATE_NEW_STORYFILE_REQUEST: G,
  CREATE_NEW_STORYFILE_RESPONSE: W,
  CURRENT_STORY_WAS_SET: H,
  DOCS_PREPARED: d,
  DOCS_RENDERED: t,
  FILE_COMPONENT_SEARCH_REQUEST: p,
  FILE_COMPONENT_SEARCH_RESPONSE: i,
  FORCE_RE_RENDER: F,
  FORCE_REMOUNT: l,
  GLOBALS_UPDATED: e,
  NAVIGATE_URL: y,
  PLAY_FUNCTION_THREW_EXCEPTION: c,
  UNHANDLED_ERRORS_WHILE_PLAYING: h,
  PRELOAD_ENTRIES: f,
  PREVIEW_BUILDER_PROGRESS: g,
  PREVIEW_KEYDOWN: u,
  REGISTER_SUBSCRIPTION: s,
  RESET_STORY_ARGS: x,
  SELECT_STORY: m,
  SET_CONFIG: M,
  SET_CURRENT_STORY: Q,
  SET_FILTER: V,
  SET_GLOBALS: w,
  SET_INDEX: B,
  SET_STORIES: X,
  SHARED_STATE_CHANGED: b,
  SHARED_STATE_SET: q,
  STORIES_COLLAPSE_ALL: K,
  STORIES_EXPAND_ALL: j,
  STORY_ARGS_UPDATED: k,
  STORY_CHANGED: z,
  STORY_ERRORED: J,
  STORY_INDEX_INVALIDATED: Z,
  STORY_MISSING: $,
  STORY_PREPARED: n,
  STORY_RENDER_PHASE_CHANGED: v,
  STORY_RENDERED: EE,
  STORY_FINISHED: RE,
  STORY_SPECIFIED: SE,
  STORY_THREW_EXCEPTION: _E,
  STORY_UNCHANGED: TE,
  UPDATE_GLOBALS: AE,
  UPDATE_QUERY_PARAMS: OE,
  UPDATE_STORY_ARGS: NE,
  REQUEST_WHATS_NEW_DATA: rE,
  RESULT_WHATS_NEW_DATA: DE,
  SET_WHATS_NEW_CACHE: IE,
  TOGGLE_WHATS_NEW_NOTIFICATIONS: oE,
  TELEMETRY_ERROR: CE,
  SAVE_STORY_REQUEST: PE,
  SAVE_STORY_RESPONSE: LE,
  ARGTYPES_INFO_REQUEST: YE,
  ARGTYPES_INFO_RESPONSE: aE
} = O;
