@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.
- package/dist/js/toolbar_core.js +204 -170
- package/package.json +3 -3
package/dist/js/toolbar_core.js
CHANGED
|
@@ -15,19 +15,19 @@ l$2 = {
|
|
|
15
15
|
|
|
16
16
|
var t$1,
|
|
17
17
|
r$1,
|
|
18
|
-
u$
|
|
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$
|
|
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$
|
|
53
|
+
a$2 && a$2(n), t$1 = 0;
|
|
54
54
|
var i = (r$1 = n.__c).__H;
|
|
55
|
-
i && (u$
|
|
56
|
-
n.__N && (n.__ = n.__N), n.i = n.__N =
|
|
57
|
-
})) : (i.__h.forEach(z), i.__h.forEach(B), i.__h = [], t$1 = 0)), u$
|
|
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 =
|
|
63
|
-
})), u$
|
|
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 =
|
|
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 =
|
|
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 =
|
|
120
|
-
while (
|
|
119
|
+
t = false;
|
|
120
|
+
while (undefined !== s) {
|
|
121
121
|
let o = s;
|
|
122
|
-
s =
|
|
122
|
+
s = undefined;
|
|
123
123
|
f++;
|
|
124
|
-
while (
|
|
124
|
+
while (undefined !== o) {
|
|
125
125
|
const n = o.o;
|
|
126
|
-
o.o =
|
|
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 =
|
|
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 (
|
|
157
|
+
if (undefined === n) return;
|
|
149
158
|
let t = i.n;
|
|
150
|
-
if (
|
|
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:
|
|
164
|
+
n: undefined,
|
|
156
165
|
t: n,
|
|
157
|
-
e:
|
|
158
|
-
x:
|
|
166
|
+
e: undefined,
|
|
167
|
+
x: undefined,
|
|
159
168
|
r: t
|
|
160
169
|
};
|
|
161
|
-
if (
|
|
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 (
|
|
177
|
+
if (undefined !== t.n) {
|
|
169
178
|
t.n.p = t.p;
|
|
170
|
-
if (
|
|
179
|
+
if (undefined !== t.p) t.p.n = t.n;
|
|
171
180
|
t.p = n.s;
|
|
172
|
-
t.n =
|
|
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
|
|
188
|
+
function u(i) {
|
|
180
189
|
this.v = i;
|
|
181
190
|
this.i = 0;
|
|
182
|
-
this.n =
|
|
183
|
-
this.t =
|
|
191
|
+
this.n = undefined;
|
|
192
|
+
this.t = undefined;
|
|
184
193
|
}
|
|
185
|
-
u
|
|
186
|
-
u
|
|
187
|
-
return
|
|
194
|
+
u.prototype.brand = i;
|
|
195
|
+
u.prototype.h = function () {
|
|
196
|
+
return true;
|
|
188
197
|
};
|
|
189
|
-
u
|
|
190
|
-
if (this.t !== i &&
|
|
198
|
+
u.prototype.S = function (i) {
|
|
199
|
+
if (this.t !== i && undefined === i.e) {
|
|
191
200
|
i.x = this.t;
|
|
192
|
-
if (
|
|
201
|
+
if (undefined !== this.t) this.t.e = i;
|
|
193
202
|
this.t = i;
|
|
194
203
|
}
|
|
195
204
|
};
|
|
196
|
-
u
|
|
197
|
-
if (
|
|
205
|
+
u.prototype.U = function (i) {
|
|
206
|
+
if (undefined !== this.t) {
|
|
198
207
|
const t = i.e,
|
|
199
208
|
o = i.x;
|
|
200
|
-
if (
|
|
209
|
+
if (undefined !== t) {
|
|
201
210
|
t.x = o;
|
|
202
|
-
i.e =
|
|
211
|
+
i.e = undefined;
|
|
203
212
|
}
|
|
204
|
-
if (
|
|
213
|
+
if (undefined !== o) {
|
|
205
214
|
o.e = t;
|
|
206
|
-
i.x =
|
|
215
|
+
i.x = undefined;
|
|
207
216
|
}
|
|
208
217
|
if (i === this.t) this.t = o;
|
|
209
218
|
}
|
|
210
219
|
};
|
|
211
|
-
u
|
|
220
|
+
u.prototype.subscribe = function (i) {
|
|
212
221
|
return E(() => {
|
|
213
222
|
const t = this.value,
|
|
214
223
|
o = n;
|
|
215
|
-
n =
|
|
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
|
|
232
|
+
u.prototype.valueOf = function () {
|
|
224
233
|
return this.value;
|
|
225
234
|
};
|
|
226
|
-
u
|
|
235
|
+
u.prototype.toString = function () {
|
|
227
236
|
return this.value + "";
|
|
228
237
|
};
|
|
229
|
-
u
|
|
238
|
+
u.prototype.toJSON = function () {
|
|
230
239
|
return this.value;
|
|
231
240
|
};
|
|
232
|
-
u
|
|
241
|
+
u.prototype.peek = function () {
|
|
233
242
|
const i = n;
|
|
234
|
-
n =
|
|
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
|
|
250
|
+
Object.defineProperty(u.prototype, "value", {
|
|
242
251
|
get() {
|
|
243
252
|
const i = c(this);
|
|
244
|
-
if (
|
|
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
|
|
272
|
+
return new u(i);
|
|
264
273
|
}
|
|
265
274
|
function v$1(i) {
|
|
266
|
-
for (let t = i.s;
|
|
267
|
-
return
|
|
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;
|
|
279
|
+
for (let t = i.s; undefined !== t; t = t.n) {
|
|
271
280
|
const o = t.S.n;
|
|
272
|
-
if (
|
|
281
|
+
if (undefined !== o) t.r = o;
|
|
273
282
|
t.S.n = t;
|
|
274
283
|
t.i = -1;
|
|
275
|
-
if (
|
|
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 (
|
|
293
|
+
while (undefined !== o) {
|
|
285
294
|
const i = o.p;
|
|
286
295
|
if (-1 === o.i) {
|
|
287
296
|
o.S.U(o);
|
|
288
|
-
if (
|
|
289
|
-
if (
|
|
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 (
|
|
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
|
|
306
|
+
function a$1(i) {
|
|
307
|
+
u.call(this, undefined);
|
|
299
308
|
this.x = i;
|
|
300
|
-
this.s =
|
|
309
|
+
this.s = undefined;
|
|
301
310
|
this.g = e - 1;
|
|
302
311
|
this.f = 4;
|
|
303
312
|
}
|
|
304
|
-
(a.prototype = new u
|
|
313
|
+
(a$1.prototype = new u()).h = function () {
|
|
305
314
|
this.f &= -3;
|
|
306
|
-
if (1 & this.f) return
|
|
307
|
-
if (32 == (36 & this.f)) return
|
|
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
|
|
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
|
|
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
|
|
343
|
+
return true;
|
|
335
344
|
};
|
|
336
|
-
a.prototype.S = function (i) {
|
|
337
|
-
if (
|
|
345
|
+
a$1.prototype.S = function (i) {
|
|
346
|
+
if (undefined === this.t) {
|
|
338
347
|
this.f |= 36;
|
|
339
|
-
for (let i = this.s;
|
|
348
|
+
for (let i = this.s; undefined !== i; i = i.n) i.S.S(i);
|
|
340
349
|
}
|
|
341
|
-
u
|
|
350
|
+
u.prototype.S.call(this, i);
|
|
342
351
|
};
|
|
343
|
-
a.prototype.U = function (i) {
|
|
344
|
-
if (
|
|
345
|
-
u
|
|
346
|
-
if (
|
|
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;
|
|
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;
|
|
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 (
|
|
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 =
|
|
382
|
+
i.u = undefined;
|
|
374
383
|
if ("function" == typeof o) {
|
|
375
384
|
r++;
|
|
376
385
|
const s = n;
|
|
377
|
-
n =
|
|
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;
|
|
393
|
-
i.x =
|
|
394
|
-
i.s =
|
|
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
|
|
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 =
|
|
408
|
-
this.s =
|
|
409
|
-
this.o =
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
460
|
-
function h(t) {
|
|
474
|
+
function v(t) {
|
|
461
475
|
if (d) d();
|
|
462
476
|
d = t && t.S();
|
|
463
477
|
}
|
|
464
|
-
function
|
|
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
|
|
471
|
-
|
|
472
|
-
|
|
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
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
this.
|
|
482
|
-
|
|
483
|
-
|
|
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
|
|
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
|
-
|
|
493
|
-
Object.defineProperties(u
|
|
511
|
+
g.displayName = "_st";
|
|
512
|
+
Object.defineProperties(u.prototype, {
|
|
494
513
|
constructor: {
|
|
495
|
-
configurable:
|
|
496
|
-
value:
|
|
514
|
+
configurable: true,
|
|
515
|
+
value: undefined
|
|
497
516
|
},
|
|
498
517
|
type: {
|
|
499
|
-
configurable:
|
|
500
|
-
value:
|
|
518
|
+
configurable: true,
|
|
519
|
+
value: g
|
|
501
520
|
},
|
|
502
521
|
props: {
|
|
503
|
-
configurable:
|
|
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:
|
|
530
|
+
configurable: true,
|
|
512
531
|
value: 1
|
|
513
532
|
}
|
|
514
533
|
});
|
|
515
|
-
|
|
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
|
|
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
|
-
|
|
532
|
-
|
|
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 (
|
|
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
|
-
|
|
569
|
+
v(e);
|
|
551
570
|
t(i);
|
|
552
571
|
});
|
|
553
|
-
|
|
554
|
-
|
|
572
|
+
m("__e", (t, i, e, n) => {
|
|
573
|
+
v();
|
|
555
574
|
t(i, e, n);
|
|
556
575
|
});
|
|
557
|
-
|
|
558
|
-
|
|
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 (
|
|
586
|
+
if (undefined !== n && !(e in t)) {
|
|
568
587
|
n.d();
|
|
569
|
-
i[e] =
|
|
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
|
|
577
|
-
|
|
578
|
-
if (
|
|
579
|
-
|
|
580
|
-
i[o] =
|
|
581
|
-
} else
|
|
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
|
|
588
|
-
const o = i in t &&
|
|
589
|
-
|
|
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
|
-
|
|
611
|
+
f.value = t;
|
|
593
612
|
n = i;
|
|
594
613
|
},
|
|
595
|
-
d: E(()
|
|
596
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
642
|
+
t.__$u = undefined;
|
|
623
643
|
i.d();
|
|
624
644
|
}
|
|
625
645
|
}
|
|
626
646
|
}
|
|
627
647
|
t(i);
|
|
628
648
|
});
|
|
629
|
-
|
|
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.
|
|
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.
|
|
30
|
-
"@preact/signals": "
|
|
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",
|