@ikonai/sdk-ui 0.0.43 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ui-worker-B6ND4RDC.js → ui-worker-CcCXE6uz.js} +243 -238
- package/index.js +214 -209
- package/package.json +1 -1
|
@@ -518,7 +518,7 @@ function at(t) {
|
|
|
518
518
|
function K(t) {
|
|
519
519
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
520
520
|
}
|
|
521
|
-
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(_t || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ft || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), g = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
521
|
+
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(_t || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ft || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), O = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(O || {});
|
|
522
522
|
const ae = 265814330, le = 1368629611, Ie = 2431514951, ce = 2914494629, Ee = 3284746250, _e = 4101844078;
|
|
523
523
|
function dt(t) {
|
|
524
524
|
const e = {};
|
|
@@ -617,7 +617,7 @@ function we(t) {
|
|
|
617
617
|
e.push(s.asString());
|
|
618
618
|
return e;
|
|
619
619
|
}
|
|
620
|
-
const Ce = 76337612, De = 185396121, Ue = 388632637, Re = 417197284, me = 469070965, Le = 470595159,
|
|
620
|
+
const Ce = 76337612, De = 185396121, Ue = 388632637, Re = 417197284, me = 469070965, Le = 470595159, Oe = 781727218, ge = 834078886, Pe = 1043273762, be = 1236999138, Fe = 1368629611, pe = 1715899485, ve = 1942830531, Me = 1999510636, ke = 2079864626, Ve = 2142346422, Ge = 2598291686, Be = 2719718823, xe = 2810953526, He = 2840065720, Ye = 2885165957, $e = 3586157513, Ke = 3717933110, je = 4062655306;
|
|
621
621
|
function Xe(t) {
|
|
622
622
|
const e = {};
|
|
623
623
|
return wt(e), e;
|
|
@@ -663,12 +663,12 @@ function We(t, e) {
|
|
|
663
663
|
e.UserType = s.asInt32();
|
|
664
664
|
break;
|
|
665
665
|
}
|
|
666
|
-
case
|
|
666
|
+
case Oe: {
|
|
667
667
|
if (s.isNull) throw new Error();
|
|
668
668
|
e.UserId = s.asString();
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
|
-
case
|
|
671
|
+
case ge: {
|
|
672
672
|
if (s.isNull) throw new Error();
|
|
673
673
|
e.ProductId = s.asString();
|
|
674
674
|
break;
|
|
@@ -930,7 +930,7 @@ function Ls(t, e) {
|
|
|
930
930
|
}
|
|
931
931
|
case Us: {
|
|
932
932
|
if (s.isNull) throw new Error();
|
|
933
|
-
e.FaceBlendshapes =
|
|
933
|
+
e.FaceBlendshapes = Os(s.asArray());
|
|
934
934
|
break;
|
|
935
935
|
}
|
|
936
936
|
case Rs: {
|
|
@@ -940,14 +940,14 @@ function Ls(t, e) {
|
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Os(t) {
|
|
944
944
|
const e = [];
|
|
945
945
|
let s;
|
|
946
946
|
for (; (s = t.next()) !== null; )
|
|
947
947
|
e.push(s.asString());
|
|
948
948
|
return e;
|
|
949
949
|
}
|
|
950
|
-
const
|
|
950
|
+
const gs = 3612929027;
|
|
951
951
|
function mt(t) {
|
|
952
952
|
const e = {};
|
|
953
953
|
return Lt(e), e;
|
|
@@ -963,7 +963,7 @@ function bs(t, e) {
|
|
|
963
963
|
let s;
|
|
964
964
|
for (; (s = t.next()) !== null; )
|
|
965
965
|
switch (s.fieldId) {
|
|
966
|
-
case
|
|
966
|
+
case gs: {
|
|
967
967
|
if (s.isNull) throw new Error();
|
|
968
968
|
e.Category = s.asString();
|
|
969
969
|
break;
|
|
@@ -971,16 +971,16 @@ function bs(t, e) {
|
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
const Fs = 164808083, ps = 1368629611, vs = 2739413426, Ms = 2768375929, ks = 2950031986, Vs = 3284746250, Gs = 4065070594;
|
|
974
|
-
function
|
|
974
|
+
function Ot(t) {
|
|
975
975
|
const e = {};
|
|
976
|
-
return
|
|
976
|
+
return gt(e), e;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function gt(t) {
|
|
979
979
|
return t.Description = "", t.Codec = Nt.H264, t.Width = 0, t.Height = 0, t.Framerate = 30, t.Bitrate = 0, t.IsHardwareAccelerated = !1, t;
|
|
980
980
|
}
|
|
981
981
|
function Bs(t, e) {
|
|
982
|
-
const s = e ??
|
|
983
|
-
return
|
|
982
|
+
const s = e ?? Ot();
|
|
983
|
+
return gt(s), xs(t, s), s;
|
|
984
984
|
}
|
|
985
985
|
function xs(t, e) {
|
|
986
986
|
let s;
|
|
@@ -1023,23 +1023,23 @@ function xs(t, e) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
const Hs = 3, Ys = 65539, $s = 693643444, Ks = 1144553441, js = 1497620243, Xs = 1559330978, zs = 1999510636, Ws = 2277643855, Js = 2469008121, qs =
|
|
1027
|
-
function
|
|
1026
|
+
const Hs = 3, Ys = 65539, $s = 693643444, Ks = 1144553441, js = 1497620243, Xs = 1559330978, zs = 1999510636, Ws = 2277643855, Js = 2469008121, qs = 2589786682, Qs = 3219210453, Zs = 3678477544, tr = 3696445035, er = 3707543140, sr = 3712281496, rr = 3823842552, nr = 3895362455, ir = 3897397815, or = 4225107827;
|
|
1027
|
+
function ar(t) {
|
|
1028
1028
|
const e = {};
|
|
1029
1029
|
return Pt(e), e;
|
|
1030
1030
|
}
|
|
1031
1031
|
function Pt(t) {
|
|
1032
|
-
return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.Functions = /* @__PURE__ */ Object.create(null), t;
|
|
1033
|
-
}
|
|
1034
|
-
function ar(t, e) {
|
|
1035
|
-
const s = L.create(t);
|
|
1036
|
-
return lr(s, e);
|
|
1032
|
+
return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.IsGitSourceMode = !1, t.Functions = /* @__PURE__ */ Object.create(null), t;
|
|
1037
1033
|
}
|
|
1038
1034
|
function lr(t, e) {
|
|
1039
|
-
const s =
|
|
1040
|
-
return
|
|
1035
|
+
const s = L.create(t);
|
|
1036
|
+
return Ir(s, e);
|
|
1041
1037
|
}
|
|
1042
1038
|
function Ir(t, e) {
|
|
1039
|
+
const s = e ?? ar();
|
|
1040
|
+
return Pt(s), cr(t, s), s;
|
|
1041
|
+
}
|
|
1042
|
+
function cr(t, e) {
|
|
1043
1043
|
let s;
|
|
1044
1044
|
for (; (s = t.next()) !== null; )
|
|
1045
1045
|
switch (s.fieldId) {
|
|
@@ -1050,12 +1050,12 @@ function Ir(t, e) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
case Ks: {
|
|
1052
1052
|
if (s.isNull) throw new Error();
|
|
1053
|
-
e.Clients =
|
|
1053
|
+
e.Clients = _r(s.asDictionary());
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
1056
|
case js: {
|
|
1057
1057
|
if (s.isNull) throw new Error();
|
|
1058
|
-
e.TrackingStreams =
|
|
1058
|
+
e.TrackingStreams = fr(s.asDictionary());
|
|
1059
1059
|
break;
|
|
1060
1060
|
}
|
|
1061
1061
|
case Xs: {
|
|
@@ -1080,56 +1080,61 @@ function Ir(t, e) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
case qs: {
|
|
1082
1082
|
if (s.isNull) throw new Error();
|
|
1083
|
-
e.
|
|
1083
|
+
e.IsGitSourceMode = s.asBool();
|
|
1084
1084
|
break;
|
|
1085
1085
|
}
|
|
1086
1086
|
case Qs: {
|
|
1087
1087
|
if (s.isNull) throw new Error();
|
|
1088
|
-
e.
|
|
1088
|
+
e.OrganisationName = s.asString();
|
|
1089
1089
|
break;
|
|
1090
1090
|
}
|
|
1091
1091
|
case Zs: {
|
|
1092
1092
|
if (s.isNull) throw new Error();
|
|
1093
|
-
e.
|
|
1093
|
+
e.Functions = hr(s.asDictionary());
|
|
1094
1094
|
break;
|
|
1095
1095
|
}
|
|
1096
1096
|
case tr: {
|
|
1097
1097
|
if (s.isNull) throw new Error();
|
|
1098
|
-
e.
|
|
1098
|
+
e.UIStreams = ur(s.asDictionary());
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
1101
|
case er: {
|
|
1102
1102
|
if (s.isNull) throw new Error();
|
|
1103
|
-
e.
|
|
1103
|
+
e.SpaceId = s.asString();
|
|
1104
1104
|
break;
|
|
1105
1105
|
}
|
|
1106
1106
|
case sr: {
|
|
1107
1107
|
if (s.isNull) throw new Error();
|
|
1108
|
-
e.
|
|
1108
|
+
e.PrimaryUserId = s.asString();
|
|
1109
1109
|
break;
|
|
1110
1110
|
}
|
|
1111
1111
|
case rr: {
|
|
1112
1112
|
if (s.isNull) throw new Error();
|
|
1113
|
-
e.
|
|
1113
|
+
e.ChannelInstanceId = s.asString();
|
|
1114
1114
|
break;
|
|
1115
1115
|
}
|
|
1116
1116
|
case nr: {
|
|
1117
1117
|
if (s.isNull) throw new Error();
|
|
1118
|
-
e.
|
|
1118
|
+
e.AudioStreams = Tr(s.asDictionary());
|
|
1119
1119
|
break;
|
|
1120
1120
|
}
|
|
1121
1121
|
case ir: {
|
|
1122
|
+
if (s.isNull) throw new Error();
|
|
1123
|
+
e.VideoStreams = Nr(s.asDictionary());
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
1126
|
+
case or: {
|
|
1122
1127
|
if (s.isNull) throw new Error();
|
|
1123
1128
|
e.SpaceName = s.asString();
|
|
1124
1129
|
break;
|
|
1125
1130
|
}
|
|
1126
1131
|
}
|
|
1127
1132
|
}
|
|
1128
|
-
function
|
|
1133
|
+
function Er(t, e) {
|
|
1129
1134
|
const s = $(t, Ys, Hs);
|
|
1130
|
-
return
|
|
1135
|
+
return lr(s, e);
|
|
1131
1136
|
}
|
|
1132
|
-
function
|
|
1137
|
+
function _r(t) {
|
|
1133
1138
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1134
1139
|
let s;
|
|
1135
1140
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1138,97 +1143,97 @@ function Er(t) {
|
|
|
1138
1143
|
}
|
|
1139
1144
|
return e;
|
|
1140
1145
|
}
|
|
1141
|
-
function
|
|
1146
|
+
function fr(t) {
|
|
1142
1147
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1143
1148
|
let s;
|
|
1144
1149
|
for (; (s = t.next()) !== null; ) {
|
|
1145
1150
|
const r = s.key.asString();
|
|
1146
|
-
e[r] =
|
|
1151
|
+
e[r] = Kr(s.value.asObject());
|
|
1147
1152
|
}
|
|
1148
1153
|
return e;
|
|
1149
1154
|
}
|
|
1150
|
-
function
|
|
1155
|
+
function hr(t) {
|
|
1151
1156
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1152
1157
|
let s;
|
|
1153
1158
|
for (; (s = t.next()) !== null; ) {
|
|
1154
1159
|
const r = s.key.asInt32();
|
|
1155
|
-
e[r] =
|
|
1160
|
+
e[r] = Ar(s.value.asArray());
|
|
1156
1161
|
}
|
|
1157
1162
|
return e;
|
|
1158
1163
|
}
|
|
1159
|
-
function
|
|
1164
|
+
function ur(t) {
|
|
1160
1165
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1161
1166
|
let s;
|
|
1162
1167
|
for (; (s = t.next()) !== null; ) {
|
|
1163
1168
|
const r = s.key.asString();
|
|
1164
|
-
e[r] =
|
|
1169
|
+
e[r] = Dr(s.value.asObject());
|
|
1165
1170
|
}
|
|
1166
1171
|
return e;
|
|
1167
1172
|
}
|
|
1168
|
-
function
|
|
1173
|
+
function Tr(t) {
|
|
1169
1174
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1170
1175
|
let s;
|
|
1171
1176
|
for (; (s = t.next()) !== null; ) {
|
|
1172
1177
|
const r = s.key.asString();
|
|
1173
|
-
e[r] =
|
|
1178
|
+
e[r] = Pr(s.value.asObject());
|
|
1174
1179
|
}
|
|
1175
1180
|
return e;
|
|
1176
1181
|
}
|
|
1177
|
-
function
|
|
1182
|
+
function Nr(t) {
|
|
1178
1183
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1179
1184
|
let s;
|
|
1180
1185
|
for (; (s = t.next()) !== null; ) {
|
|
1181
1186
|
const r = s.key.asString();
|
|
1182
|
-
e[r] =
|
|
1187
|
+
e[r] = Vr(s.value.asObject());
|
|
1183
1188
|
}
|
|
1184
1189
|
return e;
|
|
1185
1190
|
}
|
|
1186
|
-
function
|
|
1191
|
+
function Ar(t) {
|
|
1187
1192
|
const e = [];
|
|
1188
1193
|
let s;
|
|
1189
1194
|
for (; (s = t.next()) !== null; )
|
|
1190
1195
|
e.push(Is(s.asObject()));
|
|
1191
1196
|
return e;
|
|
1192
1197
|
}
|
|
1193
|
-
const
|
|
1194
|
-
function
|
|
1198
|
+
const dr = 161083277, Sr = 325678206, yr = 3469892363, wr = 3645544153;
|
|
1199
|
+
function Cr(t) {
|
|
1195
1200
|
const e = {};
|
|
1196
1201
|
return bt(e), e;
|
|
1197
1202
|
}
|
|
1198
1203
|
function bt(t) {
|
|
1199
1204
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1200
1205
|
}
|
|
1201
|
-
function Cr(t, e) {
|
|
1202
|
-
const s = e ?? wr();
|
|
1203
|
-
return bt(s), Dr(t, s), s;
|
|
1204
|
-
}
|
|
1205
1206
|
function Dr(t, e) {
|
|
1207
|
+
const s = e ?? Cr();
|
|
1208
|
+
return bt(s), Ur(t, s), s;
|
|
1209
|
+
}
|
|
1210
|
+
function Ur(t, e) {
|
|
1206
1211
|
let s;
|
|
1207
1212
|
for (; (s = t.next()) !== null; )
|
|
1208
1213
|
switch (s.fieldId) {
|
|
1209
|
-
case
|
|
1214
|
+
case dr: {
|
|
1210
1215
|
if (s.isNull) throw new Error();
|
|
1211
1216
|
e.StreamId = s.asString();
|
|
1212
1217
|
break;
|
|
1213
1218
|
}
|
|
1214
|
-
case
|
|
1219
|
+
case Sr: {
|
|
1215
1220
|
if (s.isNull) throw new Error();
|
|
1216
1221
|
e.ClientSessionId = s.asInt32();
|
|
1217
1222
|
break;
|
|
1218
1223
|
}
|
|
1219
|
-
case
|
|
1224
|
+
case yr: {
|
|
1220
1225
|
if (s.isNull) throw new Error();
|
|
1221
1226
|
e.TrackId = s.asInt32();
|
|
1222
1227
|
break;
|
|
1223
1228
|
}
|
|
1224
|
-
case
|
|
1229
|
+
case wr: {
|
|
1225
1230
|
if (s.isNull) throw new Error();
|
|
1226
1231
|
e.Info = Ps(s.asObject());
|
|
1227
1232
|
break;
|
|
1228
1233
|
}
|
|
1229
1234
|
}
|
|
1230
1235
|
}
|
|
1231
|
-
const
|
|
1236
|
+
const Rr = 161083277, mr = 325678206, Lr = 3469892363, Or = 3645544153;
|
|
1232
1237
|
function gr(t) {
|
|
1233
1238
|
const e = {};
|
|
1234
1239
|
return Ft(e), e;
|
|
@@ -1236,177 +1241,177 @@ function gr(t) {
|
|
|
1236
1241
|
function Ft(t) {
|
|
1237
1242
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = dt(), t;
|
|
1238
1243
|
}
|
|
1239
|
-
function
|
|
1244
|
+
function Pr(t, e) {
|
|
1240
1245
|
const s = e ?? gr();
|
|
1241
|
-
return Ft(s),
|
|
1246
|
+
return Ft(s), br(t, s), s;
|
|
1242
1247
|
}
|
|
1243
|
-
function
|
|
1248
|
+
function br(t, e) {
|
|
1244
1249
|
let s;
|
|
1245
1250
|
for (; (s = t.next()) !== null; )
|
|
1246
1251
|
switch (s.fieldId) {
|
|
1247
|
-
case
|
|
1252
|
+
case Rr: {
|
|
1248
1253
|
if (s.isNull) throw new Error();
|
|
1249
1254
|
e.StreamId = s.asString();
|
|
1250
1255
|
break;
|
|
1251
1256
|
}
|
|
1252
|
-
case
|
|
1257
|
+
case mr: {
|
|
1253
1258
|
if (s.isNull) throw new Error();
|
|
1254
1259
|
e.ClientSessionId = s.asInt32();
|
|
1255
1260
|
break;
|
|
1256
1261
|
}
|
|
1257
|
-
case
|
|
1262
|
+
case Lr: {
|
|
1258
1263
|
if (s.isNull) throw new Error();
|
|
1259
1264
|
e.TrackId = s.asInt32();
|
|
1260
1265
|
break;
|
|
1261
1266
|
}
|
|
1262
|
-
case
|
|
1267
|
+
case Or: {
|
|
1263
1268
|
if (s.isNull) throw new Error();
|
|
1264
1269
|
e.Info = fe(s.asObject());
|
|
1265
1270
|
break;
|
|
1266
1271
|
}
|
|
1267
1272
|
}
|
|
1268
1273
|
}
|
|
1269
|
-
const
|
|
1270
|
-
function
|
|
1274
|
+
const Fr = 161083277, pr = 325678206, vr = 3469892363, Mr = 3645544153;
|
|
1275
|
+
function kr(t) {
|
|
1271
1276
|
const e = {};
|
|
1272
1277
|
return pt(e), e;
|
|
1273
1278
|
}
|
|
1274
1279
|
function pt(t) {
|
|
1275
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1276
|
-
}
|
|
1277
|
-
function kr(t, e) {
|
|
1278
|
-
const s = e ?? Mr();
|
|
1279
|
-
return pt(s), Vr(t, s), s;
|
|
1280
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
|
|
1280
1281
|
}
|
|
1281
1282
|
function Vr(t, e) {
|
|
1283
|
+
const s = e ?? kr();
|
|
1284
|
+
return pt(s), Gr(t, s), s;
|
|
1285
|
+
}
|
|
1286
|
+
function Gr(t, e) {
|
|
1282
1287
|
let s;
|
|
1283
1288
|
for (; (s = t.next()) !== null; )
|
|
1284
1289
|
switch (s.fieldId) {
|
|
1285
|
-
case
|
|
1290
|
+
case Fr: {
|
|
1286
1291
|
if (s.isNull) throw new Error();
|
|
1287
1292
|
e.StreamId = s.asString();
|
|
1288
1293
|
break;
|
|
1289
1294
|
}
|
|
1290
|
-
case
|
|
1295
|
+
case pr: {
|
|
1291
1296
|
if (s.isNull) throw new Error();
|
|
1292
1297
|
e.ClientSessionId = s.asInt32();
|
|
1293
1298
|
break;
|
|
1294
1299
|
}
|
|
1295
|
-
case
|
|
1300
|
+
case vr: {
|
|
1296
1301
|
if (s.isNull) throw new Error();
|
|
1297
1302
|
e.TrackId = s.asInt32();
|
|
1298
1303
|
break;
|
|
1299
1304
|
}
|
|
1300
|
-
case
|
|
1305
|
+
case Mr: {
|
|
1301
1306
|
if (s.isNull) throw new Error();
|
|
1302
1307
|
e.Info = Bs(s.asObject());
|
|
1303
1308
|
break;
|
|
1304
1309
|
}
|
|
1305
1310
|
}
|
|
1306
1311
|
}
|
|
1307
|
-
const
|
|
1308
|
-
function
|
|
1312
|
+
const Br = 161083277, xr = 325678206, Hr = 3469892363, Yr = 3645544153;
|
|
1313
|
+
function $r(t) {
|
|
1309
1314
|
const e = {};
|
|
1310
1315
|
return vt(e), e;
|
|
1311
1316
|
}
|
|
1312
1317
|
function vt(t) {
|
|
1313
1318
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ut(), t;
|
|
1314
1319
|
}
|
|
1315
|
-
function $r(t, e) {
|
|
1316
|
-
const s = e ?? Yr();
|
|
1317
|
-
return vt(s), Kr(t, s), s;
|
|
1318
|
-
}
|
|
1319
1320
|
function Kr(t, e) {
|
|
1321
|
+
const s = e ?? $r();
|
|
1322
|
+
return vt(s), jr(t, s), s;
|
|
1323
|
+
}
|
|
1324
|
+
function jr(t, e) {
|
|
1320
1325
|
let s;
|
|
1321
1326
|
for (; (s = t.next()) !== null; )
|
|
1322
1327
|
switch (s.fieldId) {
|
|
1323
|
-
case
|
|
1328
|
+
case Br: {
|
|
1324
1329
|
if (s.isNull) throw new Error();
|
|
1325
1330
|
e.StreamId = s.asString();
|
|
1326
1331
|
break;
|
|
1327
1332
|
}
|
|
1328
|
-
case
|
|
1333
|
+
case xr: {
|
|
1329
1334
|
if (s.isNull) throw new Error();
|
|
1330
1335
|
e.ClientSessionId = s.asInt32();
|
|
1331
1336
|
break;
|
|
1332
1337
|
}
|
|
1333
|
-
case
|
|
1338
|
+
case Hr: {
|
|
1334
1339
|
if (s.isNull) throw new Error();
|
|
1335
1340
|
e.TrackId = s.asInt32();
|
|
1336
1341
|
break;
|
|
1337
1342
|
}
|
|
1338
|
-
case
|
|
1343
|
+
case Yr: {
|
|
1339
1344
|
if (s.isNull) throw new Error();
|
|
1340
1345
|
e.Info = ms(s.asObject());
|
|
1341
1346
|
break;
|
|
1342
1347
|
}
|
|
1343
1348
|
}
|
|
1344
1349
|
}
|
|
1345
|
-
const
|
|
1346
|
-
function
|
|
1350
|
+
const Xr = 1405462580, zr = 2968276160;
|
|
1351
|
+
function Wr(t) {
|
|
1347
1352
|
const e = {};
|
|
1348
1353
|
return Mt(e), e;
|
|
1349
1354
|
}
|
|
1350
1355
|
function Mt(t) {
|
|
1351
1356
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1352
1357
|
}
|
|
1353
|
-
function Wr(t, e) {
|
|
1354
|
-
const s = e ?? zr();
|
|
1355
|
-
return Mt(s), Jr(t, s), s;
|
|
1356
|
-
}
|
|
1357
1358
|
function Jr(t, e) {
|
|
1359
|
+
const s = e ?? Wr();
|
|
1360
|
+
return Mt(s), qr(t, s), s;
|
|
1361
|
+
}
|
|
1362
|
+
function qr(t, e) {
|
|
1358
1363
|
let s;
|
|
1359
1364
|
for (; (s = t.next()) !== null; )
|
|
1360
1365
|
switch (s.fieldId) {
|
|
1361
|
-
case
|
|
1366
|
+
case Xr: {
|
|
1362
1367
|
if (s.isNull) throw new Error();
|
|
1363
1368
|
e.Value = s.asBinary();
|
|
1364
1369
|
break;
|
|
1365
1370
|
}
|
|
1366
|
-
case
|
|
1371
|
+
case zr: {
|
|
1367
1372
|
if (s.isNull) throw new Error();
|
|
1368
1373
|
e.MimeType = s.asString();
|
|
1369
1374
|
break;
|
|
1370
1375
|
}
|
|
1371
1376
|
}
|
|
1372
1377
|
}
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1378
|
+
const Qr = 1, Zr = 2097188, tn = 979822885, en = 2374537704;
|
|
1379
|
+
function sn(t) {
|
|
1375
1380
|
const e = {};
|
|
1376
1381
|
return kt(e), e;
|
|
1377
1382
|
}
|
|
1378
1383
|
function kt(t) {
|
|
1379
1384
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1380
1385
|
}
|
|
1381
|
-
function sn(t, e) {
|
|
1382
|
-
const s = L.create(t);
|
|
1383
|
-
return rn(s, e);
|
|
1384
|
-
}
|
|
1385
1386
|
function rn(t, e) {
|
|
1386
|
-
const s =
|
|
1387
|
-
return
|
|
1387
|
+
const s = L.create(t);
|
|
1388
|
+
return nn(s, e);
|
|
1388
1389
|
}
|
|
1389
1390
|
function nn(t, e) {
|
|
1391
|
+
const s = e ?? sn();
|
|
1392
|
+
return kt(s), on(t, s), s;
|
|
1393
|
+
}
|
|
1394
|
+
function on(t, e) {
|
|
1390
1395
|
let s;
|
|
1391
1396
|
for (; (s = t.next()) !== null; )
|
|
1392
1397
|
switch (s.fieldId) {
|
|
1393
|
-
case
|
|
1398
|
+
case tn: {
|
|
1394
1399
|
if (s.isNull) throw new Error();
|
|
1395
1400
|
e.StyleId = s.asString();
|
|
1396
1401
|
break;
|
|
1397
1402
|
}
|
|
1398
|
-
case
|
|
1403
|
+
case en: {
|
|
1399
1404
|
if (s.isNull) throw new Error();
|
|
1400
|
-
e.Style =
|
|
1405
|
+
e.Style = ln(s.asDictionary());
|
|
1401
1406
|
break;
|
|
1402
1407
|
}
|
|
1403
1408
|
}
|
|
1404
1409
|
}
|
|
1405
|
-
function
|
|
1406
|
-
const s = $(t,
|
|
1407
|
-
return
|
|
1410
|
+
function an(t, e) {
|
|
1411
|
+
const s = $(t, Zr, Qr);
|
|
1412
|
+
return rn(s, e);
|
|
1408
1413
|
}
|
|
1409
|
-
function
|
|
1414
|
+
function ln(t) {
|
|
1410
1415
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1411
1416
|
let s;
|
|
1412
1417
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1415,73 +1420,73 @@ function an(t) {
|
|
|
1415
1420
|
}
|
|
1416
1421
|
return e;
|
|
1417
1422
|
}
|
|
1418
|
-
const
|
|
1419
|
-
function
|
|
1423
|
+
const In = 1, cn = 2097192, En = 2136687806;
|
|
1424
|
+
function _n(t) {
|
|
1420
1425
|
const e = {};
|
|
1421
1426
|
return Vt(e), e;
|
|
1422
1427
|
}
|
|
1423
1428
|
function Vt(t) {
|
|
1424
1429
|
return t.Styles = [], t;
|
|
1425
1430
|
}
|
|
1426
|
-
function _n(t, e) {
|
|
1427
|
-
const s = L.create(t);
|
|
1428
|
-
return fn(s, e);
|
|
1429
|
-
}
|
|
1430
1431
|
function fn(t, e) {
|
|
1431
|
-
const s =
|
|
1432
|
-
return
|
|
1432
|
+
const s = L.create(t);
|
|
1433
|
+
return hn(s, e);
|
|
1433
1434
|
}
|
|
1434
1435
|
function hn(t, e) {
|
|
1436
|
+
const s = e ?? _n();
|
|
1437
|
+
return Vt(s), un(t, s), s;
|
|
1438
|
+
}
|
|
1439
|
+
function un(t, e) {
|
|
1435
1440
|
let s;
|
|
1436
1441
|
for (; (s = t.next()) !== null; )
|
|
1437
1442
|
switch (s.fieldId) {
|
|
1438
|
-
case
|
|
1443
|
+
case En: {
|
|
1439
1444
|
if (s.isNull) throw new Error();
|
|
1440
|
-
e.Styles =
|
|
1445
|
+
e.Styles = Nn(s.asArray());
|
|
1441
1446
|
break;
|
|
1442
1447
|
}
|
|
1443
1448
|
}
|
|
1444
1449
|
}
|
|
1445
|
-
function
|
|
1446
|
-
const s = $(t,
|
|
1447
|
-
return
|
|
1450
|
+
function Tn(t, e) {
|
|
1451
|
+
const s = $(t, cn, In);
|
|
1452
|
+
return fn(s, e);
|
|
1448
1453
|
}
|
|
1449
|
-
function
|
|
1454
|
+
function Nn(t) {
|
|
1450
1455
|
const e = [];
|
|
1451
1456
|
let s;
|
|
1452
1457
|
for (; (s = t.next()) !== null; )
|
|
1453
|
-
e.push(
|
|
1458
|
+
e.push(yn(s.asObject()));
|
|
1454
1459
|
return e;
|
|
1455
1460
|
}
|
|
1456
|
-
const
|
|
1457
|
-
function
|
|
1461
|
+
const An = 979822885, dn = 2374537704;
|
|
1462
|
+
function Sn(t) {
|
|
1458
1463
|
const e = {};
|
|
1459
1464
|
return Gt(e), e;
|
|
1460
1465
|
}
|
|
1461
1466
|
function Gt(t) {
|
|
1462
1467
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1463
1468
|
}
|
|
1464
|
-
function Sn(t, e) {
|
|
1465
|
-
const s = e ?? dn();
|
|
1466
|
-
return Gt(s), yn(t, s), s;
|
|
1467
|
-
}
|
|
1468
1469
|
function yn(t, e) {
|
|
1470
|
+
const s = e ?? Sn();
|
|
1471
|
+
return Gt(s), wn(t, s), s;
|
|
1472
|
+
}
|
|
1473
|
+
function wn(t, e) {
|
|
1469
1474
|
let s;
|
|
1470
1475
|
for (; (s = t.next()) !== null; )
|
|
1471
1476
|
switch (s.fieldId) {
|
|
1472
|
-
case
|
|
1477
|
+
case An: {
|
|
1473
1478
|
if (s.isNull) throw new Error();
|
|
1474
1479
|
e.StyleId = s.asString();
|
|
1475
1480
|
break;
|
|
1476
1481
|
}
|
|
1477
|
-
case
|
|
1482
|
+
case dn: {
|
|
1478
1483
|
if (s.isNull) throw new Error();
|
|
1479
|
-
e.Style =
|
|
1484
|
+
e.Style = Cn(s.asDictionary());
|
|
1480
1485
|
break;
|
|
1481
1486
|
}
|
|
1482
1487
|
}
|
|
1483
1488
|
}
|
|
1484
|
-
function
|
|
1489
|
+
function Cn(t) {
|
|
1485
1490
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1486
1491
|
let s;
|
|
1487
1492
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1490,86 +1495,86 @@ function wn(t) {
|
|
|
1490
1495
|
}
|
|
1491
1496
|
return e;
|
|
1492
1497
|
}
|
|
1493
|
-
const
|
|
1494
|
-
function
|
|
1498
|
+
const Dn = 1, Un = 2097193, Rn = 1415642792;
|
|
1499
|
+
function mn(t) {
|
|
1495
1500
|
const e = {};
|
|
1496
1501
|
return Bt(e), e;
|
|
1497
1502
|
}
|
|
1498
1503
|
function Bt(t) {
|
|
1499
1504
|
return t.StyleIds = [], t;
|
|
1500
1505
|
}
|
|
1501
|
-
function
|
|
1506
|
+
function Ln(t, e) {
|
|
1502
1507
|
const s = L.create(t);
|
|
1503
|
-
return
|
|
1508
|
+
return On(s, e);
|
|
1504
1509
|
}
|
|
1505
|
-
function
|
|
1506
|
-
const s = e ??
|
|
1510
|
+
function On(t, e) {
|
|
1511
|
+
const s = e ?? mn();
|
|
1507
1512
|
return Bt(s), gn(t, s), s;
|
|
1508
1513
|
}
|
|
1509
1514
|
function gn(t, e) {
|
|
1510
1515
|
let s;
|
|
1511
1516
|
for (; (s = t.next()) !== null; )
|
|
1512
1517
|
switch (s.fieldId) {
|
|
1513
|
-
case
|
|
1518
|
+
case Rn: {
|
|
1514
1519
|
if (s.isNull) throw new Error();
|
|
1515
|
-
e.StyleIds =
|
|
1520
|
+
e.StyleIds = bn(s.asArray());
|
|
1516
1521
|
break;
|
|
1517
1522
|
}
|
|
1518
1523
|
}
|
|
1519
1524
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const s = $(t,
|
|
1522
|
-
return
|
|
1525
|
+
function Pn(t, e) {
|
|
1526
|
+
const s = $(t, Un, Dn);
|
|
1527
|
+
return Ln(s, e);
|
|
1523
1528
|
}
|
|
1524
|
-
function
|
|
1529
|
+
function bn(t) {
|
|
1525
1530
|
const e = [];
|
|
1526
1531
|
let s;
|
|
1527
1532
|
for (; (s = t.next()) !== null; )
|
|
1528
1533
|
e.push(s.asString());
|
|
1529
1534
|
return e;
|
|
1530
1535
|
}
|
|
1531
|
-
const
|
|
1532
|
-
function
|
|
1536
|
+
const Fn = 1, pn = 2097190, vn = 425183262, Mn = 653781469;
|
|
1537
|
+
function kn(t) {
|
|
1533
1538
|
const e = {};
|
|
1534
1539
|
return xt(e), e;
|
|
1535
1540
|
}
|
|
1536
1541
|
function xt(t) {
|
|
1537
1542
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1538
1543
|
}
|
|
1539
|
-
function kn(t, e) {
|
|
1540
|
-
const s = L.create(t);
|
|
1541
|
-
return Vn(s, e);
|
|
1542
|
-
}
|
|
1543
1544
|
function Vn(t, e) {
|
|
1544
|
-
const s =
|
|
1545
|
-
return
|
|
1545
|
+
const s = L.create(t);
|
|
1546
|
+
return Gn(s, e);
|
|
1546
1547
|
}
|
|
1547
1548
|
function Gn(t, e) {
|
|
1549
|
+
const s = e ?? kn();
|
|
1550
|
+
return xt(s), Bn(t, s), s;
|
|
1551
|
+
}
|
|
1552
|
+
function Bn(t, e) {
|
|
1548
1553
|
let s;
|
|
1549
1554
|
for (; (s = t.next()) !== null; )
|
|
1550
1555
|
switch (s.fieldId) {
|
|
1551
|
-
case
|
|
1556
|
+
case vn: {
|
|
1552
1557
|
if (s.isNull) throw new Error();
|
|
1553
1558
|
e.Json = s.asString();
|
|
1554
1559
|
break;
|
|
1555
1560
|
}
|
|
1556
|
-
case
|
|
1561
|
+
case Mn: {
|
|
1557
1562
|
if (s.isNull) throw new Error();
|
|
1558
|
-
e.Payloads =
|
|
1563
|
+
e.Payloads = Hn(s.asDictionary());
|
|
1559
1564
|
break;
|
|
1560
1565
|
}
|
|
1561
1566
|
}
|
|
1562
1567
|
}
|
|
1563
|
-
function
|
|
1564
|
-
const s = $(t,
|
|
1565
|
-
return
|
|
1568
|
+
function xn(t, e) {
|
|
1569
|
+
const s = $(t, pn, Fn);
|
|
1570
|
+
return Vn(s, e);
|
|
1566
1571
|
}
|
|
1567
|
-
function
|
|
1572
|
+
function Hn(t) {
|
|
1568
1573
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1569
1574
|
let s;
|
|
1570
1575
|
for (; (s = t.next()) !== null; ) {
|
|
1571
1576
|
const r = s.key.asString();
|
|
1572
|
-
e[r] =
|
|
1577
|
+
e[r] = Jr(s.value.asObject());
|
|
1573
1578
|
}
|
|
1574
1579
|
return e;
|
|
1575
1580
|
}
|
|
@@ -1629,7 +1634,7 @@ function ot(t, e) {
|
|
|
1629
1634
|
styleIds: l ?? []
|
|
1630
1635
|
};
|
|
1631
1636
|
}
|
|
1632
|
-
function
|
|
1637
|
+
function Yn(t, e) {
|
|
1633
1638
|
if (!y(t))
|
|
1634
1639
|
throw new Error(`Invalid text delta at ${e}`);
|
|
1635
1640
|
const s = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1656,7 +1661,7 @@ function Hn(t, e) {
|
|
|
1656
1661
|
insertedText: o
|
|
1657
1662
|
};
|
|
1658
1663
|
}
|
|
1659
|
-
function
|
|
1664
|
+
function $n(t, e) {
|
|
1660
1665
|
if (!y(t))
|
|
1661
1666
|
throw new Error(`Invalid child insert at ${e}`);
|
|
1662
1667
|
const s = t.Index, r = t.Node;
|
|
@@ -1669,7 +1674,7 @@ function Yn(t, e) {
|
|
|
1669
1674
|
node: ot(r, `${e}.node`)
|
|
1670
1675
|
};
|
|
1671
1676
|
}
|
|
1672
|
-
function
|
|
1677
|
+
function Kn(t, e) {
|
|
1673
1678
|
if (!y(t))
|
|
1674
1679
|
throw new Error(`Invalid child move at ${e}`);
|
|
1675
1680
|
const s = t.NodeId, r = t.FromIndex, n = t.ToIndex;
|
|
@@ -1685,7 +1690,7 @@ function $n(t, e) {
|
|
|
1685
1690
|
toIndex: n
|
|
1686
1691
|
};
|
|
1687
1692
|
}
|
|
1688
|
-
function
|
|
1693
|
+
function jn(t, e) {
|
|
1689
1694
|
if (!y(t))
|
|
1690
1695
|
throw new Error(`Invalid child remove at ${e}`);
|
|
1691
1696
|
const s = t.NodeId, r = t.Index;
|
|
@@ -1698,18 +1703,18 @@ function Kn(t, e) {
|
|
|
1698
1703
|
index: r
|
|
1699
1704
|
};
|
|
1700
1705
|
}
|
|
1701
|
-
function
|
|
1706
|
+
function Xn(t, e) {
|
|
1702
1707
|
if (!y(t))
|
|
1703
1708
|
throw new Error(`Invalid node change at ${e}`);
|
|
1704
1709
|
const s = t.nodeId;
|
|
1705
1710
|
if (typeof s != "string" || s.length === 0)
|
|
1706
1711
|
throw new Error(`Invalid node change nodeId at ${e}`);
|
|
1707
1712
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1708
|
-
(c, E) =>
|
|
1713
|
+
(c, E) => $n(c ?? {}, `${e}.inserts[${E}]`)
|
|
1709
1714
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1710
|
-
(c, E) =>
|
|
1715
|
+
(c, E) => Kn(c ?? {}, `${e}.moves[${E}]`)
|
|
1711
1716
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1712
|
-
(c, E) =>
|
|
1717
|
+
(c, E) => jn(c ?? {}, `${e}.removals[${E}]`)
|
|
1713
1718
|
) : void 0;
|
|
1714
1719
|
let o;
|
|
1715
1720
|
if (y(t.changedProps)) {
|
|
@@ -1722,7 +1727,7 @@ function jn(t, e) {
|
|
|
1722
1727
|
}
|
|
1723
1728
|
}
|
|
1724
1729
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1725
|
-
(c, E) =>
|
|
1730
|
+
(c, E) => Yn(c ?? {}, `${e}.textUpdates[${E}]`)
|
|
1726
1731
|
) : void 0, I = t.styleIds, l = I !== void 0 ? Yt(I, e, s, !0) : void 0;
|
|
1727
1732
|
return {
|
|
1728
1733
|
nodeId: s,
|
|
@@ -1734,19 +1739,19 @@ function jn(t, e) {
|
|
|
1734
1739
|
...l !== void 0 ? { styleIds: l } : {}
|
|
1735
1740
|
};
|
|
1736
1741
|
}
|
|
1737
|
-
function
|
|
1742
|
+
function zn(t) {
|
|
1738
1743
|
const e = /* @__PURE__ */ new Map();
|
|
1739
1744
|
for (const [s, r] of Object.entries(t))
|
|
1740
1745
|
e.set(s, r);
|
|
1741
1746
|
return e;
|
|
1742
1747
|
}
|
|
1743
|
-
function
|
|
1748
|
+
function Wn(t, e, s) {
|
|
1744
1749
|
if (!t || typeof t != "object")
|
|
1745
1750
|
throw new D("UI update graph is missing");
|
|
1746
1751
|
const r = ot(t, "graph");
|
|
1747
1752
|
if (r.type !== "root")
|
|
1748
1753
|
throw new D('UI update root element must have type "root"');
|
|
1749
|
-
const n =
|
|
1754
|
+
const n = qn(r.props, e);
|
|
1750
1755
|
return {
|
|
1751
1756
|
type: "full",
|
|
1752
1757
|
version: s,
|
|
@@ -1754,7 +1759,7 @@ function zn(t, e, s) {
|
|
|
1754
1759
|
metadata: n
|
|
1755
1760
|
};
|
|
1756
1761
|
}
|
|
1757
|
-
function
|
|
1762
|
+
function Jn(t, e, s) {
|
|
1758
1763
|
if (!Array.isArray(t))
|
|
1759
1764
|
throw new D("UI diff changes must be an array");
|
|
1760
1765
|
if (!y(e))
|
|
@@ -1763,7 +1768,7 @@ function Wn(t, e, s) {
|
|
|
1763
1768
|
if (typeof r != "string" || r.length === 0)
|
|
1764
1769
|
throw new D("UI diff metadata is missing viewId");
|
|
1765
1770
|
const n = t.map(
|
|
1766
|
-
(E, _) =>
|
|
1771
|
+
(E, _) => Xn(E ?? {}, `changes[${_}]`)
|
|
1767
1772
|
), i = e.optimisticActionId === null || typeof e.optimisticActionId == "string" ? e.optimisticActionId : void 0, o = typeof e.isOptimistic == "boolean" ? e.isOptimistic : void 0, a = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, I = Q(e.optimisticPatch), l = Z(e.optimisticReconcile), c = {
|
|
1768
1773
|
viewId: r,
|
|
1769
1774
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
@@ -1779,7 +1784,7 @@ function Wn(t, e, s) {
|
|
|
1779
1784
|
metadata: c
|
|
1780
1785
|
};
|
|
1781
1786
|
}
|
|
1782
|
-
function
|
|
1787
|
+
function qn(t, e) {
|
|
1783
1788
|
const s = t.viewId;
|
|
1784
1789
|
if (typeof s != "string" || s.length === 0)
|
|
1785
1790
|
throw new D("UI update root is missing viewId");
|
|
@@ -1837,7 +1842,7 @@ class D extends Error {
|
|
|
1837
1842
|
super(e), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
1838
1843
|
}
|
|
1839
1844
|
}
|
|
1840
|
-
function
|
|
1845
|
+
function Qn(t) {
|
|
1841
1846
|
let e;
|
|
1842
1847
|
try {
|
|
1843
1848
|
e = JSON.parse(t.Json);
|
|
@@ -1851,13 +1856,13 @@ function qn(t) {
|
|
|
1851
1856
|
throw new D(`Unknown UI update type: ${String(s)}`);
|
|
1852
1857
|
if (typeof r != "number")
|
|
1853
1858
|
throw new D("UI update version must be a number");
|
|
1854
|
-
const n = s === "full" ?
|
|
1859
|
+
const n = s === "full" ? Wn(e.graph, e.metadata, r) : Jn(e.changes, e.metadata, r), i = t.Payloads ? zn(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1855
1860
|
return {
|
|
1856
1861
|
snapshot: n,
|
|
1857
1862
|
payloads: i
|
|
1858
1863
|
};
|
|
1859
1864
|
}
|
|
1860
|
-
class
|
|
1865
|
+
class Zn {
|
|
1861
1866
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1862
1867
|
cache = /* @__PURE__ */ new Map();
|
|
1863
1868
|
/**
|
|
@@ -1938,7 +1943,7 @@ class Qn {
|
|
|
1938
1943
|
return this.cache.size;
|
|
1939
1944
|
}
|
|
1940
1945
|
}
|
|
1941
|
-
class
|
|
1946
|
+
class ti {
|
|
1942
1947
|
views = /* @__PURE__ */ new Map();
|
|
1943
1948
|
listeners = /* @__PURE__ */ new Set();
|
|
1944
1949
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -1960,7 +1965,7 @@ class Zn {
|
|
|
1960
1965
|
patchesDirty = !0;
|
|
1961
1966
|
payloadsDirty = !0;
|
|
1962
1967
|
// Handler cache for stable event handlers
|
|
1963
|
-
handlerCache = new
|
|
1968
|
+
handlerCache = new Zn();
|
|
1964
1969
|
getSortedPatches(e) {
|
|
1965
1970
|
const s = this.buildPatchCacheKey(e.patches);
|
|
1966
1971
|
if (e.sortedPatchesCacheKey === s && e.sortedPatchesCache)
|
|
@@ -2079,7 +2084,7 @@ class Zn {
|
|
|
2079
2084
|
if (e.upsertOptimisticPatches && e.upsertOptimisticPatches.length > 0)
|
|
2080
2085
|
for (const [_, N] of e.upsertOptimisticPatches) {
|
|
2081
2086
|
const h = l(), w = h.get(_);
|
|
2082
|
-
|
|
2087
|
+
ni(w, N) || (h.set(_, N), r = !0);
|
|
2083
2088
|
}
|
|
2084
2089
|
const c = e.rootViewId ?? this.snapshot.rootViewId;
|
|
2085
2090
|
c !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2206,7 +2211,7 @@ class Zn {
|
|
|
2206
2211
|
}
|
|
2207
2212
|
}
|
|
2208
2213
|
}
|
|
2209
|
-
class
|
|
2214
|
+
class ei {
|
|
2210
2215
|
streams = /* @__PURE__ */ new Map();
|
|
2211
2216
|
listeners = /* @__PURE__ */ new Set();
|
|
2212
2217
|
apply(e, s) {
|
|
@@ -2270,7 +2275,7 @@ class ti {
|
|
|
2270
2275
|
}
|
|
2271
2276
|
getOrCreateStreamEntry(e) {
|
|
2272
2277
|
let s = this.streams.get(e);
|
|
2273
|
-
return s || (s = { store: new
|
|
2278
|
+
return s || (s = { store: new ti() }, this.streams.set(e, s)), s;
|
|
2274
2279
|
}
|
|
2275
2280
|
notify(e) {
|
|
2276
2281
|
for (const s of this.listeners)
|
|
@@ -2289,7 +2294,7 @@ function $t(t, e, s) {
|
|
|
2289
2294
|
const r = e.get(t.id);
|
|
2290
2295
|
let n = t, i = !1;
|
|
2291
2296
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2292
|
-
const f =
|
|
2297
|
+
const f = oi(t, r.textUpdates);
|
|
2293
2298
|
n = f.node, i = f.changed;
|
|
2294
2299
|
}
|
|
2295
2300
|
let o = !1, a = n.props;
|
|
@@ -2360,7 +2365,7 @@ function b(t, e) {
|
|
|
2360
2365
|
b(s, e);
|
|
2361
2366
|
}
|
|
2362
2367
|
const j = [];
|
|
2363
|
-
function
|
|
2368
|
+
function si(t) {
|
|
2364
2369
|
for (; j.length <= t; )
|
|
2365
2370
|
j.push(/* @__PURE__ */ new Map());
|
|
2366
2371
|
return j[t].clear(), j[t];
|
|
@@ -2371,10 +2376,10 @@ function X(t, e, s) {
|
|
|
2371
2376
|
function Kt(t, e, s, r) {
|
|
2372
2377
|
if (t === e)
|
|
2373
2378
|
return;
|
|
2374
|
-
(t.type !== e.type || !
|
|
2379
|
+
(t.type !== e.type || !ri(t.props, e.props) || !Xt(t.styleIds, e.styleIds)) && s.add(e.id);
|
|
2375
2380
|
const i = t.children ?? [], o = e.children ?? [];
|
|
2376
2381
|
if (i !== o) {
|
|
2377
|
-
const a =
|
|
2382
|
+
const a = si(r);
|
|
2378
2383
|
for (const I of i)
|
|
2379
2384
|
a.set(I.id, I);
|
|
2380
2385
|
for (const I of o) {
|
|
@@ -2384,7 +2389,7 @@ function Kt(t, e, s, r) {
|
|
|
2384
2389
|
i.length !== o.length && s.add(e.id);
|
|
2385
2390
|
}
|
|
2386
2391
|
}
|
|
2387
|
-
function
|
|
2392
|
+
function ri(t, e) {
|
|
2388
2393
|
return v(t, e);
|
|
2389
2394
|
}
|
|
2390
2395
|
function jt(t, e) {
|
|
@@ -2400,7 +2405,7 @@ function jt(t, e) {
|
|
|
2400
2405
|
function Xt(t, e) {
|
|
2401
2406
|
return v(t, e);
|
|
2402
2407
|
}
|
|
2403
|
-
function
|
|
2408
|
+
function ni(t, e) {
|
|
2404
2409
|
if (t === e) return !0;
|
|
2405
2410
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2406
2411
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2410,7 +2415,7 @@ function ri(t, e) {
|
|
|
2410
2415
|
}
|
|
2411
2416
|
return !0;
|
|
2412
2417
|
}
|
|
2413
|
-
function
|
|
2418
|
+
function ii(t, e) {
|
|
2414
2419
|
if (e.length === 0)
|
|
2415
2420
|
return t;
|
|
2416
2421
|
const s = [...e].sort((i, o) => i.start - o.start);
|
|
@@ -2418,7 +2423,7 @@ function ni(t, e) {
|
|
|
2418
2423
|
for (const i of s) {
|
|
2419
2424
|
const o = lt(i.start + n, 0, r.length);
|
|
2420
2425
|
if (i.end == null) {
|
|
2421
|
-
const c = r.slice(o), E =
|
|
2426
|
+
const c = r.slice(o), E = ai(c, i.insertedText);
|
|
2422
2427
|
r = r.slice(0, o) + i.insertedText + c.slice(E), n += i.insertedText.length - E;
|
|
2423
2428
|
continue;
|
|
2424
2429
|
}
|
|
@@ -2427,7 +2432,7 @@ function ni(t, e) {
|
|
|
2427
2432
|
}
|
|
2428
2433
|
return r;
|
|
2429
2434
|
}
|
|
2430
|
-
function
|
|
2435
|
+
function oi(t, e, s) {
|
|
2431
2436
|
if (e.length === 0)
|
|
2432
2437
|
return { node: t, changed: !1 };
|
|
2433
2438
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2447,7 +2452,7 @@ function zt(t, e, s) {
|
|
|
2447
2452
|
E ? E.push(c) : l.set(c.propertyName, [c]);
|
|
2448
2453
|
}
|
|
2449
2454
|
for (const [c, E] of l.entries()) {
|
|
2450
|
-
const _ = i[c], h =
|
|
2455
|
+
const _ = i[c], h = ii(typeof _ == "string" ? _ : "", E);
|
|
2451
2456
|
n || (i = k(i), n = !0), i[c] = h;
|
|
2452
2457
|
}
|
|
2453
2458
|
}
|
|
@@ -2476,7 +2481,7 @@ function zt(t, e, s) {
|
|
|
2476
2481
|
function lt(t, e, s) {
|
|
2477
2482
|
return Math.max(e, Math.min(s, t));
|
|
2478
2483
|
}
|
|
2479
|
-
function
|
|
2484
|
+
function ai(t, e) {
|
|
2480
2485
|
const s = Math.min(t.length, e.length);
|
|
2481
2486
|
let r = 0;
|
|
2482
2487
|
for (; r < s && t.charCodeAt(r) === e.charCodeAt(r); )
|
|
@@ -2516,20 +2521,20 @@ function v(t, e) {
|
|
|
2516
2521
|
}
|
|
2517
2522
|
return !1;
|
|
2518
2523
|
}
|
|
2519
|
-
const
|
|
2520
|
-
let Wt =
|
|
2524
|
+
const li = 16, Ii = 50, g = new ei(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2525
|
+
let Wt = li, Jt = Ii, V = [], G = null, B = null, R = 0, z = 0;
|
|
2521
2526
|
const x = /* @__PURE__ */ new Map();
|
|
2522
|
-
function
|
|
2527
|
+
function ci() {
|
|
2523
2528
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2524
2529
|
}
|
|
2525
|
-
function
|
|
2530
|
+
function Ei() {
|
|
2526
2531
|
try {
|
|
2527
2532
|
return crypto.randomUUID();
|
|
2528
2533
|
} catch {
|
|
2529
2534
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2530
2535
|
}
|
|
2531
2536
|
}
|
|
2532
|
-
function
|
|
2537
|
+
function _i(t) {
|
|
2533
2538
|
const e = [];
|
|
2534
2539
|
for (const n of t.views)
|
|
2535
2540
|
e.push(n);
|
|
@@ -2549,7 +2554,7 @@ function Ei(t) {
|
|
|
2549
2554
|
optimisticPatches: r
|
|
2550
2555
|
};
|
|
2551
2556
|
}
|
|
2552
|
-
function
|
|
2557
|
+
function fi(t, e) {
|
|
2553
2558
|
if (t === e) return !0;
|
|
2554
2559
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2555
2560
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2559,9 +2564,9 @@ function _i(t, e) {
|
|
|
2559
2564
|
}
|
|
2560
2565
|
return !0;
|
|
2561
2566
|
}
|
|
2562
|
-
function
|
|
2567
|
+
function hi(t, e, s) {
|
|
2563
2568
|
if (!s || s.version === -1)
|
|
2564
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2569
|
+
return { type: "ReplaceStreamSnapshot", snapshot: _i(e) };
|
|
2565
2570
|
let r, n;
|
|
2566
2571
|
for (const [l, c] of e.views)
|
|
2567
2572
|
s.views.get(l) !== c && (r ??= []).push([l, c]);
|
|
@@ -2575,7 +2580,7 @@ function fi(t, e, s) {
|
|
|
2575
2580
|
let a, I;
|
|
2576
2581
|
for (const [l, c] of e.optimisticPatches) {
|
|
2577
2582
|
const E = s.optimisticPatches.get(l);
|
|
2578
|
-
|
|
2583
|
+
fi(E, c) || (a ??= []).push([l, c.slice()]);
|
|
2579
2584
|
}
|
|
2580
2585
|
for (const l of s.optimisticPatches.keys())
|
|
2581
2586
|
e.optimisticPatches.has(l) || (I ??= []).push(l);
|
|
@@ -2609,8 +2614,8 @@ function It() {
|
|
|
2609
2614
|
for (const [s, r] of x)
|
|
2610
2615
|
t.push({ trackId: s, version: r });
|
|
2611
2616
|
const e = {
|
|
2612
|
-
batchId:
|
|
2613
|
-
createdAtMs:
|
|
2617
|
+
batchId: Ei(),
|
|
2618
|
+
createdAtMs: ci(),
|
|
2614
2619
|
ops: V,
|
|
2615
2620
|
...t.length > 0 ? { acks: t } : {},
|
|
2616
2621
|
stats: { uiMessagesConsumed: R, bytesConsumed: z }
|
|
@@ -2620,29 +2625,29 @@ function It() {
|
|
|
2620
2625
|
function Qt(t) {
|
|
2621
2626
|
return `${t.senderId}_${t.trackId}`;
|
|
2622
2627
|
}
|
|
2623
|
-
function
|
|
2624
|
-
const e =
|
|
2628
|
+
function ui(t) {
|
|
2629
|
+
const e = Er(t), s = /* @__PURE__ */ new Set();
|
|
2625
2630
|
for (const r of Object.values(e.UIStreams ?? {})) {
|
|
2626
2631
|
const n = r.StreamId;
|
|
2627
2632
|
s.add(n);
|
|
2628
2633
|
const i = r.Info?.Category;
|
|
2629
|
-
|
|
2634
|
+
g.getSnapshot(n)?.category !== i && (g.setCategory(n, i), P({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2630
2635
|
}
|
|
2631
|
-
for (const r of
|
|
2632
|
-
s.has(r.streamId) || (
|
|
2636
|
+
for (const r of g.getSnapshots())
|
|
2637
|
+
s.has(r.streamId) || (g.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2633
2638
|
}
|
|
2634
|
-
function
|
|
2635
|
-
const e = et(t), s = Qt(e), r =
|
|
2636
|
-
if ((i === void 0 || n.snapshot.version > i) && (x.set(e.trackId, n.snapshot.version), qt()), !
|
|
2639
|
+
function Ti(t) {
|
|
2640
|
+
const e = et(t), s = Qt(e), r = xn(t), n = Qn(r), i = x.get(e.trackId);
|
|
2641
|
+
if ((i === void 0 || n.snapshot.version > i) && (x.set(e.trackId, n.snapshot.version), qt()), !g.apply(s, n))
|
|
2637
2642
|
return;
|
|
2638
|
-
const a =
|
|
2643
|
+
const a = g.getSnapshot(s);
|
|
2639
2644
|
if (!a)
|
|
2640
2645
|
return;
|
|
2641
2646
|
const I = Y.get(s);
|
|
2642
|
-
Y.set(s, a), P(
|
|
2647
|
+
Y.set(s, a), P(hi(s, a, I));
|
|
2643
2648
|
}
|
|
2644
|
-
function
|
|
2645
|
-
const e =
|
|
2649
|
+
function Ni(t) {
|
|
2650
|
+
const e = an(t);
|
|
2646
2651
|
if (!e.StyleId)
|
|
2647
2652
|
return;
|
|
2648
2653
|
const s = {
|
|
@@ -2652,8 +2657,8 @@ function Ti(t) {
|
|
|
2652
2657
|
}, r = H.get(s.styleId);
|
|
2653
2658
|
r && r.css === s.css && r.common === s.common || (H.set(s.styleId, s), P({ type: "UpsertUiStyle", style: s }));
|
|
2654
2659
|
}
|
|
2655
|
-
function
|
|
2656
|
-
const e =
|
|
2660
|
+
function Ai(t) {
|
|
2661
|
+
const e = Tn(t);
|
|
2657
2662
|
if (e.Styles)
|
|
2658
2663
|
for (const s of e.Styles) {
|
|
2659
2664
|
if (!s.StyleId)
|
|
@@ -2666,45 +2671,45 @@ function Ni(t) {
|
|
|
2666
2671
|
n && n.css === r.css && n.common === r.common || (H.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
|
|
2667
2672
|
}
|
|
2668
2673
|
}
|
|
2669
|
-
function
|
|
2674
|
+
function di(t) {
|
|
2670
2675
|
const e = et(t), s = Qt(e);
|
|
2671
|
-
|
|
2676
|
+
g.clear(s), Y.delete(s), P({ type: "ClearStream", streamId: s });
|
|
2672
2677
|
}
|
|
2673
|
-
function
|
|
2674
|
-
const e =
|
|
2678
|
+
function Si(t) {
|
|
2679
|
+
const e = Pn(t);
|
|
2675
2680
|
if (!(!e.StyleIds || e.StyleIds.length === 0))
|
|
2676
2681
|
for (const s of e.StyleIds)
|
|
2677
2682
|
H.delete(s) && P({ type: "RemoveUiStyle", styleId: s });
|
|
2678
2683
|
}
|
|
2679
|
-
function
|
|
2684
|
+
function yi(t) {
|
|
2680
2685
|
const e = new Uint8Array(t);
|
|
2681
2686
|
z += e.byteLength;
|
|
2682
2687
|
const s = e;
|
|
2683
2688
|
switch (Zt(s)) {
|
|
2684
|
-
case
|
|
2685
|
-
|
|
2689
|
+
case O.CORE_GLOBAL_STATE:
|
|
2690
|
+
ui(s), R++;
|
|
2686
2691
|
return;
|
|
2687
|
-
case
|
|
2692
|
+
case O.UI_UPDATE:
|
|
2688
2693
|
try {
|
|
2689
|
-
|
|
2694
|
+
Ti(s);
|
|
2690
2695
|
} catch (n) {
|
|
2691
2696
|
return n instanceof D, void 0;
|
|
2692
2697
|
} finally {
|
|
2693
2698
|
R++;
|
|
2694
2699
|
}
|
|
2695
2700
|
return;
|
|
2696
|
-
case
|
|
2697
|
-
Ti(s), R++;
|
|
2698
|
-
return;
|
|
2699
|
-
case g.UI_STYLES_BATCH:
|
|
2701
|
+
case O.UI_STYLES:
|
|
2700
2702
|
Ni(s), R++;
|
|
2701
2703
|
return;
|
|
2702
|
-
case
|
|
2703
|
-
di(s), R++;
|
|
2704
|
-
return;
|
|
2705
|
-
case g.ACTION_UI_CLEAR_STREAM:
|
|
2704
|
+
case O.UI_STYLES_BATCH:
|
|
2706
2705
|
Ai(s), R++;
|
|
2707
2706
|
return;
|
|
2707
|
+
case O.UI_STYLES_DELETE:
|
|
2708
|
+
Si(s), R++;
|
|
2709
|
+
return;
|
|
2710
|
+
case O.ACTION_UI_CLEAR_STREAM:
|
|
2711
|
+
di(s), R++;
|
|
2712
|
+
return;
|
|
2708
2713
|
default:
|
|
2709
2714
|
return;
|
|
2710
2715
|
}
|
|
@@ -2719,5 +2724,5 @@ self.addEventListener("message", (t) => {
|
|
|
2719
2724
|
V = [], Y.clear();
|
|
2720
2725
|
return;
|
|
2721
2726
|
}
|
|
2722
|
-
e.type === "protocol" &&
|
|
2727
|
+
e.type === "protocol" && yi(e.message);
|
|
2723
2728
|
});
|