@motiadev/plugin-logs 0.13.0-beta.162-687645 → 0.13.0-beta.162-945354

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/dist/index.js CHANGED
@@ -2,41 +2,13 @@ import { Stream } from "@motiadev/stream-client-browser";
2
2
  import { create } from "zustand";
3
3
  import { Button, Input, LevelDot, Sidebar, Table, TableBody, TableCell, TableRow, cn } from "@motiadev/ui";
4
4
  import { Search, Trash, X } from "lucide-react";
5
+ import { useMemo, useState } from "react";
5
6
  import ReactJson from "react18-json-view";
6
7
  import "react18-json-view/src/dark.css";
7
8
  import "react18-json-view/src/style.css";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
10
 
9
11
  import './index.css';
10
- //#region rolldown:runtime
11
- var __create = Object.create;
12
- var __defProp = Object.defineProperty;
13
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
- var __getOwnPropNames = Object.getOwnPropertyNames;
15
- var __getProtoOf = Object.getPrototypeOf;
16
- var __hasOwnProp = Object.prototype.hasOwnProperty;
17
- var __commonJS = (cb, mod) => function() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __copyProps = (to, from, except, desc) => {
21
- if (from && typeof from === "object" || typeof from === "function") {
22
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
23
- key = keys[i];
24
- if (!__hasOwnProp.call(to, key) && key !== except) {
25
- __defProp(to, key, {
26
- get: ((k) => from[k]).bind(null, key),
27
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
- });
29
- }
30
- }
31
- }
32
- return to;
33
- };
34
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
35
- value: mod,
36
- enumerable: true
37
- }) : target, mod));
38
-
39
- //#endregion
40
12
  //#region src/stores/use-logs-store.ts
