@jsenv/plugin-toolbar 1.4.28 → 1.4.30

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.
@@ -15,19 +15,19 @@ l$2 = {
15
15
 
16
16
  var t$1,
17
17
  r$1,
18
- u$2,
18
+ u$1,
19
19
  i$1,
20
- o = 0,
20
+ o$1 = 0,
21
21
  f$1 = [],
22
22
  c$1 = l$2,
23
23
  e$1 = c$1.__b,
24
- a$1 = c$1.__r,
24
+ a$2 = c$1.__r,
25
25
  v$2 = c$1.diffed,
26
26
  l$1 = c$1.__c,
27
- m = c$1.unmount,
27
+ m$1 = c$1.unmount,
28
28
  s$1 = c$1.__;
29
29
  function d$2(n, t) {
30
- c$1.__h && c$1.__h(r$1, n, o || t), o = 0;
30
+ c$1.__h && c$1.__h(r$1, n, o$1 || t), o$1 = 0;
31
31
  var u = r$1.__H || (r$1.__H = {
32
32
  __: [],
33
33
  __h: []
@@ -50,17 +50,17 @@ c$1.__b = function (n) {
50
50
  }, c$1.__ = function (n, t) {
51
51
  n && t.__k && t.__k.__m && (n.__m = t.__k.__m), s$1 && s$1(n, t);
52
52
  }, c$1.__r = function (n) {
53
- a$1 && a$1(n), t$1 = 0;
53
+ a$2 && a$2(n), t$1 = 0;
54
54
  var i = (r$1 = n.__c).__H;
55
- i && (u$2 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
56
- n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
57
- })) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$2 = r$1;
55
+ i && (u$1 === r$1 ? (i.__h = [], r$1.__h = [], i.__.forEach(function (n) {
56
+ n.__N && (n.__ = n.__N), n.i = n.__N = undefined;
57
+ })) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$1 = r$1;
58
58
  }, c$1.diffed = function (n) {
59
59
  v$2 && v$2(n);
60
60
  var t = n.__c;
61
61
  t && t.__H && (t.__H.__h.length && (1 !== f$1.push(t) && i$1 === c$1.requestAnimationFrame || ((i$1 = c$1.requestAnimationFrame) || w$1)(j)), t.__H.__.forEach(function (n) {
62
- n.i && (n.__H = n.i), n.i = void 0;
63
- })), u$2 = r$1 = null;
62
+ n.i && (n.__H = n.i), n.i = undefined;
63
+ })), u$1 = r$1 = null;
64
64
  }, c$1.__c = function (n, t) {
65
65
  t.some(function (n) {
66
66
  try {
@@ -74,7 +74,7 @@ c$1.__b = function (n) {
74
74
  }
75
75
  }), l$1 && l$1(n, t);
76
76
  }, c$1.unmount = function (n) {
77
- m && m(n);
77
+ m$1 && m$1(n);
78
78
  var t,
79
79
  r = n.__c;
80
80
  r && r.__H && (r.__H.__.forEach(function (n) {
@@ -83,21 +83,21 @@ c$1.__b = function (n) {
83
83
  } catch (n) {
84
84
  t = n;
85
85
  }
86
- }), r.__H = void 0, t && c$1.__e(t, r.__v));
86
+ }), r.__H = undefined, t && c$1.__e(t, r.__v));
87
87
  };
88
- var k = "function" == typeof requestAnimationFrame;
88
+ var k$1 = "function" == typeof requestAnimationFrame;
89
89
  function w$1(n) {
90
90
  var t,
91
91
  r = function () {
92
- clearTimeout(u), k && cancelAnimationFrame(t), setTimeout(n);
92
+ clearTimeout(u), k$1 && cancelAnimationFrame(t), setTimeout(n);
93
93
  },
94
94
  u = setTimeout(r, 100);
95
- k && (t = requestAnimationFrame(r));
95
+ k$1 && (t = requestAnimationFrame(r));
96
96
  }
