@tempots/dom 17.0.0 → 19.0.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/dom/animatable.d.ts +12 -12
- package/dom/attr.d.ts +14 -7
- package/dom/dom-context.d.ts +47 -2
- package/dom/dom-utils.d.ts +6 -3
- package/dom/handle-anchor-click.d.ts +13 -2
- package/dom/ssr.d.ts +48 -16
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.js +1050 -931
- package/package.json +1 -1
- package/renderable/async.d.ts +33 -3
- package/renderable/attribute.d.ts +28 -9
- package/renderable/bind.d.ts +43 -13
- package/renderable/conjunction.d.ts +23 -4
- package/renderable/consumers.d.ts +54 -1
- package/renderable/domnode.d.ts +10 -2
- package/renderable/element.d.ts +50 -3
- package/renderable/empty.d.ts +5 -0
- package/renderable/ensure.d.ts +10 -0
- package/renderable/foreach.d.ts +12 -2
- package/renderable/fragment.d.ts +11 -0
- package/renderable/handler.d.ts +67 -10
- package/renderable/map-signal.d.ts +15 -0
- package/renderable/not-empty.d.ts +13 -1
- package/renderable/onctx.d.ts +9 -2
- package/renderable/oneof.d.ts +138 -16
- package/renderable/onmount.d.ts +8 -0
- package/renderable/onunmount.d.ts +6 -0
- package/renderable/portal.d.ts +12 -3
- package/renderable/providers.d.ts +39 -6
- package/renderable/render.d.ts +39 -3
- package/renderable/repeat.d.ts +11 -2
- package/renderable/style.d.ts +5 -2
- package/renderable/task.d.ts +18 -2
- package/renderable/text.d.ts +18 -5
- package/renderable/when.d.ts +21 -3
- package/std/interpolate.d.ts +56 -5
- package/std/position.d.ts +42 -2
- package/std/signal-utils.d.ts +226 -0
- package/std/signal.d.ts +397 -85
- package/types/aria-attributes.d.ts +5 -0
- package/types/css-styles.d.ts +11 -0
- package/types/domain.d.ts +69 -3
- package/types/html-attributes.d.ts +10 -0
- package/types/html-events.d.ts +5 -0
- package/types/html-tags.d.ts +5 -0
- package/types/mathml-attributes.d.ts +5 -0
- package/types/mathml-tags.d.ts +4 -0
- package/types/svg-attributes.d.ts +5 -0
- package/types/svg-tags.d.ts +5 -0
package/index.js
CHANGED
|
@@ -1,134 +1,259 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
isNaN(o) && (o = J);
|
|
14
|
-
let l = e.charCodeAt(i);
|
|
15
|
-
isNaN(l) && (l = J), s += String.fromCharCode(o + (l - o) * r);
|
|
1
|
+
var De = Object.defineProperty;
|
|
2
|
+
var be = (t, e, r) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var l = (t, e, r) => be(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
const Te = (t, e, r) => t + (e - t) * r;
|
|
5
|
+
const Le = (t, e, r) => {
|
|
6
|
+
const s = Math.max(t.length, e.length);
|
|
7
|
+
let n = "";
|
|
8
|
+
for (let o = 0; o < s; o++) {
|
|
9
|
+
let i = t.charCodeAt(o);
|
|
10
|
+
isNaN(i) && (i = 97);
|
|
11
|
+
let a = e.charCodeAt(o);
|
|
12
|
+
isNaN(a) && (a = 97), n += String.fromCharCode(i + (a - i) * r);
|
|
16
13
|
}
|
|
17
|
-
return
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function Ke(t) {
|
|
26
|
-
return typeof t == "number" ? Ze : typeof t == "string" ? Xe : t instanceof Date ? Ye : je;
|
|
27
|
-
}
|
|
28
|
-
class Ue {
|
|
14
|
+
return n;
|
|
15
|
+
}, Ne = (t, e, r) => new Date(t.getTime() + (e.getTime() - t.getTime()) * r), Ce = (t, e) => e, Oe = (t) => typeof t == "number" ? Te : typeof t == "string" ? Le : t instanceof Date ? Ne : Ce;
|
|
16
|
+
class ke {
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new instance of `ElementPosition`.
|
|
19
|
+
* @param index - The index of the element.
|
|
20
|
+
* @param total - The total number of elements in the collection.
|
|
21
|
+
*/
|
|
29
22
|
constructor(e, r) {
|
|
30
23
|
this.index = e, this.total = r;
|
|
31
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Checks if the element is the first element in the collection.
|
|
27
|
+
* @returns `true` if the element is the first element, `false` otherwise.
|
|
28
|
+
*/
|
|
32
29
|
get isFirst() {
|
|
33
30
|
return this.index === 0;
|
|
34
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Checks if the element is the last element in the collection.
|
|
34
|
+
* @returns `true` if the element is the last element, `false` otherwise.
|
|
35
|
+
*/
|
|
35
36
|
get isLast() {
|
|
36
37
|
return this.index === this.total - 1;
|
|
37
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Checks if the index of the element is even.
|
|
41
|
+
* @returns `true` if the index is even, `false` otherwise.
|
|
42
|
+
*/
|
|
38
43
|
get isEven() {
|
|
39
44
|
return this.index % 2 === 0;
|
|
40
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Checks if the index of the element is odd.
|
|
48
|
+
* @returns `true` if the index is odd, `false` otherwise.
|
|
49
|
+
*/
|
|
41
50
|
get isOdd() {
|
|
42
51
|
return this.index % 2 === 1;
|
|
43
52
|
}
|
|
44
53
|
}
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
const d = class d {
|
|
55
|
+
/**
|
|
56
|
+
* Represents a signal with a value of type T.
|
|
57
|
+
*
|
|
58
|
+
* @param value - The initial value of the signal.
|
|
59
|
+
* @param equals - A function that determines whether two values of type T are equal.
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
49
62
|
constructor(e, r) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
l(this, "$__signal__", !0);
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
l(this, "_value");
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
l(this, "_derivatives", []);
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
l(this, "_onValueListeners", []);
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
l(this, "_onDisposeListeners", []);
|
|
83
|
+
/**
|
|
84
|
+
* Gets the current value of the signal.
|
|
85
|
+
* @returns The current value of the signal.
|
|
86
|
+
*/
|
|
87
|
+
l(this, "get", () => this._value);
|
|
88
|
+
/**
|
|
89
|
+
* Checks if the signal has any registered listeners.
|
|
90
|
+
* @returns `true` if the signal has listeners, `false` otherwise.
|
|
91
|
+
*/
|
|
92
|
+
l(this, "hasListeners", () => this._onValueListeners.length > 0);
|
|
93
|
+
/**
|
|
94
|
+
* Registers a listener function to be called whenever the value of the signal changes.
|
|
95
|
+
* The listener function will be immediately called with the current value of the signal.
|
|
96
|
+
* Returns a function that can be called to unregister the listener.
|
|
97
|
+
*
|
|
98
|
+
* @param listener - The listener function to be called when the value of the signal changes.
|
|
99
|
+
*/
|
|
100
|
+
l(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
|
|
58
101
|
this._onValueListeners.splice(this._onValueListeners.indexOf(e), 1);
|
|
59
102
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
l(this, "_setAndNotify", (e, r) => {
|
|
107
|
+
const s = this.equals(this._value, e);
|
|
108
|
+
s || (this._value = e), (r || !s) && this._onValueListeners.forEach((n) => n(e));
|
|
63
109
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
l(this, "_disposed", !1);
|
|
114
|
+
/**
|
|
115
|
+
* Checks whether the signal is disposed.
|
|
116
|
+
* @returns True if the signal is disposed, false otherwise.
|
|
117
|
+
*/
|
|
118
|
+
l(this, "isDisposed", () => this._disposed);
|
|
119
|
+
/**
|
|
120
|
+
* Adds a listener function to be called when the object is disposed.
|
|
121
|
+
* @param listener - The listener function to be called when the object is disposed.
|
|
122
|
+
* @returns A function that can be called to remove the listener.
|
|
123
|
+
*/
|
|
124
|
+
l(this, "onDispose", (e) => {
|
|
67
125
|
this._onDisposeListeners.push(e);
|
|
68
126
|
});
|
|
69
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Disposes the signal, releasing any resources associated with it.
|
|
129
|
+
*/
|
|
130
|
+
l(this, "dispose", () => {
|
|
70
131
|
this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
|
|
71
132
|
});
|
|
72
|
-
|
|
73
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Returns a new Computed instance that applies the given mapping function to the value of this Signal.
|
|
135
|
+
* The mapping function is called whenever the value of this Signal changes.
|
|
136
|
+
*
|
|
137
|
+
* @typeParam O - The type of the mapped value.
|
|
138
|
+
* @param fn - The mapping function to apply to the value of this Signal.
|
|
139
|
+
* @param equals - Optional equality function to determine if two mapped values are equal.
|
|
140
|
+
* @returns - A new Computed instance with the mapped value.
|
|
141
|
+
*/
|
|
142
|
+
l(this, "map", (e, r = (s, n) => s === n) => {
|
|
143
|
+
const s = new E(() => {
|
|
74
144
|
try {
|
|
75
145
|
return e(this.get());
|
|
76
|
-
} catch (
|
|
77
|
-
throw console.error("Error in Signal.map:",
|
|
146
|
+
} catch (n) {
|
|
147
|
+
throw console.error("Error in Signal.map:", n), n;
|
|
78
148
|
}
|
|
79
149
|
}, r);
|
|
80
|
-
return this.setDerivative(
|
|
150
|
+
return this.setDerivative(s), s;
|
|
81
151
|
});
|
|
82
|
-
|
|
83
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Returns a new Signal that applies the given function to the value of the current Signal,
|
|
154
|
+
* and then flattens the resulting Signal.
|
|
155
|
+
*
|
|
156
|
+
* @typeParam O - The type of the value emitted by the resulting Signal.
|
|
157
|
+
* @param fn - The function to apply to the value of the current Signal.
|
|
158
|
+
* @param equals - A function that determines whether two values of type O are equal.
|
|
159
|
+
* Defaults to a strict equality check (===).
|
|
160
|
+
* @returns A new Signal that emits the values of the resulting Signal.
|
|
161
|
+
*/
|
|
162
|
+
l(this, "flatMap", (e, r = (s, n) => s === n) => {
|
|
163
|
+
const s = new E(() => {
|
|
84
164
|
try {
|
|
85
165
|
return e(this.get()).get();
|
|
86
|
-
} catch (
|
|
87
|
-
throw console.error("Error in Signal.flatMap:",
|
|
166
|
+
} catch (n) {
|
|
167
|
+
throw console.error("Error in Signal.flatMap:", n), n;
|
|
88
168
|
}
|
|
89
169
|
}, r);
|
|
90
|
-
return this.setDerivative(
|
|
170
|
+
return this.setDerivative(s), s;
|
|
91
171
|
});
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
172
|
+
/**
|
|
173
|
+
* Invokes a callback function with the current value of the signal, without modifying the signal.
|
|
174
|
+
*
|
|
175
|
+
* @param fn - The callback function to be invoked with the current value of the signal.
|
|
176
|
+
* @returns A new signal that emits the same value as the original signal and invokes the callback function.
|
|
177
|
+
*/
|
|
178
|
+
l(this, "tap", (e) => this.map((r) => (e(r), r)));
|
|
179
|
+
/**
|
|
180
|
+
* Returns a new Signal that emits the value at the specified key of the current value.
|
|
181
|
+
*
|
|
182
|
+
* @param key - The key of the value to retrieve.
|
|
183
|
+
* @returns A new Signal that emits the value at the specified key.
|
|
184
|
+
*/
|
|
185
|
+
l(this, "at", (e) => this.map((r) => r[e]));
|
|
186
|
+
/**
|
|
187
|
+
* Represents a collection of signals for each key in the value of the signal.
|
|
188
|
+
* @typeParam T - The type of the signals.
|
|
189
|
+
*/
|
|
190
|
+
l(this, "$", new Proxy(this, {
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves the signal with the specified key.
|
|
193
|
+
* @param _ - The target object.
|
|
194
|
+
* @param key - The key of the signal.
|
|
195
|
+
* @returns The signal associated with the key.
|
|
196
|
+
*/
|
|
95
197
|
get: (e, r) => this.at(r)
|
|
96
198
|
}));
|
|
97
|
-
|
|
98
|
-
let
|
|
99
|
-
const
|
|
199
|
+
l(this, "filter", (e, r) => {
|
|
200
|
+
let s = r ?? this.get();
|
|
201
|
+
const n = new E(() => {
|
|
100
202
|
try {
|
|
101
|
-
const
|
|
102
|
-
return
|
|
103
|
-
} catch (
|
|
104
|
-
throw console.error("Error in Signal.filter:",
|
|
203
|
+
const o = this.get();
|
|
204
|
+
return s = e(o) ? o : s;
|
|
205
|
+
} catch (o) {
|
|
206
|
+
throw console.error("Error in Signal.filter:", o), o;
|
|
105
207
|
}
|
|
106
208
|
}, this.equals);
|
|
107
|
-
return this.setDerivative(
|
|
209
|
+
return this.setDerivative(n), n;
|
|
108
210
|
});
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Returns a new Computed object that applies the provided mapping function to the value of this Signal,
|
|
213
|
+
* and filters out values that are `undefined` or `null`.
|
|
214
|
+
*
|
|
215
|
+
* @typeParam O - The type of the mapped value.
|
|
216
|
+
* @param fn - The mapping function to apply to the value of this Signal.
|
|
217
|
+
* @param startValue - The initial value for the Computed object.
|
|
218
|
+
* @param equals - Optional equality function to determine if two values are equal.
|
|
219
|
+
* @returns - A new Computed object with the mapped and filtered values.
|
|
220
|
+
*/
|
|
221
|
+
l(this, "filterMap", (e, r, s = (n, o) => n === o) => {
|
|
222
|
+
let n = r;
|
|
223
|
+
const o = new E(() => {
|
|
112
224
|
try {
|
|
113
|
-
const
|
|
114
|
-
return
|
|
115
|
-
} catch (
|
|
116
|
-
throw console.error("Error in Signal.filterMap:",
|
|
225
|
+
const i = this.get(), a = e(i);
|
|
226
|
+
return n = a ?? n;
|
|
227
|
+
} catch (i) {
|
|
228
|
+
throw console.error("Error in Signal.filterMap:", i), i;
|
|
117
229
|
}
|
|
118
|
-
},
|
|
119
|
-
return this.setDerivative(
|
|
230
|
+
}, s);
|
|
231
|
+
return this.setDerivative(o), o;
|
|
120
232
|
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
233
|
+
/**
|
|
234
|
+
* Maps the values emitted by the signal to a new value asynchronously using the provided function.
|
|
235
|
+
* If the function throws an error, it will be caught and logged.
|
|
236
|
+
* If a recovery function is provided, it will be called with the error and its return value will be used as the mapped value.
|
|
237
|
+
* If no recovery function is provided, the error will be logged as an unhandled promise rejection.
|
|
238
|
+
*
|
|
239
|
+
* @typeParam O - The type of the mapped value.
|
|
240
|
+
* @param fn - The function to map the values emitted by the signal.
|
|
241
|
+
* @param alt - The alternate value to use if the signal is disposed or the mapping function throws an error.
|
|
242
|
+
* @param recover - The recovery function to handle errors thrown by the mapping function.
|
|
243
|
+
* @param equals - The equality function to compare the mapped values for equality.
|
|
244
|
+
* @returns A property that holds the mapped value and can be observed for changes.
|
|
245
|
+
*/
|
|
246
|
+
l(this, "mapAsync", (e, r, s, n = (o, i) => o === i) => {
|
|
247
|
+
const o = L(r, n);
|
|
248
|
+
let i = 0;
|
|
249
|
+
return o.onDispose(
|
|
250
|
+
this.on((a) => {
|
|
251
|
+
const u = ++i;
|
|
127
252
|
try {
|
|
128
|
-
e(
|
|
129
|
-
u ===
|
|
253
|
+
e(a).then((c) => {
|
|
254
|
+
u === i && o.set(c);
|
|
130
255
|
}).catch((c) => {
|
|
131
|
-
u ===
|
|
256
|
+
u === i && (s != null ? o.set(s(c)) : console.error(
|
|
132
257
|
"Unhandled promise rejection in Signal.mapAsync:",
|
|
133
258
|
c
|
|
134
259
|
));
|
|
@@ -137,19 +262,50 @@ const _ = class _ {
|
|
|
137
262
|
throw console.error("Error in Signal.mapAsync:", c), c;
|
|
138
263
|
}
|
|
139
264
|
})
|
|
140
|
-
),
|
|
265
|
+
), o;
|
|
141
266
|
});
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Maps the values of the signal using the provided function `fn`, and returns a new signal
|
|
269
|
+
* containing the mapped values. If the mapped value is `undefined` or `null`, it is replaced
|
|
270
|
+
* with the provided `alt` value.
|
|
271
|
+
*
|
|
272
|
+
* @typeParam O - The type of the mapped value.
|
|
273
|
+
* @param fn - The function used to map the values of the signal.
|
|
274
|
+
* @param alt - The alternative value to use when the mapped value is `undefined` or `null`.
|
|
275
|
+
* @returns A new signal containing the mapped values.
|
|
276
|
+
*/
|
|
277
|
+
l(this, "mapMaybe", (e, r) => this.map((s) => e(s) ?? r));
|
|
278
|
+
/**
|
|
279
|
+
* Feeds a property into the signal and sets up disposal behavior.
|
|
280
|
+
* @param prop - The property to feed into the signal.
|
|
281
|
+
* @param autoDisposeProp - Determines whether the property should be automatically disposed when the signal is disposed.
|
|
282
|
+
* @returns The input property.
|
|
283
|
+
*/
|
|
284
|
+
l(this, "feedProp", (e, r = !1) => {
|
|
285
|
+
const s = this.on(e.set);
|
|
286
|
+
return e.onDispose(s), r ? this.onDispose(e.dispose) : this.onDispose(s), e;
|
|
146
287
|
});
|
|
147
|
-
|
|
148
|
-
|
|
288
|
+
/**
|
|
289
|
+
* Derives a new property from the current signal.
|
|
290
|
+
* @param autoDisposeProp - Determines whether the derived property should be automatically disposed.
|
|
291
|
+
* @returns The derived property.
|
|
292
|
+
*/
|
|
293
|
+
l(this, "deriveProp", (e = !0) => this.feedProp(L(this.get()), e));
|
|
294
|
+
/**
|
|
295
|
+
* Returns a signal that emits the count of values received so far.
|
|
296
|
+
* @returns A signal that emits the count of values received so far.
|
|
297
|
+
*/
|
|
298
|
+
l(this, "count", () => {
|
|
149
299
|
let e = 0;
|
|
150
300
|
return this.map(() => ++e);
|
|
151
301
|
});
|
|
152
|
-
|
|
302
|
+
/**
|
|
303
|
+
* Adds a computed value as a derivative of the signal.
|
|
304
|
+
* When the computed value is disposed, it is automatically removed from the derivatives list.
|
|
305
|
+
* Additionally, when the computed value is disposed, it sets the signal as dirty.
|
|
306
|
+
* @param computed - The computed value to add as a derivative.
|
|
307
|
+
*/
|
|
308
|
+
l(this, "setDerivative", (e) => {
|
|
153
309
|
this._derivatives.push(e), e.onDispose(() => {
|
|
154
310
|
this._derivatives.splice(
|
|
155
311
|
this._derivatives.indexOf(e),
|
|
@@ -159,320 +315,311 @@ const _ = class _ {
|
|
|
159
315
|
});
|
|
160
316
|
this.equals = r, this._value = e;
|
|
161
317
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"Unhandled promise rejection in Signal.ofPromise:",
|
|
167
|
-
o
|
|
168
|
-
);
|
|
169
|
-
}), i;
|
|
170
|
-
}
|
|
171
|
-
static is(e) {
|
|
172
|
-
return e != null && e[k] === !0;
|
|
173
|
-
}
|
|
174
|
-
static wrap(e, r = (n, s) => n === s) {
|
|
175
|
-
return _.is(e) ? e : new _(e, r);
|
|
176
|
-
}
|
|
177
|
-
static maybeWrap(e) {
|
|
178
|
-
return e == null ? e : _.wrap(e);
|
|
179
|
-
}
|
|
180
|
-
static unwrap(e) {
|
|
181
|
-
return _.is(e) ? e.get() : e;
|
|
182
|
-
}
|
|
183
|
-
static map(e, r) {
|
|
184
|
-
return _.is(e) ? e.map(r) : r(e);
|
|
185
|
-
}
|
|
318
|
+
/**
|
|
319
|
+
* Gets the value of the signal.
|
|
320
|
+
* @returns The current value of the signal.
|
|
321
|
+
*/
|
|
186
322
|
get value() {
|
|
187
323
|
return this._value;
|
|
188
324
|
}
|
|
189
325
|
};
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
326
|
+
/**
|
|
327
|
+
* Creates a Signal that holds the result of a Promise.
|
|
328
|
+
*
|
|
329
|
+
* @typeParam O - The type of the value returned by the Promise.
|
|
330
|
+
* @param promise - The Promise to use to feed the Signal.
|
|
331
|
+
* @param init - The initial value of the Signal before the Promise resolves.
|
|
332
|
+
* @param recover - A function to recover from Promise rejection and provide an alternative value for the Signal.
|
|
333
|
+
* @param equals - A function to compare two values of type O for equality. Defaults to strict equality (===).
|
|
334
|
+
* @returns - A Signal that represents the result of the Promise.
|
|
335
|
+
*/
|
|
336
|
+
l(d, "ofPromise", (e, r, s, n = (o, i) => o === i) => {
|
|
337
|
+
const o = new d(r, n);
|
|
338
|
+
return e.then((i) => o._setAndNotify(i, !1)).catch((i) => {
|
|
339
|
+
s != null ? o._setAndNotify(s(i), !1) : console.error(
|
|
340
|
+
"Unhandled promise rejection in Signal.ofPromise:",
|
|
341
|
+
i
|
|
342
|
+
);
|
|
343
|
+
}), o;
|
|
344
|
+
}), /**
|
|
345
|
+
* Checks if a value is a Signal.
|
|
346
|
+
*
|
|
347
|
+
* @param value - The value to check.
|
|
348
|
+
* @returns `true` if the value is a Signal, `false` otherwise.
|
|
349
|
+
*/
|
|
350
|
+
l(d, "is", (e) => (
|
|
351
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
352
|
+
e != null && e.$__signal__ === !0
|
|
353
|
+
)), /**
|
|
354
|
+
* Wraps a value or a Signal instance into a Signal.
|
|
355
|
+
* If the value is already a Signal, it returns the value itself.
|
|
356
|
+
* If the value is not a Signal, it creates a new Signal instance with the given value.
|
|
357
|
+
*
|
|
358
|
+
* @typeParam O - The type of the value.
|
|
359
|
+
* @param value - The value or Signal instance to wrap.
|
|
360
|
+
* @param equals - A function that determines if two values are equal. Defaults to strict equality (===).
|
|
361
|
+
* @returns A Signal instance.
|
|
362
|
+
*/
|
|
363
|
+
l(d, "wrap", (e, r = (s, n) => s === n) => d.is(e) ? e : new d(e, r)), /**
|
|
364
|
+
* Wraps a value in a `Signal` if it is not already a `Signal`.
|
|
365
|
+
* If the value is `null` or `undefined`, it returns `null` or `undefined` respectively.
|
|
366
|
+
* @param value - The value to wrap or check.
|
|
367
|
+
* @returns The wrapped value if it is not `null` or `undefined`, otherwise `null` or `undefined`.
|
|
368
|
+
*/
|
|
369
|
+
l(d, "maybeWrap", (e) => e == null ? e : d.wrap(e)), /**
|
|
370
|
+
* Unwraps a value from a `Signal` if it is a `Signal`, otherwise returns the value as is.
|
|
371
|
+
*
|
|
372
|
+
* @param value - The value to unwrap.
|
|
373
|
+
* @returns The unwrapped value.
|
|
374
|
+
*/
|
|
375
|
+
l(d, "unwrap", (e) => d.is(e) ? e.get() : e), /**
|
|
376
|
+
* Maps the value of a `Signal` or a regular value using the provided mapping function.
|
|
377
|
+
* If the input value is a `Signal`, the mapping function is applied to its value.
|
|
378
|
+
* If the input value is not a `Signal`, the mapping function is directly applied to the value.
|
|
379
|
+
*
|
|
380
|
+
* @param value - The input value to be mapped.
|
|
381
|
+
* @param fn - The mapping function to be applied to the value.
|
|
382
|
+
* @returns A new `Signal` with the mapped value if the input value is a `Signal`,
|
|
383
|
+
* otherwise, the result of applying the mapping function to the value.
|
|
384
|
+
*
|
|
385
|
+
* @typeParam N - The type of the input value.
|
|
386
|
+
* @typeParam O - The type of the mapped value.
|
|
387
|
+
*/
|
|
388
|
+
l(d, "map", (e, r) => d.is(e) ? e.map(r) : r(e));
|
|
389
|
+
let h = d;
|
|
390
|
+
const Re = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
|
|
391
|
+
class E extends h {
|
|
392
|
+
/**
|
|
393
|
+
* Represents a Signal object.
|
|
394
|
+
* @param _fn - The function that returns the value of the signal.
|
|
395
|
+
* @param equals - The function used to compare two values of type T for equality.
|
|
396
|
+
*/
|
|
397
|
+
constructor(r, s) {
|
|
398
|
+
super(void 0, s);
|
|
399
|
+
/**
|
|
400
|
+
* @internal
|
|
401
|
+
*/
|
|
402
|
+
l(this, "$__computed__", !0);
|
|
403
|
+
/**
|
|
404
|
+
* @internal
|
|
405
|
+
*/
|
|
406
|
+
l(this, "_isDirty", !1);
|
|
407
|
+
/**
|
|
408
|
+
* Marks the signal as dirty, indicating that its value has changed and needs to be recalculated.
|
|
409
|
+
* If the signal is already dirty or disposed, this method does nothing.
|
|
410
|
+
* It also marks all dependent signals as dirty and schedules a notification to update their values.
|
|
411
|
+
*/
|
|
412
|
+
l(this, "setDirty", () => {
|
|
413
|
+
this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this._scheduleNotify());
|
|
200
414
|
});
|
|
201
|
-
|
|
202
|
-
|
|
415
|
+
/**
|
|
416
|
+
* @internal
|
|
417
|
+
*/
|
|
418
|
+
l(this, "_scheduleCount", 0);
|
|
419
|
+
/**
|
|
420
|
+
* Schedules a notification to be executed asynchronously.
|
|
421
|
+
* If the signal is dirty, it will be updated and notified.
|
|
422
|
+
* @internal
|
|
423
|
+
*/
|
|
424
|
+
l(this, "_scheduleNotify", () => {
|
|
203
425
|
const r = ++this._scheduleCount;
|
|
204
|
-
|
|
426
|
+
Re(() => {
|
|
205
427
|
this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
|
|
206
428
|
});
|
|
207
429
|
});
|
|
208
|
-
|
|
430
|
+
/** {@inheritDoc Signal.get} */
|
|
431
|
+
l(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
|
|
209
432
|
this._fn = r, this.setDirty();
|
|
210
433
|
}
|
|
434
|
+
/**
|
|
435
|
+
* Checks if a value is an instance of `Computed`.
|
|
436
|
+
*
|
|
437
|
+
* @param value - The value to check.
|
|
438
|
+
* @returns `true` if the value is an instance of `Computed`, `false` otherwise.
|
|
439
|
+
*/
|
|
211
440
|
static is(r) {
|
|
212
|
-
return r != null && r
|
|
441
|
+
return r != null && r.$__computed__ === !0;
|
|
213
442
|
}
|
|
443
|
+
/** {@inheritDoc Signal.value} */
|
|
214
444
|
get value() {
|
|
215
445
|
return this.get();
|
|
216
446
|
}
|
|
217
447
|
}
|
|
218
|
-
|
|
219
|
-
class q extends (ae = h, ue = Q, ae) {
|
|
448
|
+
const V = class V extends h {
|
|
220
449
|
constructor() {
|
|
221
450
|
super(...arguments);
|
|
222
|
-
|
|
223
|
-
|
|
451
|
+
/**
|
|
452
|
+
* @internal
|
|
453
|
+
*/
|
|
454
|
+
l(this, "$__prop__", !0);
|
|
455
|
+
/**
|
|
456
|
+
* Changes the value of the property and notifies its listeners.
|
|
457
|
+
*
|
|
458
|
+
* @param value - The new value of the property.
|
|
459
|
+
*/
|
|
460
|
+
l(this, "set", (r) => {
|
|
224
461
|
this._setAndNotify(r, !1);
|
|
225
462
|
});
|
|
226
|
-
|
|
463
|
+
/**
|
|
464
|
+
* Updates the value of the signal by applying the provided function to the current value.
|
|
465
|
+
* @param fn - The function to apply to the current value.
|
|
466
|
+
*/
|
|
467
|
+
l(this, "update", (r) => {
|
|
227
468
|
this._setAndNotify(r(this.get()), !1);
|
|
228
469
|
});
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
470
|
+
/**
|
|
471
|
+
* Creates a reducer function that combines the provided reducer function and effects.
|
|
472
|
+
* @param fn - The reducer function that takes the current state and an action, and returns the new state.
|
|
473
|
+
* @param effects - An array of effects to be executed after the state is updated.
|
|
474
|
+
* @returns A dispatch function that can be used to update the state and trigger the effects.
|
|
475
|
+
*/
|
|
476
|
+
l(this, "reducer", (r, ...s) => {
|
|
477
|
+
const n = this;
|
|
478
|
+
return function o(i) {
|
|
479
|
+
const a = n.value;
|
|
480
|
+
n.update((u) => r(u, i)), !n.equals(a, n.value) && s.forEach(
|
|
234
481
|
(u) => u({
|
|
235
|
-
previousState:
|
|
236
|
-
state:
|
|
237
|
-
action:
|
|
238
|
-
dispatch:
|
|
482
|
+
previousState: a,
|
|
483
|
+
state: n.value,
|
|
484
|
+
action: i,
|
|
485
|
+
dispatch: o
|
|
239
486
|
})
|
|
240
487
|
);
|
|
241
488
|
};
|
|
242
489
|
});
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
490
|
+
/**
|
|
491
|
+
* Creates an isomorphism for the Signal.
|
|
492
|
+
* An isomorphism is a pair of functions that convert values between two types,
|
|
493
|
+
* along with an equality function to compare values of the second type.
|
|
494
|
+
*
|
|
495
|
+
* @param to - A function that converts values from type T to type O.
|
|
496
|
+
* @param from - A function that converts values from type O to type T.
|
|
497
|
+
* @param equals - An optional function that compares values of type O for equality.
|
|
498
|
+
* Defaults to a strict equality check (===).
|
|
499
|
+
* @returns A Prop object representing the isomorphism.
|
|
500
|
+
*/
|
|
501
|
+
l(this, "iso", (r, s, n = (o, i) => o === i) => {
|
|
502
|
+
const o = new V(r(this.get()), n);
|
|
503
|
+
return o.onDispose(this.on((i) => o.set(r(i)))), o.on((i) => this._setAndNotify(s(i), !1)), o;
|
|
246
504
|
});
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
505
|
+
/**
|
|
506
|
+
* Returns a `Prop` that represents the value at the specified key of the current value.
|
|
507
|
+
*
|
|
508
|
+
* @param key - The key of the value to access.
|
|
509
|
+
* @returns A `Prop` that represents the value at the specified key.
|
|
510
|
+
*/
|
|
511
|
+
l(this, "atProp", (r) => this.iso(
|
|
512
|
+
(s) => s[r],
|
|
513
|
+
(s) => ({ ...this.value, [r]: s })
|
|
250
514
|
));
|
|
251
515
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Access for the current value of the property.
|
|
518
|
+
*/
|
|
255
519
|
get value() {
|
|
256
520
|
return this.get();
|
|
257
521
|
}
|
|
258
522
|
set value(r) {
|
|
259
523
|
this._setAndNotify(r, !1);
|
|
260
524
|
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
525
|
+
};
|
|
526
|
+
/**
|
|
527
|
+
* Checks if a value is a Prop.
|
|
528
|
+
* @param value - The value to check.
|
|
529
|
+
* @returns `true` if the value is a Prop, `false` otherwise.
|
|
530
|
+
*/
|
|
531
|
+
l(V, "is", (r) => (
|
|
532
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
533
|
+
r != null && r.$__prop__ === !0
|
|
534
|
+
));
|
|
535
|
+
let F = V;
|
|
536
|
+
const j = (t, e, r = (s, n) => s === n) => {
|
|
537
|
+
const s = new E(t, r);
|
|
538
|
+
return e.forEach((n) => n.setDerivative(s)), s;
|
|
539
|
+
}, pt = (t, e) => j(t, e).dispose, L = (t, e = (r, s) => r === s) => new F(t, e), mt = (t, e = (r, s) => r === s) => new h(t, e);
|
|
540
|
+
class z {
|
|
276
541
|
constructor() {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
542
|
+
l(this, "_store", /* @__PURE__ */ new Map());
|
|
543
|
+
/**
|
|
544
|
+
* Retrieves the value associated with the specified key from the memory store.
|
|
545
|
+
* @param key - The key to retrieve the value for.
|
|
546
|
+
* @returns The value associated with the key, or `null` if the key is not found.
|
|
547
|
+
*/
|
|
548
|
+
l(this, "getItem", (e) => this._store.get(e) ?? null);
|
|
549
|
+
/**
|
|
550
|
+
* Sets the value associated with the specified key in the memory store.
|
|
551
|
+
* @param key - The key to set the value for.
|
|
552
|
+
* @param value - The value to set.
|
|
553
|
+
*/
|
|
554
|
+
l(this, "setItem", (e, r) => {
|
|
280
555
|
this._store.set(e, r);
|
|
281
556
|
});
|
|
282
557
|
}
|
|
283
558
|
}
|
|
284
|
-
|
|
559
|
+
const Q = ({
|
|
285
560
|
key: t,
|
|
286
561
|
defaultValue: e,
|
|
287
562
|
store: r,
|
|
288
|
-
serialize:
|
|
289
|
-
deserialize:
|
|
290
|
-
equals:
|
|
291
|
-
onLoad:
|
|
292
|
-
}) {
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
563
|
+
serialize: s = JSON.stringify,
|
|
564
|
+
deserialize: n = JSON.parse,
|
|
565
|
+
equals: o = (a, u) => a === u,
|
|
566
|
+
onLoad: i = (a) => a
|
|
567
|
+
}) => {
|
|
568
|
+
const a = r.getItem(t), u = new F(
|
|
569
|
+
a != null ? i(n(a)) : typeof e == "function" ? e() : e,
|
|
570
|
+
o
|
|
296
571
|
);
|
|
297
572
|
return u.on((c) => {
|
|
298
|
-
r.setItem(t,
|
|
573
|
+
r.setItem(t, s(c));
|
|
299
574
|
}), u;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
function
|
|
308
|
-
return ce({
|
|
309
|
-
...t,
|
|
310
|
-
store: (window == null ? void 0 : window.sessionStorage) ?? new le()
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
function te(t) {
|
|
575
|
+
}, gt = (t) => Q({
|
|
576
|
+
...t,
|
|
577
|
+
store: (window == null ? void 0 : window.localStorage) ?? new z()
|
|
578
|
+
}), _t = (t) => Q({
|
|
579
|
+
...t,
|
|
580
|
+
store: (window == null ? void 0 : window.sessionStorage) ?? new z()
|
|
581
|
+
});
|
|
582
|
+
function X(t) {
|
|
314
583
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
|
|
315
584
|
}
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
let
|
|
319
|
-
const
|
|
585
|
+
const Me = (t, e, r, s) => {
|
|
586
|
+
const n = (s == null ? void 0 : s.duration) ?? 300, o = (s == null ? void 0 : s.easing) ?? ((_) => _), i = (s == null ? void 0 : s.equals) ?? ((_, k) => _ === k);
|
|
587
|
+
let a = s == null ? void 0 : s.interpolate, u = t, c = e(), g = performance.now(), S = null, p = !0;
|
|
588
|
+
const D = new E(e, i), A = L(t, i);
|
|
320
589
|
A.onDispose(() => {
|
|
321
|
-
|
|
322
|
-
}), A.onDispose(
|
|
323
|
-
|
|
590
|
+
S !== null && cancelAnimationFrame(S);
|
|
591
|
+
}), A.onDispose(D.dispose), r.forEach((_) => {
|
|
592
|
+
_.setDerivative(D), _.onDispose(A.dispose);
|
|
324
593
|
});
|
|
325
|
-
const
|
|
326
|
-
c =
|
|
327
|
-
},
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
let
|
|
331
|
-
|
|
594
|
+
const Ee = (_) => {
|
|
595
|
+
c = _, g = performance.now(), u = A.value, p && (p = !1, S = X(J));
|
|
596
|
+
}, J = () => {
|
|
597
|
+
const k = (performance.now() - g) / h.unwrap(n), Pe = o(k);
|
|
598
|
+
a == null && (a = Oe(u));
|
|
599
|
+
let K = a(u, c, Pe);
|
|
600
|
+
k >= 1 ? (p = !0, K = c) : S = X(J), A.set(K);
|
|
332
601
|
};
|
|
333
|
-
return
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
602
|
+
return D.on(Ee), A;
|
|
603
|
+
}, vt = (t, e) => {
|
|
604
|
+
const { initialValue: r, ...s } = e ?? {};
|
|
605
|
+
return Me(
|
|
606
|
+
r ?? t.get(),
|
|
607
|
+
t.get,
|
|
608
|
+
[t],
|
|
609
|
+
s
|
|
610
|
+
);
|
|
611
|
+
}, yt = (t, e) => {
|
|
612
|
+
const { signals: r, literals: s } = Object.entries(t).reduce(
|
|
613
|
+
({ signals: o, literals: i }, [a, u]) => (h.is(u) ? o.push([a, u]) : i[a] = u, { signals: o, literals: i }),
|
|
342
614
|
{ signals: [], literals: {} }
|
|
343
|
-
),
|
|
344
|
-
return
|
|
345
|
-
}
|
|
346
|
-
function re(t) {
|
|
347
|
-
let e = t.match(/rgba?\((\d+), (\d+), (\d+)(, (\d+))?\)/);
|
|
348
|
-
return e != null ? [
|
|
349
|
-
Number(e[1]),
|
|
350
|
-
Number(e[2]),
|
|
351
|
-
Number(e[3]),
|
|
352
|
-
e[4] != null ? Number(e[5]) : 1,
|
|
353
|
-
"rgba"
|
|
354
|
-
] : (e = t.match(/#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/), e != null ? [
|
|
355
|
-
parseInt(e[1], 16),
|
|
356
|
-
parseInt(e[2], 16),
|
|
357
|
-
parseInt(e[3], 16),
|
|
358
|
-
1,
|
|
359
|
-
"hex"
|
|
360
|
-
] : (e = t.match(/hsla?\((\d+), (\d+)%?, (\d+)%?(, (\d+))?\)/), e != null ? [
|
|
361
|
-
Number(e[1]),
|
|
362
|
-
Number(e[2]),
|
|
363
|
-
Number(e[3]),
|
|
364
|
-
e[4] != null ? Number(e[5]) : 1,
|
|
365
|
-
"hsla"
|
|
366
|
-
] : [0, 0, 0, 1, "rgba"]));
|
|
367
|
-
}
|
|
368
|
-
function ne(t) {
|
|
369
|
-
const e = /^(inset\s)?(-?\d+)([a-zA-Z]*)(\s+)(-?\d+)([a-zA-Z]*)(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+(-?\d+)([a-zA-Z]*))?(?:\s+)([a-zA-Z0-9(),.]+)$/i, r = t.match(e);
|
|
370
|
-
if (r == null)
|
|
371
|
-
return {
|
|
372
|
-
inset: !1,
|
|
373
|
-
x: 0,
|
|
374
|
-
y: 0,
|
|
375
|
-
blur: 0,
|
|
376
|
-
spread: 0,
|
|
377
|
-
color: "rgba(0, 0, 0, 0)"
|
|
378
|
-
};
|
|
379
|
-
const [, n, s, , , i, , o, , l, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
|
|
380
|
-
return {
|
|
381
|
-
inset: !!n,
|
|
382
|
-
x: parseInt(s, 10),
|
|
383
|
-
y: parseInt(i, 10),
|
|
384
|
-
blur: c,
|
|
385
|
-
spread: p,
|
|
386
|
-
color: u
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
function ze(t) {
|
|
390
|
-
const { inset: e, x: r, y: n, blur: s, spread: i, color: o } = t;
|
|
391
|
-
return `${e ? "inset " : ""}${r}px ${n}px ${s}px ${i}px ${o}`;
|
|
392
|
-
}
|
|
393
|
-
function He(t) {
|
|
394
|
-
return t[4] === "rgba" ? `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t[4] === "hex" ? `#${t[0].toString(16).padStart(2, "0")}${t[1].toString(16).padStart(2, "0")}${t[2].toString(16).padStart(2, "0")}` : t[4] === "hsla" ? `hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${t[3]})` : "";
|
|
395
|
-
}
|
|
396
|
-
function Je(t, e) {
|
|
397
|
-
const [r, n, s, i, o] = re(t), [l, u, c, p] = re(e);
|
|
398
|
-
return (m) => {
|
|
399
|
-
const d = r + (l - r) * m, y = n + (u - n) * m, A = s + (c - s) * m, Z = i + (p - i) * m;
|
|
400
|
-
return He([d, y, A, Z, o]);
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
function Wt(t, e) {
|
|
404
|
-
const r = ne(t), n = ne(e);
|
|
405
|
-
return (s) => {
|
|
406
|
-
const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = he(r.color, n.color)(s);
|
|
407
|
-
return ze({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
function ke(t, e) {
|
|
411
|
-
var r, n, s, i, o, l, u, c;
|
|
412
|
-
return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
|
|
413
|
-
}
|
|
414
|
-
function Zt(t, e) {
|
|
415
|
-
const r = {}, n = getComputedStyle(t);
|
|
416
|
-
for (const [s, i] of Object.entries(e)) {
|
|
417
|
-
const o = s;
|
|
418
|
-
i != null && (r[o] = ke(n, o));
|
|
419
|
-
}
|
|
420
|
-
return r;
|
|
421
|
-
}
|
|
422
|
-
function O(t, e, r) {
|
|
423
|
-
r != null && (e === "translateX" ? t.style.transform += ` translateX(${r}px)` : e === "translateY" ? t.style.transform += ` translateY(${r}px)` : e === "translateZ" ? t.style.transform += ` translateZ(${r}px)` : e === "rotateX" ? t.style.transform += ` rotateX(${r}deg)` : e === "rotateY" ? t.style.transform += ` rotateY(${r}deg)` : e === "rotateZ" ? t.style.transform += ` rotateZ(${r}deg)` : e === "scaleX" ? t.style.transform += ` scaleX(${r})` : e === "scaleY" ? t.style.transform += ` scaleY(${r})` : e === "scaleZ" ? t.style.transform += ` scaleZ(${r})` : e === "skewX" ? t.style.transform += ` skewX(${r}deg)` : e === "skewY" ? t.style.transform += ` skewY(${r}deg)` : e === "grayScale" ? t.style.filter += ` grayscale(${r}%)` : e === "sepia" ? t.style.filter += ` sepia(${r}%)` : e === "saturate" ? t.style.filter += ` saturate(${r}%)` : e === "hueRotate" ? t.style.filter += ` hue-rotate(${r}deg)` : e === "invert" ? t.style.filter += ` invert(${r}%)` : e === "brightness" ? t.style.filter += ` brightness(${r}%)` : e === "contrast" ? t.style.filter += ` contrast(${r}%)` : e === "blur" && (t.style.filter += ` blur(${r}px)`), t.style.setProperty(e, String(r)));
|
|
424
|
-
}
|
|
425
|
-
const X = /* @__PURE__ */ new Map();
|
|
426
|
-
function fe(t, e, r) {
|
|
427
|
-
if (X.has(r + ":" + t + e))
|
|
428
|
-
return X.get(t + e);
|
|
429
|
-
const n = Je(t, e);
|
|
430
|
-
return X.set(r + ":" + t + e, n), n;
|
|
431
|
-
}
|
|
432
|
-
function he(t, e) {
|
|
433
|
-
return fe(t, e, "c");
|
|
434
|
-
}
|
|
435
|
-
function Qe(t, e) {
|
|
436
|
-
return fe(t, e, "s");
|
|
437
|
-
}
|
|
438
|
-
function et(t, e, r, n, s) {
|
|
439
|
-
if (r != null && n != null) {
|
|
440
|
-
if (typeof r == "number" && typeof n == "number") {
|
|
441
|
-
const i = r + (n - r) * s;
|
|
442
|
-
O(t, e, i);
|
|
443
|
-
} else if (e === "boxShadow" || e === "textShadow") {
|
|
444
|
-
const i = Qe(
|
|
445
|
-
r,
|
|
446
|
-
n
|
|
447
|
-
)(s);
|
|
448
|
-
O(t, e, i);
|
|
449
|
-
} else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
|
|
450
|
-
const i = he(
|
|
451
|
-
r,
|
|
452
|
-
n
|
|
453
|
-
)(s);
|
|
454
|
-
O(t, e, i);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
function Xt(t, e, r, n) {
|
|
459
|
-
t.style.transform = "", t.style.filter = "";
|
|
460
|
-
for (const [s, i] of Object.entries(r)) {
|
|
461
|
-
const o = s;
|
|
462
|
-
et(t, o, e[o], i, n);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
function Yt(t, e) {
|
|
466
|
-
t.style.transform = "", t.style.filter = "";
|
|
467
|
-
for (const [r, n] of Object.entries(e))
|
|
468
|
-
n != null && O(t, r, n);
|
|
469
|
-
}
|
|
470
|
-
const de = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), pe = /* @__PURE__ */ new Set([
|
|
615
|
+
), n = r.map(([, o]) => o);
|
|
616
|
+
return j(() => (r.forEach(([o, i]) => s[o] = i.value), e(s)), n);
|
|
617
|
+
}, Y = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), Z = /* @__PURE__ */ new Set([
|
|
471
618
|
"rowSpan",
|
|
472
619
|
"colSpan",
|
|
473
620
|
"tabIndex",
|
|
474
621
|
"valueAsNumber"
|
|
475
|
-
]),
|
|
622
|
+
]), x = /* @__PURE__ */ new Set(["valueAsDate"]), ee = /* @__PURE__ */ new Set([
|
|
476
623
|
"value",
|
|
477
624
|
"textContent",
|
|
478
625
|
"innerText",
|
|
@@ -480,47 +627,25 @@ const de = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
|
|
|
480
627
|
"outerHTML",
|
|
481
628
|
"className",
|
|
482
629
|
"classList"
|
|
483
|
-
]),
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
return Y.get(t);
|
|
630
|
+
]), q = /* @__PURE__ */ new Map(), b = (t, e) => {
|
|
631
|
+
if (q.has(t))
|
|
632
|
+
return q.get(t);
|
|
487
633
|
{
|
|
488
634
|
const r = e(t);
|
|
489
|
-
return
|
|
635
|
+
return q.set(t, r), r;
|
|
490
636
|
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
return (e, r) => {
|
|
504
|
-
r == null ? e[t] = null : e[t] = r;
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
function st(t) {
|
|
508
|
-
return (e, r) => {
|
|
509
|
-
r == null ? e[t] = null : e[t] = String(r);
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
function it(t) {
|
|
513
|
-
return (e, r) => {
|
|
514
|
-
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
function Se(t) {
|
|
518
|
-
return de.has(t) ? D(t, tt) : pe.has(t) ? D(t, rt) : me.has(t) ? D(t, nt) : ge.has(t) ? D(t, st) : D(t, it);
|
|
519
|
-
}
|
|
520
|
-
function be(t) {
|
|
521
|
-
return (e) => de.has(t) ? !!e[t] : pe.has(t) ? Number(e[t]) : me.has(t) ? e[t] : ge.has(t) ? String(e[t]) : e.getAttribute(t);
|
|
522
|
-
}
|
|
523
|
-
class b {
|
|
637
|
+
}, Fe = (t) => (e, r) => {
|
|
638
|
+
r == null ? e[t] = null : e[t] = !!r;
|
|
639
|
+
}, Ve = (t) => (e, r) => {
|
|
640
|
+
r == null ? e[t] = null : e[t] = Number(r);
|
|
641
|
+
}, $e = (t) => (e, r) => {
|
|
642
|
+
r == null ? e[t] = null : e[t] = r;
|
|
643
|
+
}, qe = (t) => (e, r) => {
|
|
644
|
+
r == null ? e[t] = null : e[t] = String(r);
|
|
645
|
+
}, Ie = (t) => (e, r) => {
|
|
646
|
+
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
647
|
+
}, te = (t) => Y.has(t) ? b(t, Fe) : Z.has(t) ? b(t, Ve) : x.has(t) ? b(t, $e) : ee.has(t) ? b(t, qe) : b(t, Ie), re = (t) => (e) => Y.has(t) ? !!e[t] : Z.has(t) ? Number(e[t]) : x.has(t) ? e[t] : ee.has(t) ? String(e[t]) : e.getAttribute(t);
|
|
648
|
+
class v {
|
|
524
649
|
/**
|
|
525
650
|
* Constructs a new `DOMContext` instance.
|
|
526
651
|
*
|
|
@@ -530,7 +655,7 @@ class b {
|
|
|
530
655
|
* @param providers - The `Providers` instance associated with this context.
|
|
531
656
|
* @param isFirstLevel - A boolean value indicating whether this context is at the first level, meaning the outermost node in the generated DOM.
|
|
532
657
|
*/
|
|
533
|
-
constructor(e, r,
|
|
658
|
+
constructor(e, r, s, n, o) {
|
|
534
659
|
/**
|
|
535
660
|
* Creates a new DOM element (eg: HTML or SVG) with the specified tag name and namespace.
|
|
536
661
|
*
|
|
@@ -538,19 +663,19 @@ class b {
|
|
|
538
663
|
* @param namespace - The namespace URI to create the element in, or `undefined` to create a standard HTML element.
|
|
539
664
|
* @returns The newly created element.
|
|
540
665
|
*/
|
|
541
|
-
|
|
666
|
+
l(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
|
|
542
667
|
/**
|
|
543
668
|
* Creates a new text node with the specified text content.
|
|
544
669
|
* @param text - The text content for the new text node.
|
|
545
670
|
* @returns A new `Text` node with the specified text content.
|
|
546
671
|
*/
|
|
547
|
-
|
|
672
|
+
l(this, "createText", (e) => this.document.createTextNode(e));
|
|
548
673
|
/**
|
|
549
674
|
* Creates a new `DOMContext` with a reference to a newly created text node.
|
|
550
675
|
* The text node is appended or inserted to the current `DOMContext`.
|
|
551
676
|
* The new `DOMContext` with the reference is returned.
|
|
552
677
|
*/
|
|
553
|
-
|
|
678
|
+
l(this, "makeRef", () => {
|
|
554
679
|
const e = this.createText("");
|
|
555
680
|
return this.appendOrInsert(e), this.withReference(e);
|
|
556
681
|
});
|
|
@@ -559,7 +684,7 @@ class b {
|
|
|
559
684
|
*
|
|
560
685
|
* @param child - The child node to append or insert.
|
|
561
686
|
*/
|
|
562
|
-
|
|
687
|
+
l(this, "appendOrInsert", (e) => {
|
|
563
688
|
this.reference === void 0 ? this.element.appendChild(e) : this.element.insertBefore(e, this.reference);
|
|
564
689
|
});
|
|
565
690
|
/**
|
|
@@ -568,18 +693,18 @@ class b {
|
|
|
568
693
|
* @param document - The `Document` to use for the `DOMContext`.
|
|
569
694
|
* @returns A new `DOMContext` instance.
|
|
570
695
|
*/
|
|
571
|
-
|
|
696
|
+
l(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
|
|
572
697
|
/**
|
|
573
698
|
* Creates a new `DOMContext` instance with the provided `element`.
|
|
574
699
|
* @param element - The DOM element to use in the new `DOMContext` instance.
|
|
575
700
|
* @returns A new `DOMContext` instance with the provided `element`.
|
|
576
701
|
*/
|
|
577
|
-
|
|
702
|
+
l(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
|
|
578
703
|
/**
|
|
579
704
|
* Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
580
705
|
* @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
|
|
581
706
|
*/
|
|
582
|
-
|
|
707
|
+
l(this, "withFirstLevel", () => new v(
|
|
583
708
|
this.document,
|
|
584
709
|
this.element,
|
|
585
710
|
this.reference,
|
|
@@ -592,7 +717,7 @@ class b {
|
|
|
592
717
|
* @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
|
|
593
718
|
* @returns A new `DOMContext` instance with the specified reference.
|
|
594
719
|
*/
|
|
595
|
-
|
|
720
|
+
l(this, "withReference", (e) => new v(
|
|
596
721
|
this.document,
|
|
597
722
|
this.element,
|
|
598
723
|
e,
|
|
@@ -605,7 +730,7 @@ class b {
|
|
|
605
730
|
* @param value - The value to set for the provider.
|
|
606
731
|
* @returns A new DOMContext with the updated providers.
|
|
607
732
|
*/
|
|
608
|
-
|
|
733
|
+
l(this, "withProvider", (e, r) => new v(
|
|
609
734
|
this.document,
|
|
610
735
|
this.element,
|
|
611
736
|
this.reference,
|
|
@@ -622,7 +747,7 @@ class b {
|
|
|
622
747
|
* @param providers - An object containing the providers to be merged into the existing providers.
|
|
623
748
|
* @returns A new DOMContext instance with the merged providers.
|
|
624
749
|
*/
|
|
625
|
-
|
|
750
|
+
l(this, "withProviders", (e) => new v(
|
|
626
751
|
this.document,
|
|
627
752
|
this.element,
|
|
628
753
|
this.reference,
|
|
@@ -637,14 +762,14 @@ class b {
|
|
|
637
762
|
*
|
|
638
763
|
* @param mark - The provider mark to retrieve the provider for.
|
|
639
764
|
* @returns The provider for the given mark.
|
|
640
|
-
* @throws
|
|
765
|
+
* @throws Throws `ProviderNotFoundError` if the provider for the given mark is not found.
|
|
641
766
|
*/
|
|
642
|
-
|
|
767
|
+
l(this, "getProvider", (e) => {
|
|
643
768
|
if (this.providers[e] === void 0)
|
|
644
|
-
throw new
|
|
769
|
+
throw new Be(e);
|
|
645
770
|
return this.providers[e];
|
|
646
771
|
});
|
|
647
|
-
this.document = e, this.element = r, this.reference =
|
|
772
|
+
this.document = e, this.element = r, this.reference = s, this.providers = n, this.isFirstLevel = o;
|
|
648
773
|
}
|
|
649
774
|
/**
|
|
650
775
|
* Creates a new `DOMContext` instance for the given `Element` and optional reference `Node`.
|
|
@@ -654,694 +779,688 @@ class b {
|
|
|
654
779
|
* @returns A new `DOMContext` instance.
|
|
655
780
|
*/
|
|
656
781
|
static of(e, r) {
|
|
657
|
-
return new
|
|
782
|
+
return new v(e.ownerDocument, e, r, {}, !0);
|
|
658
783
|
}
|
|
659
784
|
}
|
|
660
|
-
|
|
785
|
+
class Be extends Error {
|
|
786
|
+
constructor(e) {
|
|
787
|
+
super(`Provider not found: ${e.description}`);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
const m = (t) => {
|
|
661
791
|
const e = t;
|
|
662
792
|
e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
|
|
663
|
-
}
|
|
664
|
-
function
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
let n = t.target;
|
|
672
|
-
for (; n != null && !(n instanceof HTMLAnchorElement); )
|
|
673
|
-
n = n.parentElement;
|
|
674
|
-
if (n == null) return !0;
|
|
675
|
-
const s = n;
|
|
676
|
-
if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
|
|
793
|
+
}, je = (t) => se(t) ? t : t.parentElement, se = (t) => t.nodeType === 1;
|
|
794
|
+
function Ue(t, e, r) {
|
|
795
|
+
let s = t.target;
|
|
796
|
+
for (; s != null && !(s instanceof HTMLAnchorElement); )
|
|
797
|
+
s = s.parentElement;
|
|
798
|
+
if (s == null) return !0;
|
|
799
|
+
const n = s;
|
|
800
|
+
if (t.button !== 0 || t.ctrlKey || t.metaKey || n.target !== "_self" && n.target !== "" || n.getAttribute("download") != null)
|
|
677
801
|
return !0;
|
|
678
802
|
if (r) {
|
|
679
|
-
const { pathname:
|
|
680
|
-
if (
|
|
803
|
+
const { pathname: o, search: i, hash: a } = n, u = o + i + a;
|
|
804
|
+
if (n.getAttribute("href") !== u || e === !0 && !/\/[^/.]*$/.test(o) || Array.isArray(e) && !e.some((c) => o.endsWith(c)))
|
|
681
805
|
return !0;
|
|
682
806
|
}
|
|
683
807
|
return !1;
|
|
684
808
|
}
|
|
685
|
-
const
|
|
686
|
-
checkExtension:
|
|
687
|
-
checkExternalUrl: !0
|
|
688
|
-
}) => (
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
n === !0,
|
|
693
|
-
s === !0
|
|
694
|
-
) || t() && r.preventDefault();
|
|
695
|
-
}, ve = (t) => (e) => {
|
|
696
|
-
Ce(e);
|
|
809
|
+
const wt = (t, {
|
|
810
|
+
checkExtension: e = [".html"],
|
|
811
|
+
checkExternalUrl: r = !0
|
|
812
|
+
} = {}) => (s) => {
|
|
813
|
+
Ue(s, e, r) || t() && s.preventDefault();
|
|
814
|
+
}, ne = (t) => (e) => {
|
|
815
|
+
he(e);
|
|
697
816
|
const r = e.createText(t);
|
|
698
|
-
return e.appendOrInsert(r), (
|
|
699
|
-
|
|
817
|
+
return e.appendOrInsert(r), (s) => {
|
|
818
|
+
s && m(r);
|
|
700
819
|
};
|
|
701
|
-
},
|
|
702
|
-
|
|
820
|
+
}, oe = (t) => (e) => {
|
|
821
|
+
he(e);
|
|
703
822
|
const r = e.createText(t.value);
|
|
704
823
|
e.appendOrInsert(r);
|
|
705
|
-
const
|
|
706
|
-
return (s) => {
|
|
707
|
-
n(), s && g(r);
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
function Kt(t) {
|
|
711
|
-
return h.is(t) ? Ae(t) : ve(t);
|
|
712
|
-
}
|
|
713
|
-
const w = (...t) => (e) => {
|
|
714
|
-
const r = t.map((n) => f(n)(e));
|
|
824
|
+
const s = t.on((n) => r.data = n);
|
|
715
825
|
return (n) => {
|
|
716
|
-
|
|
826
|
+
s(), n && m(r);
|
|
827
|
+
};
|
|
828
|
+
}, St = (t) => h.is(t) ? oe(t) : ne(t), y = (...t) => (e) => {
|
|
829
|
+
const r = t.map((s) => f(s)(e));
|
|
830
|
+
return (s) => {
|
|
831
|
+
r.forEach((n) => n(s));
|
|
717
832
|
};
|
|
718
|
-
},
|
|
719
|
-
},
|
|
833
|
+
}, w = () => () => {
|
|
834
|
+
}, We = (t) => (e) => (ce(e), e.element.classList.add(...t), (r) => {
|
|
720
835
|
r && e.element.classList.remove(...t);
|
|
721
|
-
}),
|
|
722
|
-
|
|
836
|
+
}), Ge = (t) => (e) => {
|
|
837
|
+
ce(e);
|
|
723
838
|
const r = e.element;
|
|
724
|
-
let
|
|
725
|
-
const
|
|
726
|
-
|
|
839
|
+
let s = [];
|
|
840
|
+
const n = t.on((o) => {
|
|
841
|
+
s.forEach((i) => r.classList.remove(i)), s = (o ?? "").split(" ").filter((i) => i.length > 0), r.classList.add(...s);
|
|
727
842
|
});
|
|
728
|
-
return (
|
|
729
|
-
|
|
843
|
+
return (o) => {
|
|
844
|
+
n(), o && s.forEach((i) => r.classList.remove(i)), s.length = 0;
|
|
730
845
|
};
|
|
731
|
-
},
|
|
732
|
-
const r =
|
|
733
|
-
return (
|
|
734
|
-
|
|
735
|
-
const
|
|
736
|
-
return r(
|
|
737
|
-
|
|
846
|
+
}, N = (t, e) => {
|
|
847
|
+
const r = te(t), s = re(t);
|
|
848
|
+
return (n) => {
|
|
849
|
+
ae(n, t);
|
|
850
|
+
const o = s(n.element);
|
|
851
|
+
return r(n.element, e), (i) => {
|
|
852
|
+
i && r(n.element, o);
|
|
738
853
|
};
|
|
739
854
|
};
|
|
740
|
-
},
|
|
741
|
-
const r =
|
|
742
|
-
return (
|
|
743
|
-
|
|
744
|
-
const i = n
|
|
745
|
-
return
|
|
746
|
-
|
|
855
|
+
}, C = (t, e) => {
|
|
856
|
+
const r = te(t), s = re(t);
|
|
857
|
+
return (n) => {
|
|
858
|
+
ae(n, t);
|
|
859
|
+
const o = s(n.element), i = e.on((a) => r(n.element, a));
|
|
860
|
+
return (a) => {
|
|
861
|
+
i(), a && r(n.element, o);
|
|
747
862
|
};
|
|
748
863
|
};
|
|
749
864
|
}, P = new Proxy(
|
|
750
865
|
{},
|
|
751
866
|
{
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
867
|
+
/**
|
|
868
|
+
* Creates a renderable component for the specified attribute.
|
|
869
|
+
*
|
|
870
|
+
* Generally using multiple attributes with the same name is not recommended.
|
|
871
|
+
* `class` is the exception and can be used multiple times.
|
|
872
|
+
*
|
|
873
|
+
* @param _ - The target object.
|
|
874
|
+
* @param name - The name of the attribute.
|
|
875
|
+
* @returns The renderable component for the specified attribute.
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
878
|
+
get: (t, e) => e === "class" ? (r) => h.is(r) ? Ge(r) : We(
|
|
879
|
+
(r ?? "").split(" ").filter((s) => s.length > 0)
|
|
880
|
+
) : (r) => h.is(r) ? C(
|
|
755
881
|
e,
|
|
756
882
|
r
|
|
757
|
-
) :
|
|
883
|
+
) : N(
|
|
758
884
|
e,
|
|
759
885
|
r
|
|
760
886
|
)
|
|
761
887
|
}
|
|
762
|
-
),
|
|
888
|
+
), At = new Proxy(
|
|
763
889
|
{},
|
|
764
890
|
{
|
|
765
|
-
|
|
891
|
+
/**
|
|
892
|
+
* Creates a renderable component for the specified `data-?` attribute.
|
|
893
|
+
*
|
|
894
|
+
* @param _ - The target object.
|
|
895
|
+
* @param name - The name of the data attribute.
|
|
896
|
+
* @returns The renderable component for the specified attribute.
|
|
897
|
+
*
|
|
898
|
+
*/
|
|
899
|
+
get: (t, e) => (r) => h.is(r) ? C(
|
|
766
900
|
`data-${e}`,
|
|
767
901
|
r
|
|
768
|
-
) :
|
|
902
|
+
) : N(`data-${e}`, r)
|
|
769
903
|
}
|
|
770
|
-
),
|
|
904
|
+
), Et = new Proxy(
|
|
771
905
|
{},
|
|
772
906
|
{
|
|
773
|
-
|
|
907
|
+
/**
|
|
908
|
+
* Creates a renderable component for the specified `aria-?` attribute.
|
|
909
|
+
*
|
|
910
|
+
* @param _ - The target object.
|
|
911
|
+
* @param name - The name of the aria attribute.
|
|
912
|
+
* @returns The renderable component for the specified attribute.
|
|
913
|
+
*
|
|
914
|
+
*/
|
|
915
|
+
get: (t, e) => (r) => h.is(r) ? C(
|
|
774
916
|
`aria-${e}`,
|
|
775
917
|
r
|
|
776
|
-
) :
|
|
918
|
+
) : N(
|
|
777
919
|
`aria-${e}`,
|
|
778
920
|
r
|
|
779
921
|
)
|
|
780
922
|
}
|
|
781
|
-
),
|
|
923
|
+
), Pt = new Proxy(
|
|
782
924
|
{},
|
|
783
925
|
{
|
|
784
|
-
|
|
926
|
+
/**
|
|
927
|
+
* Creates a renderable component for the specified `svg` attribute.
|
|
928
|
+
*
|
|
929
|
+
* @param _ - The target object.
|
|
930
|
+
* @param name - The name of the SVG attribute.
|
|
931
|
+
* @returns The renderable component for the specified attribute.
|
|
932
|
+
*
|
|
933
|
+
*/
|
|
934
|
+
get: (t, e) => (r) => h.is(r) ? C(
|
|
785
935
|
e,
|
|
786
936
|
r
|
|
787
|
-
) :
|
|
937
|
+
) : N(
|
|
788
938
|
e,
|
|
789
939
|
r
|
|
790
940
|
)
|
|
791
941
|
}
|
|
792
|
-
),
|
|
942
|
+
), Dt = new Proxy(
|
|
793
943
|
{},
|
|
794
944
|
{
|
|
795
|
-
|
|
945
|
+
/**
|
|
946
|
+
* Creates a renderable component for the specified `math` attribute.
|
|
947
|
+
*
|
|
948
|
+
* @param name - The name of the Math attribute.
|
|
949
|
+
* @returns The renderable component for the specified attribute.
|
|
950
|
+
*
|
|
951
|
+
*/
|
|
952
|
+
get: (t, e) => (r) => h.is(r) ? C(
|
|
796
953
|
e,
|
|
797
954
|
r
|
|
798
|
-
) :
|
|
955
|
+
) : N(
|
|
799
956
|
e,
|
|
800
957
|
r
|
|
801
958
|
)
|
|
802
959
|
}
|
|
803
|
-
)
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
const n = r.createElement(t, void 0);
|
|
810
|
-
r.isFirstLevel && M.isSSR() && $e(n), r.appendOrInsert(n), r = r.withElement(n);
|
|
811
|
-
const s = e.map((i) => f(i)(r));
|
|
812
|
-
return (i) => {
|
|
813
|
-
s.forEach((o) => o(!1)), i && g(n);
|
|
814
|
-
};
|
|
960
|
+
), f = (t) => t == null ? w : Array.isArray(t) ? y(...t.map(f)) : typeof t == "string" ? ne(t) : h.is(t) ? oe(t) : t, ie = (t, ...e) => (r) => {
|
|
961
|
+
const s = r.createElement(t, void 0);
|
|
962
|
+
r.isFirstLevel && O() && fe(s), r.appendOrInsert(s), r = r.withElement(s);
|
|
963
|
+
const n = e.map((o) => f(o)(r));
|
|
964
|
+
return (o) => {
|
|
965
|
+
n.forEach((i) => i(!1)), o && m(s);
|
|
815
966
|
};
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
return (o) => {
|
|
823
|
-
i.forEach((l) => l(!1)), o && g(s);
|
|
824
|
-
};
|
|
967
|
+
}, le = (t, e, ...r) => (s) => {
|
|
968
|
+
const n = s.createElement(t, e);
|
|
969
|
+
s.isFirstLevel && O() && fe(n), s.appendOrInsert(n), s = s.withElement(n);
|
|
970
|
+
const o = r.map((i) => f(i)(s));
|
|
971
|
+
return (i) => {
|
|
972
|
+
o.forEach((a) => a(!1)), i && m(n);
|
|
825
973
|
};
|
|
826
|
-
}
|
|
827
|
-
const Ht = new Proxy(
|
|
974
|
+
}, bt = new Proxy(
|
|
828
975
|
{},
|
|
829
976
|
{
|
|
830
|
-
|
|
977
|
+
/**
|
|
978
|
+
* Creates a renderable that represents an HTML element.
|
|
979
|
+
* @param tagName - The HTML tag name.
|
|
980
|
+
* @returns A renderable function that creates and appends the HTML element to the DOM.
|
|
981
|
+
*/
|
|
982
|
+
get: (t, e) => (...r) => ie(e, r.flatMap(f))
|
|
831
983
|
}
|
|
832
|
-
),
|
|
984
|
+
), Tt = new Proxy(
|
|
833
985
|
{},
|
|
834
986
|
{
|
|
835
|
-
|
|
987
|
+
/**
|
|
988
|
+
* Creates a renderable that represents an HTMLInput element.
|
|
989
|
+
* @param type - The input type name.
|
|
990
|
+
* @returns A renderable function that creates and appends the HTMLInput element to the DOM.
|
|
991
|
+
*/
|
|
992
|
+
get: (t, e) => (...r) => ie("input", P.type(e), ...r)
|
|
836
993
|
}
|
|
837
|
-
),
|
|
994
|
+
), He = "http://www.w3.org/2000/svg", Lt = new Proxy(
|
|
838
995
|
{},
|
|
839
996
|
{
|
|
840
|
-
|
|
997
|
+
/**
|
|
998
|
+
* Creates a renderable that represents an SVG element.
|
|
999
|
+
* @param tagName - The SVG tag name.
|
|
1000
|
+
* @returns A renderable function that creates and appends the SVG element to the DOM.
|
|
1001
|
+
*/
|
|
1002
|
+
get: (t, e) => (...r) => le(e, He, r.flatMap(f))
|
|
841
1003
|
}
|
|
842
|
-
),
|
|
1004
|
+
), Je = "http://www.w3.org/1998/Math/MathML", Nt = new Proxy(
|
|
843
1005
|
{},
|
|
844
1006
|
{
|
|
845
|
-
|
|
1007
|
+
/**
|
|
1008
|
+
* Creates a renderable that represents an Math element.
|
|
1009
|
+
* @param tagName - The Math tag name.
|
|
1010
|
+
* @returns A renderable function that creates and appends the Math element to the DOM.
|
|
1011
|
+
*/
|
|
1012
|
+
get: (t, e) => (...r) => le(e, Je, r.flatMap(f))
|
|
846
1013
|
}
|
|
847
|
-
),
|
|
848
|
-
function ht(t, e) {
|
|
1014
|
+
), T = "data-tempo-attr", R = "data-tempo-class", ue = "data-tempo-node", M = "data-tempo-text", Ke = (t, e) => {
|
|
849
1015
|
const r = t.getAttribute(e);
|
|
850
1016
|
if (r != null) {
|
|
851
|
-
const
|
|
852
|
-
t.setAttribute(
|
|
1017
|
+
const s = t.getAttribute(T) ?? "{}", n = { ...JSON.parse(s), name: r };
|
|
1018
|
+
t.setAttribute(
|
|
1019
|
+
T,
|
|
1020
|
+
JSON.stringify(n).replace(/"/g, """)
|
|
1021
|
+
);
|
|
853
1022
|
}
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
for (const [
|
|
862
|
-
e.setAttribute(
|
|
863
|
-
e.removeAttribute(
|
|
1023
|
+
}, ae = (t, e) => {
|
|
1024
|
+
O() && t.isFirstLevel && Ke(t.element, e);
|
|
1025
|
+
}, Xe = (t) => {
|
|
1026
|
+
t.querySelectorAll(`[${T}]`).forEach((e) => {
|
|
1027
|
+
const r = JSON.parse(
|
|
1028
|
+
(e.getAttribute(T) ?? "{}").replace(/"/g, '"')
|
|
1029
|
+
);
|
|
1030
|
+
for (const [s, n] of Object.entries(r))
|
|
1031
|
+
e.setAttribute(s, n);
|
|
1032
|
+
e.removeAttribute(T);
|
|
864
1033
|
});
|
|
865
|
-
}
|
|
866
|
-
function
|
|
867
|
-
t.setAttribute(
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
r !== null && (e.className = r, e.removeAttribute(x));
|
|
1034
|
+
};
|
|
1035
|
+
function ze(t) {
|
|
1036
|
+
t.setAttribute(R, t.className);
|
|
1037
|
+
}
|
|
1038
|
+
const ce = (t) => {
|
|
1039
|
+
O() && t.isFirstLevel && ze(t.element);
|
|
1040
|
+
}, Qe = (t) => {
|
|
1041
|
+
t.querySelectorAll(`[${R}]`).forEach((e) => {
|
|
1042
|
+
const r = e.getAttribute(R);
|
|
1043
|
+
r !== null && (e.className = r, e.removeAttribute(R));
|
|
876
1044
|
});
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
t.querySelectorAll(`[${Ee}]`).forEach((e) => {
|
|
883
|
-
g(e);
|
|
1045
|
+
}, fe = (t) => {
|
|
1046
|
+
t.setAttribute(ue, "");
|
|
1047
|
+
}, Ye = (t) => {
|
|
1048
|
+
t.querySelectorAll(`[${ue}]`).forEach((e) => {
|
|
1049
|
+
m(e);
|
|
884
1050
|
});
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
M.
|
|
891
|
-
|
|
892
|
-
function bt(t) {
|
|
893
|
-
t.querySelectorAll(`[${F}]`).forEach((e) => {
|
|
894
|
-
e.textContent = e.getAttribute(F), e.removeAttribute(F);
|
|
1051
|
+
}, Ze = (t) => {
|
|
1052
|
+
t.setAttribute(M, t.textContent ?? "");
|
|
1053
|
+
}, he = (t) => {
|
|
1054
|
+
O() && t.isFirstLevel && Ze(t.element);
|
|
1055
|
+
}, xe = (t) => {
|
|
1056
|
+
t.querySelectorAll(`[${M}]`).forEach((e) => {
|
|
1057
|
+
e.textContent = e.getAttribute(M), e.removeAttribute(M);
|
|
895
1058
|
});
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
}
|
|
900
|
-
function Ne() {
|
|
1059
|
+
}, et = (t) => {
|
|
1060
|
+
Ye(t), Qe(t), Xe(t), xe(t);
|
|
1061
|
+
}, de = () => {
|
|
901
1062
|
const t = globalThis;
|
|
902
1063
|
return t.__tempoSSR__ == null && (t.__tempoSSR__ = {
|
|
903
1064
|
isSSR: !1,
|
|
904
1065
|
counter: 0
|
|
905
1066
|
}), t.__tempoSSR__;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
const r = Ne();
|
|
1067
|
+
}, U = (t, e) => {
|
|
1068
|
+
const r = de();
|
|
909
1069
|
r[t] = e;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
function G() {
|
|
921
|
-
return Te("counter");
|
|
922
|
-
}
|
|
923
|
-
function At() {
|
|
924
|
-
B("counter", (G() ?? 0) + 1);
|
|
925
|
-
}
|
|
926
|
-
function _t() {
|
|
927
|
-
B("counter", (G() ?? 0) - 1);
|
|
928
|
-
}
|
|
929
|
-
const er = (t = 30) => (j(!0), new Promise((e, r) => {
|
|
930
|
-
let n;
|
|
931
|
-
const s = setInterval(() => {
|
|
932
|
-
G() <= 0 && (clearInterval(s), clearTimeout(n), j(!1), e());
|
|
1070
|
+
}, pe = (t) => de()[t], I = (t) => {
|
|
1071
|
+
U("isSSR", t);
|
|
1072
|
+
}, W = () => pe("counter"), tt = () => {
|
|
1073
|
+
U("counter", (W() ?? 0) + 1);
|
|
1074
|
+
}, rt = () => {
|
|
1075
|
+
U("counter", (W() ?? 0) - 1);
|
|
1076
|
+
}, Ct = (t = 30) => (I(!0), new Promise((e, r) => {
|
|
1077
|
+
let s;
|
|
1078
|
+
const n = setInterval(() => {
|
|
1079
|
+
W() <= 0 && (clearInterval(n), clearTimeout(s), I(!1), e());
|
|
933
1080
|
}, 30);
|
|
934
|
-
|
|
935
|
-
clearInterval(
|
|
1081
|
+
s = setTimeout(() => {
|
|
1082
|
+
clearInterval(n), I(!1), r(new Error("SSR Timeout"));
|
|
936
1083
|
}, t * 1e3);
|
|
937
|
-
})),
|
|
938
|
-
useDone: (t) => (At(), f(t(_t))),
|
|
939
|
-
isSSR: vt
|
|
940
|
-
}, Le = (t, e) => {
|
|
1084
|
+
})), Ot = (t) => (tt(), f(t(rt))), O = () => pe("isSSR"), me = (t, e) => {
|
|
941
1085
|
if (typeof e == "function")
|
|
942
|
-
return
|
|
943
|
-
const r = e.pending != null ? f(e.pending) :
|
|
944
|
-
return (
|
|
945
|
-
let
|
|
946
|
-
const
|
|
947
|
-
|
|
948
|
-
let u = f(r)(
|
|
949
|
-
return
|
|
1086
|
+
return me(t, { then: e });
|
|
1087
|
+
const r = e.pending != null ? f(e.pending) : w, s = e.then, n = e.error != null ? (o) => f(e.error(o)) : () => w;
|
|
1088
|
+
return (o) => {
|
|
1089
|
+
let i = !0;
|
|
1090
|
+
const a = t();
|
|
1091
|
+
o = o.makeRef();
|
|
1092
|
+
let u = f(r)(o);
|
|
1093
|
+
return a.then(
|
|
950
1094
|
(c) => {
|
|
951
|
-
|
|
1095
|
+
i && (u(!0), u = f(s(c))(o));
|
|
952
1096
|
},
|
|
953
1097
|
(c) => {
|
|
954
|
-
|
|
1098
|
+
i && (u(!0), u = f(n(c))(o));
|
|
955
1099
|
}
|
|
956
1100
|
), (c) => {
|
|
957
|
-
|
|
1101
|
+
i = !1, u(c), c && o.reference && m(o.reference);
|
|
958
1102
|
};
|
|
959
1103
|
};
|
|
960
|
-
},
|
|
961
|
-
|
|
962
|
-
}),
|
|
1104
|
+
}, kt = (t, e) => me(() => t, e), ge = (t, e) => (r) => (r.element.addEventListener(t, e), (s) => {
|
|
1105
|
+
s && r.element.removeEventListener(t, e);
|
|
1106
|
+
}), st = (t) => ge("click", (e) => {
|
|
963
1107
|
e.preventDefault();
|
|
964
1108
|
const r = e.target;
|
|
965
1109
|
setTimeout(() => {
|
|
966
|
-
const
|
|
967
|
-
|
|
1110
|
+
const s = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
|
|
1111
|
+
s != null && t(!s);
|
|
968
1112
|
}, 0);
|
|
969
|
-
}),
|
|
1113
|
+
}), $ = new Proxy(
|
|
970
1114
|
{},
|
|
971
1115
|
{
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
t(r
|
|
978
|
-
},
|
|
979
|
-
valueAsNumber: (t) => (e) => {
|
|
980
|
-
const r = e.target;
|
|
981
|
-
t(r.valueAsNumber);
|
|
982
|
-
},
|
|
983
|
-
valueAsDate: (t) => (e) => {
|
|
984
|
-
const r = e.target;
|
|
985
|
-
if (r.value === "")
|
|
986
|
-
return;
|
|
987
|
-
const n = r.value.split("-"), s = new Date(
|
|
988
|
-
Number(n[0]),
|
|
989
|
-
Number(n[1]) - 1,
|
|
990
|
-
Number(n[2].substring(0, 2))
|
|
991
|
-
);
|
|
992
|
-
t(s);
|
|
993
|
-
},
|
|
994
|
-
valueAsDateTime: (t) => (e) => {
|
|
995
|
-
const r = e.target;
|
|
996
|
-
if (r.value === "")
|
|
997
|
-
return;
|
|
998
|
-
const n = r.value.split("T"), s = n[0].split("-"), i = new Date(
|
|
999
|
-
Number(s[0]),
|
|
1000
|
-
Number(s[1]) - 1,
|
|
1001
|
-
Number(s[2])
|
|
1002
|
-
), o = n[1].split(":");
|
|
1003
|
-
i.setHours(Number(o[0])), i.setMinutes(Number(o[1])), i.setSeconds(Number(o[2])), t(i);
|
|
1004
|
-
},
|
|
1005
|
-
checked: (t) => (e) => {
|
|
1006
|
-
const r = e.target;
|
|
1007
|
-
t(r.checked);
|
|
1008
|
-
},
|
|
1009
|
-
preventDefault: (t) => (e) => {
|
|
1010
|
-
e.preventDefault(), t();
|
|
1011
|
-
},
|
|
1012
|
-
stopPropagation: (t) => (e) => {
|
|
1013
|
-
e.stopPropagation(), t();
|
|
1014
|
-
},
|
|
1015
|
-
stopImmediatePropagation: (t) => (e) => {
|
|
1016
|
-
e.stopImmediatePropagation(), t();
|
|
1116
|
+
/**
|
|
1117
|
+
* @param name - The name of the event handler.
|
|
1118
|
+
* @param fn - The function to call when the event is triggered.
|
|
1119
|
+
* @returns A `Renderable` function that adds the event listener to the element.
|
|
1120
|
+
*/
|
|
1121
|
+
get: (t, e) => (r) => ge(e, r)
|
|
1017
1122
|
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
);
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
return w(
|
|
1033
|
-
P.valueAsNumber(t),
|
|
1034
|
-
V[e](W.valueAsNumber(t.set))
|
|
1123
|
+
), nt = (t) => (e) => {
|
|
1124
|
+
const r = e.target;
|
|
1125
|
+
t(r.value);
|
|
1126
|
+
}, ot = (t) => (e) => {
|
|
1127
|
+
const r = e.target;
|
|
1128
|
+
t(r.valueAsNumber);
|
|
1129
|
+
}, it = (t) => (e) => {
|
|
1130
|
+
const r = e.target;
|
|
1131
|
+
if (r.value === "")
|
|
1132
|
+
return;
|
|
1133
|
+
const s = r.value.split("-"), n = new Date(
|
|
1134
|
+
Number(s[0]),
|
|
1135
|
+
Number(s[1]) - 1,
|
|
1136
|
+
Number(s[2].substring(0, 2))
|
|
1035
1137
|
);
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1138
|
+
t(n);
|
|
1139
|
+
}, lt = (t) => (e) => {
|
|
1140
|
+
const r = e.target;
|
|
1141
|
+
if (r.value === "")
|
|
1142
|
+
return;
|
|
1143
|
+
const s = r.value.split("T"), n = s[0].split("-"), o = new Date(
|
|
1144
|
+
Number(n[0]),
|
|
1145
|
+
Number(n[1]) - 1,
|
|
1146
|
+
Number(n[2])
|
|
1147
|
+
), i = s[1].split(":");
|
|
1148
|
+
o.setHours(Number(i[0])), o.setMinutes(Number(i[1])), o.setSeconds(Number(i[2])), t(o);
|
|
1149
|
+
}, Rt = (t) => (e) => {
|
|
1150
|
+
const r = e.target;
|
|
1151
|
+
t(r.checked);
|
|
1152
|
+
}, Mt = (t) => (e) => {
|
|
1153
|
+
e.preventDefault(), t();
|
|
1154
|
+
}, Ft = (t) => (e) => {
|
|
1155
|
+
e.stopPropagation(), t();
|
|
1156
|
+
}, Vt = (t) => (e) => {
|
|
1157
|
+
e.stopImmediatePropagation(), t();
|
|
1158
|
+
}, $t = (t, e = "input") => y(
|
|
1159
|
+
P.valueAsDate(t),
|
|
1160
|
+
$[e](it(t.set))
|
|
1161
|
+
), qt = (t, e = "input") => y(
|
|
1162
|
+
P.valueAsDate(t),
|
|
1163
|
+
$[e](lt(t.set))
|
|
1164
|
+
), It = (t, e = "input") => y(
|
|
1165
|
+
P.valueAsNumber(t),
|
|
1166
|
+
$[e](ot(t.set))
|
|
1167
|
+
), Bt = (t, e = "input") => y(P.value(t), $[e](nt(t.set))), jt = (t) => y(P.checked(t), st(t.set)), G = (t, e) => (r) => {
|
|
1050
1168
|
r = r.makeRef();
|
|
1051
|
-
let
|
|
1052
|
-
const
|
|
1053
|
-
let
|
|
1054
|
-
const
|
|
1055
|
-
if (u !==
|
|
1056
|
-
|
|
1057
|
-
const c = e[u](
|
|
1058
|
-
|
|
1169
|
+
let s, n;
|
|
1170
|
+
const o = t.map((u) => Object.keys(u)[0]);
|
|
1171
|
+
let i;
|
|
1172
|
+
const a = o.on((u) => {
|
|
1173
|
+
if (u !== i) {
|
|
1174
|
+
n == null || n.dispose(), s == null || s(!0), n = t.map((g) => g[u]);
|
|
1175
|
+
const c = e[u](n);
|
|
1176
|
+
s = f(c)(r), i = u;
|
|
1059
1177
|
}
|
|
1060
1178
|
});
|
|
1061
1179
|
return (u) => {
|
|
1062
|
-
|
|
1180
|
+
a(), u && r.reference != null && m(r.reference), s == null || s(!0);
|
|
1063
1181
|
};
|
|
1064
|
-
},
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
},
|
|
1079
|
-
type: (t, e) => N.field(t, "type", e),
|
|
1080
|
-
value: (t, e) => I(
|
|
1081
|
-
t.map((r) => ({ [r]: !0 })),
|
|
1082
|
-
e
|
|
1083
|
-
)
|
|
1084
|
-
}, nr = (t, e) => (r) => {
|
|
1085
|
-
const n = (e == null ? void 0 : e.firstSeparator) ?? v, s = (e == null ? void 0 : e.lastSeparator) ?? v;
|
|
1086
|
-
return N.value(
|
|
1087
|
-
r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
|
|
1182
|
+
}, _e = (t, e, r) => G(
|
|
1183
|
+
t.map((s) => ({ [s[e]]: s })),
|
|
1184
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1185
|
+
r
|
|
1186
|
+
), Ut = (t, e) => _e(t, "kind", e), Wt = (t, e) => {
|
|
1187
|
+
const r = t.map(([s, n]) => ({ [s]: n }));
|
|
1188
|
+
return G(r, e);
|
|
1189
|
+
}, Gt = (t, e) => _e(t, "type", e), H = (t, e) => G(
|
|
1190
|
+
t.map((r) => ({ [r]: !0 })),
|
|
1191
|
+
e
|
|
1192
|
+
), Ht = (t, e = {}) => (r) => {
|
|
1193
|
+
const s = (e == null ? void 0 : e.firstSeparator) ?? w, n = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1194
|
+
return H(
|
|
1195
|
+
r.map((o) => o.isFirst ? "first" : o.isLast ? "last" : "other"),
|
|
1088
1196
|
{
|
|
1089
|
-
first: () =>
|
|
1090
|
-
last: () =>
|
|
1197
|
+
first: () => s,
|
|
1198
|
+
last: () => n,
|
|
1091
1199
|
other: () => t
|
|
1092
1200
|
}
|
|
1093
1201
|
);
|
|
1094
|
-
},
|
|
1095
|
-
const
|
|
1096
|
-
const
|
|
1097
|
-
if (
|
|
1098
|
-
throw new Error(`No provider found for mark: ${
|
|
1099
|
-
return
|
|
1202
|
+
}, ve = (t, e) => (r) => {
|
|
1203
|
+
const s = Object.values(t).reduce((n, o) => {
|
|
1204
|
+
const i = r.getProvider(o);
|
|
1205
|
+
if (i == null)
|
|
1206
|
+
throw new Error(`No provider found for mark: ${o.description}`);
|
|
1207
|
+
return n[o] = i, n;
|
|
1100
1208
|
}, {});
|
|
1101
|
-
return f(e(
|
|
1102
|
-
},
|
|
1103
|
-
const
|
|
1104
|
-
(
|
|
1105
|
-
|
|
1106
|
-
),
|
|
1209
|
+
return f(e(s))(r);
|
|
1210
|
+
}, Jt = (t, e) => (r) => {
|
|
1211
|
+
const s = [], n = Object.entries(t).reduce(
|
|
1212
|
+
(o, [i, a]) => (s.push(
|
|
1213
|
+
a((u) => (Reflect.set(o, i, u), null))(r)
|
|
1214
|
+
), o),
|
|
1107
1215
|
{}
|
|
1108
1216
|
);
|
|
1109
|
-
return
|
|
1110
|
-
|
|
1217
|
+
return s.push(e(n)(r)), (o) => {
|
|
1218
|
+
s.forEach((i) => i(o));
|
|
1111
1219
|
};
|
|
1112
|
-
},
|
|
1113
|
-
r &&
|
|
1114
|
-
}),
|
|
1115
|
-
|
|
1116
|
-
let
|
|
1117
|
-
const
|
|
1118
|
-
u == null ? (
|
|
1220
|
+
}, Kt = (t, e) => ve([t], (r) => f(e(r[t]))), Xt = (t, e) => ve(t, (r) => f(e(r))), zt = (t) => (e) => t(e), Qt = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1221
|
+
r && m(t);
|
|
1222
|
+
}), ut = (t, e, r) => (s) => {
|
|
1223
|
+
s = s.makeRef();
|
|
1224
|
+
let n = null, o = !1;
|
|
1225
|
+
const i = L(null), a = t.on((u) => {
|
|
1226
|
+
u == null ? (n == null || n(!0), n = f((r == null ? void 0 : r()) ?? w)(s), o = !1) : (i.value = u, o || (n == null || n(!0), n = f(e(i))(s), o = !0));
|
|
1119
1227
|
});
|
|
1120
1228
|
return (u) => {
|
|
1121
|
-
|
|
1229
|
+
a(), n == null || n(u), u && s.reference && m(s.reference);
|
|
1122
1230
|
};
|
|
1123
|
-
},
|
|
1124
|
-
const
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1127
|
-
f(e(
|
|
1128
|
-
|
|
1129
|
-
last: () =>
|
|
1130
|
-
other: () => r(
|
|
1231
|
+
}, B = (t) => (e) => (r) => t(r, e), ye = (t, e, r) => r != null ? ye(t, (s) => {
|
|
1232
|
+
const n = s.map((o) => o.isLast ? "last" : "other");
|
|
1233
|
+
return y(
|
|
1234
|
+
B(() => n.dispose()),
|
|
1235
|
+
f(e(s)),
|
|
1236
|
+
H(n, {
|
|
1237
|
+
last: () => w,
|
|
1238
|
+
other: () => r(s)
|
|
1131
1239
|
})
|
|
1132
1240
|
);
|
|
1133
|
-
}) : (
|
|
1134
|
-
|
|
1135
|
-
const
|
|
1136
|
-
(u) => Array.from({ length: u }, (c,
|
|
1137
|
-
(c) => new
|
|
1241
|
+
}) : (s) => {
|
|
1242
|
+
s = s.makeRef();
|
|
1243
|
+
const n = t.map(
|
|
1244
|
+
(u) => Array.from({ length: u }, (c, g) => g).map(
|
|
1245
|
+
(c) => new ke(c, u)
|
|
1138
1246
|
)
|
|
1139
|
-
),
|
|
1140
|
-
var
|
|
1247
|
+
), o = [], i = [], a = n.on((u) => {
|
|
1248
|
+
var g, S;
|
|
1141
1249
|
const c = u.length;
|
|
1142
|
-
for (; c <
|
|
1143
|
-
(
|
|
1144
|
-
for (let
|
|
1145
|
-
if (
|
|
1146
|
-
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1250
|
+
for (; c < o.length; )
|
|
1251
|
+
(g = o.pop()) == null || g(!0), (S = i.pop()) == null || S.dispose();
|
|
1252
|
+
for (let p = 0; p < c; p++)
|
|
1253
|
+
if (i[p] == null) {
|
|
1254
|
+
i[p] = L(u[p]);
|
|
1255
|
+
const D = f(e(i[p]));
|
|
1256
|
+
o[p] = D(s);
|
|
1149
1257
|
} else
|
|
1150
|
-
|
|
1258
|
+
i[p].value = u[p];
|
|
1151
1259
|
});
|
|
1152
1260
|
return (u) => {
|
|
1153
|
-
|
|
1261
|
+
a(), u && s.reference && m(s.reference);
|
|
1154
1262
|
};
|
|
1155
|
-
},
|
|
1156
|
-
const
|
|
1157
|
-
return
|
|
1158
|
-
|
|
1159
|
-
f(e(
|
|
1160
|
-
|
|
1161
|
-
last: () =>
|
|
1162
|
-
other: () => r(
|
|
1263
|
+
}, at = (t, e, r) => r != null ? at(t, (s, n) => {
|
|
1264
|
+
const o = n.map((i) => i.isLast ? "last" : "other");
|
|
1265
|
+
return y([
|
|
1266
|
+
B(() => o.dispose()),
|
|
1267
|
+
f(e(s, n)),
|
|
1268
|
+
H(o, {
|
|
1269
|
+
last: () => w,
|
|
1270
|
+
other: () => r(n)
|
|
1163
1271
|
})
|
|
1164
1272
|
]);
|
|
1165
|
-
}) : (
|
|
1166
|
-
const
|
|
1167
|
-
return
|
|
1168
|
-
const
|
|
1169
|
-
() => t.value[
|
|
1170
|
-
[
|
|
1273
|
+
}) : (s) => {
|
|
1274
|
+
const n = t.map((o) => o.length);
|
|
1275
|
+
return ye(n, (o) => {
|
|
1276
|
+
const i = j(
|
|
1277
|
+
() => t.value[o.value.index],
|
|
1278
|
+
[o, t]
|
|
1171
1279
|
);
|
|
1172
|
-
return
|
|
1173
|
-
|
|
1174
|
-
f(e(
|
|
1280
|
+
return y(
|
|
1281
|
+
B(() => i.dispose()),
|
|
1282
|
+
f(e(i, o))
|
|
1175
1283
|
);
|
|
1176
|
-
})(
|
|
1177
|
-
},
|
|
1284
|
+
})(s);
|
|
1285
|
+
}, Yt = (t, e) => (r) => {
|
|
1178
1286
|
r = r.makeRef();
|
|
1179
|
-
const
|
|
1180
|
-
let
|
|
1287
|
+
const s = t.map((i) => f(e(i)));
|
|
1288
|
+
let n = () => {
|
|
1181
1289
|
};
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1290
|
+
const o = s.on((i) => {
|
|
1291
|
+
n(!0), n = i(r);
|
|
1184
1292
|
});
|
|
1185
|
-
return (
|
|
1186
|
-
|
|
1293
|
+
return (i) => {
|
|
1294
|
+
o(), n(i);
|
|
1187
1295
|
};
|
|
1188
|
-
},
|
|
1189
|
-
t.map((
|
|
1296
|
+
}, we = (t, e, r) => ut(
|
|
1297
|
+
t.map((s) => s ? !0 : null),
|
|
1190
1298
|
() => e,
|
|
1191
1299
|
r != null ? () => r : void 0
|
|
1192
|
-
),
|
|
1193
|
-
t.map((
|
|
1300
|
+
), Zt = (t, e, r) => we(
|
|
1301
|
+
t.map((s) => !s),
|
|
1194
1302
|
e,
|
|
1195
1303
|
r
|
|
1196
|
-
)
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
);
|
|
1203
|
-
}
|
|
1204
|
-
const hr = (t) => (e) => t(e.element) ?? (() => {
|
|
1205
|
-
});
|
|
1206
|
-
function xe(t, e) {
|
|
1304
|
+
), xt = (t, e, r = w) => we(
|
|
1305
|
+
t.map((s) => s.length > 0),
|
|
1306
|
+
e,
|
|
1307
|
+
r
|
|
1308
|
+
), er = (t) => (e) => t(e.element) ?? (() => {
|
|
1309
|
+
}), Se = (t, e) => {
|
|
1207
1310
|
const r = t(e);
|
|
1208
1311
|
return () => r(!0);
|
|
1312
|
+
}, tr = (t, e, { doc: r, clear: s } = {}) => {
|
|
1313
|
+
const n = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1314
|
+
if (n === null)
|
|
1315
|
+
throw new ct(
|
|
1316
|
+
`Cannot find element by selector for render: ${e}`
|
|
1317
|
+
);
|
|
1318
|
+
s !== !1 && (r ?? n.ownerDocument) != null && et(r ?? n.ownerDocument);
|
|
1319
|
+
const o = je(n), i = se(n) ? void 0 : n, a = v.of(o, i);
|
|
1320
|
+
return Se(t, a);
|
|
1321
|
+
};
|
|
1322
|
+
class ct extends Error {
|
|
1323
|
+
constructor(e) {
|
|
1324
|
+
super(e);
|
|
1325
|
+
}
|
|
1209
1326
|
}
|
|
1210
|
-
|
|
1211
|
-
const s =
|
|
1327
|
+
const rr = (t, e) => (r) => {
|
|
1328
|
+
const s = r.document.querySelector(t);
|
|
1212
1329
|
if (s === null)
|
|
1213
|
-
throw new Error(`Cannot find element by selector for render: ${e}`);
|
|
1214
|
-
n && (r ?? s.ownerDocument) != null && wt(r ?? s.ownerDocument);
|
|
1215
|
-
const i = ot(s), o = we(s) ? void 0 : s, l = b.of(i, o);
|
|
1216
|
-
return xe(t, l);
|
|
1217
|
-
}
|
|
1218
|
-
const pr = (t, e) => (r) => {
|
|
1219
|
-
const n = r.document.querySelector(t);
|
|
1220
|
-
if (n === null)
|
|
1221
1330
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1222
|
-
return
|
|
1331
|
+
return Se(
|
|
1223
1332
|
f(e),
|
|
1224
|
-
r.withElement(
|
|
1333
|
+
r.withElement(s).withFirstLevel()
|
|
1225
1334
|
);
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
return
|
|
1229
|
-
|
|
1230
|
-
const Fe = (t, e) => (r) => f(e)(r.withProviders(t)), gr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, Sr = (t, e, r) => Fe({ [t]: e }, f(r)), br = (t, e) => Fe(t, f(e)), Lt = (t, e) => (r) => {
|
|
1231
|
-
const n = r.element, s = n.style.getPropertyValue(t);
|
|
1232
|
-
return n.style.setProperty(t, e), (i) => {
|
|
1233
|
-
i && n.style.setProperty(t, s);
|
|
1335
|
+
}, sr = (t) => Symbol(t), Ae = (t, e) => (r) => f(e)(r.withProviders(t)), nr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (s) => e(r(s))) : f, or = (t, e, r) => Ae({ [t]: e }, f(r)), ir = (t, e) => Ae(t, f(e)), ft = (t, e) => (r) => {
|
|
1336
|
+
const s = r.element, n = s.style.getPropertyValue(t);
|
|
1337
|
+
return s.style.setProperty(t, e), (o) => {
|
|
1338
|
+
o && s.style.setProperty(t, n);
|
|
1234
1339
|
};
|
|
1235
|
-
},
|
|
1236
|
-
const
|
|
1237
|
-
return e.on((
|
|
1238
|
-
|
|
1340
|
+
}, ht = (t, e) => (r) => {
|
|
1341
|
+
const s = r.element, n = s.style.getPropertyValue(t);
|
|
1342
|
+
return e.on((o) => s.style.setProperty(t, o)), (o) => {
|
|
1343
|
+
o && s.style.setProperty(t, n);
|
|
1239
1344
|
};
|
|
1240
|
-
},
|
|
1345
|
+
}, lr = new Proxy(
|
|
1241
1346
|
{},
|
|
1242
1347
|
{
|
|
1243
|
-
|
|
1348
|
+
/**
|
|
1349
|
+
* Creates a renderable component for the specified `style` property.
|
|
1350
|
+
*
|
|
1351
|
+
* @param _ - The target object.
|
|
1352
|
+
* @param name - The name of the CSS style property.
|
|
1353
|
+
* @returns The renderable component for the specified attribute.
|
|
1354
|
+
*
|
|
1355
|
+
*/
|
|
1356
|
+
get: (t, e) => (r) => h.is(r) ? ht(e, r) : ft(e, r)
|
|
1244
1357
|
}
|
|
1245
1358
|
);
|
|
1246
1359
|
export {
|
|
1247
|
-
|
|
1360
|
+
kt as Async,
|
|
1361
|
+
jt as BindChecked,
|
|
1362
|
+
$t as BindDate,
|
|
1363
|
+
qt as BindDateTime,
|
|
1364
|
+
It as BindNumber,
|
|
1365
|
+
Bt as BindText,
|
|
1248
1366
|
E as Computed,
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1367
|
+
Ht as Conjunction,
|
|
1368
|
+
v as DOMContext,
|
|
1369
|
+
Qt as DOMNode,
|
|
1370
|
+
ie as El,
|
|
1371
|
+
le as ElNS,
|
|
1372
|
+
ke as ElementPosition,
|
|
1373
|
+
Rt as EmitChecked,
|
|
1374
|
+
Mt as EmitPreventDefault,
|
|
1375
|
+
Vt as EmitStopImmediatePropagation,
|
|
1376
|
+
Ft as EmitStopPropagation,
|
|
1377
|
+
nt as EmitValue,
|
|
1378
|
+
it as EmitValueAsDate,
|
|
1379
|
+
lt as EmitValueAsDateTime,
|
|
1380
|
+
ot as EmitValueAsNumber,
|
|
1381
|
+
w as Empty,
|
|
1382
|
+
ut as Ensure,
|
|
1383
|
+
at as ForEach,
|
|
1384
|
+
y as Fragment,
|
|
1385
|
+
Yt as MapSignal,
|
|
1386
|
+
z as MemoryStore,
|
|
1387
|
+
xt as NotEmpty,
|
|
1388
|
+
st as OnChecked,
|
|
1389
|
+
zt as OnCtx,
|
|
1390
|
+
er as OnMount,
|
|
1391
|
+
B as OnUnmount,
|
|
1392
|
+
G as OneOf,
|
|
1393
|
+
_e as OneOfField,
|
|
1394
|
+
Ut as OneOfKind,
|
|
1395
|
+
Wt as OneOfTuple,
|
|
1396
|
+
Gt as OneOfType,
|
|
1397
|
+
H as OneOfValue,
|
|
1398
|
+
rr as Portal,
|
|
1399
|
+
F as Prop,
|
|
1400
|
+
nr as Provide,
|
|
1401
|
+
Be as ProviderNotFoundError,
|
|
1402
|
+
ct as RenderingError,
|
|
1403
|
+
ye as Repeat,
|
|
1270
1404
|
h as Signal,
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1405
|
+
me as Task,
|
|
1406
|
+
St as TextNode,
|
|
1407
|
+
Zt as Unless,
|
|
1408
|
+
Jt as Use,
|
|
1409
|
+
Kt as UseProvider,
|
|
1410
|
+
Xt as UseProviders,
|
|
1411
|
+
we as When,
|
|
1412
|
+
or as WithProvider,
|
|
1413
|
+
ir as WithProviders,
|
|
1414
|
+
fe as _addNodeTracker,
|
|
1415
|
+
et as _clearSSR,
|
|
1416
|
+
je as _getSelfOrParentElement,
|
|
1417
|
+
se as _isElement,
|
|
1418
|
+
re as _makeGetter,
|
|
1419
|
+
te as _makeSetter,
|
|
1420
|
+
ae as _maybeAddAttributeTracker,
|
|
1421
|
+
ce as _maybeAddClassTracker,
|
|
1422
|
+
he as _maybeAddTextTracker,
|
|
1423
|
+
m as _removeDOMNode,
|
|
1424
|
+
Ie as _setAttribute,
|
|
1425
|
+
Fe as _setBooleanProperty,
|
|
1426
|
+
$e as _setDateProperty,
|
|
1427
|
+
Ve as _setNumberProperty,
|
|
1428
|
+
qe as _setStringProperty,
|
|
1429
|
+
oe as _signalText,
|
|
1430
|
+
ne as _staticText,
|
|
1431
|
+
vt as animateSignal,
|
|
1432
|
+
Me as animateSignals,
|
|
1433
|
+
Et as aria,
|
|
1288
1434
|
P as attr,
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
zt as mathAttr,
|
|
1314
|
-
Pe as maybeAddAttributeTracker,
|
|
1315
|
-
De as maybeAddClassTracker,
|
|
1316
|
-
Ce as maybeAddTextTracker,
|
|
1317
|
-
Ze as numberInterpolate,
|
|
1318
|
-
V as on,
|
|
1319
|
-
N as oneof,
|
|
1320
|
-
re as parseColorChannels,
|
|
1321
|
-
C as prop,
|
|
1322
|
-
xt as propOfLocalStorage,
|
|
1323
|
-
Ft as propOfSessionStorage,
|
|
1324
|
-
ce as propOfStorage,
|
|
1325
|
-
dt as removeAttributeTrackers,
|
|
1326
|
-
mt as removeClassTrackers,
|
|
1327
|
-
g as removeDOMNode,
|
|
1328
|
-
gt as removeNodeTrackers,
|
|
1329
|
-
bt as removeTextTrackers,
|
|
1330
|
-
dr as render,
|
|
1331
|
-
xe as renderWithContext,
|
|
1435
|
+
At as dataAttr,
|
|
1436
|
+
Ce as endInterpolate,
|
|
1437
|
+
Oe as guessInterpolate,
|
|
1438
|
+
wt as handleAnchorClick,
|
|
1439
|
+
bt as html,
|
|
1440
|
+
Tt as input,
|
|
1441
|
+
Ne as interpolateDate,
|
|
1442
|
+
Te as interpolateNumber,
|
|
1443
|
+
Le as interpolateString,
|
|
1444
|
+
O as isSSR,
|
|
1445
|
+
gt as localStorageProp,
|
|
1446
|
+
j as makeComputed,
|
|
1447
|
+
yt as makeComputedRecord,
|
|
1448
|
+
pt as makeEffect,
|
|
1449
|
+
L as makeProp,
|
|
1450
|
+
sr as makeProviderMark,
|
|
1451
|
+
mt as makeSignal,
|
|
1452
|
+
Nt as math,
|
|
1453
|
+
Dt as mathAttr,
|
|
1454
|
+
$ as on,
|
|
1455
|
+
Ct as prepareSSR,
|
|
1456
|
+
xe as removeTextTrackers,
|
|
1457
|
+
tr as render,
|
|
1458
|
+
Se as renderWithContext,
|
|
1332
1459
|
f as renderableOfTNode,
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
Ot as
|
|
1339
|
-
Ae as signalText,
|
|
1340
|
-
M as ssr,
|
|
1341
|
-
er as startSSR,
|
|
1342
|
-
ve as staticText,
|
|
1343
|
-
Xe as stringInterpolate,
|
|
1344
|
-
wr as style,
|
|
1345
|
-
kt as svg,
|
|
1346
|
-
Gt as svgAttr
|
|
1460
|
+
_t as sessionStorageProp,
|
|
1461
|
+
Q as storedProp,
|
|
1462
|
+
lr as style,
|
|
1463
|
+
Lt as svg,
|
|
1464
|
+
Pt as svgAttr,
|
|
1465
|
+
Ot as useSSRDone
|
|
1347
1466
|
};
|