41
13
  const useLogsStore = create()((set) => ({
42
14
  logs: [],
@@ -66,775 +38,8 @@ const initLogListener = () => {
66
38
  subscription.onEvent(type, store.addLog);
67
39
  };
68
40
 
69
- //#endregion
70
- //#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js
71
- /**
72
- * @license React
73
- * react.development.js
74
- *
75
- * Copyright (c) Meta Platforms, Inc. and affiliates.
76
- *
77
- * This source code is licensed under the MIT license found in the
78
- * LICENSE file in the root directory of this source tree.
79
- */
80
- var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js": ((exports, module) => {
81
- (function() {
82
- function defineDeprecationWarning(methodName, info) {
83
- Object.defineProperty(Component.prototype, methodName, { get: function() {
84
- console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
85
- } });
86
- }
87
- function getIteratorFn(maybeIterable) {
88
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
89
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
90
- return "function" === typeof maybeIterable ? maybeIterable : null;
91
- }
92
- function warnNoop(publicInstance, callerName) {
93
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
94
- var warningKey = publicInstance + "." + callerName;
95
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, publicInstance), didWarnStateUpdateForUnmountedComponent[warningKey] = !0);
96
- }
97
- function Component(props, context, updater) {
98
- this.props = props;
99
- this.context = context;
100
- this.refs = emptyObject;
101
- this.updater = updater || ReactNoopUpdateQueue;
102
- }
103
- function ComponentDummy() {}
104
- function PureComponent(props, context, updater) {
105
- this.props = props;
106
- this.context = context;
107
- this.refs = emptyObject;
108
- this.updater = updater || ReactNoopUpdateQueue;
109
- }
110
- function noop() {}
111
- function testStringCoercion(value) {
112
- return "" + value;
113
- }
114
- function checkKeyStringCoercion(value) {
115
- try {
116
- testStringCoercion(value);
117
- var JSCompiler_inline_result = !1;
118
- } catch (e) {
119
- JSCompiler_inline_result = !0;
120
- }
121
- if (JSCompiler_inline_result) {
122
- JSCompiler_inline_result = console;
123
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
124
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
125
- JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
126
- return testStringCoercion(value);
127
- }
128
- }
129
- function getComponentNameFromType(type$1) {
130
- if (null == type$1) return null;
131
- if ("function" === typeof type$1) return type$1.$$typeof === REACT_CLIENT_REFERENCE ? null : type$1.displayName || type$1.name || null;
132
- if ("string" === typeof type$1) return type$1;
133
- switch (type$1) {
134
- case REACT_FRAGMENT_TYPE: return "Fragment";
135
- case REACT_PROFILER_TYPE: return "Profiler";
136
- case REACT_STRICT_MODE_TYPE: return "StrictMode";
137
- case REACT_SUSPENSE_TYPE: return "Suspense";
138
- case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
139
- case REACT_ACTIVITY_TYPE: return "Activity";
140
- }
141
- if ("object" === typeof type$1) switch ("number" === typeof type$1.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type$1.$$typeof) {
142
- case REACT_PORTAL_TYPE: return "Portal";
143
- case REACT_CONTEXT_TYPE: return type$1.displayName || "Context";
144
- case REACT_CONSUMER_TYPE: return (type$1._context.displayName || "Context") + ".Consumer";
145
- case REACT_FORWARD_REF_TYPE:
146
- var innerType = type$1.render;
147
- type$1 = type$1.displayName;
148
- type$1 || (type$1 = innerType.displayName || innerType.name || "", type$1 = "" !== type$1 ? "ForwardRef(" + type$1 + ")" : "ForwardRef");
149
- return type$1;
150
- case REACT_MEMO_TYPE: return innerType = type$1.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type$1.type) || "Memo";
151
- case REACT_LAZY_TYPE:
152
- innerType = type$1._payload;
153
- type$1 = type$1._init;
154
- try {
155
- return getComponentNameFromType(type$1(innerType));
156
- } catch (x) {}
157
- }
158
- return null;
159
- }
160
- function getTaskName(type$1) {
161
- if (type$1 === REACT_FRAGMENT_TYPE) return "<>";
162
- if ("object" === typeof type$1 && null !== type$1 && type$1.$$typeof === REACT_LAZY_TYPE) return "<...>";
163
- try {
164
- var name = getComponentNameFromType(type$1);
165
- return name ? "<" + name + ">" : "<...>";
166
- } catch (x) {
167
- return "<...>";
168
- }
169
- }
170
- function getOwner() {
171
- var dispatcher = ReactSharedInternals.A;
172
- return null === dispatcher ? null : dispatcher.getOwner();
173
- }
174
- function UnknownOwner() {
175
- return Error("react-stack-top-frame");
176
- }
177
- function hasValidKey(config) {
178
- if (hasOwnProperty.call(config, "key")) {
179
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
180
- if (getter && getter.isReactWarning) return !1;
181
- }
182
- return void 0 !== config.key;
183
- }
184
- function defineKeyPropWarningGetter(props, displayName) {
185
- function warnAboutAccessingKey() {
186
- specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
187
- }
188
- warnAboutAccessingKey.isReactWarning = !0;
189
- Object.defineProperty(props, "key", {
190
- get: warnAboutAccessingKey,
191
- configurable: !0
192
- });
193
- }
194
- function elementRefGetterWithDeprecationWarning() {
195
- var componentName = getComponentNameFromType(this.type);
196
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
197
- componentName = this.props.ref;
198
- return void 0 !== componentName ? componentName : null;
199
- }
200
- function ReactElement(type$1, key, props, owner, debugStack, debugTask) {
201
- var refProp = props.ref;
202
- type$1 = {
203
- $$typeof: REACT_ELEMENT_TYPE,
204
- type: type$1,
205
- key,
206
- props,
207
- _owner: owner
208
- };
209
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type$1, "ref", {
210
- enumerable: !1,
211
- get: elementRefGetterWithDeprecationWarning
212
- }) : Object.defineProperty(type$1, "ref", {
213
- enumerable: !1,
214
- value: null
215
- });
216
- type$1._store = {};
217
- Object.defineProperty(type$1._store, "validated", {
218
- configurable: !1,
219
- enumerable: !1,
220
- writable: !0,
221
- value: 0
222
- });
223
- Object.defineProperty(type$1, "_debugInfo", {
224
- configurable: !1,
225
- enumerable: !1,
226
- writable: !0,
227
- value: null
228
- });
229
- Object.defineProperty(type$1, "_debugStack", {
230
- configurable: !1,
231
- enumerable: !1,
232
- writable: !0,
233
- value: debugStack
234
- });
235
- Object.defineProperty(type$1, "_debugTask", {
236
- configurable: !1,
237
- enumerable: !1,
238
- writable: !0,
239
- value: debugTask
240
- });
241
- Object.freeze && (Object.freeze(type$1.props), Object.freeze(type$1));
242
- return type$1;
243
- }
244
- function cloneAndReplaceKey(oldElement, newKey) {
245
- newKey = ReactElement(oldElement.type, newKey, oldElement.props, oldElement._owner, oldElement._debugStack, oldElement._debugTask);
246
- oldElement._store && (newKey._store.validated = oldElement._store.validated);
247
- return newKey;
248
- }
249
- function validateChildKeys(node) {
250
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
251
- }
252
- function isValidElement(object) {
253
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
254
- }
255
- function escape(key) {
256
- var escaperLookup = {
257
- "=": "=0",
258
- ":": "=2"
259
- };
260
- return "$" + key.replace(/[=:]/g, function(match) {
261
- return escaperLookup[match];
262
- });
263
- }
264
- function getElementKey(element, index) {
265
- return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
266
- }
267
- function resolveThenable(thenable) {
268
- switch (thenable.status) {
269
- case "fulfilled": return thenable.value;
270
- case "rejected": throw thenable.reason;
271
- default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
272
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
273
- }, function(error) {
274
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
275
- })), thenable.status) {
276
- case "fulfilled": return thenable.value;
277
- case "rejected": throw thenable.reason;
278
- }
279
- }
280
- throw thenable;
281
- }
282
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
283
- var type$1 = typeof children;
284
- if ("undefined" === type$1 || "boolean" === type$1) children = null;
285
- var invokeCallback = !1;
286
- if (null === children) invokeCallback = !0;
287
- else switch (type$1) {
288
- case "bigint":
289
- case "string":
290
- case "number":
291
- invokeCallback = !0;
292
- break;
293
- case "object": switch (children.$$typeof) {
294
- case REACT_ELEMENT_TYPE:
295
- case REACT_PORTAL_TYPE:
296
- invokeCallback = !0;
297
- break;
298
- case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
299
- }
300
- }
301
- if (invokeCallback) {
302
- invokeCallback = children;
303
- callback = callback(invokeCallback);
304
- var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
305
- isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
306
- return c;
307
- })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + childKey), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
308
- return 1;
309
- }
310
- invokeCallback = 0;
311
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
312
- if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type$1 = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type$1, callback);
313
- else if (i = getIteratorFn(children), "function" === typeof i) for (i === children.entries && (didWarnAboutMaps || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0), children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type$1 = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type$1, callback);
314
- else if ("object" === type$1) {
315
- if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
316
- array = String(children);
317
- throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
318
- }
319
- return invokeCallback;
320
- }
321
- function mapChildren(children, func, context) {
322
- if (null == children) return children;
323
- var result = [], count = 0;
324
- mapIntoArray(children, result, "", "", function(child) {
325
- return func.call(context, child, count++);
326
- });
327
- return result;
328
- }
329
- function lazyInitializer(payload) {
330
- if (-1 === payload._status) {
331
- var ioInfo = payload._ioInfo;
332
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
333
- ioInfo = payload._result;
334
- var thenable = ioInfo();
335
- thenable.then(function(moduleObject) {
336
- if (0 === payload._status || -1 === payload._status) {
337
- payload._status = 1;
338
- payload._result = moduleObject;
339
- var _ioInfo = payload._ioInfo;
340
- null != _ioInfo && (_ioInfo.end = performance.now());
341
- void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
342
- }
343
- }, function(error) {
344
- if (0 === payload._status || -1 === payload._status) {
345
- payload._status = 2;
346
- payload._result = error;
347
- var _ioInfo2 = payload._ioInfo;
348
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
349
- void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
350
- }
351
- });
352
- ioInfo = payload._ioInfo;
353
- if (null != ioInfo) {
354
- ioInfo.value = thenable;
355
- var displayName = thenable.displayName;
356
- "string" === typeof displayName && (ioInfo.name = displayName);
357
- }
358
- -1 === payload._status && (payload._status = 0, payload._result = thenable);
359
- }
360
- if (1 === payload._status) return ioInfo = payload._result, void 0 === ioInfo && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", ioInfo), "default" in ioInfo || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", ioInfo), ioInfo.default;
361
- throw payload._result;
362
- }
363
- function resolveDispatcher() {
364
- var dispatcher = ReactSharedInternals.H;
365
- null === dispatcher && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
366
- return dispatcher;
367
- }
368
- function releaseAsyncTransition() {
369
- ReactSharedInternals.asyncTransitions--;
370
- }
371
- function enqueueTask(task) {
372
- if (null === enqueueTaskImpl) try {
373
- var requireString = ("require" + Math.random()).slice(0, 7);
374
- enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
375
- } catch (_err) {
376
- enqueueTaskImpl = function(callback) {
377
- !1 === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = !0, "undefined" === typeof MessageChannel && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
378
- var channel = new MessageChannel();
379
- channel.port1.onmessage = callback;
380
- channel.port2.postMessage(void 0);
381
- };
382
- }
383
- return enqueueTaskImpl(task);
384
- }
385
- function aggregateErrors(errors) {
386
- return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
387
- }
388
- function popActScope(prevActQueue, prevActScopeDepth) {
389
- prevActScopeDepth !== actScopeDepth - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
390
- actScopeDepth = prevActScopeDepth;
391
- }
392
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
393
- var queue = ReactSharedInternals.actQueue;
394
- if (null !== queue) if (0 !== queue.length) try {
395
- flushActQueue(queue);
396
- enqueueTask(function() {
397
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
398
- });
399
- return;
400
- } catch (error) {
401
- ReactSharedInternals.thrownErrors.push(error);
402
- }
403
- else ReactSharedInternals.actQueue = null;
404
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
405
- }
406
- function flushActQueue(queue) {
407
- if (!isFlushing) {
408
- isFlushing = !0;
409
- var i = 0;
410
- try {
411
- for (; i < queue.length; i++) {
412
- var callback = queue[i];
413
- do {
414
- ReactSharedInternals.didUsePromise = !1;
415
- var continuation = callback(!1);
416
- if (null !== continuation) {
417
- if (ReactSharedInternals.didUsePromise) {
418
- queue[i] = callback;
419
- queue.splice(0, i);
420
- return;
421
- }
422
- callback = continuation;
423
- } else break;
424
- } while (1);
425
- }
426
- queue.length = 0;
427
- } catch (error) {
428
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
429
- } finally {
430
- isFlushing = !1;
431
- }
432
- }
433
- }
434
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
435
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
436
- isMounted: function() {
437
- return !1;
438
- },
439
- enqueueForceUpdate: function(publicInstance) {
440
- warnNoop(publicInstance, "forceUpdate");
441
- },
442
- enqueueReplaceState: function(publicInstance) {
443
- warnNoop(publicInstance, "replaceState");
444
- },
445
- enqueueSetState: function(publicInstance) {
446
- warnNoop(publicInstance, "setState");
447
- }
448
- }, assign = Object.assign, emptyObject = {};
449
- Object.freeze(emptyObject);
450
- Component.prototype.isReactComponent = {};
451
- Component.prototype.setState = function(partialState, callback) {
452
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
453
- this.updater.enqueueSetState(this, partialState, callback, "setState");
454
- };
455
- Component.prototype.forceUpdate = function(callback) {
456
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
457
- };
458
- var deprecatedAPIs = {
459
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
460
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
461
- };
462
- for (fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
463
- ComponentDummy.prototype = Component.prototype;
464
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
465
- deprecatedAPIs.constructor = PureComponent;
466
- assign(deprecatedAPIs, Component.prototype);
467
- deprecatedAPIs.isPureReactComponent = !0;
468
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
469
- H: null,
470
- A: null,
471
- T: null,
472
- S: null,
473
- actQueue: null,
474
- asyncTransitions: 0,
475
- isBatchingLegacy: !1,
476
- didScheduleLegacyUpdate: !1,
477
- didUsePromise: !1,
478
- thrownErrors: [],
479
- getCurrentStack: null,
480
- recentlyCreatedOwnerStacks: 0
481
- }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
482
- return null;
483
- };
484
- deprecatedAPIs = { react_stack_bottom_frame: function(callStackForError) {
485
- return callStackForError();
486
- } };
487
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
488
- var didWarnAboutElementRef = {};
489
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(deprecatedAPIs, UnknownOwner)();
490
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
491
- var didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
492
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
493
- var event = new window.ErrorEvent("error", {
494
- bubbles: !0,
495
- cancelable: !0,
496
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
497
- error
498
- });
499
- if (!window.dispatchEvent(event)) return;
500
- } else if ("object" === typeof process && "function" === typeof process.emit) {
501
- process.emit("uncaughtException", error);
502
- return;
503
- }
504
- console.error(error);
505
- }, didWarnAboutMessageChannel = !1, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = !1, isFlushing = !1, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
506
- queueMicrotask(function() {
507
- return queueMicrotask(callback);
508
- });
509
- } : enqueueTask;
510
- deprecatedAPIs = Object.freeze({
511
- __proto__: null,
512
- c: function(size) {
513
- return resolveDispatcher().useMemoCache(size);
514
- }
515
- });
516
- var fnName = {
517
- map: mapChildren,
518
- forEach: function(children, forEachFunc, forEachContext) {
519
- mapChildren(children, function() {
520
- forEachFunc.apply(this, arguments);
521
- }, forEachContext);
522
- },
523
- count: function(children) {
524
- var n = 0;
525
- mapChildren(children, function() {
526
- n++;
527
- });
528
- return n;
529
- },
530
- toArray: function(children) {
531
- return mapChildren(children, function(child) {
532
- return child;
533
- }) || [];
534
- },
535
- only: function(children) {
536
- if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
537
- return children;
538
- }
539
- };
540
- exports.Activity = REACT_ACTIVITY_TYPE;
541
- exports.Children = fnName;
542
- exports.Component = Component;
543
- exports.Fragment = REACT_FRAGMENT_TYPE;
544
- exports.Profiler = REACT_PROFILER_TYPE;
545
- exports.PureComponent = PureComponent;
546
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
547
- exports.Suspense = REACT_SUSPENSE_TYPE;
548
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
549
- exports.__COMPILER_RUNTIME = deprecatedAPIs;
550
- exports.act = function(callback) {
551
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
552
- actScopeDepth++;
553
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = !1;
554
- try {
555
- var result = callback();
556
- } catch (error) {
557
- ReactSharedInternals.thrownErrors.push(error);
558
- }
559
- if (0 < ReactSharedInternals.thrownErrors.length) throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
560
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
561
- var thenable = result;
562
- queueSeveralMicrotasks(function() {
563
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
564
- });
565
- return { then: function(resolve, reject) {
566
- didAwaitActCall = !0;
567
- thenable.then(function(returnValue) {
568
- popActScope(prevActQueue, prevActScopeDepth);
569
- if (0 === prevActScopeDepth) {
570
- try {
571
- flushActQueue(queue), enqueueTask(function() {
572
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
573
- });
574
- } catch (error$0) {
575
- ReactSharedInternals.thrownErrors.push(error$0);
576
- }
577
- if (0 < ReactSharedInternals.thrownErrors.length) {
578
- var _thrownError = aggregateErrors(ReactSharedInternals.thrownErrors);
579
- ReactSharedInternals.thrownErrors.length = 0;
580
- reject(_thrownError);
581
- }
582
- } else resolve(returnValue);
583
- }, function(error) {
584
- popActScope(prevActQueue, prevActScopeDepth);
585
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
586
- });
587
- } };
588
- }
589
- var returnValue$jscomp$0 = result;
590
- popActScope(prevActQueue, prevActScopeDepth);
591
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
592
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
593
- }), ReactSharedInternals.actQueue = null);
594
- if (0 < ReactSharedInternals.thrownErrors.length) throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
595
- return { then: function(resolve, reject) {
596
- didAwaitActCall = !0;
597
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
598
- return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve, reject);
599
- })) : resolve(returnValue$jscomp$0);
600
- } };
601
- };
602
- exports.cache = function(fn) {
603
- return function() {
604
- return fn.apply(null, arguments);
605
- };
606
- };
607
- exports.cacheSignal = function() {
608
- return null;
609
- };
610
- exports.captureOwnerStack = function() {
611
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
612
- return null === getCurrentStack ? null : getCurrentStack();
613
- };
614
- exports.cloneElement = function(element, config, children) {
615
- if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
616
- var props = assign({}, element.props), key = element.key, owner = element._owner;
617
- if (null != config) {
618
- var JSCompiler_inline_result;
619
- a: {
620
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config, "ref").get) && JSCompiler_inline_result.isReactWarning) {
621
- JSCompiler_inline_result = !1;
622
- break a;
623
- }
624
- JSCompiler_inline_result = void 0 !== config.ref;
625
- }
626
- JSCompiler_inline_result && (owner = getOwner());
627
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
628
- for (propName in config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
629
- }
630
- var propName = arguments.length - 2;
631
- if (1 === propName) props.children = children;
632
- else if (1 < propName) {
633
- JSCompiler_inline_result = Array(propName);
634
- for (var i = 0; i < propName; i++) JSCompiler_inline_result[i] = arguments[i + 2];
635
- props.children = JSCompiler_inline_result;
636
- }
637
- props = ReactElement(element.type, key, props, owner, element._debugStack, element._debugTask);
638
- for (key = 2; key < arguments.length; key++) validateChildKeys(arguments[key]);
639
- return props;
640
- };
641
- exports.createContext = function(defaultValue) {
642
- defaultValue = {
643
- $$typeof: REACT_CONTEXT_TYPE,
644
- _currentValue: defaultValue,
645
- _currentValue2: defaultValue,
646
- _threadCount: 0,
647
- Provider: null,
648
- Consumer: null
649
- };
650
- defaultValue.Provider = defaultValue;
651
- defaultValue.Consumer = {
652
- $$typeof: REACT_CONSUMER_TYPE,
653
- _context: defaultValue
654
- };
655
- defaultValue._currentRenderer = null;
656
- defaultValue._currentRenderer2 = null;
657
- return defaultValue;
658
- };
659
- exports.createElement = function(type$1, config, children) {
660
- for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i]);
661
- i = {};
662
- var key = null;
663
- if (null != config) for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
664
- var childrenLength = arguments.length - 2;
665
- if (1 === childrenLength) i.children = children;
666
- else if (1 < childrenLength) {
667
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++) childArray[_i] = arguments[_i + 2];
668
- Object.freeze && Object.freeze(childArray);
669
- i.children = childArray;
670
- }
671
- if (type$1 && type$1.defaultProps) for (propName in childrenLength = type$1.defaultProps, childrenLength) void 0 === i[propName] && (i[propName] = childrenLength[propName]);
672
- key && defineKeyPropWarningGetter(i, "function" === typeof type$1 ? type$1.displayName || type$1.name || "Unknown" : type$1);
673
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
674
- return ReactElement(type$1, key, i, getOwner(), propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, propName ? createTask(getTaskName(type$1)) : unknownOwnerDebugTask);
675
- };
676
- exports.createRef = function() {
677
- var refObject = { current: null };
678
- Object.seal(refObject);
679
- return refObject;
680
- };
681
- exports.forwardRef = function(render) {
682
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : "function" !== typeof render ? console.error("forwardRef requires a render function but was given %s.", null === render ? "null" : typeof render) : 0 !== render.length && 2 !== render.length && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
683
- null != render && null != render.defaultProps && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
684
- var elementType = {
685
- $$typeof: REACT_FORWARD_REF_TYPE,
686
- render
687
- }, ownName;
688
- Object.defineProperty(elementType, "displayName", {
689
- enumerable: !1,
690
- configurable: !0,
691
- get: function() {
692
- return ownName;
693
- },
694
- set: function(name) {
695
- ownName = name;
696
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
697
- }
698
- });
699
- return elementType;
700
- };
701
- exports.isValidElement = isValidElement;
702
- exports.lazy = function(ctor) {
703
- ctor = {
704
- _status: -1,
705
- _result: ctor
706
- };
707
- var lazyType = {
708
- $$typeof: REACT_LAZY_TYPE,
709
- _payload: ctor,
710
- _init: lazyInitializer
711
- }, ioInfo = {
712
- name: "lazy",
713
- start: -1,
714
- end: -1,
715
- value: null,
716
- owner: null,
717
- debugStack: Error("react-stack-top-frame"),
718
- debugTask: console.createTask ? console.createTask("lazy()") : null
719
- };
720
- ctor._ioInfo = ioInfo;
721
- lazyType._debugInfo = [{ awaited: ioInfo }];
722
- return lazyType;
723
- };
724
- exports.memo = function(type$1, compare) {
725
- type$1 ?? console.error("memo: The first argument must be a component. Instead received: %s", null === type$1 ? "null" : typeof type$1);
726
- compare = {
727
- $$typeof: REACT_MEMO_TYPE,
728
- type: type$1,
729
- compare: void 0 === compare ? null : compare
730
- };
731
- var ownName;
732
- Object.defineProperty(compare, "displayName", {
733
- enumerable: !1,
734
- configurable: !0,
735
- get: function() {
736
- return ownName;
737
- },
738
- set: function(name) {
739
- ownName = name;
740
- type$1.name || type$1.displayName || (Object.defineProperty(type$1, "name", { value: name }), type$1.displayName = name);
741
- }
742
- });
743
- return compare;
744
- };
745
- exports.startTransition = function(scope) {
746
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
747
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
748
- ReactSharedInternals.T = currentTransition;
749
- try {
750
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
751
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
752
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
753
- } catch (error) {
754
- reportGlobalError(error);
755
- } finally {
756
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
757
- }
758
- };
759
- exports.unstable_useCacheRefresh = function() {
760
- return resolveDispatcher().useCacheRefresh();
761
- };
762
- exports.use = function(usable) {
763
- return resolveDispatcher().use(usable);
764
- };
765
- exports.useActionState = function(action, initialState, permalink) {
766
- return resolveDispatcher().useActionState(action, initialState, permalink);
767
- };
768
- exports.useCallback = function(callback, deps) {
769
- return resolveDispatcher().useCallback(callback, deps);
770
- };
771
- exports.useContext = function(Context) {
772
- var dispatcher = resolveDispatcher();
773
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?");
774
- return dispatcher.useContext(Context);
775
- };
776
- exports.useDebugValue = function(value, formatterFn) {
777
- return resolveDispatcher().useDebugValue(value, formatterFn);
778
- };
779
- exports.useDeferredValue = function(value, initialValue) {
780
- return resolveDispatcher().useDeferredValue(value, initialValue);
781
- };
782
- exports.useEffect = function(create$1, deps) {
783
- create$1 ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
784
- return resolveDispatcher().useEffect(create$1, deps);
785
- };
786
- exports.useEffectEvent = function(callback) {
787
- return resolveDispatcher().useEffectEvent(callback);
788
- };
789
- exports.useId = function() {
790
- return resolveDispatcher().useId();
791
- };
792
- exports.useImperativeHandle = function(ref, create$1, deps) {
793
- return resolveDispatcher().useImperativeHandle(ref, create$1, deps);
794
- };
795
- exports.useInsertionEffect = function(create$1, deps) {
796
- create$1 ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
797
- return resolveDispatcher().useInsertionEffect(create$1, deps);
798
- };
799
- exports.useLayoutEffect = function(create$1, deps) {
800
- create$1 ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
801
- return resolveDispatcher().useLayoutEffect(create$1, deps);
802
- };
803
- exports.useMemo = function(create$1, deps) {
804
- return resolveDispatcher().useMemo(create$1, deps);
805
- };
806
- exports.useOptimistic = function(passthrough, reducer) {
807
- return resolveDispatcher().useOptimistic(passthrough, reducer);
808
- };
809
- exports.useReducer = function(reducer, initialArg, init) {
810
- return resolveDispatcher().useReducer(reducer, initialArg, init);
811
- };
812
- exports.useRef = function(initialValue) {
813
- return resolveDispatcher().useRef(initialValue);
814
- };
815
- exports.useState = function(initialState) {
816
- return resolveDispatcher().useState(initialState);
817
- };
818
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
819
- return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
820
- };
821
- exports.useTransition = function() {
822
- return resolveDispatcher().useTransition();
823
- };
824
- exports.version = "19.2.0";
825
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
826
- })();
827
- }) });
828
-
829
- //#endregion
830
- //#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js
831
- var require_react = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js": ((exports, module) => {
832
- module.exports = require_react_development();
833
- }) });
834
-
835
41
  //#endregion
