@jsenv/plugin-toolbar 1.4.29 → 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.
@@ -53,13 +53,13 @@ c$1.__b = function (n) {
53
53
  a$2 && a$2(n), t$1 = 0;
54
54
  var i = (r$1 = n.__c).__H;
55
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 = void 0;
56
+ n.__N && (n.__ = n.__N), n.i = n.__N = undefined;
57
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;
62
+ n.i && (n.__H = n.i), n.i = undefined;
63
63
  })), u$1 = r$1 = null;
64
64
  }, c$1.__c = function (n, t) {
65
65
  t.some(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;
@@ -154,31 +154,31 @@ let r = 0,
154
154
  f = 0,
155
155
  e = 0;
156
156
  function c(i) {
157
- if (void 0 === n) return;
157
+ if (undefined === n) return;
158
158
  let t = i.n;
159
- if (void 0 === t || t.t !== n) {
159
+ if (undefined === t || t.t !== n) {
160
160
  t = {
161
161
  i: 0,
162
162
  S: i,
163
163
  p: n.s,
164
- n: void 0,
164
+ n: undefined,
165
165
  t: n,
166
- e: void 0,
167
- x: void 0,
166
+ e: undefined,
167
+ x: undefined,
168
168
  r: t
169
169
  };
170
- if (void 0 !== n.s) n.s.n = t;
170
+ if (undefined !== n.s) n.s.n = t;
171
171
  n.s = t;
172
172
  i.n = t;
173
173
  if (32 & n.f) i.S(t);
174
174
  return t;
175
175
  } else if (-1 === t.i) {
176
176
  t.i = 0;
177
- if (void 0 !== t.n) {
177
+ if (undefined !== t.n) {
178
178
  t.n.p = t.p;
179
- if (void 0 !== t.p) t.p.n = t.n;
179
+ if (undefined !== t.p) t.p.n = t.n;
180
180
  t.p = n.s;
181
- t.n = void 0;
181
+ t.n = undefined;
182
182
  n.s.n = t;
183
183
  n.s = t;
184
184
  }
@@ -188,31 +188,31 @@ function c(i) {
188
188
  function u(i) {
189
189
  this.v = i;
190
190
  this.i = 0;
191
- this.n = void 0;
192
- this.t = void 0;
191
+ this.n = undefined;
192
+ this.t = undefined;
193
193
  }
194
194
  u.prototype.brand = i;
195
195
  u.prototype.h = function () {
196
- return !0;
196
+ return true;
197
197
  };
198
198
  u.prototype.S = function (i) {
199
- if (this.t !== i && void 0 === i.e) {
199
+ if (this.t !== i && undefined === i.e) {
200
200
  i.x = this.t;
201
- if (void 0 !== this.t) this.t.e = i;
201
+ if (undefined !== this.t) this.t.e = i;
202
202
  this.t = i;
203
203
  }
204
204
  };
205
205
  u.prototype.U = function (i) {
206
- if (void 0 !== this.t) {
206
+ if (undefined !== this.t) {
207
207
  const t = i.e,
208
208
  o = i.x;
209
- if (void 0 !== t) {
209
+ if (undefined !== t) {
210
210
  t.x = o;
211
- i.e = void 0;
211
+ i.e = undefined;
212
212
  }
213
- if (void 0 !== o) {
213
+ if (undefined !== o) {
214
214
  o.e = t;
215
- i.x = void 0;
215
+ i.x = undefined;
216
216
  }
217
217
  if (i === this.t) this.t = o;
218
218
  }
@@ -221,7 +221,7 @@ u.prototype.subscribe = function (i) {
221
221
  return E(() => {
222
222
  const t = this.value,
223
223
  o = n;
224
- n = void 0;
224
+ n = undefined;
225
225
  try {
226
226
  i(t);
227
227
  } finally {
@@ -240,7 +240,7 @@ u.prototype.toJSON = function () {
240
240
  };
241
241
  u.prototype.peek = function () {
242
242
  const i = n;
243
- n = void 0;
243
+ n = undefined;
244
244
  try {
245
245
  return this.value;
246
246
  } finally {
@@ -250,7 +250,7 @@ u.prototype.peek = function () {
250
250
  Object.defineProperty(u.prototype, "value", {
251
251
  get() {
252
252
  const i = c(this);
253
- if (void 0 !== i) i.i = this.i;
253
+ if (undefined !== i) i.i = this.i;
254
254
  return this.v;
255
255
  },
256
256
  set(i) {
@@ -272,55 +272,55 @@ function d$1(i) {
272
272
  return new u(i);
273
273
  }
274
274
  function v$1(i) {
275
- 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;
276
- 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;
277
277
  }
278
278
  function l(i) {
279
- for (let t = i.s; void 0 !== t; t = t.n) {
279
+ for (let t = i.s; undefined !== t; t = t.n) {
280
280
  const o = t.S.n;
281
- if (void 0 !== o) t.r = o;
281
+ if (undefined !== o) t.r = o;
282
282
  t.S.n = t;
283
283
  t.i = -1;
284
- if (void 0 === t.n) {
284
+ if (undefined === t.n) {
285
285
  i.s = t;
286
286
  break;
287
287
  }
288
288
  }
289
289
  }
290
- function y$1(i) {
290
+ function y(i) {
291
291
  let t,
292
292
  o = i.s;
293
- while (void 0 !== o) {
293
+ while (undefined !== o) {
294
294
  const i = o.p;
295
295
  if (-1 === o.i) {
296
296
  o.S.U(o);
297
- if (void 0 !== i) i.n = o.n;
298
- 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;
299
299
  } else t = o;
300
300
  o.S.n = o.r;
301
- if (void 0 !== o.r) o.r = void 0;
301
+ if (undefined !== o.r) o.r = undefined;
302
302
  o = i;
303
303
  }
304
304
  i.s = t;
305
305
  }
306
306
  function a$1(i) {
307
- u.call(this, void 0);
307
+ u.call(this, undefined);
308
308
  this.x = i;
309
- this.s = void 0;
309
+ this.s = undefined;
310
310
  this.g = e - 1;
311
311
  this.f = 4;
312
312
  }
313
313
  (a$1.prototype = new u()).h = function () {
314
314
  this.f &= -3;
315
- if (1 & this.f) return !1;
316
- if (32 == (36 & this.f)) return !0;
315
+ if (1 & this.f) return false;
316
+ if (32 == (36 & this.f)) return true;
317
317
  this.f &= -5;
318
- if (this.g === e) return !0;
318
+ if (this.g === e) return true;
319
319
  this.g = e;
320
320
  this.f |= 1;
321
321
  if (this.i > 0 && !v$1(this)) {
322
322
  this.f &= -2;
323
- return !0;
323
+ return true;
324
324
  }
325
325
  const i = n;
326
326
  try {
@@ -338,30 +338,30 @@ function a$1(i) {
338
338
  this.i++;
339
339
  }
340
340
  n = i;
341
- y$1(this);
341
+ y(this);
342
342
  this.f &= -2;
343
- return !0;
343
+ return true;
344
344
  };
345
345
  a$1.prototype.S = function (i) {
346
- if (void 0 === this.t) {
346
+ if (undefined === this.t) {
347
347
  this.f |= 36;
348
- 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);
349
349
  }
350
350
  u.prototype.S.call(this, i);
351
351
  };
352
352
  a$1.prototype.U = function (i) {
353
- if (void 0 !== this.t) {
353
+ if (undefined !== this.t) {
354
354
  u.prototype.U.call(this, i);
355
- if (void 0 === this.t) {
355
+ if (undefined === this.t) {
356
356
  this.f &= -33;
357
- 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);
358
358
  }
359
359
  }
360
360
  };
361
361
  a$1.prototype.N = function () {
362
362
  if (!(2 & this.f)) {
363
363
  this.f |= 6;
364
- 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();
365
365
  }
366
366
  };
367
367
  Object.defineProperty(a$1.prototype, "value", {
@@ -369,7 +369,7 @@ Object.defineProperty(a$1.prototype, "value", {
369
369
  if (1 & this.f) throw new Error("Cycle detected");
370
370
  const i = c(this);
371
371
  this.h();
372
- if (void 0 !== i) i.i = this.i;
372
+ if (undefined !== i) i.i = this.i;
373
373
  if (16 & this.f) throw this.v;
374
374
  return this.v;
375
375
  }
@@ -379,17 +379,17 @@ function w(i) {
379
379
  }
380
380
  function _$1(i) {
381
381
  const o = i.u;
382
- i.u = void 0;
382
+ i.u = undefined;
383
383
  if ("function" == typeof o) {
384
384
  r++;
385
385
  const s = n;
386
- n = void 0;
386
+ n = undefined;
387
387
  try {
388
388
  o();
389
389
  } catch (t) {
390
390
  i.f &= -2;
391
391
  i.f |= 8;
392
- g(i);
392
+ g$1(i);
393
393
  throw t;
394
394
  } finally {
395
395
  n = s;
@@ -397,25 +397,25 @@ function _$1(i) {
397
397
  }
398
398
  }
399
399
  }
400
- function g(i) {
401
- for (let t = i.s; void 0 !== t; t = t.n) t.S.U(t);
402
- i.x = void 0;
403
- i.s = void 0;
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
404
  _$1(i);
405
405
  }
406
- function p$1(i) {
406
+ function p(i) {
407
407
  if (n !== this) throw new Error("Out-of-order effect");
408
- y$1(this);
408
+ y(this);
409
409
  n = i;
410
410
  this.f &= -2;
411
- if (8 & this.f) g(this);
411
+ if (8 & this.f) g$1(this);
412
412
  t();
413
413
  }
414
414
  function b$1(i) {
415
415
  this.x = i;
416
- this.u = void 0;
417
- this.s = void 0;
418
- this.o = void 0;
416
+ this.u = undefined;
417
+ this.s = undefined;
418
+ this.o = undefined;
419
419
  this.f = 32;
420
420
  }
421
421
  b$1.prototype.c = function () {
@@ -438,7 +438,7 @@ b$1.prototype.S = function () {
438
438
  r++;
439
439
  const i = n;
440
440
  n = this;
441
- return p$1.bind(this, i);
441
+ return p.bind(this, i);
442
442
  };
443
443
  b$1.prototype.N = function () {
444
444
  if (!(2 & this.f)) {
@@ -449,7 +449,7 @@ b$1.prototype.N = function () {
449
449
  };
450
450
  b$1.prototype.d = function () {
451
451
  this.f |= 8;
452
- if (!(1 & this.f)) g(this);
452
+ if (!(1 & this.f)) g$1(this);
453
453
  };
454
454
  function E(i) {
455
455
  const t = new b$1(i);
@@ -462,62 +462,64 @@ function E(i) {
462
462
  return t.d.bind(t);
463
463
  }
464
464
 
465
- function a(t, e) {
465
+ let a,
466
+ d,
467
+ _ = [];
468
+ E(function () {
469
+ a = this.N;
470
+ })();
471
+ function m(t, e) {
466
472
  l$2[t] = e.bind(null, l$2[t] || (() => {}));
467
473
  }
468
- let d;
469
- function p(t) {
474
+ function v(t) {
470
475
  if (d) d();
471
476
  d = t && t.S();
472
477
  }
473
- function v({
478
+ function g({
474
479
  data: t
475
480
  }) {
476
481
  const i = useSignal(t);
477
482
  i.value = t;
478
- const o = T(() => {
483
+ const [o, f] = T(() => {
479
484
  let t = this,
480
485
  n = this.__v;
481
486
  while (n = n.__) if (n.__c) {
482
487
  n.__c.__$f |= 4;
483
488
  break;
484
489
  }
485
- const f = w(function () {
490
+ const o = w(() => {
486
491
  let t = i.value.value;
487
- return 0 === t ? 0 : !0 === t ? "" : t || "";
492
+ return 0 === t ? 0 : true === t ? "" : t || "";
488
493
  }),
489
- r = w(() => {
490
- var t;
491
- return t$2(f.value) || 3 !== (null == (t = this.base) ? void 0 : t.nodeType);
492
- });
493
- this.__$u.c = () => {
494
- var t;
495
- if (!t$2(o.peek()) && 3 === (null == (t = this.base) ? void 0 : t.nodeType)) this.base.data = o.peek();else {
496
- this.__$f |= 1;
497
- this.setState({});
498
- }
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);
499
506
  };
500
- E(function () {
501
- if (!m) m = this.N;
502
- this.N = A;
503
- if (r.value && t.base) t.base.data = f.value;
504
- });
505
- return f;
507
+ return [f, o];
506
508
  }, []);
507
- return o.value;
509
+ return o.value ? f.peek() : f.value;
508
510
  }
509
- v.displayName = "_st";
511
+ g.displayName = "_st";
510
512
  Object.defineProperties(u.prototype, {
511
513
  constructor: {
512
- configurable: !0,
513
- value: void 0
514
+ configurable: true,
515
+ value: undefined
514
516
  },
515
517
  type: {
516
- configurable: !0,
517
- value: v
518
+ configurable: true,
519
+ value: g
518
520
  },
519
521
  props: {
520
- configurable: !0,
522
+ configurable: true,
521
523
  get() {
522
524
  return {
523
525
  data: this
@@ -525,11 +527,11 @@ Object.defineProperties(u.prototype, {
525
527
  }
526
528
  },
527
529
  __b: {
528
- configurable: !0,
530
+ configurable: true,
529
531
  value: 1
530
532
  }
531
533
  });
532
- a("__b", (t, i) => {
534
+ m("__b", (t, i) => {
533
535
  if ("string" == typeof i.type) {
534
536
  let t,
535
537
  e = i.props;
@@ -545,14 +547,14 @@ a("__b", (t, i) => {
545
547
  }
546
548
  t(i);
547
549
  });
548
- a("__r", (t, i) => {
549
- p();
550
+ m("__r", (t, i) => {
551
+ v();
550
552
  let e,
551
553
  n = i.__c;
552
554
  if (n) {
553
555
  n.__$f &= -2;
554
556
  e = n.__$u;
555
- if (void 0 === e) n.__$u = e = function (t) {
557
+ if (undefined === e) n.__$u = e = function (t) {
556
558
  let i;
557
559
  E(function () {
558
560
  i = this;
@@ -564,15 +566,15 @@ a("__r", (t, i) => {
564
566
  return i;
565
567
  }();
566
568
  }
567
- p(e);
569
+ v(e);
568
570
  t(i);
569
571
  });
570
- a("__e", (t, i, e, n) => {
571
- p();
572
+ m("__e", (t, i, e, n) => {
573
+ v();
572
574
  t(i, e, n);
573
575
  });
574
- a("diffed", (t, i) => {
575
- p();
576
+ m("diffed", (t, i) => {
577
+ v();
576
578
  let e;
577
579
  if ("string" == typeof i.type && (e = i.__e)) {
578
580
  let t = i.__np,
@@ -581,9 +583,9 @@ a("diffed", (t, i) => {
581
583
  let i = e.U;
582
584
  if (i) for (let e in i) {
583
585
  let n = i[e];
584
- if (void 0 !== n && !(e in t)) {
586
+ if (undefined !== n && !(e in t)) {
585
587
  n.d();
586
- i[e] = void 0;
588
+ i[e] = undefined;
587
589
  }
588
590
  } else {
589
591
  i = {};
@@ -592,8 +594,8 @@ a("diffed", (t, i) => {
592
594
  for (let o in t) {
593
595
  let f = i[o],
594
596
  r = t[o];
595
- if (void 0 === f) {
596
- f = _(e, o, r, n);
597
+ if (undefined === f) {
598
+ f = b(e, o, r, n);
597
599
  i[o] = f;
598
600
  } else f.o(r, n);
599
601
  }
@@ -601,8 +603,8 @@ a("diffed", (t, i) => {
601
603
  }
602
604
  t(i);
603
605
  });
604
- function _(t, i, e, n) {
605
- const o = i in t && void 0 === t.ownerSVGElement,
606
+ function b(t, i, e, n) {
607
+ const o = i in t && undefined === t.ownerSVGElement,
606
608
  f = d$1(e);
607
609
  return {
608
610
  o: (t, i) => {
@@ -610,7 +612,6 @@ function _(t, i, e, n) {
610
612
  n = i;
611
613
  },
612
614
  d: E(function () {
613
- if (!m) m = this.N;
614
615
  this.N = A;
615
616
  const e = f.value.value;
616
617
  if (n[i] !== e) {
@@ -620,13 +621,13 @@ function _(t, i, e, n) {
620
621
  })
621
622
  };
622
623
  }
623
- a("unmount", (t, i) => {
624
+ m("unmount", (t, i) => {
624
625
  if ("string" == typeof i.type) {
625
626
  let t = i.__e;
626
627
  if (t) {
627
628
  const i = t.U;
628
629
  if (i) {
629
- t.U = void 0;
630
+ t.U = undefined;
630
631
  for (let t in i) {
631
632
  let e = i[t];
632
633
  if (e) e.d();
@@ -638,23 +639,21 @@ a("unmount", (t, i) => {
638
639
  if (t) {
639
640
  const i = t.__$u;
640
641
  if (i) {
641
- t.__$u = void 0;
642
+ t.__$u = undefined;
642
643
  i.d();
643
644
  }
644
645
  }
645
646
  }
646
647
  t(i);
647
648
  });
648
- a("__h", (t, i, e, n) => {
649
+ m("__h", (t, i, e, n) => {
649
650
  if (n < 3 || 9 === n) i.__$f |= 2;
650
651
  t(i, e, n);
651
652
  });
652
653
  function useSignal(t) {
653
654
  return T(() => d$1(t), []);
654
655
  }
655
- let m,
656
- b = [];
657
- const y = t => {
656
+ const k = t => {
658
657
  queueMicrotask(() => {
659
658
  queueMicrotask(t);
660
659
  });
@@ -662,11 +661,11 @@ const y = t => {
662
661
  function x() {
663
662
  o(() => {
664
663
  let t;
665
- while (t = b.shift()) m.call(t);
664
+ while (t = _.shift()) a.call(t);
666
665
  });
667
666
  }
668
667
  function A() {
669
- if (1 === b.push(this)) (l$2.requestAnimationFrame || y)(x);
668
+ if (1 === _.push(this)) (l$2.requestAnimationFrame || k)(x);
670
669
  }
671
670
 
672
671
  const paramsFromParentWindow = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-toolbar",
3
- "version": "1.4.29",
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": "2.0.0"
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",