@shane_il/pulse 0.2.0 → 0.4.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/dist/devtools.js CHANGED
@@ -1,59 +1,89 @@
1
- var oe = Object.defineProperty;
2
- var se = (e, t, n) => t in e ? oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var b = (e, t, n) => se(e, typeof t != "symbol" ? t + "" : t, n);
4
- let L = !1;
5
- const A = /* @__PURE__ */ new Set();
6
- function re(e) {
7
- A.add(e), L || (L = !0, queueMicrotask(ie));
1
+ var it = Object.defineProperty;
2
+ var ct = (t, e, n) => e in t ? it(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var S = (t, e, n) => ct(t, typeof e != "symbol" ? e + "" : e, n);
4
+ let M = !1;
5
+ const R = /* @__PURE__ */ new Set();
6
+ function K(t) {
7
+ R.add(t), M || (M = !0, queueMicrotask(lt));
8
8
  }
9
- function ie() {
10
- const e = [...A];
11
- A.clear(), L = !1;
12
- for (const t of e)
13
- t();
9
+ function lt() {
10
+ const t = [...R];
11
+ R.clear(), M = !1;
12
+ for (const e of t)
13
+ e();
14
14
  }
15
- const q = Symbol("PULSE_CONNECTED"), F = globalThis;
15
+ const J = Symbol("PULSE_CONNECTED"), F = globalThis;
16
16
  F.__PULSE_HOOKS__ || (F.__PULSE_HOOKS__ = { onMount: null, onUnmount: null });
17
- const E = F.__PULSE_HOOKS__;
18
- function ce(e, t) {
19
- E.onMount = e, E.onUnmount = t;
17
+ const T = F.__PULSE_HOOKS__;
18
+ function at(t, e) {
19
+ T.onMount = t, T.onUnmount = e;
20
20
  }
21
- function le(e, t) {
21
+ function pt(t, e) {
22
22
  return function(o) {
23
- const s = e || {};
23
+ const s = t || {};
24
24
  function r(i) {
25
- const a = {};
25
+ const l = {};
26
26
  for (const u in s) {
27
- const { store: c, selector: h } = s[u];
28
- a[u] = h(c.getState());
27
+ const { store: f, selector: h } = s[u];
28
+ l[u] = h(f.getState());
29
29
  }
30
- return o({ ...a, ...i });
30
+ return o({ ...l, ...i });
31
31
  }
32
- return r[q] = !0, r._bindings = s, r._innerComponent = o, r.displayName = `Connected(${o.displayName || o.name || "Anonymous"})`, r;
32
+ return r[J] = !0, r._bindings = s, r._innerComponent = o, r.displayName = `Connected(${o.displayName || o.name || "Anonymous"})`, r;
33
33
  };
34
34
  }
35
- class ae {
36
- constructor(t, n) {
37
- b(this, "connectedFn");
38
- b(this, "props");
39
- b(this, "prevSelected");
40
- b(this, "unsubscribers");
41
- b(this, "lastVTree");
42
- b(this, "parentDom");
43
- b(this, "_renderCallback");
44
- b(this, "_mountCleanup");
45
- this.connectedFn = t, this.props = n, this.prevSelected = {}, this.unsubscribers = [], this.lastVTree = null, this.parentDom = null, this._renderCallback = null, this._mountCleanup = null;
35
+ class ut {
36
+ constructor(e, n) {
37
+ S(this, "connectedFn");
38
+ S(this, "props");
39
+ S(this, "prevSelected");
40
+ S(this, "unsubscribers");
41
+ S(this, "lastVTree");
42
+ S(this, "parentDom");
43
+ S(this, "_renderCallback");
44
+ S(this, "_mountCleanup");
45
+ S(this, "_localState");
46
+ S(this, "_localActions");
47
+ this.connectedFn = e, this.props = n, this.prevSelected = {}, this.unsubscribers = [], this.lastVTree = null, this.parentDom = null, this._renderCallback = null, this._mountCleanup = null, this._localState = null, this._localActions = null;
48
+ const o = e._lifecycle;
49
+ o != null && o.store && this._initLocalStore(o.store);
46
50
  }
47
- mount(t, n) {
51
+ _initLocalStore(e) {
52
+ this._localState = { ...e.state }, this._localActions = e.actions;
53
+ const n = this.connectedFn._bindings, o = this.connectedFn.displayName || "component", s = Object.keys(this._localState), r = Object.keys(this._localActions);
54
+ for (const i of s)
55
+ i in n && console.warn(
56
+ `[pulse] Local store state "${i}" shadows global binding in ${o}. Local value will be used.`
57
+ );
58
+ for (const i of r)
59
+ i in n && console.warn(
60
+ `[pulse] Local store action "${i}" shadows global binding in ${o}. Local value will be used.`
61
+ ), i in this._localState && console.warn(
62
+ `[pulse] Local store action "${i}" shadows state key with same name in ${o}.`
63
+ );
64
+ }
65
+ getLocalProps() {
66
+ if (!this._localState) return null;
67
+ const e = { ...this._localState };
68
+ for (const n in this._localActions) {
69
+ const o = this._localActions[n];
70
+ e[n] = (s) => {
71
+ const r = o(this._localState, s);
72
+ r !== this._localState && (this._localState = r, this._renderCallback && K(this._renderCallback));
73
+ };
74
+ }
75
+ return e;
76
+ }
77
+ mount(e, n) {
48
78
  var r;
49
- this.parentDom = t, this._renderCallback = n;
79
+ this.parentDom = e, this._renderCallback = n;
50
80
  const o = this.connectedFn._bindings;
51
81
  for (const i in o) {
52
- const { store: a, selector: u } = o[i];
53
- this.prevSelected[i] = u(a.getState());
82
+ const { store: l, selector: u } = o[i];
83
+ this.prevSelected[i] = u(l.getState());
54
84
  }
55
85
  for (const i in o) {
56
- const { store: a } = o[i], u = a.subscribe(() => {
86
+ const { store: l } = o[i], u = l.subscribe(() => {
57
87
  this._onStoreChange();
58
88
  });
59
89
  this.unsubscribers.push(u);
@@ -66,209 +96,215 @@ class ae {
66
96
  });
67
97
  typeof i == "function" && (this._mountCleanup = i);
68
98
  }
69
- E.onMount && E.onMount(this);
99
+ T.onMount && T.onMount(this);
70
100
  }
71
101
  _onStoreChange() {
72
- const t = this.connectedFn._bindings;
102
+ const e = this.connectedFn._bindings;
73
103
  let n = !1;
74
- for (const o in t) {
75
- const { store: s, selector: r } = t[o], i = r(s.getState());
76
- if (!pe(i, this.prevSelected[o])) {
104
+ for (const o in e) {
105
+ const { store: s, selector: r } = e[o], i = r(s.getState());
106
+ if (!ft(i, this.prevSelected[o])) {
77
107
  n = !0;
78
108
  break;
79
109
  }
80
110
  }
81
- n && re(this._renderCallback);
111
+ n && K(this._renderCallback);
82
112
  }
83
113
  updateSelected() {
84
- const t = this.connectedFn._bindings;
85
- for (const n in t) {
86
- const { store: o, selector: s } = t[n];
114
+ const e = this.connectedFn._bindings;
115
+ for (const n in e) {
116
+ const { store: o, selector: s } = e[n];
87
117
  this.prevSelected[n] = s(o.getState());
88
118
  }
89
119
  }
90
120
  unmount() {
91
- E.onUnmount && E.onUnmount(this), this._mountCleanup && (this._mountCleanup(), this._mountCleanup = null);
92
- const t = this.connectedFn._lifecycle;
93
- t != null && t.onDestroy && t.onDestroy({ props: this.props });
121
+ T.onUnmount && T.onUnmount(this), this._mountCleanup && (this._mountCleanup(), this._mountCleanup = null);
122
+ const e = this.connectedFn._lifecycle;
123
+ e != null && e.onDestroy && e.onDestroy({ props: this.props });
94
124
  for (const n of this.unsubscribers)
95
125
  n();
96
126
  this.unsubscribers = [], this._renderCallback = null;
97
127
  }
98
128
  }
99
- function pe(e, t) {
100
- if (Object.is(e, t)) return !0;
101
- if (typeof e != "object" || typeof t != "object" || e === null || t === null) return !1;
102
- const n = Object.keys(e), o = Object.keys(t);
129
+ function ft(t, e) {
130
+ if (Object.is(t, e)) return !0;
131
+ if (typeof t != "object" || typeof e != "object" || t === null || e === null) return !1;
132
+ const n = Object.keys(t), o = Object.keys(e);
103
133
  if (n.length !== o.length) return !1;
104
134
  for (const s of n)
105
- if (!Object.prototype.hasOwnProperty.call(t, s) || !Object.is(e[s], t[s]))
135
+ if (!Object.prototype.hasOwnProperty.call(e, s) || !Object.is(t[s], e[s]))
106
136
  return !1;
107
137
  return !0;
108
138
  }
109
- function G(e) {
110
- let t = e.state;
111
- const n = e.actions, o = /* @__PURE__ */ new Set(), s = e.middleware;
139
+ function Q(t) {
140
+ let e = t.state;
141
+ const n = t.actions, o = /* @__PURE__ */ new Set(), s = t.middleware;
112
142
  function r() {
113
- return t;
143
+ return e;
114
144
  }
115
145
  function i() {
116
- for (const f of o)
117
- f(t);
146
+ for (const p of o)
147
+ p(e);
118
148
  }
119
- function a(f, y) {
120
- const S = n[f];
121
- if (!S)
122
- throw new Error(`[pulse] Unknown action: "${f}"`);
123
- const x = S(t, y);
124
- x !== t && (t = x, i());
149
+ function l(p, b) {
150
+ const _ = n[p];
151
+ if (!_)
152
+ throw new Error(`[pulse] Unknown action: "${p}"`);
153
+ const m = _(e, b);
154
+ m !== e && (e = m, i());
125
155
  }
126
- function u(f, y) {
127
- if (f === "__devtools_replace__") {
128
- t = y, i();
156
+ function u(p, b) {
157
+ if (p === "__devtools_replace__") {
158
+ e = b, i();
129
159
  return;
130
160
  }
131
- const S = n[f];
132
- if (!S)
133
- throw new Error(`[pulse] Unknown action: "${f}"`);
134
- const x = {
135
- store: l,
136
- actionName: f,
137
- payload: y,
138
- prevState: t,
161
+ const _ = n[p];
162
+ if (!_)
163
+ throw new Error(`[pulse] Unknown action: "${p}"`);
164
+ const m = {
165
+ store: c,
166
+ actionName: p,
167
+ payload: b,
168
+ prevState: e,
139
169
  nextState: void 0
140
170
  };
141
- let w = 0;
171
+ let k = 0;
142
172
  function z() {
143
- if (w < s.length) {
144
- const C = s[w++];
145
- C(x, z);
173
+ if (k < s.length) {
174
+ const C = s[k++];
175
+ C(m, z);
146
176
  } else {
147
- const C = S(x.prevState, x.payload);
148
- x.nextState = C, C !== t && (t = C, i());
177
+ const C = _(m.prevState, m.payload);
178
+ m.nextState = C, C !== e && (e = C, i());
149
179
  }
150
180
  }
151
181
  z();
152
182
  }
153
- const c = s && s.length > 0 ? u : a;
154
- function h(f) {
155
- return o.add(f), () => {
156
- o.delete(f);
183
+ const f = s && s.length > 0 ? u : l;
184
+ function h(p) {
185
+ return o.add(p), () => {
186
+ o.delete(p);
157
187
  };
158
188
  }
159
- function g(f) {
160
- return { store: l, selector: f };
189
+ function y(p) {
190
+ return { store: c, selector: p };
161
191
  }
162
- const l = {
192
+ const c = {
163
193
  getState: r,
164
- dispatch: c,
194
+ dispatch: f,
165
195
  subscribe: h,
166
- select: g
196
+ select: y
167
197
  };
168
- return e.name && (l.name = e.name), l;
198
+ return t.name && (c.name = t.name), c;
169
199
  }
170
- function ue(e, t) {
200
+ function dt(t, e) {
171
201
  return (o, s) => {
172
- s(), e.push({
202
+ s(), t.push({
173
203
  actionName: o.actionName,
174
204
  payload: o.payload,
175
205
  prevState: o.prevState,
176
206
  nextState: o.nextState ?? o.prevState,
177
207
  timestamp: Date.now()
178
- }), e.length > 1 / 0 && e.splice(0, e.length - 1 / 0);
208
+ }), t.length > 1 / 0 && t.splice(0, t.length - 1 / 0);
179
209
  };
180
210
  }
181
- let fe = 1;
182
- class de {
211
+ let ht = 1;
212
+ class yt {
183
213
  constructor() {
184
- b(this, "stores", /* @__PURE__ */ new Map());
185
- b(this, "components", /* @__PURE__ */ new Map());
186
- b(this, "listeners", /* @__PURE__ */ new Set());
214
+ S(this, "stores", /* @__PURE__ */ new Map());
215
+ S(this, "components", /* @__PURE__ */ new Map());
216
+ S(this, "listeners", /* @__PURE__ */ new Set());
187
217
  }
188
- registerStore(t, n, o) {
189
- const s = o || t.name || `store_${this.stores.size}`;
190
- this.stores.set(s, { store: t, history: n, name: s }), t.subscribe(() => {
218
+ registerStore(e, n, o) {
219
+ const s = o || e.name || `store_${this.stores.size}`;
220
+ this.stores.set(s, { store: e, history: n, name: s }), e.subscribe(() => {
191
221
  this.emit({ type: "action-dispatched", storeName: s });
192
222
  }), this.emit({ type: "store-registered", storeName: s });
193
223
  }
194
224
  getStoreNames() {
195
225
  return Array.from(this.stores.keys());
196
226
  }
197
- getStoreState(t) {
227
+ getStoreState(e) {
198
228
  var n;
199
- return (n = this.stores.get(t)) == null ? void 0 : n.store.getState();
229
+ return (n = this.stores.get(e)) == null ? void 0 : n.store.getState();
200
230
  }
201
- getTrackedStore(t) {
202
- return this.stores.get(t);
231
+ getTrackedStore(e) {
232
+ return this.stores.get(e);
203
233
  }
204
- getHistory(t) {
234
+ getHistory(e) {
205
235
  var o;
206
- if (t)
207
- return ((o = this.stores.get(t)) == null ? void 0 : o.history) ?? [];
236
+ if (e)
237
+ return ((o = this.stores.get(e)) == null ? void 0 : o.history) ?? [];
208
238
  const n = [];
209
239
  for (const s of this.stores.values())
210
240
  n.push(...s.history);
211
241
  return n.sort((s, r) => s.timestamp - r.timestamp);
212
242
  }
213
- trackComponent(t, n) {
214
- const o = fe++;
215
- return this.components.set(o, { id: o, displayName: t, storeNames: n }), this.emit({ type: "component-mounted", data: { id: o, displayName: t, storeNames: n } }), o;
243
+ trackComponent(e, n) {
244
+ const o = ht++;
245
+ return this.components.set(o, { id: o, displayName: e, storeNames: n }), this.emit({
246
+ type: "component-mounted",
247
+ data: { id: o, displayName: e, storeNames: n }
248
+ }), o;
216
249
  }
217
- untrackComponent(t) {
218
- const n = this.components.get(t);
219
- n && (this.components.delete(t), this.emit({ type: "component-unmounted", data: { id: t, displayName: n.displayName } }));
250
+ untrackComponent(e) {
251
+ const n = this.components.get(e);
252
+ n && (this.components.delete(e), this.emit({
253
+ type: "component-unmounted",
254
+ data: { id: e, displayName: n.displayName }
255
+ }));
220
256
  }
221
257
  getComponents() {
222
258
  return Array.from(this.components.values());
223
259
  }
224
- on(t) {
225
- return this.listeners.add(t), () => {
226
- this.listeners.delete(t);
260
+ on(e) {
261
+ return this.listeners.add(e), () => {
262
+ this.listeners.delete(e);
227
263
  };
228
264
  }
229
- emit(t) {
265
+ emit(e) {
230
266
  for (const n of this.listeners)
231
- n(t);
267
+ n(e);
232
268
  }
233
269
  }
234
- function Ge(e, t) {
235
- const n = [], o = ue(n), s = G({
236
- ...t,
237
- middleware: [o, ...t.middleware || []]
270
+ function Qt(t, e) {
271
+ const n = [], o = dt(n), s = Q({
272
+ ...e,
273
+ middleware: [o, ...e.middleware || []]
238
274
  });
239
- return e.registerStore(s, n, t.name), { store: s, history: n };
275
+ return t.registerStore(s, n, e.name), { store: s, history: n };
240
276
  }
241
- const B = Symbol("TEXT_NODE"), he = Symbol("FRAGMENT");
242
- function H(e) {
277
+ const D = Symbol("TEXT_NODE"), mt = Symbol("FRAGMENT");
278
+ function B(t) {
243
279
  return {
244
- type: B,
245
- props: { nodeValue: String(e) },
280
+ type: D,
281
+ props: { nodeValue: String(t) },
246
282
  children: [],
247
283
  key: null
248
284
  };
249
285
  }
250
- function ye(e) {
251
- return e == null || typeof e == "boolean" ? null : typeof e == "string" || typeof e == "number" ? H(e) : e;
286
+ function gt(t) {
287
+ return t == null || typeof t == "boolean" ? null : typeof t == "string" || typeof t == "number" ? B(t) : t;
252
288
  }
253
- function J(e) {
254
- const t = [];
255
- for (const n of e)
289
+ function Y(t) {
290
+ const e = [];
291
+ for (const n of t)
256
292
  if (Array.isArray(n))
257
- t.push(...J(n));
293
+ e.push(...Y(n));
258
294
  else {
259
- const o = ye(n);
260
- o !== null && t.push(o);
295
+ const o = gt(n);
296
+ o !== null && e.push(o);
261
297
  }
262
- return t;
298
+ return e;
263
299
  }
264
- function p(e, t, ...n) {
265
- t = t || {};
266
- const o = t.key ?? null;
267
- t.key !== void 0 && (t = { ...t }, delete t.key);
268
- const s = J(n);
269
- return { type: e, props: t, children: s, key: o };
300
+ function a(t, e, ...n) {
301
+ e = e || {};
302
+ const o = e.key ?? null;
303
+ e.key !== void 0 && (e = { ...e }, delete e.key);
304
+ const s = Y(n);
305
+ return { type: t, props: e, children: s, key: o };
270
306
  }
271
- const m = {
307
+ const g = {
272
308
  CREATE: "CREATE",
273
309
  REMOVE: "REMOVE",
274
310
  REPLACE: "REPLACE",
@@ -277,348 +313,386 @@ const m = {
277
313
  MOVE: "MOVE",
278
314
  CHILDREN: "CHILDREN"
279
315
  };
280
- function _(e, t) {
281
- if (t == null && e == null) return [];
282
- if (t == null) return [{ type: m.REMOVE, target: e }];
283
- if (e == null) return [{ type: m.CREATE, newVNode: t }];
284
- if (e.type !== t.type)
285
- return [{ type: m.REPLACE, oldVNode: e, newVNode: t }];
286
- if (t._dom = e._dom, e.type === B)
287
- return e.props.nodeValue !== t.props.nodeValue ? [{ type: m.TEXT, oldVNode: e, newVNode: t }] : [];
288
- const n = [], o = me(e.props, t.props);
289
- o && n.push({ type: m.UPDATE, target: e, propPatches: o });
290
- const s = ge(e.children, t.children);
291
- return s.length && n.push({ type: m.CHILDREN, parent: e, childPatches: s }), n;
316
+ function x(t, e) {
317
+ if (e == null && t == null) return [];
318
+ if (e == null) return [{ type: g.REMOVE, target: t }];
319
+ if (t == null) return [{ type: g.CREATE, newVNode: e }];
320
+ if (t.type !== e.type)
321
+ return [{ type: g.REPLACE, oldVNode: t, newVNode: e }];
322
+ if (e._dom = t._dom, t.type === D)
323
+ return t.props.nodeValue !== e.props.nodeValue ? [{ type: g.TEXT, oldVNode: t, newVNode: e }] : [];
324
+ const n = [], o = St(t.props, e.props);
325
+ o && n.push({ type: g.UPDATE, target: t, propPatches: o });
326
+ const s = bt(t.children, e.children);
327
+ return s.length && n.push({ type: g.CHILDREN, parent: t, childPatches: s }), n;
292
328
  }
293
- function me(e, t) {
329
+ function St(t, e) {
294
330
  const n = {}, o = [];
295
331
  let s = !1;
296
- for (const r in t)
297
- r !== "children" && e[r] !== t[r] && (n[r] = t[r], s = !0);
298
332
  for (const r in e)
299
- r !== "children" && (r in t || (o.push(r), s = !0));
333
+ r !== "children" && t[r] !== e[r] && (n[r] = e[r], s = !0);
334
+ for (const r in t)
335
+ r !== "children" && (r in e || (o.push(r), s = !0));
300
336
  return s ? { set: n, remove: o } : null;
301
337
  }
302
- function O(e, t) {
303
- return e == null || t == null ? !1 : e.type === t.type && e.key === t.key;
338
+ function v(t, e) {
339
+ return t == null || e == null ? !1 : t.type === e.type && t.key === e.key;
304
340
  }
305
- function K(e, t) {
341
+ function G(t, e) {
306
342
  const n = /* @__PURE__ */ new Set();
307
343
  let o = 0, s = 0;
308
- for (const r of e)
344
+ for (const r of t)
309
345
  r != null && (r.key != null ? (o++, n.has(r.key) && console.warn(
310
- `[pulse] Duplicate key "${String(r.key)}" in ${t} children. Keys must be unique among siblings.`
346
+ `[pulse] Duplicate key "${String(r.key)}" in ${e} children. Keys must be unique among siblings.`
311
347
  ), n.add(r.key)) : s++);
312
348
  o > 0 && s > 0 && console.warn(
313
- `[pulse] Mixed keyed and unkeyed children in ${t} list (${o} keyed, ${s} unkeyed). Either all children should have keys or none should.`
349
+ `[pulse] Mixed keyed and unkeyed children in ${e} list (${o} keyed, ${s} unkeyed). Either all children should have keys or none should.`
314
350
  );
315
351
  }
316
- function ge(e, t) {
317
- var g;
318
- process.env.NODE_ENV !== "production" && (K(e, "old"), K(t, "new"));
352
+ function bt(t, e) {
353
+ var y;
354
+ process.env.NODE_ENV !== "production" && (G(t, "old"), G(e, "new"));
319
355
  const n = [];
320
- let o = 0, s = e.length - 1, r = 0, i = t.length - 1, a = e[o], u = e[s], c = t[r], h = t[i];
356
+ let o = 0, s = t.length - 1, r = 0, i = e.length - 1, l = t[o], u = t[s], f = e[r], h = e[i];
321
357
  for (; o <= s && r <= i; ) {
322
- if (a == null) {
323
- a = e[++o];
358
+ if (l == null) {
359
+ l = t[++o];
324
360
  continue;
325
361
  }
326
362
  if (u == null) {
327
- u = e[--s];
363
+ u = t[--s];
328
364
  continue;
329
365
  }
330
- if (O(a, c))
331
- n.push(..._(a, c)), a = e[++o], c = t[++r];
332
- else if (O(u, h))
333
- n.push(..._(u, h)), u = e[--s], h = t[--i];
334
- else if (O(a, h))
366
+ if (v(l, f))
367
+ n.push(...x(l, f)), l = t[++o], f = e[++r];
368
+ else if (v(u, h))
369
+ n.push(...x(u, h)), u = t[--s], h = e[--i];
370
+ else if (v(l, h))
335
371
  n.push({
336
- type: m.MOVE,
337
- vnode: a,
338
- anchor: e[s + 1] || null,
339
- childPatches: _(a, h)
340
- }), a = e[++o], h = t[--i];
341
- else if (O(u, c))
372
+ type: g.MOVE,
373
+ vnode: l,
374
+ anchor: t[s + 1] || null,
375
+ childPatches: x(l, h)
376
+ }), l = t[++o], h = e[--i];
377
+ else if (v(u, f))
342
378
  n.push({
343
- type: m.MOVE,
379
+ type: g.MOVE,
344
380
  vnode: u,
345
- anchor: a,
346
- childPatches: _(u, c)
347
- }), u = e[--s], c = t[++r];
381
+ anchor: l,
382
+ childPatches: x(u, f)
383
+ }), u = t[--s], f = e[++r];
348
384
  else
349
385
  break;
350
386
  }
351
387
  if (o <= s && r <= i) {
352
- const l = /* @__PURE__ */ new Map();
353
- for (let f = o; f <= s; f++) {
354
- const y = (g = e[f]) == null ? void 0 : g.key;
355
- y != null && l.set(y, f);
388
+ const c = /* @__PURE__ */ new Map();
389
+ for (let p = o; p <= s; p++) {
390
+ const b = (y = t[p]) == null ? void 0 : y.key;
391
+ b != null && c.set(b, p);
356
392
  }
357
393
  for (; r <= i; ) {
358
- c = t[r];
359
- const f = c.key != null ? l.get(c.key) : void 0;
360
- if (f !== void 0) {
361
- const y = e[f];
394
+ f = e[r];
395
+ const p = f.key != null ? c.get(f.key) : void 0;
396
+ if (p !== void 0) {
397
+ const b = t[p];
362
398
  n.push({
363
- type: m.MOVE,
364
- vnode: y,
365
- anchor: e[o] || null,
366
- childPatches: _(y, c)
367
- }), e[f] = null, l.delete(c.key);
399
+ type: g.MOVE,
400
+ vnode: b,
401
+ anchor: t[o] || null,
402
+ childPatches: x(b, f)
403
+ }), t[p] = null, c.delete(f.key);
368
404
  } else
369
405
  n.push({
370
- type: m.CREATE,
371
- newVNode: c,
372
- anchor: e[o] || null
406
+ type: g.CREATE,
407
+ newVNode: f,
408
+ anchor: t[o] || null
373
409
  });
374
410
  r++;
375
411
  }
376
- for (let f = o; f <= s; f++)
377
- e[f] != null && n.push({ type: m.REMOVE, target: e[f] });
412
+ for (let p = o; p <= s; p++)
413
+ t[p] != null && n.push({ type: g.REMOVE, target: t[p] });
378
414
  }
379
415
  if (o > s) {
380
- const l = t[i + 1] || null;
381
- for (let f = r; f <= i; f++)
382
- n.push({ type: m.CREATE, newVNode: t[f], anchor: l });
416
+ const c = e[i + 1] || null;
417
+ for (let p = r; p <= i; p++)
418
+ n.push({ type: g.CREATE, newVNode: e[p], anchor: c });
383
419
  } else if (r > i)
384
- for (let l = o; l <= s; l++)
385
- e[l] != null && n.push({ type: m.REMOVE, target: e[l] });
420
+ for (let c = o; c <= s; c++)
421
+ t[c] != null && n.push({ type: g.REMOVE, target: t[c] });
386
422
  return n;
387
423
  }
388
- function v(e) {
389
- if (e.type === B) {
390
- const n = document.createTextNode(e.props.nodeValue);
391
- return e._dom = n, n;
424
+ const Z = "http://www.w3.org/2000/svg";
425
+ function P(t, e) {
426
+ if (t.type === D) {
427
+ const o = document.createTextNode(t.props.nodeValue);
428
+ return t._dom = o, o;
392
429
  }
393
- if (e.type === he) {
394
- const n = document.createDocumentFragment();
395
- for (const o of e.children)
396
- n.appendChild(v(o));
397
- return e._dom = n, n;
430
+ if (t.type === mt) {
431
+ const o = document.createDocumentFragment();
432
+ for (const s of t.children)
433
+ o.appendChild(P(s, e));
434
+ return t._dom = o, o;
398
435
  }
399
- const t = document.createElement(e.type);
400
- be(t, {}, e.props);
401
- for (const n of e.children)
402
- t.appendChild(v(n));
403
- return e._dom = t, t;
436
+ t.type === "svg" ? e = Z : t.type === "foreignObject" && (e = void 0);
437
+ const n = e ? document.createElementNS(e, t.type) : document.createElement(t.type);
438
+ _t(n, {}, t.props);
439
+ for (const o of t.children)
440
+ n.appendChild(P(o, e));
441
+ return t._dom = n, n;
404
442
  }
405
- function be(e, t, n) {
406
- for (const o in t)
407
- o === "children" || o === "key" || o in n || Y(e, o, t[o]);
443
+ function _t(t, e, n) {
444
+ for (const o in e)
445
+ o === "children" || o === "key" || o in n || et(t, o, e[o]);
408
446
  for (const o in n)
409
- o === "children" || o === "key" || t[o] !== n[o] && Q(e, o, n[o], t[o]);
447
+ o === "children" || o === "key" || e[o] !== n[o] && tt(t, o, n[o], e[o]);
410
448
  }
411
- function Q(e, t, n, o) {
412
- if (t.startsWith("on")) {
413
- const s = t.slice(2).toLowerCase();
414
- o && e.removeEventListener(s, o), n && e.addEventListener(s, n);
415
- } else if (t === "className")
416
- e.className = n || "";
417
- else if (t === "style" && typeof n == "object") {
449
+ function tt(t, e, n, o) {
450
+ if (e.startsWith("on")) {
451
+ const s = e.slice(2).toLowerCase();
452
+ o && t.removeEventListener(s, o), n && t.addEventListener(s, n);
453
+ } else if (e === "className" || e === "class")
454
+ t instanceof SVGElement ? t.setAttribute("class", n || "") : t.className = n || "";
455
+ else if (e === "style" && typeof n == "object") {
418
456
  if (typeof o == "object" && o)
419
457
  for (const s in o)
420
- s in n || (e.style[s] = "");
421
- Object.assign(e.style, n);
422
- } else t === "ref" ? typeof n == "function" && n(e) : n === !0 ? e.setAttribute(t, "") : n === !1 || n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
458
+ s in n || (t.style[s] = "");
459
+ Object.assign(t.style, n);
460
+ } else if (e === "dangerouslySetInnerHTML")
461
+ n && typeof n.__html == "string" && (t.innerHTML = n.__html);
462
+ else if (e === "ref")
463
+ typeof n == "function" && n(t);
464
+ else if (e in t && !(t instanceof SVGElement))
465
+ try {
466
+ t[e] = n ?? "";
467
+ } catch {
468
+ t.setAttribute(e, n);
469
+ }
470
+ else n === !0 ? t.setAttribute(e, "") : n === !1 || n == null ? t.removeAttribute(e) : t.setAttribute(e, n);
471
+ }
472
+ function et(t, e, n) {
473
+ if (e.startsWith("on"))
474
+ t.removeEventListener(e.slice(2).toLowerCase(), n);
475
+ else if (e === "dangerouslySetInnerHTML")
476
+ t.innerHTML = "";
477
+ else if (e === "className" || e === "class")
478
+ t instanceof SVGElement ? t.removeAttribute("class") : t.className = "";
479
+ else if (e in t && !(t instanceof SVGElement))
480
+ try {
481
+ t[e] = "";
482
+ } catch {
483
+ t.removeAttribute(e);
484
+ }
485
+ else
486
+ t.removeAttribute(e);
423
487
  }
424
- function Y(e, t, n) {
425
- t.startsWith("on") ? e.removeEventListener(t.slice(2).toLowerCase(), n) : t === "className" ? e.className = "" : e.removeAttribute(t);
488
+ function W(t) {
489
+ return t instanceof SVGElement ? Z : void 0;
426
490
  }
427
- function P(e, t) {
491
+ function V(t, e) {
428
492
  var n, o, s;
429
- for (const r of t)
493
+ for (const r of e)
430
494
  switch (r.type) {
431
- case m.CREATE: {
432
- const i = v(r.newVNode);
433
- (n = r.anchor) != null && n._dom ? e.insertBefore(i, r.anchor._dom) : e.appendChild(i);
495
+ case g.CREATE: {
496
+ const i = P(r.newVNode, W(t));
497
+ (n = r.anchor) != null && n._dom ? t.insertBefore(i, r.anchor._dom) : t.appendChild(i);
434
498
  break;
435
499
  }
436
- case m.REMOVE: {
500
+ case g.REMOVE: {
437
501
  const i = r.target._dom;
438
502
  i != null && i.parentNode && i.parentNode.removeChild(i);
439
503
  break;
440
504
  }
441
- case m.REPLACE: {
442
- const i = v(r.newVNode), a = r.oldVNode._dom;
443
- a != null && a.parentNode && a.parentNode.replaceChild(i, a);
505
+ case g.REPLACE: {
506
+ const i = r.oldVNode._dom, l = i == null ? void 0 : i.parentNode, u = P(
507
+ r.newVNode,
508
+ l ? W(l) : void 0
509
+ );
510
+ l && l.replaceChild(u, i);
444
511
  break;
445
512
  }
446
- case m.UPDATE: {
447
- const i = r.target._dom, { set: a, remove: u } = r.propPatches;
448
- for (const c of u)
449
- Y(i, c, r.target.props[c]);
450
- for (const c in a)
451
- Q(i, c, a[c], r.target.props[c]);
513
+ case g.UPDATE: {
514
+ const i = r.target._dom, { set: l, remove: u } = r.propPatches;
515
+ for (const f of u)
516
+ et(i, f, r.target.props[f]);
517
+ for (const f in l)
518
+ tt(i, f, l[f], r.target.props[f]);
452
519
  break;
453
520
  }
454
- case m.TEXT: {
521
+ case g.TEXT: {
455
522
  const i = r.oldVNode._dom;
456
523
  i && (i.nodeValue = r.newVNode.props.nodeValue);
457
524
  break;
458
525
  }
459
- case m.MOVE: {
526
+ case g.MOVE: {
460
527
  const i = r.vnode._dom;
461
- i && ((o = r.anchor) != null && o._dom ? e.insertBefore(i, r.anchor._dom) : e.appendChild(i)), (s = r.childPatches) != null && s.length && i && P(i, r.childPatches);
528
+ i && ((o = r.anchor) != null && o._dom ? t.insertBefore(i, r.anchor._dom) : t.appendChild(i)), (s = r.childPatches) != null && s.length && i && V(i, r.childPatches);
462
529
  break;
463
530
  }
464
- case m.CHILDREN: {
531
+ case g.CHILDREN: {
465
532
  const i = r.parent._dom;
466
- i && r.childPatches.length && P(i, r.childPatches);
533
+ i && r.childPatches.length && V(i, r.childPatches);
467
534
  break;
468
535
  }
469
536
  }
470
537
  }
471
- const R = /* @__PURE__ */ new WeakMap();
472
- function Se(e, t) {
473
- const n = R.get(t);
538
+ const A = /* @__PURE__ */ new WeakMap();
539
+ function xt(t, e) {
540
+ const n = A.get(e);
474
541
  if (n) {
475
- const o = k(e, t), s = [];
476
- I(n.vTree, s);
477
- const r = _(n.vTree, o);
478
- P(t, r);
542
+ const o = E(t, e), s = [];
543
+ O(n.vTree, s);
544
+ const r = x(n.vTree, o);
545
+ V(e, r);
479
546
  const i = [];
480
- o && I(o, i);
481
- const a = new Set(i);
482
- for (const c of s)
483
- a.has(c) || c.unmount();
547
+ o && O(o, i);
548
+ const l = new Set(i);
549
+ for (const f of s)
550
+ l.has(f) || f.unmount();
484
551
  const u = new Set(s);
485
- for (const c of i)
486
- u.has(c) || c.mount(t, () => U(c, t));
487
- R.set(t, { vTree: o });
552
+ for (const f of i)
553
+ u.has(f) || f.mount(e, () => U(f, e));
554
+ A.set(e, { vTree: o });
488
555
  } else {
489
- const o = k(e, t);
556
+ const o = E(t, e);
490
557
  if (!o) return;
491
- const s = v(o);
492
- t.appendChild(s);
558
+ const s = P(o);
559
+ e.appendChild(s);
493
560
  const r = [];
494
- I(o, r);
561
+ O(o, r);
495
562
  for (const i of r)
496
- i.mount(t, () => U(i, t));
497
- R.set(t, { vTree: o });
563
+ i.mount(e, () => U(i, e));
564
+ A.set(e, { vTree: o });
498
565
  }
499
566
  }
500
- function k(e, t) {
567
+ function E(t, e) {
501
568
  var n;
502
- if (e == null) return null;
503
- if (typeof e.type == "function") {
504
- if (e.type[q]) {
505
- const s = e.type._lifecycle;
569
+ if (t == null) return null;
570
+ if (typeof t.type == "function") {
571
+ if (t.type[J]) {
572
+ const s = t.type._lifecycle;
506
573
  try {
507
- const r = new ae(e.type, e.props), i = e.type(e.props), u = k(i, t) ?? H("");
508
- if (u._instance) {
509
- const c = {
574
+ const r = new ut(t.type, t.props), i = r.getLocalProps(), l = i ? { ...t.props, ...i } : t.props, u = t.type(l), h = E(u, e) ?? B("");
575
+ if (h._instance) {
576
+ const y = {
510
577
  type: "div",
511
578
  props: { style: { display: "contents" } },
512
- children: [u],
513
- key: e.key
579
+ children: [h],
580
+ key: t.key
514
581
  };
515
- return c._instance = r, r.lastVTree = c, c;
582
+ return y._instance = r, r.lastVTree = y, y;
516
583
  }
517
- return u._instance = r, r.lastVTree = u, u;
584
+ return h._instance = r, r.lastVTree = h, h;
518
585
  } catch (r) {
519
586
  if (s != null && s.onError) {
520
- const i = s.onError({ error: r, props: e.props });
521
- return k(i, t);
587
+ const i = s.onError({
588
+ error: r,
589
+ props: t.props
590
+ });
591
+ return E(i, e);
522
592
  }
523
593
  throw r;
524
594
  }
525
595
  }
526
- const o = e.type({ ...e.props, children: e.children });
527
- return k(o, t);
596
+ const o = t.type({ ...t.props, children: t.children });
597
+ return E(o, e);
528
598
  }
529
- return (n = e.children) != null && n.length && (e.children = e.children.map((o) => k(o, t)).filter((o) => o != null)), e;
599
+ return (n = t.children) != null && n.length && (t.children = t.children.map((o) => E(o, e)).filter((o) => o != null)), t;
530
600
  }
531
- function U(e, t) {
601
+ function U(t, e) {
532
602
  var s, r;
533
- if (!e._renderCallback) return;
534
- const n = e.connectedFn, o = n._lifecycle;
603
+ if (!t._renderCallback) return;
604
+ const n = t.connectedFn, o = n._lifecycle;
535
605
  try {
536
- const i = n(e.props);
537
- let u = k(i, t) ?? H(""), c;
538
- if (u._instance && u._instance !== e ? (c = {
606
+ const i = t.getLocalProps(), l = i ? { ...t.props, ...i } : t.props, u = n(l), h = E(u, e) ?? B("");
607
+ let y;
608
+ if (h._instance && h._instance !== t ? (y = {
539
609
  type: "div",
540
610
  props: { style: { display: "contents" } },
541
- children: [u],
611
+ children: [h],
542
612
  key: null
543
- }, c._instance = e) : (u._instance = e, c = u), e.lastVTree) {
544
- D(e.lastVTree, e);
545
- const y = _(e.lastVTree, c), S = ((s = e.lastVTree._dom) == null ? void 0 : s.parentNode) || t;
546
- P(S, y), c._dom || (c._dom = e.lastVTree._dom);
613
+ }, y._instance = t) : (h._instance = t, y = h), t.lastVTree) {
614
+ j(t.lastVTree, t);
615
+ const m = x(t.lastVTree, y), k = ((s = t.lastVTree._dom) == null ? void 0 : s.parentNode) || e;
616
+ V(k, m), y._dom || (y._dom = t.lastVTree._dom);
547
617
  }
548
- const h = [];
549
- M(e.lastVTree, h, e);
550
- const g = [];
551
- M(c, g, e);
552
- const l = new Set(g);
553
- for (const y of h)
554
- l.has(y) || y.unmount();
555
- e.lastVTree = c;
556
- const f = new Set(h);
557
- for (const y of g)
558
- f.has(y) || y.mount(t, () => U(y, t));
618
+ const c = [];
619
+ I(t.lastVTree, c, t);
620
+ const p = [];
621
+ I(y, p, t);
622
+ const b = new Set(p);
623
+ for (const m of c)
624
+ b.has(m) || m.unmount();
625
+ t.lastVTree = y;
626
+ const _ = new Set(c);
627
+ for (const m of p)
628
+ _.has(m) || m.mount(e, () => U(m, e));
559
629
  o != null && o.onUpdate && o.onUpdate({
560
- dom: c == null ? void 0 : c._dom,
561
- props: e.props
562
- }), e.updateSelected();
630
+ dom: y == null ? void 0 : y._dom,
631
+ props: t.props
632
+ }), t.updateSelected();
563
633
  } catch (i) {
564
634
  if (o != null && o.onError) {
565
- const a = o.onError({ error: i, props: e.props }), u = k(a, t);
566
- if (e.lastVTree && u) {
567
- D(e.lastVTree, e);
568
- const h = _(e.lastVTree, u), g = ((r = e.lastVTree._dom) == null ? void 0 : r.parentNode) || t;
569
- P(g, h), u._dom || (u._dom = e.lastVTree._dom);
635
+ const l = o.onError({ error: i, props: t.props }), u = E(l, e);
636
+ if (t.lastVTree && u) {
637
+ j(t.lastVTree, t);
638
+ const h = x(t.lastVTree, u), y = ((r = t.lastVTree._dom) == null ? void 0 : r.parentNode) || e;
639
+ V(y, h), u._dom || (u._dom = t.lastVTree._dom);
570
640
  }
571
- const c = [];
572
- M(e.lastVTree, c, e);
573
- for (const h of c) h.unmount();
574
- e.lastVTree = u, e.updateSelected();
641
+ const f = [];
642
+ I(t.lastVTree, f, t);
643
+ for (const h of f) h.unmount();
644
+ t.lastVTree = u, t.updateSelected();
575
645
  } else
576
646
  throw i;
577
647
  }
578
648
  }
579
- function D(e, t) {
580
- if (!(!e || !e.children))
581
- for (let n = 0; n < e.children.length; n++) {
582
- const o = e.children[n];
583
- o._instance && o._instance !== t && o._instance.lastVTree && o._instance.lastVTree !== o && (e.children[n] = o._instance.lastVTree), D(e.children[n], t);
649
+ function j(t, e) {
650
+ if (!(!t || !t.children))
651
+ for (let n = 0; n < t.children.length; n++) {
652
+ const o = t.children[n];
653
+ o._instance && o._instance !== e && o._instance.lastVTree && o._instance.lastVTree !== o && (t.children[n] = o._instance.lastVTree), j(t.children[n], e);
584
654
  }
585
655
  }
586
- function I(e, t) {
587
- if (e && (e._instance && t.push(e._instance), e.children))
588
- for (const n of e.children)
589
- I(n, t);
656
+ function O(t, e) {
657
+ if (t && (t._instance && e.push(t._instance), t.children))
658
+ for (const n of t.children)
659
+ O(n, e);
590
660
  }
591
- function M(e, t, n) {
592
- if (e && (e._instance && e._instance !== n && t.push(e._instance), e.children))
593
- for (const o of e.children)
594
- M(o, t, n);
661
+ function I(t, e, n) {
662
+ if (t && (t._instance && t._instance !== n && e.push(t._instance), t.children))
663
+ for (const o of t.children)
664
+ I(o, e, n);
595
665
  }
596
- function W(e, t, n) {
597
- const o = e.getTrackedStore(t);
666
+ function X(t, e, n) {
667
+ const o = t.getTrackedStore(e);
598
668
  if (!o)
599
- throw new Error(`[pulse-devtools] Unknown store: "${t}"`);
669
+ throw new Error(`[pulse-devtools] Unknown store: "${e}"`);
600
670
  const { store: s, history: r } = o;
601
671
  if (n < 0 || n >= r.length)
602
672
  throw new Error(
603
673
  `[pulse-devtools] Index ${n} out of range (0..${r.length - 1})`
604
674
  );
605
675
  const i = r[n].nextState;
606
- s.dispatch("__devtools_replace__", i), e.emit({ type: "time-travel", storeName: t, data: { entryIndex: n } });
676
+ s.dispatch("__devtools_replace__", i), t.emit({ type: "time-travel", storeName: e, data: { entryIndex: n } });
607
677
  }
608
- function Je(e, t, n) {
609
- const o = e.getTrackedStore(t);
678
+ function Yt(t, e, n) {
679
+ const o = t.getTrackedStore(e);
610
680
  if (!o)
611
- throw new Error(`[pulse-devtools] Unknown store: "${t}"`);
681
+ throw new Error(`[pulse-devtools] Unknown store: "${e}"`);
612
682
  const { store: s, history: r } = o;
613
683
  if (n < 0 || n >= r.length)
614
684
  throw new Error(
615
685
  `[pulse-devtools] Index ${n} out of range (0..${r.length - 1})`
616
686
  );
617
- const i = r.slice(n), a = r[n].prevState;
618
- s.dispatch("__devtools_replace__", a);
687
+ const i = r.slice(n), l = r[n].prevState;
688
+ s.dispatch("__devtools_replace__", l);
619
689
  for (const u of i)
620
690
  s.dispatch(u.actionName, u.payload);
621
- e.emit({ type: "time-travel", storeName: t, data: { replayFrom: n } });
691
+ t.emit({
692
+ type: "time-travel",
693
+ storeName: e,
694
+ data: { replayFrom: n }
695
+ });
622
696
  }
623
697
  const d = {
624
698
  base: "#1e1e2e",
@@ -633,7 +707,7 @@ const d = {
633
707
  mauve: "#cba6f7",
634
708
  teal: "#94e2d5",
635
709
  peach: "#fab387"
636
- }, xe = {
710
+ }, Et = {
637
711
  position: "fixed",
638
712
  bottom: "0",
639
713
  left: "0",
@@ -649,7 +723,7 @@ const d = {
649
723
  flexDirection: "column",
650
724
  borderTop: `2px solid ${d.mauve}`,
651
725
  overflow: "hidden"
652
- }, _e = {
726
+ }, kt = {
653
727
  display: "flex",
654
728
  alignItems: "center",
655
729
  backgroundColor: d.surface0,
@@ -657,17 +731,17 @@ const d = {
657
731
  padding: "0 8px",
658
732
  height: "32px",
659
733
  flexShrink: "0"
660
- }, ke = (e) => ({
734
+ }, Tt = (t) => ({
661
735
  background: "none",
662
736
  border: "none",
663
- color: e ? d.mauve : d.subtext0,
737
+ color: t ? d.mauve : d.subtext0,
664
738
  fontFamily: "inherit",
665
739
  fontSize: "12px",
666
740
  padding: "6px 12px",
667
741
  cursor: "pointer",
668
- borderBottom: e ? `2px solid ${d.mauve}` : "2px solid transparent",
742
+ borderBottom: t ? `2px solid ${d.mauve}` : "2px solid transparent",
669
743
  marginBottom: "-1px"
670
- }), Ee = {
744
+ }), wt = {
671
745
  background: "none",
672
746
  border: "none",
673
747
  color: d.overlay0,
@@ -676,59 +750,59 @@ const d = {
676
750
  marginLeft: "auto",
677
751
  padding: "4px 8px",
678
752
  fontFamily: "inherit"
679
- }, Te = {
753
+ }, Ct = {
680
754
  flex: "1",
681
755
  overflow: "auto",
682
756
  padding: "8px 12px"
683
- }, we = {
757
+ }, Nt = {
684
758
  display: "flex",
685
759
  height: "100%",
686
760
  gap: "1px"
687
- }, Ce = {
761
+ }, Pt = {
688
762
  width: "200px",
689
763
  flexShrink: "0",
690
764
  borderRight: `1px solid ${d.surface1}`,
691
765
  overflow: "auto",
692
766
  padding: "4px 0"
693
- }, Ne = {
767
+ }, Vt = {
694
768
  flex: "1",
695
769
  overflow: "auto",
696
770
  padding: "8px"
697
- }, ve = (e) => ({
771
+ }, vt = (t) => ({
698
772
  padding: "4px 12px",
699
773
  cursor: "pointer",
700
- backgroundColor: e ? d.surface1 : "transparent",
701
- color: e ? d.blue : d.text
702
- }), X = {
774
+ backgroundColor: t ? d.surface1 : "transparent",
775
+ color: t ? d.blue : d.text
776
+ }), q = {
703
777
  color: d.mauve
704
- }, V = {
778
+ }, L = {
705
779
  color: d.green
706
- }, Pe = {
780
+ }, Lt = {
707
781
  color: d.yellow
708
- }, Oe = {
782
+ }, Ot = {
709
783
  color: d.peach
710
- }, T = {
784
+ }, w = {
711
785
  color: d.overlay0,
712
786
  fontStyle: "italic"
713
- }, Ve = (e) => ({
787
+ }, It = (t) => ({
714
788
  padding: "4px 8px",
715
789
  cursor: "pointer",
716
- backgroundColor: e ? d.surface1 : "transparent",
717
- borderLeft: e ? `3px solid ${d.blue}` : "3px solid transparent",
790
+ backgroundColor: t ? d.surface1 : "transparent",
791
+ borderLeft: t ? `3px solid ${d.blue}` : "3px solid transparent",
718
792
  display: "flex",
719
793
  justifyContent: "space-between",
720
794
  alignItems: "center"
721
- }), Z = {
795
+ }), nt = {
722
796
  color: d.blue,
723
797
  fontWeight: "bold"
724
- }, Ie = {
798
+ }, $t = {
725
799
  color: d.overlay0,
726
800
  fontSize: "10px"
727
- }, Me = {
801
+ }, At = {
728
802
  width: "100%",
729
803
  accentColor: d.mauve,
730
804
  margin: "4px 0 8px"
731
- }, $e = {
805
+ }, Mt = {
732
806
  width: "100%",
733
807
  backgroundColor: d.surface0,
734
808
  border: `1px solid ${d.surface1}`,
@@ -740,17 +814,17 @@ const d = {
740
814
  outline: "none",
741
815
  marginBottom: "8px",
742
816
  boxSizing: "border-box"
743
- }, Re = {
817
+ }, Rt = {
744
818
  padding: "4px 8px",
745
819
  borderBottom: `1px solid ${d.surface0}`
746
- }, Le = {
820
+ }, Ft = {
747
821
  color: d.teal,
748
822
  fontWeight: "bold"
749
- }, Ae = {
823
+ }, Ut = {
750
824
  color: d.overlay0,
751
825
  fontSize: "10px",
752
826
  marginLeft: "8px"
753
- }, ee = {
827
+ }, ot = {
754
828
  display: "inline-block",
755
829
  backgroundColor: d.surface1,
756
830
  color: d.subtext0,
@@ -758,194 +832,206 @@ const d = {
758
832
  borderRadius: "8px",
759
833
  fontSize: "10px",
760
834
  marginLeft: "4px"
761
- }, Fe = {
835
+ }, jt = {
762
836
  color: d.mauve,
763
837
  fontWeight: "bold",
764
838
  fontSize: "12px",
765
839
  marginRight: "8px"
766
840
  };
767
- function j(e, t) {
768
- if (e === null)
769
- return p("span", { style: T }, "null");
770
- if (e === void 0)
771
- return p("span", { style: T }, "undefined");
772
- if (typeof e == "string")
773
- return p("span", { style: Pe }, `"${e}"`);
774
- if (typeof e == "boolean")
775
- return p("span", { style: Oe }, String(e));
776
- if (typeof e == "number")
777
- return p("span", { style: V }, String(e));
778
- if (Array.isArray(e))
779
- return e.length === 0 ? p("span", { style: V }, "[]") : t > 4 ? p("span", { style: T }, "[…]") : p(
841
+ function H(t, e) {
842
+ if (t === null)
843
+ return a("span", { style: w }, "null");
844
+ if (t === void 0)
845
+ return a("span", { style: w }, "undefined");
846
+ if (typeof t == "string")
847
+ return a("span", { style: Lt }, `"${t}"`);
848
+ if (typeof t == "boolean")
849
+ return a("span", { style: Ot }, String(t));
850
+ if (typeof t == "number")
851
+ return a("span", { style: L }, String(t));
852
+ if (Array.isArray(t))
853
+ return t.length === 0 ? a("span", { style: L }, "[]") : e > 4 ? a("span", { style: w }, "[…]") : a(
780
854
  "div",
781
855
  { style: { paddingLeft: "12px" } },
782
- ...e.map(
783
- (n, o) => p(
856
+ ...t.map(
857
+ (n, o) => a(
784
858
  "div",
785
859
  { key: o },
786
- p("span", { style: X }, `${o}: `),
787
- j(n, t + 1)
860
+ a("span", { style: q }, `${o}: `),
861
+ H(n, e + 1)
788
862
  )
789
863
  )
790
864
  );
791
- if (typeof e == "object") {
792
- const n = Object.keys(e);
793
- return n.length === 0 ? p("span", { style: V }, "{}") : t > 4 ? p("span", { style: T }, "{…}") : p(
865
+ if (typeof t == "object") {
866
+ const n = Object.keys(t);
867
+ return n.length === 0 ? a("span", { style: L }, "{}") : e > 4 ? a("span", { style: w }, "{…}") : a(
794
868
  "div",
795
869
  { style: { paddingLeft: "12px" } },
796
870
  ...n.map(
797
- (o) => p(
871
+ (o) => a(
798
872
  "div",
799
873
  { key: o },
800
- p("span", { style: X }, `${o}: `),
801
- j(e[o], t + 1)
874
+ a("span", { style: q }, `${o}: `),
875
+ H(t[o], e + 1)
802
876
  )
803
877
  )
804
878
  );
805
879
  }
806
- return p("span", { style: V }, String(e));
880
+ return a("span", { style: L }, String(t));
807
881
  }
808
- function Ue({
809
- storeNames: e,
810
- selectedStore: t,
882
+ function Ht({
883
+ storeNames: t,
884
+ selectedStore: e,
811
885
  storeStates: n,
812
886
  onSelectStore: o
813
887
  }) {
814
- const s = t ? n[t] : null;
815
- return p(
888
+ const s = e ? n[e] : null;
889
+ return a(
816
890
  "div",
817
- { style: we },
818
- p(
891
+ { style: Nt },
892
+ a(
819
893
  "div",
820
- { style: Ce },
821
- ...e.map(
822
- (r) => p("div", {
823
- key: r,
824
- style: ve(r === t),
825
- onClick: () => o(r)
826
- }, r)
894
+ { style: Pt },
895
+ ...t.map(
896
+ (r) => a(
897
+ "div",
898
+ {
899
+ key: r,
900
+ style: vt(r === e),
901
+ onClick: () => o(r)
902
+ },
903
+ r
904
+ )
827
905
  )
828
906
  ),
829
- p(
907
+ a(
830
908
  "div",
831
- { style: Ne },
832
- t ? p(
909
+ { style: Vt },
910
+ e ? a(
833
911
  "div",
834
912
  null,
835
- p(
913
+ a(
836
914
  "div",
837
915
  { style: { marginBottom: "8px", color: d.subtext0 } },
838
916
  "State of ",
839
- p("span", { style: Z }, t)
917
+ a("span", { style: nt }, e)
840
918
  ),
841
- s != null ? j(s, 0) : p("span", { style: T }, "No state")
842
- ) : p("span", { style: T }, "Select a store")
919
+ s != null ? H(s, 0) : a("span", { style: w }, "No state")
920
+ ) : a("span", { style: w }, "Select a store")
843
921
  )
844
922
  );
845
923
  }
846
- function De(e) {
847
- const t = new Date(e), n = (o) => String(o).padStart(2, "0");
848
- return `${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}`;
924
+ function Dt(t) {
925
+ const e = new Date(t), n = (o) => String(o).padStart(2, "0");
926
+ return `${n(e.getHours())}:${n(e.getMinutes())}:${n(e.getSeconds())}`;
849
927
  }
850
- function je({
851
- actionLog: e,
852
- timeTravelIndex: t,
928
+ function Bt({
929
+ actionLog: t,
930
+ timeTravelIndex: e,
853
931
  filter: n,
854
932
  onFilterChange: o,
855
933
  onTravelTo: s,
856
934
  onSliderChange: r
857
935
  }) {
858
- const i = n ? e.filter((a) => a.actionName.toLowerCase().includes(n.toLowerCase())) : e;
859
- return p(
936
+ const i = n ? t.filter(
937
+ (l) => l.actionName.toLowerCase().includes(n.toLowerCase())
938
+ ) : t;
939
+ return a(
860
940
  "div",
861
941
  { style: { height: "100%", display: "flex", flexDirection: "column" } },
862
942
  // Filter
863
- p("input", {
864
- style: $e,
943
+ a("input", {
944
+ style: Mt,
865
945
  placeholder: "Filter actions…",
866
946
  value: n,
867
- onInput: (a) => o(a.target.value)
947
+ onInput: (l) => o(l.target.value)
868
948
  }),
869
949
  // Slider
870
- e.length > 0 ? p(
950
+ t.length > 0 ? a(
871
951
  "div",
872
952
  { style: { flexShrink: "0" } },
873
- p("input", {
953
+ a("input", {
874
954
  type: "range",
875
- style: Me,
955
+ style: At,
876
956
  min: "0",
877
- max: String(e.length - 1),
878
- value: String(t),
879
- onInput: (a) => r(Number(a.target.value))
957
+ max: String(t.length - 1),
958
+ value: String(e),
959
+ onInput: (l) => r(Number(l.target.value))
880
960
  }),
881
- p(
961
+ a(
882
962
  "div",
883
- { style: { color: d.overlay0, fontSize: "10px", marginBottom: "4px" } },
884
- `${t + 1} / ${e.length}`
963
+ {
964
+ style: {
965
+ color: d.overlay0,
966
+ fontSize: "10px",
967
+ marginBottom: "4px"
968
+ }
969
+ },
970
+ `${e + 1} / ${t.length}`
885
971
  )
886
972
  ) : null,
887
973
  // Action list
888
- p(
974
+ a(
889
975
  "div",
890
976
  { style: { flex: "1", overflow: "auto" } },
891
- ...i.map((a, u) => {
892
- const c = e.indexOf(a);
893
- return p(
977
+ ...i.map((l) => {
978
+ const u = t.indexOf(l);
979
+ return a(
894
980
  "div",
895
981
  {
896
- key: c,
897
- style: Ve(c === t),
898
- onClick: () => s(c)
982
+ key: u,
983
+ style: It(u === e),
984
+ onClick: () => s(u)
899
985
  },
900
- p(
986
+ a(
901
987
  "span",
902
988
  null,
903
- p("span", { style: Z }, a.actionName),
904
- a.payload !== void 0 ? p(
989
+ a("span", { style: nt }, l.actionName),
990
+ l.payload !== void 0 ? a(
905
991
  "span",
906
992
  { style: { color: d.subtext0, marginLeft: "8px" } },
907
- typeof a.payload == "object" ? JSON.stringify(a.payload) : String(a.payload)
993
+ typeof l.payload == "object" ? JSON.stringify(l.payload) : String(l.payload)
908
994
  ) : null
909
995
  ),
910
- p("span", { style: Ie }, De(a.timestamp))
996
+ a("span", { style: $t }, Dt(l.timestamp))
911
997
  );
912
998
  }),
913
- i.length === 0 ? p(
999
+ i.length === 0 ? a(
914
1000
  "div",
915
1001
  { style: { color: d.overlay0, padding: "8px" } },
916
- e.length === 0 ? "No actions yet" : "No matching actions"
1002
+ t.length === 0 ? "No actions yet" : "No matching actions"
917
1003
  ) : null
918
1004
  )
919
1005
  );
920
1006
  }
921
- function Be({
922
- components: e
1007
+ function zt({
1008
+ components: t
923
1009
  }) {
924
- return e.length === 0 ? p(
1010
+ return t.length === 0 ? a(
925
1011
  "div",
926
1012
  { style: { color: d.overlay0, padding: "8px" } },
927
1013
  "No connected components mounted"
928
- ) : p(
1014
+ ) : a(
929
1015
  "div",
930
1016
  null,
931
- ...e.map(
932
- (t) => p(
1017
+ ...t.map(
1018
+ (e) => a(
933
1019
  "div",
934
- { key: t.id, style: Re },
935
- p("span", { style: Le }, t.displayName),
936
- t.storeNames.length > 0 ? p(
1020
+ { key: e.id, style: Rt },
1021
+ a("span", { style: Ft }, e.displayName),
1022
+ e.storeNames.length > 0 ? a(
937
1023
  "span",
938
- { style: Ae },
939
- t.storeNames.map(
940
- (n) => p("span", { key: n, style: ee }, n)
1024
+ { style: Ut },
1025
+ e.storeNames.map(
1026
+ (n) => a("span", { key: n, style: ot }, n)
941
1027
  )
942
1028
  ) : null
943
1029
  )
944
1030
  )
945
1031
  );
946
1032
  }
947
- function He() {
948
- return G({
1033
+ function Kt() {
1034
+ return Q({
949
1035
  state: {
950
1036
  open: !1,
951
1037
  activeTab: "stores",
@@ -958,190 +1044,205 @@ function He() {
958
1044
  components: []
959
1045
  },
960
1046
  actions: {
961
- toggle: (e) => ({ ...e, open: !e.open }),
962
- open: (e) => ({ ...e, open: !0 }),
963
- close: (e) => ({ ...e, open: !1 }),
964
- setTab: (e, t) => ({ ...e, activeTab: t }),
965
- selectStore: (e, t) => ({ ...e, selectedStore: t }),
966
- setFilter: (e, t) => ({ ...e, filter: t }),
967
- setTimeTravelIndex: (e, t) => ({ ...e, timeTravelIndex: t }),
968
- sync: (e, t) => ({ ...e, ...t })
1047
+ toggle: (t) => ({ ...t, open: !t.open }),
1048
+ open: (t) => ({ ...t, open: !0 }),
1049
+ close: (t) => ({ ...t, open: !1 }),
1050
+ setTab: (t, e) => ({ ...t, activeTab: e }),
1051
+ selectStore: (t, e) => ({ ...t, selectedStore: e }),
1052
+ setFilter: (t, e) => ({ ...t, filter: e }),
1053
+ setTimeTravelIndex: (t, e) => ({
1054
+ ...t,
1055
+ timeTravelIndex: e
1056
+ }),
1057
+ sync: (t, e) => ({ ...t, ...e })
969
1058
  }
970
1059
  });
971
1060
  }
972
- function ze({
973
- open: e,
974
- activeTab: t,
1061
+ function Gt({
1062
+ open: t,
1063
+ activeTab: e,
975
1064
  selectedStore: n,
976
1065
  timeTravelIndex: o,
977
1066
  storeNames: s,
978
1067
  storeStates: r,
979
1068
  actionLog: i,
980
- filter: a,
1069
+ filter: l,
981
1070
  components: u,
982
- panelActions: c
1071
+ panelActions: f
983
1072
  }) {
984
- if (!e) return null;
1073
+ if (!t) return null;
985
1074
  const h = [
986
1075
  { id: "stores", label: "Stores" },
987
1076
  { id: "actions", label: "Actions" },
988
1077
  { id: "components", label: "Components" }
989
1078
  ];
990
- let g;
991
- return t === "stores" ? g = Ue({
1079
+ let y;
1080
+ return e === "stores" ? y = Ht({
992
1081
  storeNames: s,
993
1082
  selectedStore: n,
994
1083
  storeStates: r,
995
- onSelectStore: c.selectStore
996
- }) : t === "actions" ? g = je({
1084
+ onSelectStore: f.selectStore
1085
+ }) : e === "actions" ? y = Bt({
997
1086
  actionLog: i,
998
1087
  timeTravelIndex: o,
999
- filter: a,
1000
- onFilterChange: c.setFilter,
1001
- onTravelTo: c.travelTo,
1002
- onSliderChange: c.sliderChange
1003
- }) : g = Be({ components: u }), p(
1088
+ filter: l,
1089
+ onFilterChange: f.setFilter,
1090
+ onTravelTo: f.travelTo,
1091
+ onSliderChange: f.sliderChange
1092
+ }) : y = zt({ components: u }), a(
1004
1093
  "div",
1005
- { style: xe },
1094
+ { style: Et },
1006
1095
  // Tab bar (all children keyed to avoid mixed key warnings)
1007
- p(
1096
+ a(
1008
1097
  "div",
1009
- { style: _e },
1010
- p("span", { key: "title", style: Fe }, "Pulse"),
1098
+ { style: kt },
1099
+ a("span", { key: "title", style: jt }, "Pulse"),
1011
1100
  ...h.map(
1012
- (l) => p("button", {
1013
- key: l.id,
1014
- style: ke(l.id === t),
1015
- onClick: () => c.setTab(l.id)
1016
- }, l.label)
1101
+ (c) => a(
1102
+ "button",
1103
+ {
1104
+ key: c.id,
1105
+ style: Tt(c.id === e),
1106
+ onClick: () => f.setTab(c.id)
1107
+ },
1108
+ c.label
1109
+ )
1110
+ ),
1111
+ a(
1112
+ "span",
1113
+ { key: "badge", style: ot },
1114
+ `${s.length} stores`
1017
1115
  ),
1018
- p("span", { key: "badge", style: ee }, `${s.length} stores`),
1019
- p("button", {
1020
- key: "close",
1021
- style: Ee,
1022
- onClick: c.close
1023
- }, "×")
1116
+ a(
1117
+ "button",
1118
+ {
1119
+ key: "close",
1120
+ style: wt,
1121
+ onClick: f.close
1122
+ },
1123
+ "×"
1124
+ )
1024
1125
  ),
1025
1126
  // Content
1026
- p("div", { style: Te }, g)
1127
+ a("div", { style: Ct }, y)
1027
1128
  );
1028
1129
  }
1029
- function Ke(e, t) {
1030
- const n = He();
1031
- t && t(n);
1130
+ function Wt(t, e) {
1131
+ const n = Kt();
1132
+ e && e(n);
1032
1133
  let o = !1;
1033
1134
  function s() {
1034
1135
  if (!o) {
1035
1136
  o = !0;
1036
1137
  try {
1037
- const l = e.getStoreNames(), f = {};
1038
- for (const w of l)
1039
- f[w] = e.getStoreState(w);
1040
- const S = n.getState().selectedStore || l[0] || null, x = S ? e.getHistory(S) : [];
1138
+ const c = t.getStoreNames(), p = {};
1139
+ for (const k of c)
1140
+ p[k] = t.getStoreState(k);
1141
+ const _ = n.getState().selectedStore || c[0] || null, m = _ ? t.getHistory(_) : [];
1041
1142
  n.dispatch("sync", {
1042
- storeNames: l,
1043
- storeStates: f,
1044
- actionLog: x,
1045
- timeTravelIndex: x.length > 0 ? x.length - 1 : -1,
1046
- selectedStore: S,
1047
- components: e.getComponents()
1143
+ storeNames: c,
1144
+ storeStates: p,
1145
+ actionLog: m,
1146
+ timeTravelIndex: m.length > 0 ? m.length - 1 : -1,
1147
+ selectedStore: _,
1148
+ components: t.getComponents()
1048
1149
  });
1049
1150
  } finally {
1050
1151
  o = !1;
1051
1152
  }
1052
1153
  }
1053
1154
  }
1054
- e.on((l) => {
1055
- l.type === "component-mounted" || l.type === "component-unmounted" || s();
1155
+ t.on((c) => {
1156
+ c.type === "component-mounted" || c.type === "component-unmounted" || s();
1056
1157
  });
1057
1158
  const r = {
1058
- selectStore: (l) => {
1059
- n.dispatch("selectStore", l);
1060
- const f = e.getHistory(l);
1159
+ selectStore: (c) => {
1160
+ n.dispatch("selectStore", c);
1161
+ const p = t.getHistory(c);
1061
1162
  n.dispatch("sync", {
1062
- actionLog: f,
1063
- timeTravelIndex: f.length > 0 ? f.length - 1 : -1
1163
+ actionLog: p,
1164
+ timeTravelIndex: p.length > 0 ? p.length - 1 : -1
1064
1165
  });
1065
1166
  },
1066
- setTab: (l) => n.dispatch("setTab", l),
1067
- setFilter: (l) => n.dispatch("setFilter", l),
1167
+ setTab: (c) => n.dispatch("setTab", c),
1168
+ setFilter: (c) => n.dispatch("setFilter", c),
1068
1169
  close: () => n.dispatch("close"),
1069
- travelTo: (l) => {
1070
- const f = n.getState().selectedStore;
1071
- f && (W(e, f, l), n.dispatch("setTimeTravelIndex", l));
1170
+ travelTo: (c) => {
1171
+ const p = n.getState().selectedStore;
1172
+ p && (X(t, p, c), n.dispatch("setTimeTravelIndex", c));
1072
1173
  },
1073
- sliderChange: (l) => {
1074
- const f = n.getState().selectedStore;
1075
- f && (W(e, f, l), n.dispatch("setTimeTravelIndex", l));
1174
+ sliderChange: (c) => {
1175
+ const p = n.getState().selectedStore;
1176
+ p && (X(t, p, c), n.dispatch("setTimeTravelIndex", c));
1076
1177
  }
1077
- }, i = le({
1078
- open: n.select((l) => l.open),
1079
- activeTab: n.select((l) => l.activeTab),
1080
- selectedStore: n.select((l) => l.selectedStore),
1081
- timeTravelIndex: n.select((l) => l.timeTravelIndex),
1082
- storeNames: n.select((l) => l.storeNames),
1083
- storeStates: n.select((l) => l.storeStates),
1084
- actionLog: n.select((l) => l.actionLog),
1085
- filter: n.select((l) => l.filter),
1086
- components: n.select((l) => l.components)
1087
- })((l) => ze({ ...l, panelActions: r }));
1088
- let a = null;
1178
+ }, i = pt({
1179
+ open: n.select((c) => c.open),
1180
+ activeTab: n.select((c) => c.activeTab),
1181
+ selectedStore: n.select((c) => c.selectedStore),
1182
+ timeTravelIndex: n.select((c) => c.timeTravelIndex),
1183
+ storeNames: n.select((c) => c.storeNames),
1184
+ storeStates: n.select((c) => c.storeStates),
1185
+ actionLog: n.select((c) => c.actionLog),
1186
+ filter: n.select((c) => c.filter),
1187
+ components: n.select((c) => c.components)
1188
+ })((c) => Gt({ ...c, panelActions: r }));
1189
+ let l = null;
1089
1190
  function u() {
1090
- a || (a = document.createElement("div"), a.id = "pulse-devtools-root", document.body.appendChild(a), Se(p(i, null), a), s());
1191
+ l || (l = document.createElement("div"), l.id = "pulse-devtools-root", document.body.appendChild(l), xt(a(i, null), l), s());
1091
1192
  }
1092
- function c() {
1193
+ function f() {
1093
1194
  u(), n.dispatch("open");
1094
1195
  }
1095
1196
  function h() {
1096
1197
  n.dispatch("close");
1097
1198
  }
1098
- function g() {
1199
+ function y() {
1099
1200
  u(), n.dispatch("toggle");
1100
1201
  }
1101
- return { openPanel: c, closePanel: h, togglePanel: g, panelStore: n };
1202
+ return { openPanel: f, closePanel: h, togglePanel: y, panelStore: n };
1102
1203
  }
1103
- const $ = new de(), te = /* @__PURE__ */ new WeakSet();
1104
- function We(e) {
1105
- te.add(e);
1204
+ const $ = new yt(), st = /* @__PURE__ */ new WeakSet();
1205
+ function Xt(t) {
1206
+ st.add(t);
1106
1207
  }
1107
- ce(
1108
- (e) => {
1109
- const t = e.connectedFn._bindings || {}, n = Object.values(t).map((i) => i.store);
1110
- if (n.length > 0 && n.every((i) => te.has(i)))
1208
+ at(
1209
+ (t) => {
1210
+ const e = t.connectedFn._bindings || {}, n = Object.values(e).map((i) => i.store);
1211
+ if (n.length > 0 && n.every((i) => st.has(i)))
1111
1212
  return;
1112
- const o = n.map((i) => i.name || "unnamed"), s = e.connectedFn.displayName || "Unknown", r = $.trackComponent(s, o);
1113
- e._devtoolsId = r;
1213
+ const o = n.map((i) => i.name || "unnamed"), s = t.connectedFn.displayName || "Unknown", r = $.trackComponent(s, o);
1214
+ t._devtoolsId = r;
1114
1215
  },
1115
- (e) => {
1116
- const t = e._devtoolsId;
1117
- t != null && $.untrackComponent(t);
1216
+ (t) => {
1217
+ const e = t._devtoolsId;
1218
+ e != null && $.untrackComponent(e);
1118
1219
  }
1119
1220
  );
1120
1221
  let N = null;
1121
- function ne() {
1122
- return N || (N = Ke($, We)), N;
1222
+ function rt() {
1223
+ return N || (N = Wt($, Xt)), N;
1123
1224
  }
1124
- function Qe() {
1125
- ne().openPanel();
1225
+ function Zt() {
1226
+ rt().openPanel();
1126
1227
  }
1127
- function Ye() {
1228
+ function te() {
1128
1229
  N && N.closePanel();
1129
1230
  }
1130
- function Xe() {
1131
- ne().togglePanel();
1231
+ function qt() {
1232
+ rt().togglePanel();
1132
1233
  }
1133
- typeof window < "u" && (window.addEventListener("keydown", (e) => {
1134
- e.ctrlKey && e.shiftKey && e.key === "P" && (e.preventDefault(), Xe());
1234
+ typeof window < "u" && (window.addEventListener("keydown", (t) => {
1235
+ t.ctrlKey && t.shiftKey && t.key === "P" && (t.preventDefault(), qt());
1135
1236
  }), window.__PULSE_DEVTOOLS__ = $);
1136
1237
  export {
1137
- de as PulseDevtools,
1138
- We as _markInternalStore,
1139
- Ye as closePanel,
1238
+ yt as PulseDevtools,
1239
+ Xt as _markInternalStore,
1240
+ te as closePanel,
1140
1241
  $ as devtools,
1141
- Ge as instrumentStore,
1142
- Qe as openPanel,
1143
- Je as replayFrom,
1144
- Xe as togglePanel,
1145
- W as travelTo
1242
+ Qt as instrumentStore,
1243
+ Zt as openPanel,
1244
+ Yt as replayFrom,
1245
+ qt as togglePanel,
1246
+ X as travelTo
1146
1247
  };
1147
1248
  //# sourceMappingURL=devtools.js.map