836
42
  //#region src/utils/format-timestamp.ts
837
- var import_react = /* @__PURE__ */ __toESM(require_react());
838
43
  const formatTimestamp = (time) => {
839
44
  const date = new Date(Number(time));
840
45
  return `${date.toLocaleDateString("en-US", {
@@ -849,215 +54,8 @@ const formatTimestamp = (time) => {
849
54
  })}.${date.getMilliseconds().toString().padStart(3, "0")}`;
850
55
  };
851
56
 
852
- //#endregion
853
- //#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js
854
- /**
855
- * @license React
856
- * react-jsx-runtime.development.js
857
- *
858
- * Copyright (c) Meta Platforms, Inc. and affiliates.
859
- *
860
- * This source code is licensed under the MIT license found in the
861
- * LICENSE file in the root directory of this source tree.
862
- */
863
- var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js": ((exports) => {
864
- (function() {
865
- function getComponentNameFromType(type$1) {
866
- if (null == type$1) return null;
867
- if ("function" === typeof type$1) return type$1.$$typeof === REACT_CLIENT_REFERENCE ? null : type$1.displayName || type$1.name || null;
868
- if ("string" === typeof type$1) return type$1;
869
- switch (type$1) {
870
- case REACT_FRAGMENT_TYPE: return "Fragment";
871
- case REACT_PROFILER_TYPE: return "Profiler";
872
- case REACT_STRICT_MODE_TYPE: return "StrictMode";
873
- case REACT_SUSPENSE_TYPE: return "Suspense";
874
- case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
875
- case REACT_ACTIVITY_TYPE: return "Activity";
876
- }
877
- if ("object" === typeof type$1) switch ("number" === typeof type$1.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type$1.$$typeof) {
878
- case REACT_PORTAL_TYPE: return "Portal";
879
- case REACT_CONTEXT_TYPE: return type$1.displayName || "Context";
880
- case REACT_CONSUMER_TYPE: return (type$1._context.displayName || "Context") + ".Consumer";
881
- case REACT_FORWARD_REF_TYPE:
882
- var innerType = type$1.render;
883
- type$1 = type$1.displayName;
884
- type$1 || (type$1 = innerType.displayName || innerType.name || "", type$1 = "" !== type$1 ? "ForwardRef(" + type$1 + ")" : "ForwardRef");
885
- return type$1;
886
- case REACT_MEMO_TYPE: return innerType = type$1.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type$1.type) || "Memo";
887
- case REACT_LAZY_TYPE:
888
- innerType = type$1._payload;
889
- type$1 = type$1._init;
890
- try {
891
- return getComponentNameFromType(type$1(innerType));
892
- } catch (x) {}
893
- }
894
- return null;
895
- }
896
- function testStringCoercion(value) {
897
- return "" + value;
898
- }
899
- function checkKeyStringCoercion(value) {
900
- try {
901
- testStringCoercion(value);
902
- var JSCompiler_inline_result = !1;
903
- } catch (e) {
904
- JSCompiler_inline_result = !0;
905
- }
906
- if (JSCompiler_inline_result) {
907
- JSCompiler_inline_result = console;
908
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
909
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
910
- JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
911
- return testStringCoercion(value);
912
- }
913
- }
914
- function getTaskName(type$1) {
915
- if (type$1 === REACT_FRAGMENT_TYPE) return "<>";
916
- if ("object" === typeof type$1 && null !== type$1 && type$1.$$typeof === REACT_LAZY_TYPE) return "<...>";
917
- try {
918
- var name = getComponentNameFromType(type$1);
919
- return name ? "<" + name + ">" : "<...>";
920
- } catch (x) {
921
- return "<...>";
922
- }
923
- }
924
- function getOwner() {
925
- var dispatcher = ReactSharedInternals.A;
926
- return null === dispatcher ? null : dispatcher.getOwner();
927
- }
928
- function UnknownOwner() {
929
- return Error("react-stack-top-frame");
930
- }
931
- function hasValidKey(config) {
932
- if (hasOwnProperty.call(config, "key")) {
933
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
934
- if (getter && getter.isReactWarning) return !1;
935
- }
936
- return void 0 !== config.key;
937
- }
938
- function defineKeyPropWarningGetter(props, displayName) {
939
- function warnAboutAccessingKey() {
940
- specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
941
- }
942
- warnAboutAccessingKey.isReactWarning = !0;
943
- Object.defineProperty(props, "key", {
944
- get: warnAboutAccessingKey,
945
- configurable: !0
946
- });
947
- }
948
- function elementRefGetterWithDeprecationWarning() {
949
- var componentName = getComponentNameFromType(this.type);
950
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
951
- componentName = this.props.ref;
952
- return void 0 !== componentName ? componentName : null;
953
- }
954
- function ReactElement(type$1, key, props, owner, debugStack, debugTask) {
955
- var refProp = props.ref;
956
- type$1 = {
957
- $$typeof: REACT_ELEMENT_TYPE,
958
- type: type$1,
959
- key,
960
- props,
961
- _owner: owner
962
- };
963
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type$1, "ref", {
964
- enumerable: !1,
965
- get: elementRefGetterWithDeprecationWarning
966
- }) : Object.defineProperty(type$1, "ref", {
967
- enumerable: !1,
968
- value: null
969
- });
970
- type$1._store = {};
971
- Object.defineProperty(type$1._store, "validated", {
972
- configurable: !1,
973
- enumerable: !1,
974
- writable: !0,
975
- value: 0
976
- });
977
- Object.defineProperty(type$1, "_debugInfo", {
978
- configurable: !1,
979
- enumerable: !1,
980
- writable: !0,
981
- value: null
982
- });
983
- Object.defineProperty(type$1, "_debugStack", {
984
- configurable: !1,
985
- enumerable: !1,
986
- writable: !0,
987
- value: debugStack
988
- });
989
- Object.defineProperty(type$1, "_debugTask", {
990
- configurable: !1,
991
- enumerable: !1,
992
- writable: !0,
993
- value: debugTask
994
- });
995
- Object.freeze && (Object.freeze(type$1.props), Object.freeze(type$1));
996
- return type$1;
997
- }
998
- function jsxDEVImpl(type$1, config, maybeKey, isStaticChildren, debugStack, debugTask) {
999
- var children = config.children;
1000
- if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
1001
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
1002
- Object.freeze && Object.freeze(children);
1003
- } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1004
- else validateChildKeys(children);
1005
- if (hasOwnProperty.call(config, "key")) {
1006
- children = getComponentNameFromType(type$1);
1007
- var keys = Object.keys(config).filter(function(k) {
1008
- return "key" !== k;
1009
- });
1010
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1011
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
1012
- }
1013
- children = null;
1014
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1015
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1016
- if ("key" in config) {
1017
- maybeKey = {};
1018
- for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
1019
- } else maybeKey = config;
1020
- children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type$1 ? type$1.displayName || type$1.name || "Unknown" : type$1);
1021
- return ReactElement(type$1, children, maybeKey, getOwner(), debugStack, debugTask);
1022
- }
1023
- function validateChildKeys(node) {
1024
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
1025
- }
1026
- function isValidElement(object) {
1027
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
1028
- }
1029
- var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1030
- return null;
1031
- };
1032
- React = { react_stack_bottom_frame: function(callStackForError) {
1033
- return callStackForError();
1034
- } };
1035
- var specialPropKeyWarningShown;
1036
- var didWarnAboutElementRef = {};
1037
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
1038
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1039
- var didWarnAboutKeySpread = {};
1040
- exports.Fragment = REACT_FRAGMENT_TYPE;
1041
- exports.jsx = function(type$1, config, maybeKey) {
1042
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1043
- return jsxDEVImpl(type$1, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type$1)) : unknownOwnerDebugTask);
1044
- };
1045
- exports.jsxs = function(type$1, config, maybeKey) {
1046
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1047
- return jsxDEVImpl(type$1, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type$1)) : unknownOwnerDebugTask);
1048
- };
1049
- })();
1050
- }) });
1051
-
1052
- //#endregion
1053
- //#region ../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js
1054
- var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js": ((exports, module) => {
1055
- module.exports = require_react_jsx_runtime_development();
1056
- }) });
1057
-
1058
57
  //#endregion