97
97
  function z(n) {
98
98
  var t = r$1,
99
99
  u = n.__c;
100
- "function" == typeof u && (n.__c = void 0, u()), r$1 = t;
100
+ "function" == typeof u && (n.__c = undefined, u()), r$1 = t;
101
101
  }
102
102
  function B(n) {
103
103
  var t = r$1;
@@ -116,21 +116,21 @@ function t() {
116
116
  return;
117
117
  }
118
118
  let i,
119
- t = !1;
120
- while (void 0 !== s) {
119
+ t = false;
120
+ while (undefined !== s) {
121
121
  let o = s;
122
- s = void 0;
122
+ s = undefined;
123
123
  f++;
124
- while (void 0 !== o) {
124
+ while (undefined !== o) {
125
125
  const n = o.o;
126
- o.o = void 0;
126
+ o.o = undefined;
127
127
  o.f &= -3;
128
128
  if (!(8 & o.f) && v$1(o)) try {
129
129
  o.c();
130
130
  } catch (o) {
131
131
  if (!t) {
132
132
  i = o;
133
- t = !0;
133
+ t = true;
134
134
  }
135
135
  }
136
136
  o = n;
@@ -140,79 +140,88 @@ function t() {
140
140
  r--;
141
141
  if (t) throw i;
142
142
  }
143
+ function o(i) {
144
+ if (r > 0) return i();
145
+ r++;
146
+ try {
147
+ return i();
148
+ } finally {
149
+ t();
150
+ }
151
+ }
143
152
  let n, s;
144
153
  let r = 0,
145
154
  f = 0,
146
155
  e = 0;
147
156
  function c(i) {
148
- if (void 0 === n) return;
157
+ if (undefined === n) return;
149
158
  let t = i.n;
150
- if (void 0 === t || t.t !== n) {
159
+ if (undefined === t || t.t !== n) {
151
160
  t = {
152
161
  i: 0,
153
162
  S: i,
154
163
  p: n.s,
155
- n: void 0,
164
+ n: undefined,
156
165
  t: n,
157
- e: void 0,
158
- x: void 0,
166
+ e: undefined,
167
+ x: undefined,
159
168
  r: t
160
169
  };
161
- if (void 0 !== n.s) n.s.n = t;
170
+ if (undefined !== n.s) n.s.n = t;
162
171
  n.s = t;
163
172
  i.n = t;
164
173
  if (32 & n.f) i.S(t);
165
174
  return t;
166
175
  } else if (-1 === t.i) {
167
176
  t.i = 0;
168
- if (void 0 !== t.n) {
177
+ if (undefined !== t.n) {
169
178
  t.n.p = t.p;
170
- if (void 0 !== t.p) t.p.n = t.n;
179
+ if (undefined !== t.p) t.p.n = t.n;
171
180
  t.p = n.s;
172
- t.n = void 0;
181
+ t.n = undefined;
173
182
  n.s.n = t;
174
183
  n.s = t;
175
184
  }
176
185
  return t;
177
186
  }
178
187
  }
179
- function u$1(i) {
188
+ function u(i) {
180
189
  this.v = i;
181
190
  this.i = 0;
182
- this.n = void 0;
183
- this.t = void 0;
191
+ this.n = undefined;
192
+ this.t = undefined;
184
193
  }
185
- u$1.prototype.brand = i;
186
- u$1.prototype.h = function () {
187
- return !0;
194
+ u.prototype.brand = i;
195
+ u.prototype.h = function () {
196
+ return true;
188
197
  };
189
- u$1.prototype.S = function (i) {
190
- if (this.t !== i && void 0 === i.e) {
198
+ u.prototype.S = function (i) {
199
+ if (this.t !== i && undefined === i.e) {
191
200
  i.x = this.t;
192
- if (void 0 !== this.t) this.t.e = i;
201
+ if (undefined !== this.t) this.t.e = i;
193
202
  this.t = i;
194
203
  }
195
204
  };
196
- u$1.prototype.U = function (i) {
197
- if (void 0 !== this.t) {
205
+ u.prototype.U = function (i) {
206
+ if (undefined !== this.t) {
198
207
  const t = i.e,
199
208
  o = i.x;
200
- if (void 0 !== t) {
209
+ if (undefined !== t) {
201
210
  t.x = o;
202
- i.e = void 0;
211
+ i.e = undefined;
203
212
  }
204
- if (void 0 !== o) {
213
+ if (undefined !== o) {
205
214
  o.e = t;
206
- i.x = void 0;
215
+ i.x = undefined;
207
216
  }
208
217
  if (i === this.t) this.t = o;
209
218
  }
210
219
  };
211
- u$1.prototype.subscribe = function (i) {
220
+ u.prototype.subscribe = function (i) {
212
221
  return E(() => {
213
222
  const t = this.value,
214
223
  o = n;
215
- n = void 0;
224
+ n = undefined;
216
225
  try {
217
226
  i(t);
218
227
  } finally {
@@ -220,28 +229,28 @@ u$1.prototype.subscribe = function (i) {
220
229
  }
221
230
  });
222
231
  };
223
- u$1.prototype.valueOf = function () {
232
+ u.prototype.valueOf = function () {
224
233
  return this.value;
225
234
  };
226
- u$1.prototype.toString = function () {
235
+ u.prototype.toString = function () {
227
236
  return this.value + "";
228
237
  };
229
- u$1.prototype.toJSON = function () {
238
+ u.prototype.toJSON = function () {
230
239
  return this.value;
231
240
  };
232
- u$1.prototype.peek = function () {
241
+ u.prototype.peek = function () {
233
242
  const i = n;
234
- n = void 0;
243
+ n = undefined;
235
244
  try {
236
245
  return this.value;
237
246
  } finally {
238
247
  n = i;
239
248
  }
240
249
  };
241
- Object.defineProperty(u$1.prototype, "value", {
250
+ Object.defineProperty(u.prototype, "value", {
242
251
  get() {
243
252
  const i = c(this);
244
- if (void 0 !== i) i.i = this.i;
253
+ if (undefined !== i) i.i = this.i;
245
254
  return this.v;
246
255
  },
247
256
  set(i) {
@@ -260,19 +269,19 @@ Object.defineProperty(u$1.prototype, "value", {
260
269
  }
261
270
  });
262
271
  function d$1(i) {
263
- return new u$1(i);
272
+ return new u(i);
264
273
  }
265
274
  function v$1(i) {
266
- for (let t = i.s; void 0 !== t; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
267
- return !1;
275
+ for (let t = i.s; undefined !== t; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return true;
276
+ return false;
268
277
  }
269
278
  function l(i) {
270
- for (let t = i.s; void 0 !== t; t = t.n) {
279
+ for (let t = i.s; undefined !== t; t = t.n) {
271
280
  const o = t.S.n;
272
- if (void 0 !== o) t.r = o;
281
+ if (undefined !== o) t.r = o;
273
282
  t.S.n = t;
274
283
  t.i = -1;
275
- if (void 0 === t.n) {
284
+ if (undefined === t.n) {
276
285
  i.s = t;
277
286
  break;
278
287
  }
@@ -281,37 +290,37 @@ function l(i) {
281
290
  function y(i) {
282
291
  let t,
283
292
  o = i.s;
284
- while (void 0 !== o) {
293
+ while (undefined !== o) {
285
294
  const i = o.p;
286
295
  if (-1 === o.i) {
287
296
  o.S.U(o);
288
- if (void 0 !== i) i.n = o.n;
289
- if (void 0 !== o.n) o.n.p = i;
297
+ if (undefined !== i) i.n = o.n;
298
+ if (undefined !== o.n) o.n.p = i;
290
299
  } else t = o;
291
300
  o.S.n = o.r;
292
- if (void 0 !== o.r) o.r = void 0;
301
+ if (undefined !== o.r) o.r = undefined;
293
302
  o = i;
294
303
  }
295
304
  i.s = t;
296
305
  }
297
- function a(i) {
298
- u$1.call(this, void 0);
306
+ function a$1(i) {
307
+ u.call(this, undefined);
299
308
  this.x = i;
300
- this.s = void 0;
309
+ this.s = undefined;
301
310
  this.g = e - 1;
302
311
  this.f = 4;
303
312
  }
304
- (a.prototype = new u$1()).h = function () {
313
+ (a$1.prototype = new u()).h = function () {
305
314
  this.f &= -3;
306
- if (1 & this.f) return !1;
307
- if (32 == (36 & this.f)) return !0;
315
+ if (1 & this.f) return false;
316
+ if (32 == (36 & this.f)) return true;
308
317
  this.f &= -5;
309
- if (this.g === e) return !0;
318
+ if (this.g === e) return true;
310
319
  this.g = e;
311
320
  this.f |= 1;
312
321
  if (this.i > 0 && !v$1(this)) {
313
322
  this.f &= -2;
314
- return !0;
323
+ return true;
315
324
  }
316
325
  const i = n;
317
326
  try {
@@ -331,56 +340,56 @@ function a(i) {
331
340
  n = i;
332
341
  y(this);
333
342
  this.f &= -2;
334
- return !0;
343
+ return true;
335
344
  };
336
- a.prototype.S = function (i) {
337
- if (void 0 === this.t) {
345
+ a$1.prototype.S = function (i) {
346
+ if (undefined === this.t) {
338
347
  this.f |= 36;
339
- for (let i = this.s; void 0 !== i; i = i.n) i.S.S(i);
348
+ for (let i = this.s; undefined !== i; i = i.n) i.S.S(i);
340
349
  }
341
- u$1.prototype.S.call(this, i);
350
+ u.prototype.S.call(this, i);
342
351
  };
343
- a.prototype.U = function (i) {
344
- if (void 0 !== this.t) {
345
- u$1.prototype.U.call(this, i);
346
- if (void 0 === this.t) {
352
+ a$1.prototype.U = function (i) {
353
+ if (undefined !== this.t) {
354
+ u.prototype.U.call(this, i);
355
+ if (undefined === this.t) {
347
356
  this.f &= -33;
348
- for (let i = this.s; void 0 !== i; i = i.n) i.S.U(i);
357
+ for (let i = this.s; undefined !== i; i = i.n) i.S.U(i);
349
358
  }
350
359
  }
351
360
  };
352
- a.prototype.N = function () {
361
+ a$1.prototype.N = function () {
353
362
  if (!(2 & this.f)) {
354
363
  this.f |= 6;
355
- for (let i = this.t; void 0 !== i; i = i.x) i.t.N();
364
+ for (let i = this.t; undefined !== i; i = i.x) i.t.N();
356
365
  }
357
366
  };
358
- Object.defineProperty(a.prototype, "value", {
367
+ Object.defineProperty(a$1.prototype, "value", {
359
368
  get() {
360
369
  if (1 & this.f) throw new Error("Cycle detected");
361
370
  const i = c(this);
362
371
  this.h();
363
- if (void 0 !== i) i.i = this.i;
372
+ if (undefined !== i) i.i = this.i;
364
373
  if (16 & this.f) throw this.v;
365
374
  return this.v;
366
375
  }
367
376
  });
368
377
  function w(i) {
369
- return new a(i);
378
+ return new a$1(i);
370
379
  }
371
- function _(i) {
380
+ function _$1(i) {
372
381
  const o = i.u;
373
- i.u = void 0;
382
+ i.u = undefined;
374
383
  if ("function" == typeof o) {
375
384
  r++;
376
385
  const s = n;
377
- n = void 0;
386
+ n = undefined;
378
387
  try {
379
388
  o();
380
389
  } catch (t) {
381
390
  i.f &= -2;
382
391
  i.f |= 8;
383
- g(i);
392
+ g$1(i);
384
393
  throw t;
385
394
  } finally {
386
395
  n = s;
@@ -388,28 +397,28 @@ function _(i) {
388
397
  }
389
398
  }
390
399
  }
391
- function g(i) {
392
- for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
393
- i.x = void 0;
394
- i.s = void 0;
395
- _(i);
400
+ function g$1(i) {
401
+ for (let t = i.s; undefined !== t; t = t.n) t.S.U(t);
402
+ i.x = undefined;
403
+ i.s = undefined;
404
+ _$1(i);
396
405
  }
397
- function p$1(i) {
406
+ function p(i) {
398
407
  if (n !== this) throw new Error("Out-of-order effect");
399
408
  y(this);
400
409
  n = i;
401
410
  this.f &= -2;
402
- if (8 & this.f) g(this);
411
+ if (8 & this.f) g$1(this);
403
412
  t();
404
413
  }
405
- function b(i) {
414
+ function b$1(i) {
406
415
  this.x = i;
407
- this.u = void 0;
408
- this.s = void 0;
409
- this.o = void 0;
416
+ this.u = undefined;
417
+ this.s = undefined;
418
+ this.o = undefined;
410
419
  this.f = 32;
411
420
  }
412
- b.prototype.c = function () {
421
+ b$1.prototype.c = function () {
413
422
  const i = this.S();
414
423
  try {
415
424
  if (8 & this.f) return;
@@ -420,30 +429,30 @@ b.prototype.c = function () {
420
429
  i();
421
430
  }
422
431
  };
423
- b.prototype.S = function () {
432
+ b$1.prototype.S = function () {
424
433
  if (1 & this.f) throw new Error("Cycle detected");
425
434
  this.f |= 1;
426
435
  this.f &= -9;
427
- _(this);
436
+ _$1(this);
428
437
  l(this);
429
438
  r++;
430
439
  const i = n;
431
440
  n = this;
432
- return p$1.bind(this, i);
441
+ return p.bind(this, i);
433
442
  };
434
- b.prototype.N = function () {
443
+ b$1.prototype.N = function () {
435
444
  if (!(2 & this.f)) {
436
445
  this.f |= 2;
437
446
  this.o = s;
438
447
  s = this;
439
448
  }
440
449
  };
441
- b.prototype.d = function () {
450
+ b$1.prototype.d = function () {
442
451
  this.f |= 8;
443
- if (!(1 & this.f)) g(this);
452
+ if (!(1 & this.f)) g$1(this);
444
453
  };
445
454
  function E(i) {
446
- const t = new b(i);
455
+ const t = new b$1(i);
447
456
  try {
448
457
  t.c();
449
458
  } catch (i) {
@@ -453,54 +462,64 @@ function E(i) {
453
462
  return t.d.bind(t);
454
463
  }
455
464
 
456
- function u(t, e) {
465
+ let a,
466
+ d,
467
+ _ = [];
468
+ E(function () {
469
+ a = this.N;
470
+ })();
471
+ function m(t, e) {
457
472
  l$2[t] = e.bind(null, l$2[t] || (() => {}));
458
473
  }
459
- let d;
460
- function h(t) {
474
+ function v(t) {
461
475
  if (d) d();
462
476
  d = t && t.S();
463
477
  }
464
- function p({
478
+ function g({
465
479
  data: t
466
480
  }) {
467
481
  const i = useSignal(t);
468
482
  i.value = t;
469
- const o = T(() => {
470
- let t = this.__v;
471
- while (t = t.__) if (t.__c) {
472
- t.__c.__$f |= 4;
483
+ const [o, f] = T(() => {
484
+ let t = this,
485
+ n = this.__v;
486
+ while (n = n.__) if (n.__c) {
487
+ n.__c.__$f |= 4;
473
488
  break;
474
489
  }
475
- this.__$u.c = () => {
476
- var t;
477
- const i = this.__$u.S(),
478
- n = o.value;
479
- i();
480
- if (t$2(n) || 3 !== (null == (t = this.base) ? void 0 : t.nodeType)) {
481
- this.__$f |= 1;
482
- this.setState({});
483
- } else this.base.data = n;
490
+ const o = w(() => {
491
+ let t = i.value.value;
492
+ return 0 === t ? 0 : true === t ? "" : t || "";
493
+ }),
494
+ f = w(() => !t$2(o.value)),
495
+ s = E(function () {
496
+ this.N = A;
497
+ if (f.value) {
498
+ const i = o.value;
499
+ if (t.base && 3 === t.base.nodeType) t.base.data = i;
500
+ }
501
+ }),
502
+ c = this.__$u.d;
503
+ this.__$u.d = function () {
504
+ s();
505
+ c.call(this);
484
506
  };
485
- return w(() => {
486
- let t = i.value.value;
487
- return 0 === t ? 0 : !0 === t ? "" : t || "";
488
- });
507
+ return [f, o];
489
508
  }, []);
490
- return o.value;
509
+ return o.value ? f.peek() : f.value;
491
510
  }
492
- p.displayName = "_st";
493
- Object.defineProperties(u$1.prototype, {
511
+ g.displayName = "_st";
512
+ Object.defineProperties(u.prototype, {
494
513
  constructor: {
495
- configurable: !0,
496
- value: void 0
514
+ configurable: true,
515
+ value: undefined
497
516
  },
498
517
  type: {
499
- configurable: !0,
500
- value: p
518
+ configurable: true,
519
+ value: g
501
520
  },
502
521
  props: {
503
- configurable: !0,
522
+ configurable: true,
504
523
  get() {
505
524
  return {
506
525
  data: this
@@ -508,18 +527,18 @@ Object.defineProperties(u$1.prototype, {
508
527
  }
509
528
  },
510
529
  __b: {
511
- configurable: !0,
530
+ configurable: true,
512
531
  value: 1
513
532
  }
514
533
  });
515
- u("__b", (t, i) => {
534
+ m("__b", (t, i) => {
516
535
  if ("string" == typeof i.type) {
517
536
  let t,
518
537
  e = i.props;
519
538
  for (let n in e) {
520
539
  if ("children" === n) continue;
521
540
  let o = e[n];
522
- if (o instanceof u$1) {
541
+ if (o instanceof u) {
523
542
  if (!t) i.__np = t = {};
524
543
  t[n] = o;
525
544
  e[n] = o.peek();
@@ -528,14 +547,14 @@ u("__b", (t, i) => {
528
547
  }
529
548
  t(i);
530
549
  });
531
- u("__r", (t, i) => {
532
- h();
550
+ m("__r", (t, i) => {
551
+ v();
533
552
  let e,
534
553
  n = i.__c;
535
554
  if (n) {
536
555
  n.__$f &= -2;
537
556
  e = n.__$u;
538
- if (void 0 === e) n.__$u = e = function (t) {
557
+ if (undefined === e) n.__$u = e = function (t) {
539
558
  let i;
540
559
  E(function () {
541
560
  i = this;
@@ -547,15 +566,15 @@ u("__r", (t, i) => {
547
566
  return i;
548
567
  }();
549
568
  }
550
- h(e);
569
+ v(e);
551
570
  t(i);
552
571
  });
553
- u("__e", (t, i, e, n) => {
554
- h();
572
+ m("__e", (t, i, e, n) => {
573
+ v();
555
574
  t(i, e, n);
556
575
  });
557
- u("diffed", (t, i) => {
558
- h();
576
+ m("diffed", (t, i) => {
577
+ v();
559
578
  let e;
560
579
  if ("string" == typeof i.type && (e = i.__e)) {
561
580
  let t = i.__np,
@@ -564,36 +583,37 @@ u("diffed", (t, i) => {
564
583
  let i = e.U;
565
584
  if (i) for (let e in i) {
566
585
  let n = i[e];
567
- if (void 0 !== n && !(e in t)) {
586
+ if (undefined !== n && !(e in t)) {
568
587
  n.d();
569
- i[e] = void 0;
588
+ i[e] = undefined;
570
589
  }
571
590
  } else {
572
591
  i = {};
573
592
  e.U = i;
574
593
  }
575
594
  for (let o in t) {
576
- let r = i[o],
577
- f = t[o];
578
- if (void 0 === r) {
579
- r = v(e, o, f, n);
580
- i[o] = r;
581
- } else r.o(f, n);
595
+ let f = i[o],
596
+ r = t[o];
597
+ if (undefined === f) {
598
+ f = b(e, o, r, n);
599
+ i[o] = f;
600
+ } else f.o(r, n);
582
601
  }
583
602
  }
584
603
  }
585
604
  t(i);
586
605
  });
587
- function v(t, i, e, n) {
588
- const o = i in t && void 0 === t.ownerSVGElement,
589
- r = d$1(e);
606
+ function b(t, i, e, n) {
607
+ const o = i in t && undefined === t.ownerSVGElement,
608
+ f = d$1(e);
590
609
  return {
591
610
  o: (t, i) => {
592
- r.value = t;
611
+ f.value = t;
593
612
  n = i;
594
613
  },
595
- d: E(() => {
596
- const e = r.value.value;
614
+ d: E(function () {
615
+ this.N = A;
616
+ const e = f.value.value;
597
617
  if (n[i] !== e) {
598
618
  n[i] = e;
599
619
  if (o) t[i] = e;else if (e) t.setAttribute(i, e);else t.removeAttribute(i);
@@ -601,13 +621,13 @@ function v(t, i, e, n) {
601
621
  })
602
622
  };
603
623
  }
604
- u("unmount", (t, i) => {
624
+ m("unmount", (t, i) => {
605
625
  if ("string" == typeof i.type) {
606
626
  let t = i.__e;
607
627
  if (t) {
608
628
  const i = t.U;
609
629
  if (i) {
610
- t.U = void 0;
630
+ t.U = undefined;
611
631
  for (let t in i) {
612
632
  let e = i[t];
613
633
  if (e) e.d();
@@ -619,20 +639,34 @@ u("unmount", (t, i) => {
619
639
  if (t) {
620
640
  const i = t.__$u;
621
641
  if (i) {
622
- t.__$u = void 0;
642
+ t.__$u = undefined;
623
643
  i.d();
624
644
  }
625
645
  }
626
646
  }
627
647
  t(i);
628
648
  });
629
- u("__h", (t, i, e, n) => {
649
+ m("__h", (t, i, e, n) => {
630
650
  if (n < 3 || 9 === n) i.__$f |= 2;
631
651
  t(i, e, n);
632
652
  });
633
653
  function useSignal(t) {
634
654
  return T(() => d$1(t), []);
635
655
  }
656
+ const k = t => {
657
+ queueMicrotask(() => {
658
+ queueMicrotask(t);
659
+ });
660
+ };
661
+ function x() {
662
+ o(() => {
663
+ let t;
664
+ while (t = _.shift()) a.call(t);
665
+ });
666
+ }
667
+ function A() {
668
+ if (1 === _.push(this)) (l$2.requestAnimationFrame || k)(x);
669
+ }
636
670
 
637
671
  const paramsFromParentWindow = {};
638
672
  const searchParams = new URLSearchParams(window.location.search);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-toolbar",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  "/src/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/ast": "6.4.1",
30
- "@preact/signals": "1.3.1"
29
+ "@jsenv/ast": "6.4.3",
30
+ "@preact/signals": "2.0.1"
31
31
  },
32
32
  "scripts": {
33
33
  "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",