1059
58
  //#region src/components/log-detail.tsx
1060
- var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
1061
59
  const defaultProps = [
1062
60
  "id",
1063
61
  "msg",
@@ -1068,8 +66,8 @@ const defaultProps = [
1068
66
  "traceId"
1069
67
  ];
1070
68
  const LogDetail = ({ log, onClose }) => {
1071
- const [hasOtherProps, setHasOtherProps] = (0, import_react.useState)(false);
1072
- const otherPropsObject = (0, import_react.useMemo)(() => {
69
+ const [hasOtherProps, setHasOtherProps] = useState(false);
70
+ const otherPropsObject = useMemo(() => {
1073
71
  if (!log) return null;
1074
72
  const otherProps = Object.keys(log ?? {}).filter((key) => !defaultProps.includes(key));
1075
73
  setHasOtherProps(otherProps.length > 0);
@@ -1079,21 +77,21 @@ const LogDetail = ({ log, onClose }) => {
1079
77
  }, {});
1080
78
  }, [log]);
1081
79
  if (!log) return null;
1082
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sidebar, {
80
+ return /* @__PURE__ */ jsx(Sidebar, {
1083
81
  onClose,
1084
82
  title: "Logs Details",
1085
83
  subtitle: "Details including custom properties",
1086
84
  actions: [{
1087
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, {}),
85
+ icon: /* @__PURE__ */ jsx(X, {}),
1088
86
  onClick: onClose,
1089
87
  label: "Close"
1090
88
  }],
1091
89
  details: [
1092
90
  {
1093
91
  label: "Level",
1094
- value: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
92
+ value: /* @__PURE__ */ jsxs("div", {
1095
93
  className: "flex items-center gap-2",
1096
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LevelDot, { level: log.level }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
94
+ children: [/* @__PURE__ */ jsx(LevelDot, { level: log.level }), /* @__PURE__ */ jsx("div", {
1097
95
  className: "capitalize",
1098
96
  children: log.level
1099
97
  })]
@@ -1116,7 +114,7 @@ const LogDetail = ({ log, onClose }) => {
1116
114
  value: log.traceId
1117
115
  }
1118
116
  ],
1119
- children: hasOtherProps && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReactJson, {
117
+ children: hasOtherProps && /* @__PURE__ */ jsx(ReactJson, {
1120
118
  src: otherPropsObject,
1121
119
  theme: "default",
1122
120
  enableClipboard: true
@@ -1131,44 +129,44 @@ const LogsPage = () => {
1131
129
  const resetLogs = useLogsStore((state) => state.resetLogs);
1132
130
  const selectedLogId = useLogsStore((state) => state.selectedLogId);
1133
131
  const selectLogId = useLogsStore((state) => state.selectLogId);
1134
- const selectedLog = (0, import_react.useMemo)(() => selectedLogId ? logs.find((log) => log.id === selectedLogId) : void 0, [logs, selectedLogId]);
1135
- const [search, setSearch] = (0, import_react.useState)("");
1136
- const filteredLogs = (0, import_react.useMemo)(() => {
132
+ const selectedLog = useMemo(() => selectedLogId ? logs.find((log) => log.id === selectedLogId) : void 0, [logs, selectedLogId]);
133
+ const [search, setSearch] = useState("");
134
+ const filteredLogs = useMemo(() => {
1137
135
  return logs.filter((log) => {
1138
136
  return log.msg.toLowerCase().includes(search.toLowerCase()) || log.traceId.toLowerCase().includes(search.toLowerCase()) || log.step.toLowerCase().includes(search.toLowerCase());
1139
137
  });
1140
138
  }, [logs, search]);
1141
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
139
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
1142
140
  className: "grid grid-rows-[auto_1fr] h-full",
1143
141
  "data-testid": "logs-container",
1144
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
142
+ children: [/* @__PURE__ */ jsxs("div", {
1145
143
  className: "flex p-2 border-b gap-2",
1146
144
  "data-testid": "logs-search-container",
1147
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
145
+ children: [/* @__PURE__ */ jsxs("div", {
1148
146
  className: "flex-1 relative",
1149
147
  children: [
1150
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
148
+ /* @__PURE__ */ jsx(Input, {
1151
149
  variant: "shade",
1152
150
  value: search,
1153
151
  onChange: (e) => setSearch(e.target.value),
1154
152
  className: "px-9! font-medium",
1155
153
  placeholder: "Search by Trace ID or Message"
1156
154
  }),
1157
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
1158
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, {
155
+ /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
156
+ /* @__PURE__ */ jsx(X, {
1159
157
  className: "cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",
1160
158
  onClick: () => setSearch("")
1161
159
  })
1162
160
  ]
1163
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button, {
161
+ }), /* @__PURE__ */ jsxs(Button, {
1164
162
  variant: "default",
1165
163
  onClick: resetLogs,
1166
164
  className: "h-[34px]",
1167
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash, {}), " Clear"]
165
+ children: [/* @__PURE__ */ jsx(Trash, {}), " Clear"]
1168
166
  })]
1169
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Table, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, {
167
+ }), /* @__PURE__ */ jsx(Table, { children: /* @__PURE__ */ jsx(TableBody, {
1170
168
  className: "font-mono font-medium",
1171
- children: filteredLogs.map((log, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
169
+ children: filteredLogs.map((log, index) => /* @__PURE__ */ jsxs(TableRow, {
1172
170
  "data-testid": "log-row",
1173
171
  className: cn("font-mono font-semibold cursor-pointer border-0", {
1174
172
  "bg-muted-foreground/10 hover:bg-muted-foreground/20": selectedLogId === log.id,
@@ -1176,24 +174,24 @@ const LogsPage = () => {
1176
174
  }),
1177
175
  onClick: () => selectLogId(log.id),
1178
176
  children: [
1179
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableCell, {
177
+ /* @__PURE__ */ jsxs(TableCell, {
1180
178
  "data-testid": `time-${index}`,
1181
179
  className: "whitespace-nowrap flex items-center gap-2 text-muted-foreground",
1182
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LevelDot, { level: log.level }), formatTimestamp(log.time)]
180
+ children: [/* @__PURE__ */ jsx(LevelDot, { level: log.level }), formatTimestamp(log.time)]
1183
181
  }),
1184
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
182
+ /* @__PURE__ */ jsx(TableCell, {
1185
183
  "data-testid": `trace-${log.traceId}`,
1186
184
  className: "whitespace-nowrap cursor-pointer hover:text-primary text-muted-foreground",
1187
185
  onClick: () => setSearch(log.traceId),
1188
186
  children: log.traceId
1189
187
  }),
1190
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
188
+ /* @__PURE__ */ jsx(TableCell, {
1191
189
  "data-testid": `step-${index}`,
1192
190
  "aria-label": log.step,
1193
191
  className: "whitespace-nowrap",
1194
192
  children: log.step
1195
193
  }),
1196
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
194
+ /* @__PURE__ */ jsx(TableCell, {
1197
195
  "data-testid": `msg-${index}`,
1198
196
  "aria-label": log.msg,
1199
197
  className: "whitespace-nowrap max-w-[500px] truncate w-full",
@@ -1202,7 +200,7 @@ const LogsPage = () => {
1202
200
  ]
1203
201
  }, index))
1204
202
  }) })]
1205
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LogDetail, {
203
+ }), /* @__PURE__ */ jsx(LogDetail, {
1206
204
  log: selectedLog,
1207
205
  onClose: () => selectLogId(void 0)
1208
206
  })] });