@pie-qti/player-elements 0.1.23 → 0.1.24
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/ar-SA-BDmOol_3.js +854 -0
- package/dist/ar-SA-BDmOol_3.js.map +1 -0
- package/dist/{define-CqE08oOW.js → define-D7_K0JFy.js} +2131 -1146
- package/dist/define-D7_K0JFy.js.map +1 -0
- package/dist/{dist-CQEJemjs.js → dist-BRTWr852.js} +2385 -1637
- package/dist/dist-BRTWr852.js.map +1 -0
- package/dist/{dist-DQ_jFQFX.js → dist-BaQdJU08.js} +192 -121
- package/dist/dist-BaQdJU08.js.map +1 -0
- package/dist/{dist-B1Rc9Jhz.js → dist-DwvskOs6.js} +2 -2
- package/dist/{dist-B1Rc9Jhz.js.map → dist-DwvskOs6.js.map} +1 -1
- package/dist/{dist-CsEP48m1.js → dist-ffJZTPTU.js} +859 -770
- package/dist/dist-ffJZTPTU.js.map +1 -0
- package/dist/{element-DU-n15ch.js → element-DSCNeDLu.js} +2 -2
- package/dist/{element-DU-n15ch.js.map → element-DSCNeDLu.js.map} +1 -1
- package/dist/{element-class-DBV-1lkb-BeszDwN_.js → element-class-DQy2cIPM-CldZrSRR.js} +3379 -3154
- package/dist/element-class-DQy2cIPM-CldZrSRR.js.map +1 -0
- package/dist/elements/BaseSvelteMountElement.d.ts +1 -0
- package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -0
- package/dist/elements.js +3 -3
- package/dist/es-ES-C98YtDtb.js +802 -0
- package/dist/es-ES-C98YtDtb.js.map +1 -0
- package/dist/fr-FR-CrmmiRPf.js +802 -0
- package/dist/fr-FR-CrmmiRPf.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-BW9Y_n5x.js +1990 -0
- package/dist/item-toolbar-element-BW9Y_n5x.js.map +1 -0
- package/dist/{types-BFOGFD4R.js → language-tags-DVlRltrl.js} +24 -3
- package/dist/language-tags-DVlRltrl.js.map +1 -0
- package/dist/nl-NL-BeQBX6yq.js +505 -0
- package/dist/nl-NL-BeQBX6yq.js.map +1 -0
- package/dist/nl-NL-CAR7pgVz.js +802 -0
- package/dist/nl-NL-CAR7pgVz.js.map +1 -0
- package/dist/{pie-assessment-toolkit-element-BGOTMhdG.js → pie-assessment-toolkit-element-CpiB3twr.js} +1382 -1109
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js.map +1 -0
- package/dist/{pie-tool-calculator-CkQb5qxg.js → pie-tool-calculator-BiWMTJe7.js} +1159 -410
- package/dist/pie-tool-calculator-BiWMTJe7.js.map +1 -0
- package/dist/{root-Dqg3cyBt.js → provider-Y5PhmTAu.js} +4 -44
- package/dist/provider-Y5PhmTAu.js.map +1 -0
- package/dist/register-players.js +1 -1
- package/dist/register.js +6596 -6737
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-DhQQhD2k.js → resolveItems-D8DJkv-4.js} +2 -2
- package/dist/{resolveItems-DhQQhD2k.js.map → resolveItems-D8DJkv-4.js.map} +1 -1
- package/dist/ro-RO-DTZbhL0e.js +802 -0
- package/dist/ro-RO-DTZbhL0e.js.map +1 -0
- package/dist/root-DSkIM1v3.js +47 -0
- package/dist/root-DSkIM1v3.js.map +1 -0
- package/dist/th-TH-aqlT_oK3.js +802 -0
- package/dist/th-TH-aqlT_oK3.js.map +1 -0
- package/dist/{tool-tts-inline-CA3VjWU4.js → tool-tts-inline-B71NTBbb.js} +1706 -941
- package/dist/tool-tts-inline-B71NTBbb.js.map +1 -0
- package/dist/zh-CN-DCqaRRhU.js +802 -0
- package/dist/zh-CN-DCqaRRhU.js.map +1 -0
- package/package.json +7 -7
- package/dist/define-CqE08oOW.js.map +0 -1
- package/dist/dist-CQEJemjs.js.map +0 -1
- package/dist/dist-CsEP48m1.js.map +0 -1
- package/dist/dist-DQ_jFQFX.js.map +0 -1
- package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +0 -1
- package/dist/item-toolbar-element-iE73NEkH.js +0 -1922
- package/dist/item-toolbar-element-iE73NEkH.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-BGOTMhdG.js.map +0 -1
- package/dist/pie-tool-calculator-CkQb5qxg.js.map +0 -1
- package/dist/root-Dqg3cyBt.js.map +0 -1
- package/dist/tool-tts-inline-CA3VjWU4.js.map +0 -1
- package/dist/types-BFOGFD4R.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { g as e } from "./dist-
|
|
2
|
-
//#region ../../node_modules/.bun/@pie-players+pie-tool-calculator-desmos@0.3.
|
|
1
|
+
import { g as e } from "./dist-ffJZTPTU.js";
|
|
2
|
+
//#region ../../node_modules/.bun/@pie-players+pie-tool-calculator-desmos@0.3.68+0f70b067cf29f19a/node_modules/@pie-players/pie-tool-calculator-desmos/dist/pie-tool-calculator.js
|
|
3
3
|
if (typeof window < "u") {
|
|
4
4
|
var t, n;
|
|
5
5
|
((t = (n = window).__svelte ?? (n.__svelte = {})).v ?? (t.v = /* @__PURE__ */ new Set())).add("5");
|
|
6
6
|
}
|
|
7
|
-
var r = {}, i = /* @__PURE__ */ Symbol("uninitialized"), a = Array.isArray, o = Array.prototype.indexOf, s = Array.prototype.includes, c = Array.from, l = Object.keys, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyDescriptors, p = Object.prototype, m = Array.prototype, h = Object.getPrototypeOf, g = Object.isExtensible,
|
|
8
|
-
function
|
|
7
|
+
var r = {}, i = /* @__PURE__ */ Symbol("uninitialized"), a = Array.isArray, o = Array.prototype.indexOf, s = Array.prototype.includes, c = Array.from, l = Object.keys, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyDescriptors, p = Object.prototype, m = Array.prototype, h = Object.getPrototypeOf, g = Object.isExtensible, ee = () => {};
|
|
8
|
+
function _(e) {
|
|
9
9
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function v() {
|
|
12
12
|
var e, t;
|
|
13
13
|
return {
|
|
14
14
|
promise: new Promise((n, r) => {
|
|
@@ -18,27 +18,27 @@ function y() {
|
|
|
18
18
|
reject: t
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function y(e) {
|
|
22
22
|
"@babel/helpers - typeof";
|
|
23
|
-
return
|
|
23
|
+
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
24
24
|
return typeof e;
|
|
25
25
|
} : function(e) {
|
|
26
26
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
27
|
-
},
|
|
27
|
+
}, y(e);
|
|
28
28
|
}
|
|
29
29
|
function te(e, t) {
|
|
30
|
-
if (
|
|
30
|
+
if (y(e) != "object" || !e) return e;
|
|
31
31
|
var n = e[Symbol.toPrimitive];
|
|
32
32
|
if (n !== void 0) {
|
|
33
33
|
var r = n.call(e, t || "default");
|
|
34
|
-
if (
|
|
34
|
+
if (y(r) != "object") return r;
|
|
35
35
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
36
36
|
}
|
|
37
37
|
return (t === "string" ? String : Number)(e);
|
|
38
38
|
}
|
|
39
39
|
function ne(e) {
|
|
40
40
|
var t = te(e, "string");
|
|
41
|
-
return
|
|
41
|
+
return y(t) == "symbol" ? t : t + "";
|
|
42
42
|
}
|
|
43
43
|
function b(e, t, n) {
|
|
44
44
|
return (t = ne(t)) in e ? Object.defineProperty(e, t, {
|
|
@@ -48,7 +48,7 @@ function b(e, t, n) {
|
|
|
48
48
|
writable: !0
|
|
49
49
|
}) : e[t] = n, e;
|
|
50
50
|
}
|
|
51
|
-
var x = 1024, S = 2048, re = 4096, ie = 8192, ae = 16384, oe = 32768, se = 1 << 25,
|
|
51
|
+
var x = 1024, S = 2048, re = 4096, ie = 8192, ae = 16384, oe = 32768, se = 1 << 25, ce = 65536, C = 1 << 19, le = 1 << 20, ue = 65536, de = 1 << 21, fe = 1 << 22, pe = 1 << 23, me = /* @__PURE__ */ Symbol("$state"), he = /* @__PURE__ */ Symbol("legacy props"), ge = /* @__PURE__ */ Symbol(""), _e = /* @__PURE__ */ Symbol("attributes"), ve = /* @__PURE__ */ Symbol("class"), ye = /* @__PURE__ */ Symbol("style"), be = /* @__PURE__ */ Symbol("text"), xe = new class extends Error {
|
|
52
52
|
constructor(...e) {
|
|
53
53
|
super(...e), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
54
54
|
}
|
|
@@ -103,26 +103,26 @@ function Re(e) {
|
|
|
103
103
|
w = e;
|
|
104
104
|
}
|
|
105
105
|
var T;
|
|
106
|
-
function
|
|
106
|
+
function ze(e) {
|
|
107
107
|
if (e === null) throw Ie(), r;
|
|
108
108
|
return T = e;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function Be() {
|
|
111
|
+
return ze(/* @__PURE__ */ tr(T));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ve(e) {
|
|
114
114
|
if (w) {
|
|
115
115
|
if (/* @__PURE__ */ tr(T) !== null) throw Ie(), r;
|
|
116
116
|
T = e;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function He(e = 1) {
|
|
120
120
|
if (w) {
|
|
121
121
|
for (var t = e, n = T; t--;) n = /* @__PURE__ */ tr(n);
|
|
122
122
|
T = n;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ue(e = !0) {
|
|
126
126
|
for (var t = 0, n = T;;) {
|
|
127
127
|
if (n.nodeType === 8) {
|
|
128
128
|
var r = n.data;
|
|
@@ -135,26 +135,26 @@ function He(e = !0) {
|
|
|
135
135
|
e && n.remove(), n = i;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function We(e) {
|
|
139
139
|
if (!e || e.nodeType !== 8) throw Ie(), r;
|
|
140
140
|
return e.data;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Ge(e) {
|
|
143
143
|
return e === this.v;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ke(e, t) {
|
|
146
146
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
147
147
|
}
|
|
148
|
-
function Ke(e) {
|
|
149
|
-
return !Ge(e, this.v);
|
|
150
|
-
}
|
|
151
|
-
var D = null;
|
|
152
148
|
function qe(e) {
|
|
153
|
-
|
|
149
|
+
return !Ke(e, this.v);
|
|
150
|
+
}
|
|
151
|
+
var E = null;
|
|
152
|
+
function Je(e) {
|
|
153
|
+
E = e;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
p:
|
|
155
|
+
function Ye(e, t = !1, n) {
|
|
156
|
+
E = {
|
|
157
|
+
p: E,
|
|
158
158
|
i: !1,
|
|
159
159
|
c: null,
|
|
160
160
|
e: null,
|
|
@@ -164,41 +164,41 @@ function Je(e, t = !1, n) {
|
|
|
164
164
|
l: null
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
var t =
|
|
167
|
+
function Xe(e) {
|
|
168
|
+
var t = E, n = t.e;
|
|
169
169
|
if (n !== null) {
|
|
170
170
|
t.e = null;
|
|
171
171
|
for (var r of n) pr(r);
|
|
172
172
|
}
|
|
173
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
173
|
+
return e !== void 0 && (t.x = e), t.i = !0, E = t.p, e ?? {};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Ze() {
|
|
176
176
|
return !0;
|
|
177
177
|
}
|
|
178
|
-
var
|
|
179
|
-
function
|
|
180
|
-
var e =
|
|
181
|
-
|
|
178
|
+
var Qe = [];
|
|
179
|
+
function $e() {
|
|
180
|
+
var e = Qe;
|
|
181
|
+
Qe = [], _(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
if (
|
|
185
|
-
var t =
|
|
183
|
+
function et(e) {
|
|
184
|
+
if (Qe.length === 0 && !tn) {
|
|
185
|
+
var t = Qe;
|
|
186
186
|
queueMicrotask(() => {
|
|
187
|
-
t ===
|
|
187
|
+
t === Qe && $e();
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
Qe.push(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
for (;
|
|
192
|
+
function tt() {
|
|
193
|
+
for (; Qe.length > 0;) $e();
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function nt(e) {
|
|
196
196
|
var t = J;
|
|
197
197
|
if (t === null) return G.f |= pe, e;
|
|
198
198
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
199
|
-
|
|
199
|
+
rt(e, t);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function rt(e, t) {
|
|
202
202
|
if (!(t !== null && t.f & 16384)) {
|
|
203
203
|
for (; t !== null;) {
|
|
204
204
|
if (t.f & 128) {
|
|
@@ -215,29 +215,29 @@ function nt(e, t) {
|
|
|
215
215
|
throw e;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
e.f = e.f &
|
|
221
|
-
}
|
|
222
|
-
function it(e) {
|
|
223
|
-
e.f & 512 || e.deps === null ? O(e, x) : O(e, re);
|
|
218
|
+
var it = ~(S | re | x);
|
|
219
|
+
function D(e, t) {
|
|
220
|
+
e.f = e.f & it | t;
|
|
224
221
|
}
|
|
225
222
|
function at(e) {
|
|
226
|
-
|
|
223
|
+
e.f & 512 || e.deps === null ? D(e, x) : D(e, re);
|
|
224
|
+
}
|
|
225
|
+
function ot(e) {
|
|
226
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ue, ot(t.deps));
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
228
|
+
function st(e, t, n) {
|
|
229
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), ot(e.deps), D(e, x);
|
|
230
230
|
}
|
|
231
|
-
var
|
|
232
|
-
function
|
|
233
|
-
var t =
|
|
231
|
+
var ct = !1;
|
|
232
|
+
function lt(e) {
|
|
233
|
+
var t = ct;
|
|
234
234
|
try {
|
|
235
|
-
return
|
|
235
|
+
return ct = !1, [e(), ct];
|
|
236
236
|
} finally {
|
|
237
|
-
|
|
237
|
+
ct = t;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ut(e) {
|
|
241
241
|
var t = G, n = J;
|
|
242
242
|
q(null), Ir(null);
|
|
243
243
|
try {
|
|
@@ -246,93 +246,93 @@ function lt(e) {
|
|
|
246
246
|
q(t), Ir(n);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function dt(e) {
|
|
250
250
|
let t = 0, n = Vn(0), r;
|
|
251
251
|
return () => {
|
|
252
252
|
ur() && (Q(n), vr(() => (t === 0 && (r = $r(() => e(() => Gn(n)))), t += 1, () => {
|
|
253
|
-
|
|
253
|
+
et(() => {
|
|
254
254
|
--t, t === 0 && (r?.(), r = void 0, Gn(n));
|
|
255
255
|
});
|
|
256
256
|
})));
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ft(e, t) {
|
|
260
260
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
|
|
262
|
+
function pt(e, t) {
|
|
263
|
+
ft(e, t), t.add(e);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
|
|
265
|
+
function O(e, t, n) {
|
|
266
|
+
ft(e, t), t.set(e, n);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function k(e, t, n) {
|
|
269
269
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
270
270
|
throw TypeError("Private element is not present on this object");
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
return e.set(
|
|
272
|
+
function A(e, t, n) {
|
|
273
|
+
return e.set(k(e, t), n), n;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return e.get(
|
|
275
|
+
function j(e, t) {
|
|
276
|
+
return e.get(k(e, t));
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
278
|
+
var mt = ce | C;
|
|
279
|
+
function ht(e, t, n, r) {
|
|
280
280
|
new Dt(e, t, n, r);
|
|
281
281
|
}
|
|
282
|
-
var
|
|
282
|
+
var M = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakSet(), Dt = class {
|
|
283
283
|
constructor(e, t, n, r) {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}))),
|
|
284
|
+
pt(this, L), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), O(this, M, void 0), O(this, gt, w ? T : null), O(this, _t, void 0), O(this, vt, void 0), O(this, N, void 0), O(this, P, null), O(this, F, null), O(this, I, null), O(this, yt, null), O(this, bt, 0), O(this, xt, 0), O(this, St, !1), O(this, Ct, /* @__PURE__ */ new Set()), O(this, wt, /* @__PURE__ */ new Set()), O(this, Tt, null), O(this, Et, dt(() => (A(Tt, this, Vn(j(bt, this))), () => {
|
|
285
|
+
A(Tt, this, null);
|
|
286
|
+
}))), A(M, this, e), A(_t, this, t), A(vt, this, (e) => {
|
|
287
287
|
var t = J;
|
|
288
288
|
t.b = this, t.f |= 128, n(e);
|
|
289
|
-
}), this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e),
|
|
289
|
+
}), this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), A(N, this, br(() => {
|
|
290
290
|
if (w) {
|
|
291
|
-
let e =
|
|
292
|
-
|
|
291
|
+
let e = j(gt, this);
|
|
292
|
+
Be();
|
|
293
293
|
let t = e.data === "[!";
|
|
294
294
|
if (e.data.startsWith("[?")) {
|
|
295
295
|
let t = JSON.parse(e.data.slice(2));
|
|
296
|
-
|
|
297
|
-
} else t ?
|
|
298
|
-
} else
|
|
299
|
-
},
|
|
296
|
+
k(L, this, kt).call(this, t);
|
|
297
|
+
} else t ? k(L, this, jt).call(this) : k(L, this, Ot).call(this);
|
|
298
|
+
} else k(L, this, Mt).call(this);
|
|
299
|
+
}, mt)), w && A(M, this, T);
|
|
300
300
|
}
|
|
301
301
|
defer_effect(e) {
|
|
302
|
-
|
|
302
|
+
st(e, j(Ct, this), j(wt, this));
|
|
303
303
|
}
|
|
304
304
|
is_rendered() {
|
|
305
305
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
306
306
|
}
|
|
307
307
|
has_pending_snippet() {
|
|
308
|
-
return !!
|
|
308
|
+
return !!j(_t, this).pending;
|
|
309
309
|
}
|
|
310
310
|
update_pending_count(e, t) {
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
k(L, this, Ft).call(this, e, t), A(bt, this, j(bt, this) + e), !(!j(Tt, this) || j(St, this)) && (A(St, this, !0), et(() => {
|
|
312
|
+
A(St, this, !1), j(Tt, this) && Un(j(Tt, this), j(bt, this));
|
|
313
313
|
}));
|
|
314
314
|
}
|
|
315
315
|
get_effect_pending() {
|
|
316
|
-
return
|
|
316
|
+
return j(Et, this).call(this), Q(j(Tt, this));
|
|
317
317
|
}
|
|
318
318
|
error(e) {
|
|
319
|
-
if (!
|
|
320
|
-
R?.is_fork ? (
|
|
321
|
-
|
|
322
|
-
})) :
|
|
319
|
+
if (!j(_t, this).onerror && !j(_t, this).failed) throw e;
|
|
320
|
+
R?.is_fork ? (j(P, this) && R.skip_effect(j(P, this)), j(F, this) && R.skip_effect(j(F, this)), j(I, this) && R.skip_effect(j(I, this)), R.oncommit(() => {
|
|
321
|
+
k(L, this, It).call(this, e);
|
|
322
|
+
})) : k(L, this, It).call(this, e);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
function Ot() {
|
|
326
326
|
try {
|
|
327
|
-
|
|
327
|
+
A(P, this, xr(() => j(vt, this).call(this, j(M, this))));
|
|
328
328
|
} catch (e) {
|
|
329
329
|
this.error(e);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function kt(e) {
|
|
333
|
-
let t =
|
|
334
|
-
|
|
335
|
-
t(M
|
|
333
|
+
let t = j(_t, this).failed, { reset: n, invoke_onerror: r } = k(L, this, At).call(this, e);
|
|
334
|
+
et(r), t && A(I, this, xr(() => {
|
|
335
|
+
t(j(M, this), () => e, () => n);
|
|
336
336
|
}));
|
|
337
337
|
}
|
|
338
338
|
function At(e) {
|
|
@@ -342,100 +342,100 @@ function At(e) {
|
|
|
342
342
|
Le();
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
|
-
t = !0, n && Pe(),
|
|
346
|
-
|
|
347
|
-
}),
|
|
348
|
-
|
|
345
|
+
t = !0, n && Pe(), j(I, this) !== null && Dr(j(I, this), () => {
|
|
346
|
+
A(I, this, null);
|
|
347
|
+
}), k(L, this, Pt).call(this, () => {
|
|
348
|
+
k(L, this, Mt).call(this);
|
|
349
349
|
});
|
|
350
350
|
};
|
|
351
351
|
return {
|
|
352
352
|
reset: r,
|
|
353
353
|
invoke_onerror: () => {
|
|
354
354
|
try {
|
|
355
|
-
n = !0,
|
|
355
|
+
n = !0, j(_t, this).onerror?.(e, r), n = !1;
|
|
356
356
|
} catch (e) {
|
|
357
|
-
|
|
357
|
+
rt(e, j(N, this) && j(N, this).parent);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
362
|
function jt() {
|
|
363
|
-
let e =
|
|
364
|
-
e && (this.is_pending = !0,
|
|
365
|
-
var e =
|
|
366
|
-
e.append(t),
|
|
367
|
-
|
|
368
|
-
}),
|
|
363
|
+
let e = j(_t, this).pending;
|
|
364
|
+
e && (this.is_pending = !0, A(F, this, xr(() => e(j(M, this)))), et(() => {
|
|
365
|
+
var e = A(yt, this, document.createDocumentFragment()), t = $n();
|
|
366
|
+
e.append(t), A(P, this, k(L, this, Pt).call(this, () => xr(() => j(vt, this).call(this, t)))), j(xt, this) === 0 && (j(M, this).before(e), A(yt, this, null), Dr(j(F, this), () => {
|
|
367
|
+
A(F, this, null);
|
|
368
|
+
}), k(L, this, Nt).call(this, R));
|
|
369
369
|
}));
|
|
370
370
|
}
|
|
371
371
|
function Mt() {
|
|
372
372
|
try {
|
|
373
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
374
|
-
|
|
375
|
-
})),
|
|
376
|
-
var e =
|
|
377
|
-
jr(
|
|
378
|
-
let t =
|
|
379
|
-
|
|
380
|
-
} else
|
|
373
|
+
if (this.is_pending = this.has_pending_snippet(), A(xt, this, 0), A(bt, this, 0), A(P, this, xr(() => {
|
|
374
|
+
j(vt, this).call(this, j(M, this));
|
|
375
|
+
})), j(xt, this) > 0) {
|
|
376
|
+
var e = A(yt, this, document.createDocumentFragment());
|
|
377
|
+
jr(j(P, this), e);
|
|
378
|
+
let t = j(_t, this).pending;
|
|
379
|
+
A(F, this, xr(() => t(j(M, this))));
|
|
380
|
+
} else k(L, this, Nt).call(this, R);
|
|
381
381
|
} catch (e) {
|
|
382
382
|
this.error(e);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
function Nt(e) {
|
|
386
|
-
this.is_pending = !1, e.transfer_effects(
|
|
386
|
+
this.is_pending = !1, e.transfer_effects(j(Ct, this), j(wt, this));
|
|
387
387
|
}
|
|
388
388
|
function Pt(e) {
|
|
389
|
-
var t = J, n = G, r =
|
|
390
|
-
Ir(
|
|
389
|
+
var t = J, n = G, r = E;
|
|
390
|
+
Ir(j(N, this)), q(j(N, this)), Je(j(N, this).ctx);
|
|
391
391
|
try {
|
|
392
392
|
return Cn.ensure(), e();
|
|
393
393
|
} catch (e) {
|
|
394
|
-
return
|
|
394
|
+
return nt(e), null;
|
|
395
395
|
} finally {
|
|
396
|
-
Ir(t), q(n),
|
|
396
|
+
Ir(t), q(n), Je(r);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
function Ft(e, t) {
|
|
400
400
|
if (!this.has_pending_snippet()) {
|
|
401
401
|
if (this.parent) {
|
|
402
402
|
var n;
|
|
403
|
-
|
|
403
|
+
k(L, n = this.parent, Ft).call(n, e, t);
|
|
404
404
|
}
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}),
|
|
407
|
+
A(xt, this, j(xt, this) + e), j(xt, this) === 0 && (k(L, this, Nt).call(this, t), j(F, this) && Dr(j(F, this), () => {
|
|
408
|
+
A(F, this, null);
|
|
409
|
+
}), j(yt, this) && (j(M, this).before(j(yt, this)), A(yt, this, null)));
|
|
410
410
|
}
|
|
411
411
|
function It(e) {
|
|
412
|
-
|
|
413
|
-
let t =
|
|
414
|
-
let { reset: n, invoke_onerror: r } =
|
|
415
|
-
r(), t &&
|
|
412
|
+
j(P, this) && (W(j(P, this)), A(P, this, null)), j(F, this) && (W(j(F, this)), A(F, this, null)), j(I, this) && (W(j(I, this)), A(I, this, null)), w && (ze(j(gt, this)), He(), ze(Ue()));
|
|
413
|
+
let t = j(_t, this).failed, n = (e) => {
|
|
414
|
+
let { reset: n, invoke_onerror: r } = k(L, this, At).call(this, e);
|
|
415
|
+
r(), t && A(I, this, k(L, this, Pt).call(this, () => {
|
|
416
416
|
try {
|
|
417
417
|
return xr(() => {
|
|
418
418
|
var r = J;
|
|
419
|
-
r.b = this, r.f |= 128, t(M
|
|
419
|
+
r.b = this, r.f |= 128, t(j(M, this), () => e, () => n);
|
|
420
420
|
});
|
|
421
421
|
} catch (e) {
|
|
422
|
-
return
|
|
422
|
+
return rt(e, j(N, this).parent), null;
|
|
423
423
|
}
|
|
424
424
|
}));
|
|
425
425
|
};
|
|
426
|
-
|
|
426
|
+
et(() => {
|
|
427
427
|
var t;
|
|
428
428
|
try {
|
|
429
429
|
t = this.transform_error(e);
|
|
430
430
|
} catch (e) {
|
|
431
|
-
|
|
431
|
+
rt(e, j(N, this) && j(N, this).parent);
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) =>
|
|
434
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => rt(e, j(N, this) && j(N, this).parent)) : n(t);
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
function Lt(e, t, n, r) {
|
|
438
|
-
let i =
|
|
438
|
+
let i = Ze() ? Vt : Gt;
|
|
439
439
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
440
440
|
if (n.length === 0 && a.length === 0) {
|
|
441
441
|
r(o);
|
|
@@ -448,7 +448,7 @@ function Lt(e, t, n, r) {
|
|
|
448
448
|
try {
|
|
449
449
|
r([...o, ...e]);
|
|
450
450
|
} catch (e) {
|
|
451
|
-
|
|
451
|
+
rt(e, s);
|
|
452
452
|
}
|
|
453
453
|
zt();
|
|
454
454
|
}
|
|
@@ -459,20 +459,20 @@ function Lt(e, t, n, r) {
|
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
461
|
function f() {
|
|
462
|
-
Promise.all(n.map((e) => /* @__PURE__ */ Ut(e))).then(u).catch((e) =>
|
|
462
|
+
Promise.all(n.map((e) => /* @__PURE__ */ Ut(e))).then(u).catch((e) => rt(e, s)).finally(d);
|
|
463
463
|
}
|
|
464
464
|
l ? l.then(() => {
|
|
465
465
|
c(), f(), zt();
|
|
466
466
|
}) : f();
|
|
467
467
|
}
|
|
468
468
|
function Rt() {
|
|
469
|
-
var e = J, t = G, n =
|
|
469
|
+
var e = J, t = G, n = E, r = R;
|
|
470
470
|
return function(i = !0) {
|
|
471
|
-
Ir(e), q(t),
|
|
471
|
+
Ir(e), q(t), Je(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
472
472
|
};
|
|
473
473
|
}
|
|
474
474
|
function zt(e = !0) {
|
|
475
|
-
Ir(null), q(null),
|
|
475
|
+
Ir(null), q(null), Je(null), e && R?.deactivate();
|
|
476
476
|
}
|
|
477
477
|
function Bt() {
|
|
478
478
|
var e = J, t = e.b, n = R, r = !!t?.is_rendered();
|
|
@@ -483,11 +483,11 @@ function Bt() {
|
|
|
483
483
|
// @__NO_SIDE_EFFECTS__
|
|
484
484
|
function Vt(e) {
|
|
485
485
|
var t = 2 | S;
|
|
486
|
-
return J !== null && (J.f |=
|
|
487
|
-
ctx:
|
|
486
|
+
return J !== null && (J.f |= C), {
|
|
487
|
+
ctx: E,
|
|
488
488
|
deps: null,
|
|
489
489
|
effects: null,
|
|
490
|
-
equals:
|
|
490
|
+
equals: Ge,
|
|
491
491
|
f: t,
|
|
492
492
|
fn: e,
|
|
493
493
|
reactions: null,
|
|
@@ -505,7 +505,7 @@ function Ut(e, t, n) {
|
|
|
505
505
|
r === null && we();
|
|
506
506
|
var a = void 0, o = Vn(i), s = !G, c = /* @__PURE__ */ new Set();
|
|
507
507
|
return _r(() => {
|
|
508
|
-
var t = J, n =
|
|
508
|
+
var t = J, n = v();
|
|
509
509
|
a = n.promise;
|
|
510
510
|
try {
|
|
511
511
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
@@ -545,7 +545,7 @@ function Wt(e) {
|
|
|
545
545
|
// @__NO_SIDE_EFFECTS__
|
|
546
546
|
function Gt(e) {
|
|
547
547
|
let t = /* @__PURE__ */ Vt(e);
|
|
548
|
-
return t.equals =
|
|
548
|
+
return t.equals = qe, t;
|
|
549
549
|
}
|
|
550
550
|
function Kt(e) {
|
|
551
551
|
var t = e.effects;
|
|
@@ -568,37 +568,37 @@ function qt(e) {
|
|
|
568
568
|
function Jt(e) {
|
|
569
569
|
var t = qt(e);
|
|
570
570
|
if (!e.equals(t) && (e.wv = Wr(), (!R?.is_fork || e.deps === null) && (R === null ? e.v = t : (R.capture(e, t, !0), $t?.capture(e, t, !0)), e.deps === null))) {
|
|
571
|
-
|
|
571
|
+
D(e, x);
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
Pr || (z === null ?
|
|
574
|
+
Pr || (z === null ? at(e) : (ur() || R?.is_fork) && z.set(e, t));
|
|
575
575
|
}
|
|
576
576
|
function Yt(e) {
|
|
577
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
577
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && ut(() => {
|
|
578
578
|
t.ac.abort(xe), t.ac = null;
|
|
579
|
-
}), t.fn !== null && (t.teardown =
|
|
579
|
+
}), t.fn !== null && (t.teardown = ee), Yr(t, 0), Cr(t));
|
|
580
580
|
}
|
|
581
581
|
function Xt(e) {
|
|
582
582
|
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Xr(t);
|
|
583
583
|
}
|
|
584
584
|
var Zt, Qt = null, R = null, $t = null, z = null, en = null, tn = !1, nn = !1, rn = null, an = null, on = 0, sn = 1, cn = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakSet(), Cn = class e {
|
|
585
585
|
constructor() {
|
|
586
|
-
|
|
586
|
+
pt(this, B), b(this, "id", sn++), O(this, cn, !1), b(this, "linked", !0), O(this, ln, null), O(this, un, null), b(this, "async_deriveds", /* @__PURE__ */ new Map()), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), O(this, dn, /* @__PURE__ */ new Set()), O(this, fn, /* @__PURE__ */ new Set()), O(this, pn, 0), O(this, mn, /* @__PURE__ */ new Map()), O(this, hn, null), O(this, gn, []), O(this, _n, []), O(this, vn, /* @__PURE__ */ new Set()), O(this, yn, /* @__PURE__ */ new Set()), O(this, bn, /* @__PURE__ */ new Map()), O(this, xn, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), O(this, Sn, !1), Qt === null ? Qt = this : (A(un, Qt, this), A(ln, this, Qt)), Qt = this;
|
|
587
587
|
}
|
|
588
588
|
skip_effect(e) {
|
|
589
|
-
|
|
589
|
+
j(bn, this).has(e) || j(bn, this).set(e, {
|
|
590
590
|
d: [],
|
|
591
591
|
m: []
|
|
592
|
-
}),
|
|
592
|
+
}), j(xn, this).delete(e);
|
|
593
593
|
}
|
|
594
594
|
unskip_effect(e, t = (e) => this.schedule(e)) {
|
|
595
|
-
var n =
|
|
595
|
+
var n = j(bn, this).get(e);
|
|
596
596
|
if (n) {
|
|
597
|
-
|
|
598
|
-
for (var r of n.d)
|
|
599
|
-
for (r of n.m)
|
|
597
|
+
j(bn, this).delete(e);
|
|
598
|
+
for (var r of n.d) D(r, S), t(r);
|
|
599
|
+
for (r of n.m) D(r, re), t(r);
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
j(xn, this).add(e);
|
|
602
602
|
}
|
|
603
603
|
capture(e, t, n = !1) {
|
|
604
604
|
e.v !== i && !this.previous.has(e) && this.previous.set(e, e.v), !(e.f & 8388608) && (this.current.set(e, [t, n]), z?.set(e, t)), this.is_fork || (e.v = t);
|
|
@@ -611,54 +611,54 @@ var Zt, Qt = null, R = null, $t = null, z = null, en = null, tn = !1, nn = !1, r
|
|
|
611
611
|
}
|
|
612
612
|
flush() {
|
|
613
613
|
try {
|
|
614
|
-
nn = !0, R = this,
|
|
614
|
+
nn = !0, R = this, k(B, this, Tn).call(this);
|
|
615
615
|
} finally {
|
|
616
616
|
on = 0, en = null, rn = null, an = null, nn = !1, R = null, z = null, zn.clear();
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
discard() {
|
|
620
|
-
for (let e of
|
|
621
|
-
|
|
620
|
+
for (let e of j(fn, this)) e(this);
|
|
621
|
+
j(fn, this).clear();
|
|
622
622
|
for (let e of this.async_deriveds.values()) e.reject(Ht);
|
|
623
|
-
|
|
623
|
+
k(B, this, An).call(this), j(hn, this)?.resolve();
|
|
624
624
|
}
|
|
625
625
|
register_created_effect(e) {
|
|
626
|
-
|
|
626
|
+
j(_n, this).push(e);
|
|
627
627
|
}
|
|
628
628
|
increment(e, t) {
|
|
629
|
-
if (
|
|
630
|
-
let e =
|
|
631
|
-
|
|
629
|
+
if (A(pn, this, j(pn, this) + 1), e) {
|
|
630
|
+
let e = j(mn, this).get(t) ?? 0;
|
|
631
|
+
j(mn, this).set(t, e + 1);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
decrement(e, t) {
|
|
635
|
-
if (
|
|
636
|
-
let e =
|
|
637
|
-
e === 1 ?
|
|
635
|
+
if (A(pn, this, j(pn, this) - 1), e) {
|
|
636
|
+
let e = j(mn, this).get(t) ?? 0;
|
|
637
|
+
e === 1 ? j(mn, this).delete(t) : j(mn, this).set(t, e - 1);
|
|
638
638
|
}
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
j(Sn, this) || (A(Sn, this, !0), et(() => {
|
|
640
|
+
A(Sn, this, !1), this.linked && this.flush();
|
|
641
641
|
}));
|
|
642
642
|
}
|
|
643
643
|
transfer_effects(e, t) {
|
|
644
|
-
for (let t of e)
|
|
645
|
-
for (let e of t)
|
|
644
|
+
for (let t of e) j(vn, this).add(t);
|
|
645
|
+
for (let e of t) j(yn, this).add(e);
|
|
646
646
|
e.clear(), t.clear();
|
|
647
647
|
}
|
|
648
648
|
oncommit(e) {
|
|
649
|
-
|
|
649
|
+
j(dn, this).add(e);
|
|
650
650
|
}
|
|
651
651
|
ondiscard(e) {
|
|
652
|
-
|
|
652
|
+
j(fn, this).add(e);
|
|
653
653
|
}
|
|
654
654
|
settled() {
|
|
655
|
-
return (
|
|
655
|
+
return (j(hn, this) ?? A(hn, this, v())).promise;
|
|
656
656
|
}
|
|
657
657
|
static ensure() {
|
|
658
658
|
if (R === null) {
|
|
659
659
|
let t = R = new e();
|
|
660
|
-
!nn && !tn &&
|
|
661
|
-
|
|
660
|
+
!nn && !tn && et(() => {
|
|
661
|
+
j(cn, t) || t.flush();
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
return R;
|
|
@@ -680,15 +680,15 @@ var Zt, Qt = null, R = null, $t = null, z = null, en = null, tn = !1, nn = !1, r
|
|
|
680
680
|
t.f ^= x;
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
|
|
683
|
+
j(gn, this).push(t);
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
Zt = Cn;
|
|
687
687
|
function wn() {
|
|
688
688
|
if (this.is_fork) return !0;
|
|
689
|
-
for (let n of
|
|
689
|
+
for (let n of j(mn, this).keys()) {
|
|
690
690
|
for (var e = n, t = !1; e.parent !== null;) {
|
|
691
|
-
if (
|
|
691
|
+
if (j(bn, this).has(e)) {
|
|
692
692
|
t = !0;
|
|
693
693
|
break;
|
|
694
694
|
}
|
|
@@ -699,50 +699,50 @@ function wn() {
|
|
|
699
699
|
return !1;
|
|
700
700
|
}
|
|
701
701
|
function Tn() {
|
|
702
|
-
|
|
703
|
-
for (let e of
|
|
704
|
-
for (let e of
|
|
705
|
-
let e =
|
|
706
|
-
|
|
702
|
+
A(cn, this, !0), on++ > 1e3 && (k(B, this, An).call(this), Mn());
|
|
703
|
+
for (let e of j(vn, this)) j(yn, this).delete(e), D(e, S), this.schedule(e);
|
|
704
|
+
for (let e of j(yn, this)) D(e, re), this.schedule(e);
|
|
705
|
+
let e = j(gn, this);
|
|
706
|
+
A(gn, this, []), this.apply();
|
|
707
707
|
var t = rn = [], n = [], r = an = [];
|
|
708
708
|
for (let r of e) try {
|
|
709
|
-
|
|
709
|
+
k(B, this, En).call(this, r, t, n);
|
|
710
710
|
} catch (e) {
|
|
711
|
-
throw Ln(r),
|
|
711
|
+
throw Ln(r), k(B, this, wn).call(this) || this.discard(), e;
|
|
712
712
|
}
|
|
713
713
|
if (R = null, r.length > 0) {
|
|
714
714
|
var i = Zt.ensure();
|
|
715
715
|
for (let e of r) i.schedule(e);
|
|
716
716
|
}
|
|
717
|
-
if (rn = null, an = null,
|
|
718
|
-
|
|
719
|
-
for (let [e, t] of
|
|
720
|
-
r.length > 0 &&
|
|
717
|
+
if (rn = null, an = null, k(B, this, wn).call(this)) {
|
|
718
|
+
k(B, this, kn).call(this, n), k(B, this, kn).call(this, t);
|
|
719
|
+
for (let [e, t] of j(bn, this)) In(e, t);
|
|
720
|
+
r.length > 0 && k(B, R, Tn).call(R);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
let a =
|
|
723
|
+
let a = k(B, this, Dn).call(this);
|
|
724
724
|
if (a) {
|
|
725
|
-
|
|
725
|
+
k(B, this, kn).call(this, n), k(B, this, kn).call(this, t), k(B, a, On).call(a, this);
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
|
-
|
|
729
|
-
for (let e of
|
|
730
|
-
|
|
728
|
+
j(vn, this).clear(), j(yn, this).clear();
|
|
729
|
+
for (let e of j(dn, this)) e(this);
|
|
730
|
+
j(dn, this).clear(), $t = this, Pn(n), Pn(t), $t = null, j(hn, this)?.resolve();
|
|
731
731
|
var o = R;
|
|
732
|
-
if (
|
|
732
|
+
if (j(pn, this) === 0 && (j(gn, this).length === 0 || o !== null) && k(B, this, An).call(this), j(gn, this).length > 0) {
|
|
733
733
|
if (o !== null) {
|
|
734
734
|
let e = o;
|
|
735
|
-
|
|
735
|
+
j(gn, e).push(...j(gn, this).filter((t) => !j(gn, e).includes(t)));
|
|
736
736
|
} else o = this;
|
|
737
737
|
}
|
|
738
|
-
o !== null &&
|
|
738
|
+
o !== null && k(B, o, Tn).call(o);
|
|
739
739
|
}
|
|
740
740
|
function En(e, t, n) {
|
|
741
741
|
e.f ^= x;
|
|
742
742
|
for (var r = e.first; r !== null;) {
|
|
743
743
|
var i = r.f, a = !!(i & 96);
|
|
744
|
-
if (!(a && i & 1024 || i & 8192 ||
|
|
745
|
-
a ? r.f ^= x : i & 4 ? t.push(r) : Gr(r) && (i & 16 &&
|
|
744
|
+
if (!(a && i & 1024 || i & 8192 || j(bn, this).has(r)) && r.fn !== null) {
|
|
745
|
+
a ? r.f ^= x : i & 4 ? t.push(r) : Gr(r) && (i & 16 && j(yn, this).add(r), Xr(r));
|
|
746
746
|
var o = r.first;
|
|
747
747
|
if (o !== null) {
|
|
748
748
|
r = o;
|
|
@@ -760,11 +760,11 @@ function En(e, t, n) {
|
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
function Dn() {
|
|
763
|
-
for (var e =
|
|
763
|
+
for (var e = j(ln, this); e !== null;) {
|
|
764
764
|
if (!e.is_fork) {
|
|
765
765
|
for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
766
766
|
}
|
|
767
|
-
e =
|
|
767
|
+
e = j(ln, e);
|
|
768
768
|
}
|
|
769
769
|
return null;
|
|
770
770
|
}
|
|
@@ -774,7 +774,7 @@ function On(e) {
|
|
|
774
774
|
let e = this.async_deriveds.get(t);
|
|
775
775
|
e && n.promise.then(e.resolve).catch(e.reject);
|
|
776
776
|
}
|
|
777
|
-
e.async_deriveds.clear(), this.transfer_effects(
|
|
777
|
+
e.async_deriveds.clear(), this.transfer_effects(j(vn, e), j(yn, e));
|
|
778
778
|
let t = (e) => {
|
|
779
779
|
var n = e.reactions;
|
|
780
780
|
if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
|
|
@@ -782,20 +782,20 @@ function On(e) {
|
|
|
782
782
|
if (r & 2) t(e);
|
|
783
783
|
else {
|
|
784
784
|
var i = e;
|
|
785
|
-
r & 4194320 && !this.async_deriveds.has(i) && (
|
|
785
|
+
r & 4194320 && !this.async_deriveds.has(i) && (j(yn, this).delete(i), D(i, S), this.schedule(i));
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
for (let e of this.current.keys()) t(e);
|
|
790
|
-
this.oncommit(() => e.discard()),
|
|
790
|
+
this.oncommit(() => e.discard()), k(B, e, An).call(e), R = this, k(B, this, Tn).call(this);
|
|
791
791
|
}
|
|
792
792
|
function kn(e) {
|
|
793
|
-
for (var t = 0; t < e.length; t += 1)
|
|
793
|
+
for (var t = 0; t < e.length; t += 1) st(e[t], j(vn, this), j(yn, this));
|
|
794
794
|
}
|
|
795
795
|
function An() {
|
|
796
796
|
if (this.linked) {
|
|
797
|
-
var e =
|
|
798
|
-
e === null ||
|
|
797
|
+
var e = j(ln, this), t = j(un, this);
|
|
798
|
+
e === null || A(un, e, t), t === null ? Qt = e : A(ln, t, e), this.linked = !1;
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
function jn(e) {
|
|
@@ -804,7 +804,7 @@ function jn(e) {
|
|
|
804
804
|
try {
|
|
805
805
|
var n;
|
|
806
806
|
for (e && (R !== null && !R.is_fork && R.flush(), n = e());;) {
|
|
807
|
-
if (
|
|
807
|
+
if (tt(), R === null) return n;
|
|
808
808
|
R.flush();
|
|
809
809
|
}
|
|
810
810
|
} finally {
|
|
@@ -815,7 +815,7 @@ function Mn() {
|
|
|
815
815
|
try {
|
|
816
816
|
Oe();
|
|
817
817
|
} catch (e) {
|
|
818
|
-
|
|
818
|
+
rt(e, en);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
var Nn = null;
|
|
@@ -846,12 +846,12 @@ function Fn(e) {
|
|
|
846
846
|
}
|
|
847
847
|
function In(e, t) {
|
|
848
848
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
849
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
849
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), D(e, x);
|
|
850
850
|
for (var n = e.first; n !== null;) In(n, t), n = n.next;
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
function Ln(e) {
|
|
854
|
-
|
|
854
|
+
D(e, x);
|
|
855
855
|
for (var t = e.first; t !== null;) Ln(t), t = t.next;
|
|
856
856
|
}
|
|
857
857
|
var Rn = /* @__PURE__ */ new Set(), zn = /* @__PURE__ */ new Map(), Bn = !1;
|
|
@@ -860,7 +860,7 @@ function Vn(e, t) {
|
|
|
860
860
|
f: 0,
|
|
861
861
|
v: e,
|
|
862
862
|
reactions: null,
|
|
863
|
-
equals:
|
|
863
|
+
equals: Ge,
|
|
864
864
|
rv: 0,
|
|
865
865
|
wv: 0
|
|
866
866
|
};
|
|
@@ -873,10 +873,10 @@ function V(e, t) {
|
|
|
873
873
|
// @__NO_SIDE_EFFECTS__
|
|
874
874
|
function Hn(e, t = !1, n = !0) {
|
|
875
875
|
let r = Vn(e);
|
|
876
|
-
return t || (r.equals =
|
|
876
|
+
return t || (r.equals = qe), r;
|
|
877
877
|
}
|
|
878
878
|
function H(e, t, n = !1) {
|
|
879
|
-
return G !== null && (!K || G.f & 131072) &&
|
|
879
|
+
return G !== null && (!K || G.f & 131072) && Ze() && G.f & 4325394 && (Lr === null || !Lr.has(e)) && Ne(), Un(e, n ? qn(t) : t, an);
|
|
880
880
|
}
|
|
881
881
|
function Un(e, t, n = null) {
|
|
882
882
|
if (!e.equals(t)) {
|
|
@@ -884,16 +884,16 @@ function Un(e, t, n = null) {
|
|
|
884
884
|
var r = Cn.ensure();
|
|
885
885
|
if (r.capture(e, t), e.f & 2) {
|
|
886
886
|
let t = e;
|
|
887
|
-
e.f & 2048 && qt(t), z === null &&
|
|
887
|
+
e.f & 2048 && qt(t), z === null && at(t);
|
|
888
888
|
}
|
|
889
|
-
e.wv = Wr(), Kn(e, S, n),
|
|
889
|
+
e.wv = Wr(), Kn(e, S, n), Ze() && J !== null && J.f & 1024 && !(J.f & 96) && (Z === null ? zr([e]) : Z.push(e)), !r.is_fork && Rn.size > 0 && !Bn && Wn();
|
|
890
890
|
}
|
|
891
891
|
return t;
|
|
892
892
|
}
|
|
893
893
|
function Wn() {
|
|
894
894
|
Bn = !1;
|
|
895
895
|
for (let e of Rn) {
|
|
896
|
-
e.f & 1024 &&
|
|
896
|
+
e.f & 1024 && D(e, re);
|
|
897
897
|
let t;
|
|
898
898
|
try {
|
|
899
899
|
t = Gr(e);
|
|
@@ -909,11 +909,11 @@ function Gn(e) {
|
|
|
909
909
|
}
|
|
910
910
|
function Kn(e, t, n) {
|
|
911
911
|
var r = e.reactions;
|
|
912
|
-
if (r !== null) for (var i =
|
|
912
|
+
if (r !== null) for (var i = Ze(), a = r.length, o = 0; o < a; o++) {
|
|
913
913
|
var s = r[o], c = s.f;
|
|
914
914
|
if (!(!i && s === J)) {
|
|
915
915
|
var l = (c & S) === 0;
|
|
916
|
-
if (l &&
|
|
916
|
+
if (l && D(s, t), c & 131072) Rn.add(s);
|
|
917
917
|
else if (c & 2) {
|
|
918
918
|
var u = s;
|
|
919
919
|
z?.delete(u), !(c & 65536) && (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ue), Kn(u, re, n));
|
|
@@ -999,8 +999,8 @@ function qn(e) {
|
|
|
999
999
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1000
1000
|
if (g?.set && g.set.call(c, a), !f) {
|
|
1001
1001
|
if (r && typeof t == "string") {
|
|
1002
|
-
var
|
|
1003
|
-
Number.isInteger(
|
|
1002
|
+
var ee = n.get("length"), _ = Number(t);
|
|
1003
|
+
Number.isInteger(_) && _ >= ee.v && H(ee, _ + 1);
|
|
1004
1004
|
}
|
|
1005
1005
|
Gn(o);
|
|
1006
1006
|
}
|
|
@@ -1045,9 +1045,9 @@ function nr(e, t) {
|
|
|
1045
1045
|
if (n === null) n = T.appendChild($n());
|
|
1046
1046
|
else if (t && n.nodeType !== 3) {
|
|
1047
1047
|
var r = $n();
|
|
1048
|
-
return n?.before(r),
|
|
1048
|
+
return n?.before(r), ze(r), r;
|
|
1049
1049
|
}
|
|
1050
|
-
return t && sr(n),
|
|
1050
|
+
return t && sr(n), ze(n), n;
|
|
1051
1051
|
}
|
|
1052
1052
|
function rr(e, t = 1, n = !1) {
|
|
1053
1053
|
let r = w ? T : e;
|
|
@@ -1056,11 +1056,11 @@ function rr(e, t = 1, n = !1) {
|
|
|
1056
1056
|
if (n) {
|
|
1057
1057
|
if (r?.nodeType !== 3) {
|
|
1058
1058
|
var a = $n();
|
|
1059
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
1059
|
+
return r === null ? i?.after(a) : r.before(a), ze(a), a;
|
|
1060
1060
|
}
|
|
1061
1061
|
sr(r);
|
|
1062
1062
|
}
|
|
1063
|
-
return
|
|
1063
|
+
return ze(r), r;
|
|
1064
1064
|
}
|
|
1065
1065
|
function ir(e) {
|
|
1066
1066
|
e.textContent = "";
|
|
@@ -1087,7 +1087,7 @@ function U(e, t) {
|
|
|
1087
1087
|
var n = J;
|
|
1088
1088
|
n !== null && n.f & 8192 && (e |= ie);
|
|
1089
1089
|
var r = {
|
|
1090
|
-
ctx:
|
|
1090
|
+
ctx: E,
|
|
1091
1091
|
deps: null,
|
|
1092
1092
|
nodes: null,
|
|
1093
1093
|
f: e | S | 512,
|
|
@@ -1111,7 +1111,7 @@ function U(e, t) {
|
|
|
1111
1111
|
} catch (e) {
|
|
1112
1112
|
throw W(r), e;
|
|
1113
1113
|
}
|
|
1114
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |=
|
|
1114
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= ce));
|
|
1115
1115
|
}
|
|
1116
1116
|
if (i !== null && (i.parent = n, n !== null && lr(i, n), G !== null && G.f & 2 && !(e & 64))) {
|
|
1117
1117
|
var a = G;
|
|
@@ -1124,13 +1124,13 @@ function ur() {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
function dr(e) {
|
|
1126
1126
|
let t = U(8, null);
|
|
1127
|
-
return
|
|
1127
|
+
return D(t, x), t.teardown = e, t;
|
|
1128
1128
|
}
|
|
1129
1129
|
function fr(e) {
|
|
1130
1130
|
cr("$effect");
|
|
1131
1131
|
var t = J.f;
|
|
1132
|
-
if (!G && t & 32 &&
|
|
1133
|
-
var n =
|
|
1132
|
+
if (!G && t & 32 && E !== null && !E.i) {
|
|
1133
|
+
var n = E;
|
|
1134
1134
|
(n.e ??= []).push(e);
|
|
1135
1135
|
} else return pr(e);
|
|
1136
1136
|
}
|
|
@@ -1139,14 +1139,14 @@ function pr(e) {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
function mr(e) {
|
|
1141
1141
|
Cn.ensure();
|
|
1142
|
-
let t = U(64 |
|
|
1142
|
+
let t = U(64 | C, e);
|
|
1143
1143
|
return () => {
|
|
1144
1144
|
W(t);
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
1147
|
function hr(e) {
|
|
1148
1148
|
Cn.ensure();
|
|
1149
|
-
let t = U(64 |
|
|
1149
|
+
let t = U(64 | C, e);
|
|
1150
1150
|
return (e = {}) => new Promise((n) => {
|
|
1151
1151
|
e.outro ? Dr(t, () => {
|
|
1152
1152
|
W(t), n(void 0);
|
|
@@ -1157,7 +1157,7 @@ function gr(e) {
|
|
|
1157
1157
|
return U(4, e);
|
|
1158
1158
|
}
|
|
1159
1159
|
function _r(e) {
|
|
1160
|
-
return U(fe |
|
|
1160
|
+
return U(fe | C, e);
|
|
1161
1161
|
}
|
|
1162
1162
|
function vr(e, t = 0) {
|
|
1163
1163
|
return U(8 | t, e);
|
|
@@ -1173,7 +1173,7 @@ function br(e, t = 0) {
|
|
|
1173
1173
|
return U(16 | t, e);
|
|
1174
1174
|
}
|
|
1175
1175
|
function xr(e) {
|
|
1176
|
-
return U(32 |
|
|
1176
|
+
return U(32 | C, e);
|
|
1177
1177
|
}
|
|
1178
1178
|
function Sr(e) {
|
|
1179
1179
|
var t = e.teardown;
|
|
@@ -1191,7 +1191,7 @@ function Cr(e, t = !1) {
|
|
|
1191
1191
|
var n = e.first;
|
|
1192
1192
|
for (e.first = e.last = null; n !== null;) {
|
|
1193
1193
|
let e = n.ac;
|
|
1194
|
-
e !== null &&
|
|
1194
|
+
e !== null && ut(() => {
|
|
1195
1195
|
e.abort(xe);
|
|
1196
1196
|
});
|
|
1197
1197
|
var r = n.next;
|
|
@@ -1254,7 +1254,7 @@ function kr(e) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
function Ar(e, t) {
|
|
1256
1256
|
if (e.f & 8192) {
|
|
1257
|
-
e.f ^= ie, !(e.f & 1024) && (
|
|
1257
|
+
e.f ^= ie, !(e.f & 1024) && (D(e, S), Cn.ensure().schedule(e));
|
|
1258
1258
|
for (var n = e.first; n !== null;) {
|
|
1259
1259
|
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1260
1260
|
Ar(n, i ? t : !1), n = r;
|
|
@@ -1304,7 +1304,7 @@ function Gr(e) {
|
|
|
1304
1304
|
var a = n[i];
|
|
1305
1305
|
if (Gr(a) && Jt(a), a.wv > e.wv) return !0;
|
|
1306
1306
|
}
|
|
1307
|
-
t & 512 && z === null &&
|
|
1307
|
+
t & 512 && z === null && D(e, x);
|
|
1308
1308
|
}
|
|
1309
1309
|
return !1;
|
|
1310
1310
|
}
|
|
@@ -1312,12 +1312,12 @@ function Kr(e, t, n = !0) {
|
|
|
1312
1312
|
var r = e.reactions;
|
|
1313
1313
|
if (r !== null && !(Lr !== null && Lr.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1314
1314
|
var a = r[i];
|
|
1315
|
-
a.f & 2 ? Kr(a, t, !1) : t === a && (n ?
|
|
1315
|
+
a.f & 2 ? Kr(a, t, !1) : t === a && (n ? D(a, S) : a.f & 1024 && D(a, re), Fn(a));
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
1318
|
function qr(e) {
|
|
1319
|
-
var t = Y, n = X, r = Z, i = G, a = Lr, o =
|
|
1320
|
-
Y = null, X = 0, Z = null, G = l & 96 ? null : e, Lr = null,
|
|
1319
|
+
var t = Y, n = X, r = Z, i = G, a = Lr, o = E, s = K, c = Hr, l = e.f;
|
|
1320
|
+
Y = null, X = 0, Z = null, G = l & 96 ? null : e, Lr = null, Je(e.ctx), K = !1, Hr = ++Vr, e.ac !== null && (ut(() => {
|
|
1321
1321
|
e.ac.abort(xe);
|
|
1322
1322
|
}), e.ac = null);
|
|
1323
1323
|
try {
|
|
@@ -1334,7 +1334,7 @@ function qr(e) {
|
|
|
1334
1334
|
((h = f[m]).reactions ?? (h.reactions = [])).push(e);
|
|
1335
1335
|
}
|
|
1336
1336
|
} else !p && f !== null && X < f.length && (Yr(e, X), f.length = X);
|
|
1337
|
-
if (
|
|
1337
|
+
if (Ze() && Z !== null && !K && f !== null && !(e.f & 6146)) for (m = 0; m < Z.length; m++) Kr(Z[m], e);
|
|
1338
1338
|
if (i !== null && i !== e) {
|
|
1339
1339
|
if (Vr++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Vr;
|
|
1340
1340
|
if (t !== null) for (let e of t) e.rv = Vr;
|
|
@@ -1342,9 +1342,9 @@ function qr(e) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
return e.f & 8388608 && (e.f ^= pe), d;
|
|
1344
1344
|
} catch (e) {
|
|
1345
|
-
return
|
|
1345
|
+
return nt(e);
|
|
1346
1346
|
} finally {
|
|
1347
|
-
e.f ^= de, Y = t, X = n, Z = r, G = i, Lr = a,
|
|
1347
|
+
e.f ^= de, Y = t, X = n, Z = r, G = i, Lr = a, Je(o), K = s, Hr = c;
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
1350
|
function Jr(e, t) {
|
|
@@ -1358,8 +1358,8 @@ function Jr(e, t) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
if (n === null && t.f & 2 && (Y === null || !s.call(Y, t))) {
|
|
1360
1360
|
var c = t;
|
|
1361
|
-
c.f & 512 && (c.f ^= 512, c.f &= ~ue), c.v !== i &&
|
|
1362
|
-
c.ac.abort(xe), c.ac = null,
|
|
1361
|
+
c.f & 512 && (c.f ^= 512, c.f &= ~ue), c.v !== i && at(c), c.ac !== null && ut(() => {
|
|
1362
|
+
c.ac.abort(xe), c.ac = null, D(c, S);
|
|
1363
1363
|
}), Yt(c), Yr(c, 0);
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
@@ -1370,7 +1370,7 @@ function Yr(e, t) {
|
|
|
1370
1370
|
function Xr(e) {
|
|
1371
1371
|
var t = e.f;
|
|
1372
1372
|
if (!(t & 16384)) {
|
|
1373
|
-
|
|
1373
|
+
D(e, x);
|
|
1374
1374
|
var n = J, r = Nr;
|
|
1375
1375
|
J = e, Nr = !(t & 96);
|
|
1376
1376
|
try {
|
|
@@ -1505,7 +1505,7 @@ function li(e, t) {
|
|
|
1505
1505
|
function ui(e, t) {
|
|
1506
1506
|
if (w) {
|
|
1507
1507
|
var n = J;
|
|
1508
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = T),
|
|
1508
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = T), Be();
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
1511
|
e !== null && e.before(t);
|
|
@@ -1515,8 +1515,8 @@ function fi(e) {
|
|
|
1515
1515
|
return di.includes(e);
|
|
1516
1516
|
}
|
|
1517
1517
|
function pi(e, t) {
|
|
1518
|
-
var n
|
|
1519
|
-
|
|
1518
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1519
|
+
n !== (e[be] ?? (e[be] = e.nodeValue)) && (e[be] = n, e.nodeValue = `${n}`);
|
|
1520
1520
|
}
|
|
1521
1521
|
function mi(e, t) {
|
|
1522
1522
|
return _i(e, t);
|
|
@@ -1527,7 +1527,7 @@ function hi(e, t) {
|
|
|
1527
1527
|
try {
|
|
1528
1528
|
for (var o = /* @__PURE__ */ er(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tr(o);
|
|
1529
1529
|
if (!o) throw r;
|
|
1530
|
-
Re(!0),
|
|
1530
|
+
Re(!0), ze(o);
|
|
1531
1531
|
let i = _i(e, {
|
|
1532
1532
|
...t,
|
|
1533
1533
|
anchor: o
|
|
@@ -1537,7 +1537,7 @@ function hi(e, t) {
|
|
|
1537
1537
|
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1538
1538
|
return i !== r && console.warn("Failed to hydrate: ", i), t.recover === !1 && ke(), Qn(), ir(n), Re(!1), mi(e, t);
|
|
1539
1539
|
} finally {
|
|
1540
|
-
Re(i),
|
|
1540
|
+
Re(i), ze(a);
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
var gi = /* @__PURE__ */ new Map();
|
|
@@ -1545,11 +1545,11 @@ function _i(e, { target: t, anchor: n, props: i = {}, events: a, context: o, int
|
|
|
1545
1545
|
Qn();
|
|
1546
1546
|
var u = void 0, d = hr(() => {
|
|
1547
1547
|
var s = n ?? t.appendChild($n());
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
var n =
|
|
1548
|
+
ht(s, { pending: () => {} }, (t) => {
|
|
1549
|
+
Ye({});
|
|
1550
|
+
var n = E;
|
|
1551
1551
|
if (o && (n.c = o), a && (i.$$events = a), w && ci(t, null), u = e(t, i) || {}, w && (J.nodes.end = T, T === null || T.nodeType !== 8 || T.data !== "]")) throw Ie(), r;
|
|
1552
|
-
|
|
1552
|
+
Xe();
|
|
1553
1553
|
}, l);
|
|
1554
1554
|
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1555
1555
|
for (var n = 0; n < e.length; n++) {
|
|
@@ -1583,74 +1583,74 @@ function yi(e, t) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
var bi = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ei = class {
|
|
1585
1585
|
constructor(e, t = !0) {
|
|
1586
|
-
b(this, "anchor", void 0),
|
|
1587
|
-
if (
|
|
1588
|
-
var t =
|
|
1589
|
-
if (n) kr(n),
|
|
1586
|
+
b(this, "anchor", void 0), O(this, bi, /* @__PURE__ */ new Map()), O(this, xi, /* @__PURE__ */ new Map()), O(this, $, /* @__PURE__ */ new Map()), O(this, Si, /* @__PURE__ */ new Set()), O(this, Ci, !0), O(this, wi, (e) => {
|
|
1587
|
+
if (j(bi, this).has(e)) {
|
|
1588
|
+
var t = j(bi, this).get(e), n = j(xi, this).get(t);
|
|
1589
|
+
if (n) kr(n), j(Si, this).delete(t);
|
|
1590
1590
|
else {
|
|
1591
|
-
var r =
|
|
1592
|
-
r && (kr(r.effect),
|
|
1591
|
+
var r = j($, this).get(t);
|
|
1592
|
+
r && (kr(r.effect), j(xi, this).set(t, r.effect), j($, this).delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1593
1593
|
}
|
|
1594
|
-
for (let [t, n] of
|
|
1595
|
-
if (
|
|
1596
|
-
let r =
|
|
1597
|
-
r && (W(r.effect),
|
|
1594
|
+
for (let [t, n] of j(bi, this)) {
|
|
1595
|
+
if (j(bi, this).delete(t), t === e) break;
|
|
1596
|
+
let r = j($, this).get(n);
|
|
1597
|
+
r && (W(r.effect), j($, this).delete(n));
|
|
1598
1598
|
}
|
|
1599
|
-
for (let [e, r] of
|
|
1600
|
-
if (e === t ||
|
|
1599
|
+
for (let [e, r] of j(xi, this)) {
|
|
1600
|
+
if (e === t || j(Si, this).has(e)) continue;
|
|
1601
1601
|
let i = () => {
|
|
1602
|
-
if (Array.from(
|
|
1602
|
+
if (Array.from(j(bi, this).values()).includes(e)) {
|
|
1603
1603
|
var t = document.createDocumentFragment();
|
|
1604
|
-
jr(r, t), t.append($n()),
|
|
1604
|
+
jr(r, t), t.append($n()), j($, this).set(e, {
|
|
1605
1605
|
effect: r,
|
|
1606
1606
|
fragment: t
|
|
1607
1607
|
});
|
|
1608
1608
|
} else W(r);
|
|
1609
|
-
|
|
1609
|
+
j(Si, this).delete(e), j(xi, this).delete(e);
|
|
1610
1610
|
};
|
|
1611
|
-
|
|
1611
|
+
j(Ci, this) || !n ? (j(Si, this).add(e), Dr(r, i, !1)) : i();
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
|
-
}),
|
|
1615
|
-
|
|
1616
|
-
let t = Array.from(
|
|
1617
|
-
for (let [e, n] of
|
|
1618
|
-
}), this.anchor = e,
|
|
1614
|
+
}), O(this, Ti, (e) => {
|
|
1615
|
+
j(bi, this).delete(e);
|
|
1616
|
+
let t = Array.from(j(bi, this).values());
|
|
1617
|
+
for (let [e, n] of j($, this)) t.includes(e) || (W(n.effect), j($, this).delete(e));
|
|
1618
|
+
}), this.anchor = e, A(Ci, this, t);
|
|
1619
1619
|
}
|
|
1620
1620
|
ensure(e, t) {
|
|
1621
1621
|
var n = R, r = ar();
|
|
1622
|
-
if (t && !
|
|
1622
|
+
if (t && !j(xi, this).has(e) && !j($, this).has(e)) {
|
|
1623
1623
|
if (r) {
|
|
1624
1624
|
var i = document.createDocumentFragment(), a = $n();
|
|
1625
|
-
i.append(a),
|
|
1625
|
+
i.append(a), j($, this).set(e, {
|
|
1626
1626
|
effect: xr(() => t(a)),
|
|
1627
1627
|
fragment: i
|
|
1628
1628
|
});
|
|
1629
|
-
} else
|
|
1629
|
+
} else j(xi, this).set(e, xr(() => t(this.anchor)));
|
|
1630
1630
|
}
|
|
1631
|
-
if (
|
|
1632
|
-
for (let [t, r] of
|
|
1633
|
-
for (let [t, r] of
|
|
1634
|
-
n.oncommit(
|
|
1635
|
-
} else w && (this.anchor = T),
|
|
1631
|
+
if (j(bi, this).set(n, e), r) {
|
|
1632
|
+
for (let [t, r] of j(xi, this)) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1633
|
+
for (let [t, r] of j($, this)) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1634
|
+
n.oncommit(j(wi, this)), n.ondiscard(j(Ti, this));
|
|
1635
|
+
} else w && (this.anchor = T), j(wi, this).call(this, n);
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
1638
|
function Di(e) {
|
|
1639
|
-
|
|
1639
|
+
E === null && Ce("onMount"), fr(() => {
|
|
1640
1640
|
let t = $r(e);
|
|
1641
1641
|
if (typeof t == "function") return t;
|
|
1642
1642
|
});
|
|
1643
1643
|
}
|
|
1644
1644
|
function Oi(e, t, n = !1) {
|
|
1645
1645
|
var r;
|
|
1646
|
-
w && (r = T,
|
|
1647
|
-
var i = new Ei(e), a = n ?
|
|
1646
|
+
w && (r = T, Be());
|
|
1647
|
+
var i = new Ei(e), a = n ? ce : 0;
|
|
1648
1648
|
function o(e, t) {
|
|
1649
1649
|
if (w) {
|
|
1650
|
-
var n =
|
|
1650
|
+
var n = We(r);
|
|
1651
1651
|
if (e !== parseInt(n.substring(1))) {
|
|
1652
|
-
var a =
|
|
1653
|
-
|
|
1652
|
+
var a = Ue();
|
|
1653
|
+
ze(a), i.anchor = a, Re(!1), i.ensure(e, t), Re(!0);
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
@@ -1678,8 +1678,7 @@ function Ni(e, t, n, r) {
|
|
|
1678
1678
|
w && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Mi) || i[t] !== (i[t] = n) && (t === "loading" && (e[ge] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ii(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1679
1679
|
}
|
|
1680
1680
|
function Pi(e) {
|
|
1681
|
-
|
|
1682
|
-
return (t = e)[_e] ?? (t[_e] = {
|
|
1681
|
+
return e[_e] ?? (e[_e] = {
|
|
1683
1682
|
[Ai]: e.nodeName.includes("-"),
|
|
1684
1683
|
[ji]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1685
1684
|
});
|
|
@@ -1697,22 +1696,22 @@ function Ii(e) {
|
|
|
1697
1696
|
}
|
|
1698
1697
|
var Li, Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakSet(), Hi = class {
|
|
1699
1698
|
constructor(e) {
|
|
1700
|
-
|
|
1699
|
+
pt(this, Vi), O(this, Ri, /* @__PURE__ */ new WeakMap()), O(this, zi, void 0), O(this, Bi, void 0), A(Bi, this, e);
|
|
1701
1700
|
}
|
|
1702
1701
|
observe(e, t) {
|
|
1703
|
-
var n =
|
|
1704
|
-
return n.add(t),
|
|
1705
|
-
var n =
|
|
1706
|
-
n.delete(t), n.size === 0 && (
|
|
1702
|
+
var n = j(Ri, this).get(e) || /* @__PURE__ */ new Set();
|
|
1703
|
+
return n.add(t), j(Ri, this).set(e, n), k(Vi, this, Ui).call(this).observe(e, j(Bi, this)), () => {
|
|
1704
|
+
var n = j(Ri, this).get(e);
|
|
1705
|
+
n.delete(t), n.size === 0 && (j(Ri, this).delete(e), j(zi, this).unobserve(e));
|
|
1707
1706
|
};
|
|
1708
1707
|
}
|
|
1709
1708
|
};
|
|
1710
1709
|
Li = Hi;
|
|
1711
1710
|
function Ui() {
|
|
1712
|
-
return
|
|
1711
|
+
return j(zi, this) ?? A(zi, this, new ResizeObserver((e) => {
|
|
1713
1712
|
for (var t of e) {
|
|
1714
1713
|
Li.entries.set(t.target, t);
|
|
1715
|
-
for (var n of
|
|
1714
|
+
for (var n of j(Ri, this).get(t.target) || []) n(t);
|
|
1716
1715
|
}
|
|
1717
1716
|
}));
|
|
1718
1717
|
}
|
|
@@ -1721,7 +1720,7 @@ function Wi(e, t) {
|
|
|
1721
1720
|
return e === t || e?.[me] === t;
|
|
1722
1721
|
}
|
|
1723
1722
|
function Gi(e = {}, t, n, r) {
|
|
1724
|
-
var i =
|
|
1723
|
+
var i = E.r, a = J;
|
|
1725
1724
|
return gr(() => {
|
|
1726
1725
|
var o, s;
|
|
1727
1726
|
return vr(() => {
|
|
@@ -1748,7 +1747,7 @@ function Ki(e, t, n, r) {
|
|
|
1748
1747
|
f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1749
1748
|
}
|
|
1750
1749
|
var m, h = !1;
|
|
1751
|
-
a ? [m, h] =
|
|
1750
|
+
a ? [m, h] = lt(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && Ae(t), f(m)));
|
|
1752
1751
|
var g;
|
|
1753
1752
|
if (g = i ? () => {
|
|
1754
1753
|
var n = e[t];
|
|
@@ -1758,20 +1757,20 @@ function Ki(e, t, n, r) {
|
|
|
1758
1757
|
return n !== void 0 && (s = void 0), n === void 0 ? s : n;
|
|
1759
1758
|
}, i && !(n & 4)) return g;
|
|
1760
1759
|
if (f) {
|
|
1761
|
-
var
|
|
1760
|
+
var ee = e.$$legacy;
|
|
1762
1761
|
return (function(e, t) {
|
|
1763
|
-
return arguments.length > 0 ? ((!i || !t ||
|
|
1762
|
+
return arguments.length > 0 ? ((!i || !t || ee || h) && f(t ? g() : e), e) : g();
|
|
1764
1763
|
});
|
|
1765
1764
|
}
|
|
1766
|
-
var
|
|
1767
|
-
a && Q(
|
|
1768
|
-
var
|
|
1765
|
+
var _ = !1, v = (n & 1 ? Vt : Gt)(() => (_ = !1, g()));
|
|
1766
|
+
a && Q(v);
|
|
1767
|
+
var y = J;
|
|
1769
1768
|
return (function(e, t) {
|
|
1770
1769
|
if (arguments.length > 0) {
|
|
1771
|
-
let n = t ? Q(
|
|
1772
|
-
return H(
|
|
1770
|
+
let n = t ? Q(v) : i && a ? qn(e) : e;
|
|
1771
|
+
return H(v, n), _ = !0, s !== void 0 && (s = n), e;
|
|
1773
1772
|
}
|
|
1774
|
-
return Pr &&
|
|
1773
|
+
return Pr && _ || y.f & 16384 ? v.v : Q(v);
|
|
1775
1774
|
});
|
|
1776
1775
|
}
|
|
1777
1776
|
function qi(e) {
|
|
@@ -1779,7 +1778,7 @@ function qi(e) {
|
|
|
1779
1778
|
}
|
|
1780
1779
|
var Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = class {
|
|
1781
1780
|
constructor(e) {
|
|
1782
|
-
|
|
1781
|
+
O(this, Ji, void 0), O(this, Yi, void 0);
|
|
1783
1782
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1784
1783
|
var r = /* @__PURE__ */ Hn(n, !1, !1);
|
|
1785
1784
|
return t.set(e, r), r;
|
|
@@ -1798,7 +1797,7 @@ var Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi =
|
|
|
1798
1797
|
return H(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1799
1798
|
}
|
|
1800
1799
|
});
|
|
1801
|
-
|
|
1800
|
+
A(Yi, this, (e.hydrate ? hi : mi)(e.component, {
|
|
1802
1801
|
target: e.target,
|
|
1803
1802
|
anchor: e.anchor,
|
|
1804
1803
|
props: r,
|
|
@@ -1806,34 +1805,34 @@ var Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi =
|
|
|
1806
1805
|
intro: e.intro ?? !1,
|
|
1807
1806
|
recover: e.recover,
|
|
1808
1807
|
transformError: e.transformError
|
|
1809
|
-
})), (!e?.props?.$$host || e.sync === !1) && jn(),
|
|
1810
|
-
for (let e of Object.keys(
|
|
1808
|
+
})), (!e?.props?.$$host || e.sync === !1) && jn(), A(Ji, this, r.$$events);
|
|
1809
|
+
for (let e of Object.keys(j(Yi, this))) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
|
|
1811
1810
|
get() {
|
|
1812
|
-
return
|
|
1811
|
+
return j(Yi, this)[e];
|
|
1813
1812
|
},
|
|
1814
1813
|
set(t) {
|
|
1815
|
-
|
|
1814
|
+
j(Yi, this)[e] = t;
|
|
1816
1815
|
},
|
|
1817
1816
|
enumerable: !0
|
|
1818
1817
|
});
|
|
1819
|
-
|
|
1818
|
+
j(Yi, this).$set = (e) => {
|
|
1820
1819
|
Object.assign(r, e);
|
|
1821
|
-
},
|
|
1822
|
-
yi(
|
|
1820
|
+
}, j(Yi, this).$destroy = () => {
|
|
1821
|
+
yi(j(Yi, this));
|
|
1823
1822
|
};
|
|
1824
1823
|
}
|
|
1825
1824
|
$set(e) {
|
|
1826
|
-
|
|
1825
|
+
j(Yi, this).$set(e);
|
|
1827
1826
|
}
|
|
1828
1827
|
$on(e, t) {
|
|
1829
|
-
|
|
1828
|
+
j(Ji, this)[e] = j(Ji, this)[e] || [];
|
|
1830
1829
|
let n = (...e) => t.call(this, ...e);
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1830
|
+
return j(Ji, this)[e].push(n), () => {
|
|
1831
|
+
j(Ji, this)[e] = j(Ji, this)[e].filter((e) => e !== n);
|
|
1833
1832
|
};
|
|
1834
1833
|
}
|
|
1835
1834
|
$destroy() {
|
|
1836
|
-
|
|
1835
|
+
j(Yi, this).$destroy();
|
|
1837
1836
|
}
|
|
1838
1837
|
}, Zi;
|
|
1839
1838
|
typeof HTMLElement == "function" && (Zi = class extends HTMLElement {
|
|
@@ -1958,44 +1957,789 @@ function ea(e, t, n, r, i, a) {
|
|
|
1958
1957
|
} });
|
|
1959
1958
|
}), a && (o = a(o)), e.element = o, o;
|
|
1960
1959
|
}
|
|
1961
|
-
|
|
1960
|
+
function ta(e) {
|
|
1961
|
+
return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
|
|
1962
|
+
}
|
|
1963
|
+
function na(e) {
|
|
1964
|
+
let t = ta(e);
|
|
1965
|
+
if (!t) return [];
|
|
1966
|
+
let n = t.split("-"), r = [];
|
|
1967
|
+
for (let e = n.length; e > 0; e--) {
|
|
1968
|
+
let t = n.slice(0, e);
|
|
1969
|
+
t.length > 1 && t[t.length - 1].length === 1 || r.push(t.join("-"));
|
|
1970
|
+
}
|
|
1971
|
+
return r;
|
|
1972
|
+
}
|
|
1973
|
+
function ra(e, t) {
|
|
1974
|
+
for (let n of na(e)) {
|
|
1975
|
+
let e = t.find((e) => ta(e) === n);
|
|
1976
|
+
if (e != null) return e;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
var ia = {
|
|
1980
|
+
common: {
|
|
1981
|
+
close: "Close",
|
|
1982
|
+
cancel: "Cancel",
|
|
1983
|
+
save: "Save",
|
|
1984
|
+
reset: "Reset",
|
|
1985
|
+
retry: "Retry",
|
|
1986
|
+
back: "Back",
|
|
1987
|
+
next: "Next",
|
|
1988
|
+
previous: "Previous",
|
|
1989
|
+
submit: "Submit",
|
|
1990
|
+
continue: "Continue",
|
|
1991
|
+
finish: "Finish",
|
|
1992
|
+
yes: "Yes",
|
|
1993
|
+
no: "No",
|
|
1994
|
+
ok: "OK",
|
|
1995
|
+
any: "Any",
|
|
1996
|
+
off: "Off",
|
|
1997
|
+
auto: "Auto",
|
|
1998
|
+
all: "All",
|
|
1999
|
+
none: "None",
|
|
2000
|
+
loading: "Loading…",
|
|
2001
|
+
error: "Error",
|
|
2002
|
+
settings: "Settings",
|
|
2003
|
+
language: "Language",
|
|
2004
|
+
theme: "Theme",
|
|
2005
|
+
preview: "Preview",
|
|
2006
|
+
author: "Author",
|
|
2007
|
+
unknown: "Unknown",
|
|
2008
|
+
untitled: "Untitled",
|
|
2009
|
+
apply: "Apply",
|
|
2010
|
+
enabled: "Enabled",
|
|
2011
|
+
disabled: "Disabled",
|
|
2012
|
+
closeA11y: "Close",
|
|
2013
|
+
settingsA11y: "Open settings menu"
|
|
2014
|
+
},
|
|
2015
|
+
player: {
|
|
2016
|
+
passage: "Passage",
|
|
2017
|
+
passages: "Passages",
|
|
2018
|
+
question: "Question",
|
|
2019
|
+
questionNumbered: "Question {position}",
|
|
2020
|
+
questions: "Questions",
|
|
2021
|
+
items: "Items",
|
|
2022
|
+
section: "Section",
|
|
2023
|
+
loadingSection: "Loading section content…",
|
|
2024
|
+
loadingPassage: "Loading passage content…",
|
|
2025
|
+
configurationError: "Configuration Error",
|
|
2026
|
+
playerError: "Player Error",
|
|
2027
|
+
authoringBackendError: "Authoring Backend Configuration Error",
|
|
2028
|
+
itemLoadError: "Question could not be loaded.",
|
|
2029
|
+
sectionTabsA11y: "Section content tabs",
|
|
2030
|
+
passagesRegionA11y: "Passages",
|
|
2031
|
+
itemsRegionA11y: "Items",
|
|
2032
|
+
sectionToolsA11y: "Section tools",
|
|
2033
|
+
scrollDownA11y: "Scroll down",
|
|
2034
|
+
resizePanels: "Resize panels",
|
|
2035
|
+
resizePassagesAndItemsA11y: "Resize passages and items panels",
|
|
2036
|
+
resizeMediaRegion: "Resize media region",
|
|
2037
|
+
resizeQuestionAndMediaA11y: "Resize question and media panels",
|
|
2038
|
+
resizePassageAndMediaA11y: "Resize passage and media panels",
|
|
2039
|
+
assessment: {
|
|
2040
|
+
sectionPosition: "Section {position} of {total}",
|
|
2041
|
+
noSections: "No sections"
|
|
2042
|
+
},
|
|
2043
|
+
formative: {
|
|
2044
|
+
checkAnswer: "Check answer",
|
|
2045
|
+
tryAgain: "Try again",
|
|
2046
|
+
answerRecorded: "Answer recorded.",
|
|
2047
|
+
correct: "Correct.",
|
|
2048
|
+
partlyCorrect: "Partly correct.",
|
|
2049
|
+
notCorrect: "Not correct.",
|
|
2050
|
+
notAutoScored: "Answer recorded. This question is not scored automatically.",
|
|
2051
|
+
checkFailed: "This question could not be checked. Try again.",
|
|
2052
|
+
triesLeft: {
|
|
2053
|
+
one: "{count} try left.",
|
|
2054
|
+
other: "{count} tries left."
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
timedMedia: {
|
|
2058
|
+
waitingForMedia: "Questions will appear as the media plays.",
|
|
2059
|
+
questionAvailable: "Question {position} is now available.",
|
|
2060
|
+
playbackPaused: "Playback paused. Answer question {position} to continue.",
|
|
2061
|
+
playbackAdvisory: "Answer question {position} before continuing with the media.",
|
|
2062
|
+
playbackReleased: "Answer accepted. Continue playing the media."
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
toolkit: {
|
|
2066
|
+
toolsA11y: "Assessment tools",
|
|
2067
|
+
toolbarInitError: "Unable to initialize assessment toolkit.",
|
|
2068
|
+
settingsTitle: "Settings",
|
|
2069
|
+
closeSettingsA11y: "Close settings",
|
|
2070
|
+
dragPanelA11y: "Drag panel",
|
|
2071
|
+
closePanelA11y: "Close panel",
|
|
2072
|
+
resizeWindow: "Resize window",
|
|
2073
|
+
minimize: "Minimize",
|
|
2074
|
+
maximize: "Maximize",
|
|
2075
|
+
minimizePanelA11y: "Minimize panel",
|
|
2076
|
+
maximizePanelA11y: "Maximize panel",
|
|
2077
|
+
window: {
|
|
2078
|
+
moveLeftA11y: "Move tool left",
|
|
2079
|
+
moveRightA11y: "Move tool right",
|
|
2080
|
+
moveUpA11y: "Move tool up",
|
|
2081
|
+
moveDownA11y: "Move tool down",
|
|
2082
|
+
shrinkA11y: "Shrink tool window",
|
|
2083
|
+
growA11y: "Grow tool window",
|
|
2084
|
+
centerA11y: "Center tool window",
|
|
2085
|
+
closeA11y: "Close tool"
|
|
2086
|
+
},
|
|
2087
|
+
announce: {
|
|
2088
|
+
movedUp: "Moved up to {position}",
|
|
2089
|
+
movedDown: "Moved down to {position}",
|
|
2090
|
+
movedLeft: "Moved left to {position}",
|
|
2091
|
+
movedRight: "Moved right to {position}",
|
|
2092
|
+
rotatedTo: "Rotated to {degrees} degrees"
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
tools: {
|
|
2096
|
+
calculator: {
|
|
2097
|
+
name: "Calculator",
|
|
2098
|
+
nameBasic: "Basic Calculator",
|
|
2099
|
+
nameScientific: "Scientific Calculator",
|
|
2100
|
+
nameGraphing: "Graphing Calculator",
|
|
2101
|
+
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2102
|
+
openedBasic: "Basic calculator opened",
|
|
2103
|
+
openedScientific: "Scientific calculator opened",
|
|
2104
|
+
openedGraphing: "Graphing calculator opened",
|
|
2105
|
+
closedBasic: "Basic calculator closed",
|
|
2106
|
+
closedScientific: "Scientific calculator closed",
|
|
2107
|
+
closedGraphing: "Graphing calculator closed",
|
|
2108
|
+
toolA11y: "Calculator tool",
|
|
2109
|
+
loading: "Loading calculator…",
|
|
2110
|
+
providerUnavailable: "The calculator is unavailable."
|
|
2111
|
+
},
|
|
2112
|
+
graph: {
|
|
2113
|
+
name: "Graph",
|
|
2114
|
+
description: "Graphing calculator and coordinate plane",
|
|
2115
|
+
buttonA11y: "Graph, graphing calculator",
|
|
2116
|
+
tooltip: "Graph",
|
|
2117
|
+
toolA11y: "Graph tool — draw points and lines on a coordinate grid",
|
|
2118
|
+
canvasA11y: "Graph canvas — use tools to add points and draw lines",
|
|
2119
|
+
grid: "Grid:",
|
|
2120
|
+
gridOpacityA11y: "Grid opacity",
|
|
2121
|
+
pointA11y: "Graph point {id}",
|
|
2122
|
+
modeSelector: "Selector",
|
|
2123
|
+
modeSelectorHint: "Selector: click and drag points to move them or associated lines.",
|
|
2124
|
+
modePoint: "Point",
|
|
2125
|
+
modePointHint: "Point: click on the grid to add points.",
|
|
2126
|
+
modeLine: "Line",
|
|
2127
|
+
modeLineHint: "Line: click a starting point, then an ending point to draw a line.",
|
|
2128
|
+
modeDelete: "Delete",
|
|
2129
|
+
modeDeleteHint: "Delete: click on a point to delete it and any connected lines."
|
|
2130
|
+
},
|
|
2131
|
+
periodicTable: {
|
|
2132
|
+
name: "Periodic Table",
|
|
2133
|
+
description: "Chemistry periodic table reference",
|
|
2134
|
+
buttonA11y: "Periodic Table, chemistry reference",
|
|
2135
|
+
tooltip: "Periodic Table",
|
|
2136
|
+
toolA11y: "Periodic table — select an element to view its details",
|
|
2137
|
+
elementsA11y: "Periodic table elements",
|
|
2138
|
+
showAllA11y: "Show all elements",
|
|
2139
|
+
allElements: "All Elements",
|
|
2140
|
+
atomicMass: "Atomic Mass",
|
|
2141
|
+
atomicNumber: "Atomic No",
|
|
2142
|
+
electronConfig: "Electron Config",
|
|
2143
|
+
phase: "Phase",
|
|
2144
|
+
filterByA11y: "Filter by {category}",
|
|
2145
|
+
elementA11y: "{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}",
|
|
2146
|
+
outsideFilterA11y: ", outside the current filter",
|
|
2147
|
+
category: {
|
|
2148
|
+
unknown: "Unknown",
|
|
2149
|
+
alkaliMetal: "Alkali Metal",
|
|
2150
|
+
alkalineEarthMetal: "Alkaline Earth Metal",
|
|
2151
|
+
transitionMetal: "Transition Metal",
|
|
2152
|
+
postTransitionMetal: "Post-transition Metal",
|
|
2153
|
+
metalloid: "Metalloid",
|
|
2154
|
+
diatomicNonmetal: "Diatomic Nonmetal",
|
|
2155
|
+
polyatomicNonmetal: "Polyatomic Nonmetal",
|
|
2156
|
+
nobleGas: "Noble Gas",
|
|
2157
|
+
lanthanide: "Lanthanide",
|
|
2158
|
+
actinide: "Actinide"
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
ruler: {
|
|
2162
|
+
name: "Ruler",
|
|
2163
|
+
description: "On-screen ruler for measurements",
|
|
2164
|
+
buttonA11y: "Ruler",
|
|
2165
|
+
tooltip: "Ruler",
|
|
2166
|
+
toolA11y: "Draggable and rotatable ruler measurement tool",
|
|
2167
|
+
unitSelectionA11y: "Ruler unit selection",
|
|
2168
|
+
inches: "Inches",
|
|
2169
|
+
centimeters: "Centimeters",
|
|
2170
|
+
inchesInSentence: "inches",
|
|
2171
|
+
centimetersInSentence: "centimeters",
|
|
2172
|
+
switchToInchesA11y: "Switch to inches",
|
|
2173
|
+
switchToCentimetersA11y: "Switch to centimeters",
|
|
2174
|
+
switchedTo: "Switched to {unit}",
|
|
2175
|
+
applicationA11y: "Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}",
|
|
2176
|
+
imageAlt: "Ruler showing {unit}"
|
|
2177
|
+
},
|
|
2178
|
+
protractor: {
|
|
2179
|
+
name: "Protractor",
|
|
2180
|
+
description: "On-screen protractor for angle measurements",
|
|
2181
|
+
buttonA11y: "Protractor",
|
|
2182
|
+
tooltip: "Protractor",
|
|
2183
|
+
toolA11y: "Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.",
|
|
2184
|
+
roleA11y: "Draggable and rotatable protractor measurement tool",
|
|
2185
|
+
imageAlt: "Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees"
|
|
2186
|
+
},
|
|
2187
|
+
dictionary: {
|
|
2188
|
+
name: "Dictionary",
|
|
2189
|
+
description: "Look up word definitions",
|
|
2190
|
+
buttonA11y: "Dictionary, look up word definitions",
|
|
2191
|
+
tooltip: "Dictionary",
|
|
2192
|
+
toolA11y: "Dictionary"
|
|
2193
|
+
},
|
|
2194
|
+
pictureDictionary: {
|
|
2195
|
+
name: "Picture Dictionary",
|
|
2196
|
+
description: "Look up pictures for words",
|
|
2197
|
+
buttonA11y: "Picture Dictionary, look up pictures for words",
|
|
2198
|
+
tooltip: "Picture Dictionary",
|
|
2199
|
+
toolA11y: "Picture Dictionary"
|
|
2200
|
+
},
|
|
2201
|
+
dictionarySpanish: {
|
|
2202
|
+
name: "Spanish Dictionary",
|
|
2203
|
+
description: "Look up word definitions in Spanish",
|
|
2204
|
+
buttonA11y: "Spanish Dictionary, look up word definitions in Spanish",
|
|
2205
|
+
tooltip: "Spanish Dictionary",
|
|
2206
|
+
toolA11y: "Spanish Dictionary"
|
|
2207
|
+
},
|
|
2208
|
+
pictureDictionarySpanish: {
|
|
2209
|
+
name: "Spanish Picture Dictionary",
|
|
2210
|
+
description: "Look up pictures for words in Spanish",
|
|
2211
|
+
buttonA11y: "Spanish Picture Dictionary, look up pictures for words in Spanish",
|
|
2212
|
+
tooltip: "Spanish Picture Dictionary",
|
|
2213
|
+
toolA11y: "Spanish Picture Dictionary"
|
|
2214
|
+
},
|
|
2215
|
+
lineReader: {
|
|
2216
|
+
name: "Line Reader",
|
|
2217
|
+
description: "Reading guide overlay",
|
|
2218
|
+
buttonA11y: "Line Reader, reading guide",
|
|
2219
|
+
tooltip: "Line Reader",
|
|
2220
|
+
roleA11y: "Draggable and resizable reading guide overlay",
|
|
2221
|
+
close: "Close line reader",
|
|
2222
|
+
resizeWindowA11y: "Drag to resize the reading window",
|
|
2223
|
+
resizeFrameA11y: "Drag to resize the frame and window width",
|
|
2224
|
+
windowHeightAnnounce: "Reading window height {pixels} pixels",
|
|
2225
|
+
frameHeightAnnounce: "Frame height {pixels} pixels",
|
|
2226
|
+
widthAnnounce: "Width {pixels} pixels",
|
|
2227
|
+
applicationA11y: "Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels",
|
|
2228
|
+
resizeWindowFullA11y: "Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels",
|
|
2229
|
+
resizeFrameFullA11y: "Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels"
|
|
2230
|
+
},
|
|
2231
|
+
answerEliminator: {
|
|
2232
|
+
name: "Answer Eliminator",
|
|
2233
|
+
description: "Strike through answer choices",
|
|
2234
|
+
buttonA11y: "Strike Through, eliminate answer choices",
|
|
2235
|
+
tooltip: "Strike Through"
|
|
2236
|
+
},
|
|
2237
|
+
highlighter: {
|
|
2238
|
+
name: "Highlighter",
|
|
2239
|
+
description: "Highlight and annotate text",
|
|
2240
|
+
buttonA11y: "Highlight text",
|
|
2241
|
+
tooltip: "Highlight"
|
|
2242
|
+
},
|
|
2243
|
+
annotationToolbar: {
|
|
2244
|
+
name: "Annotation",
|
|
2245
|
+
description: "Highlight and annotate text",
|
|
2246
|
+
buttonA11y: "Annotate, highlight and mark up text",
|
|
2247
|
+
tooltip: "Annotate",
|
|
2248
|
+
toolbarA11y: "Text annotation toolbar",
|
|
2249
|
+
underline: "Underline",
|
|
2250
|
+
underlineA11y: "Underline selected text",
|
|
2251
|
+
readAloud: "Read Aloud",
|
|
2252
|
+
readAloudA11y: "Read selected text aloud",
|
|
2253
|
+
remove: "Remove",
|
|
2254
|
+
removeA11y: "Remove this annotation",
|
|
2255
|
+
clearAll: "Clear All",
|
|
2256
|
+
clearAllA11y: "Clear all annotations from document",
|
|
2257
|
+
highlightYellowA11y: "Yellow highlight",
|
|
2258
|
+
highlightPinkA11y: "Pink highlight",
|
|
2259
|
+
highlightBlueA11y: "Blue highlight",
|
|
2260
|
+
highlightGreenA11y: "Green highlight"
|
|
2261
|
+
},
|
|
2262
|
+
theme: {
|
|
2263
|
+
name: "Theme",
|
|
2264
|
+
description: "Accessible themes and contrast",
|
|
2265
|
+
buttonA11y: "Theme, change colors and contrast",
|
|
2266
|
+
tooltip: "Theme",
|
|
2267
|
+
selectorA11y: "Theme selector",
|
|
2268
|
+
hint: "Select a theme to improve readability and reduce eye strain.",
|
|
2269
|
+
selectA11y: "Select theme",
|
|
2270
|
+
selectCurrentA11y: "Select theme. Current theme: {name}",
|
|
2271
|
+
optionUnavailableA11y: "{name}, unavailable",
|
|
2272
|
+
unavailableName: "Unavailable theme: {id}",
|
|
2273
|
+
unavailableDescription: "PIE's managed base theme remains active until this theme becomes available again.",
|
|
2274
|
+
unavailableStatus: "The selected theme is unavailable. PIE's managed base theme is active until it becomes available again."
|
|
2275
|
+
},
|
|
2276
|
+
textToSpeech: {
|
|
2277
|
+
name: "Text to Speech",
|
|
2278
|
+
description: "Read content aloud",
|
|
2279
|
+
toolA11y: "Text-to-speech tool",
|
|
2280
|
+
title: "Text-to-Speech",
|
|
2281
|
+
initializing: "Initializing…",
|
|
2282
|
+
initFailed: "Failed to initialize text-to-speech.",
|
|
2283
|
+
selectText: "Select text on the page to read it aloud.",
|
|
2284
|
+
speed: "Speed:",
|
|
2285
|
+
play: "Play",
|
|
2286
|
+
pause: "Pause",
|
|
2287
|
+
resume: "Resume",
|
|
2288
|
+
stop: "Stop",
|
|
2289
|
+
speaking: "Speaking…",
|
|
2290
|
+
paused: "Paused",
|
|
2291
|
+
charactersSelected: {
|
|
2292
|
+
one: "{count} character selected",
|
|
2293
|
+
other: "{count} characters selected"
|
|
2294
|
+
},
|
|
2295
|
+
rate: {
|
|
2296
|
+
slow: "Slow",
|
|
2297
|
+
slower: "Slower",
|
|
2298
|
+
normal: "Normal",
|
|
2299
|
+
faster: "Faster",
|
|
2300
|
+
fast: "Fast",
|
|
2301
|
+
veryFast: "Very Fast"
|
|
2302
|
+
},
|
|
2303
|
+
inline: {
|
|
2304
|
+
controlsA11y: "Reading controls",
|
|
2305
|
+
playbackSpeedA11y: "Playback speed",
|
|
2306
|
+
rewindA11y: "Rewind",
|
|
2307
|
+
fastForwardA11y: "Fast-forward",
|
|
2308
|
+
stopA11y: "Stop reading",
|
|
2309
|
+
initializing: "Initializing text-to-speech",
|
|
2310
|
+
initFailed: "Unable to initialize text-to-speech. Try again.",
|
|
2311
|
+
starting: "Starting reading",
|
|
2312
|
+
started: "Reading started",
|
|
2313
|
+
resumed: "Reading resumed",
|
|
2314
|
+
pausedAnnouncement: "Reading paused",
|
|
2315
|
+
stopped: "Reading stopped",
|
|
2316
|
+
switchedSection: "Reading switched to another section",
|
|
2317
|
+
startFailed: "Unable to start reading",
|
|
2318
|
+
skippedForward: "Skipped forward",
|
|
2319
|
+
skipForwardFailed: "Unable to skip forward",
|
|
2320
|
+
skippedBackward: "Skipped backward",
|
|
2321
|
+
skipBackwardFailed: "Unable to skip backward",
|
|
2322
|
+
speedChangeFailed: "Unable to change playback speed",
|
|
2323
|
+
speedAnnounce: "Playback speed {label}",
|
|
2324
|
+
playA11y: "Play reading",
|
|
2325
|
+
pauseA11y: "Pause reading",
|
|
2326
|
+
resumeA11y: "Resume reading"
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
signLanguage: {
|
|
2330
|
+
name: "Sign Language",
|
|
2331
|
+
description: "Signed alternate for authored content",
|
|
2332
|
+
generic: "Sign language",
|
|
2333
|
+
unknown: "Sign language ({code})",
|
|
2334
|
+
ase: "American Sign Language",
|
|
2335
|
+
bfi: "British Sign Language",
|
|
2336
|
+
fsl: "French Sign Language",
|
|
2337
|
+
gss: "Greek Sign Language",
|
|
2338
|
+
mfs: "Mexican Sign Language",
|
|
2339
|
+
signedEnglish: "Signed English",
|
|
2340
|
+
regionA11y: "{language} translation"
|
|
2341
|
+
},
|
|
2342
|
+
audioTranscript: {
|
|
2343
|
+
name: "Audio Transcript",
|
|
2344
|
+
description: "Text transcript of audio content",
|
|
2345
|
+
regionA11y: "Transcript"
|
|
2346
|
+
}
|
|
2347
|
+
},
|
|
2348
|
+
debug: {
|
|
2349
|
+
session: "Session",
|
|
2350
|
+
sessionData: "Session Data",
|
|
2351
|
+
sessionDataPersistent: "PIE Session Data (Persistent)",
|
|
2352
|
+
noItemSessionYet: "No item session data yet. Interact with the item to see updates here.",
|
|
2353
|
+
itemSessionsSnapshot: "Item Sessions Snapshot",
|
|
2354
|
+
sectionControllerUnavailable: "Section controller not available for this section yet.",
|
|
2355
|
+
filteredModel: "Filtered Model",
|
|
2356
|
+
environment: "Environment",
|
|
2357
|
+
events: "Events",
|
|
2358
|
+
controllerEvents: "Controller Events",
|
|
2359
|
+
instrumentation: "Instrumentation",
|
|
2360
|
+
databaseState: "Database state",
|
|
2361
|
+
sessionDb: "Session DB (Server)",
|
|
2362
|
+
noRows: "No rows",
|
|
2363
|
+
noRecords: "No instrumentation records yet.",
|
|
2364
|
+
selectRecord: "Select a record to inspect details.",
|
|
2365
|
+
selectEvent: "Select an event to inspect payload details.",
|
|
2366
|
+
showRawTables: "Show raw tables",
|
|
2367
|
+
showReconstructedSnapshots: "Show reconstructed snapshots",
|
|
2368
|
+
showSectionRequest: "Show section request",
|
|
2369
|
+
showAssessmentRequest: "Show assessment request",
|
|
2370
|
+
liveUpdatesUnsupported: "Live updates are not supported in this browser",
|
|
2371
|
+
liveUpdatesDisconnected: "Live updates disconnected; retrying…",
|
|
2372
|
+
fieldType: "Type:",
|
|
2373
|
+
fieldTarget: "Target:",
|
|
2374
|
+
fieldItem: "Item:",
|
|
2375
|
+
fieldCanonical: "Canonical:",
|
|
2376
|
+
fieldIntent: "Intent:",
|
|
2377
|
+
fieldDuplicates: "Duplicates:",
|
|
2378
|
+
fieldSemanticRepeats: "Semantic Repeats:",
|
|
2379
|
+
dragItemSessionPanelA11y: "Drag item session panel",
|
|
2380
|
+
debuggerTabsA11y: "Debugger tabs",
|
|
2381
|
+
sessionDataJsonA11y: "Session data JSON",
|
|
2382
|
+
environmentJsonA11y: "Environment JSON",
|
|
2383
|
+
filteredModelJsonA11y: "Filtered model JSON",
|
|
2384
|
+
sectionSessionJsonA11y: "Section session snapshot JSON",
|
|
2385
|
+
eventLevelFilterA11y: "Event level filter",
|
|
2386
|
+
controllerEventDetailsA11y: "Controller event details",
|
|
2387
|
+
instrumentationFilterA11y: "Filter instrumentation record type",
|
|
2388
|
+
instrumentationDetailsA11y: "Instrumentation record details",
|
|
2389
|
+
toggleSessionPanelA11y: "Toggle session panel",
|
|
2390
|
+
toggleEventPanelA11y: "Toggle event broadcast panel",
|
|
2391
|
+
toggleDatabasePanelA11y: "Toggle database state panel",
|
|
2392
|
+
toggleInstrumentationPanelA11y: "Toggle instrumentation panel",
|
|
2393
|
+
pnp: {
|
|
2394
|
+
title: "PNP Profile",
|
|
2395
|
+
noAssessmentBound: "No assessment bound",
|
|
2396
|
+
determinationReadOnly: "Determination (read-only)",
|
|
2397
|
+
toolsEditor: "Tools Editor",
|
|
2398
|
+
enforcement: "PNP enforcement",
|
|
2399
|
+
allAvailableTools: "All available tools",
|
|
2400
|
+
clearPlacement: "Clear placement",
|
|
2401
|
+
tool: "Tool",
|
|
2402
|
+
placement: "Placement",
|
|
2403
|
+
provider: "Provider",
|
|
2404
|
+
simulation: "PNP simulation",
|
|
2405
|
+
resolvedTools: "Resolved Tools (toolkit)",
|
|
2406
|
+
provenanceSummary: "Tool Policy Provenance Summary",
|
|
2407
|
+
perToolDecisions: "Per-Tool Decisions",
|
|
2408
|
+
profileReadOnly: "PNP Profile (read-only)"
|
|
2409
|
+
},
|
|
2410
|
+
tts: {
|
|
2411
|
+
title: "TTS settings",
|
|
2412
|
+
closeA11y: "Close TTS settings",
|
|
2413
|
+
toolbarLayoutMode: "Toolbar layout mode",
|
|
2414
|
+
reservedRow: "Reserved row",
|
|
2415
|
+
expandingRow: "Expanding row",
|
|
2416
|
+
floatingOverlay: "Floating overlay",
|
|
2417
|
+
leftAlignedControls: "Left-aligned controls",
|
|
2418
|
+
inlineSpeedButtons: "Inline speed buttons",
|
|
2419
|
+
resetToDefaults: "Reset to defaults",
|
|
2420
|
+
mathHighlighting: "Math highlighting",
|
|
2421
|
+
checkingAvailability: "Checking availability…",
|
|
2422
|
+
recheck: "Recheck",
|
|
2423
|
+
voice: "Voice",
|
|
2424
|
+
bestAvailableVoice: "Best available voice (auto)",
|
|
2425
|
+
unnamedVoice: "Unnamed voice",
|
|
2426
|
+
apiEndpoint: "API endpoint",
|
|
2427
|
+
gender: "Gender",
|
|
2428
|
+
any: "Any",
|
|
2429
|
+
male: "Male",
|
|
2430
|
+
female: "Female",
|
|
2431
|
+
neutral: "Neutral",
|
|
2432
|
+
engine: "Engine",
|
|
2433
|
+
neural: "Neural",
|
|
2434
|
+
standard: "Standard",
|
|
2435
|
+
providerDefault: "Provider default",
|
|
2436
|
+
format: "Format",
|
|
2437
|
+
sampleRate: "Sample rate",
|
|
2438
|
+
speechMarks: "Speech marks",
|
|
2439
|
+
word: "Word",
|
|
2440
|
+
wordAndSentence: "Word + sentence",
|
|
2441
|
+
voiceType: "Voice type",
|
|
2442
|
+
wavenetVoiceType: "WaveNet",
|
|
2443
|
+
studioVoiceType: "Studio",
|
|
2444
|
+
plainText: "Plain text",
|
|
2445
|
+
sampleText: "Sample text",
|
|
2446
|
+
resetSample: "Reset sample",
|
|
2447
|
+
providerAvailable: "Provider available.",
|
|
2448
|
+
providerUnavailable: "Provider unavailable.",
|
|
2449
|
+
providerCheckFailed: "Provider availability check failed.",
|
|
2450
|
+
providerNotChecked: "Provider availability has not been checked yet.",
|
|
2451
|
+
webSpeechUnavailable: "Web Speech API is not available in this browser.",
|
|
2452
|
+
browserNoVoices: "Browser text-to-speech is available, but no voices were returned yet.",
|
|
2453
|
+
browserUnavailable: "Browser text-to-speech is not available.",
|
|
2454
|
+
googleUnavailable: "Google Cloud TTS is not available from the configured API.",
|
|
2455
|
+
pollyUnavailable: "AWS Polly is not available from the configured API.",
|
|
2456
|
+
recommendedVoices: "Recommended voices",
|
|
2457
|
+
allVoices: "All available voices",
|
|
2458
|
+
previewVoice: "Preview voice",
|
|
2459
|
+
stopPreview: "Stop preview",
|
|
2460
|
+
applying: "Applying…",
|
|
2461
|
+
ssmlPreviewUnsupported: "SSML preview is not supported in the Browser backend.",
|
|
2462
|
+
pollySsmlHint: "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.",
|
|
2463
|
+
mathHighlightParts: "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.",
|
|
2464
|
+
mathHighlightBlock: "Highlighting each formula as a single block instead of breaking it into parts.",
|
|
2465
|
+
previewFailed: "Failed to play preview audio.",
|
|
2466
|
+
previewNoAudio: "Preview response did not include audio content.",
|
|
2467
|
+
previewEnterText: "Enter preview text before starting playback.",
|
|
2468
|
+
previewUnavailable: "Cannot preview while this service is unavailable.",
|
|
2469
|
+
browserSynthesisUnavailable: "Browser speech synthesis is unavailable.",
|
|
2470
|
+
browserSynthesisEndedEarly: "Browser speech synthesis ended before audio started. Restart the browser and try again.",
|
|
2471
|
+
browserSynthesisQueueFailed: "Browser speech synthesis failed to queue preview audio.",
|
|
2472
|
+
browserPreviewFailed: "Failed to play browser voice preview.",
|
|
2473
|
+
ssmlWordTrackingDisabled: "Google SSML preview preserves authored SSML, so word tracking is disabled.",
|
|
2474
|
+
applyUnavailable: "Cannot apply settings while this service is unavailable.",
|
|
2475
|
+
coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
}, aa = "en-US", oa = /* @__PURE__ */ new Set([
|
|
2479
|
+
"ar",
|
|
2480
|
+
"ckb",
|
|
2481
|
+
"dv",
|
|
2482
|
+
"fa",
|
|
2483
|
+
"he",
|
|
2484
|
+
"iw",
|
|
2485
|
+
"ks",
|
|
2486
|
+
"ku",
|
|
2487
|
+
"nqo",
|
|
2488
|
+
"ps",
|
|
2489
|
+
"sd",
|
|
2490
|
+
"syr",
|
|
2491
|
+
"ug",
|
|
2492
|
+
"ur",
|
|
2493
|
+
"yi"
|
|
2494
|
+
]), sa = /* @__PURE__ */ new Set([
|
|
2495
|
+
"zero",
|
|
2496
|
+
"one",
|
|
2497
|
+
"two",
|
|
2498
|
+
"few",
|
|
2499
|
+
"many",
|
|
2500
|
+
"other"
|
|
2501
|
+
]);
|
|
2502
|
+
function ca(e) {
|
|
2503
|
+
if (typeof e != "object" || !e) return !1;
|
|
2504
|
+
let t = Object.keys(e);
|
|
2505
|
+
return t.length > 0 && t.every((e) => sa.has(e));
|
|
2506
|
+
}
|
|
2507
|
+
function la(e) {
|
|
2508
|
+
try {
|
|
2509
|
+
let t = new Intl.Locale(e).textInfo;
|
|
2510
|
+
if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
|
|
2511
|
+
} catch {}
|
|
2512
|
+
let t = ta(e).split("-")[0] ?? "";
|
|
2513
|
+
return oa.has(t) ? "rtl" : "ltr";
|
|
2514
|
+
}
|
|
2515
|
+
var ua = class e {
|
|
2516
|
+
constructor(e = {}) {
|
|
2517
|
+
b(this, "locale", void 0), b(this, "fallbackLocale", void 0), b(this, "catalogs", void 0), b(this, "customMessages", void 0), b(this, "loading", void 0), b(this, "listeners", /* @__PURE__ */ new Set()), b(this, "config", void 0), this.config = { ...e }, this.fallbackLocale = da(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[aa, ia]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
|
|
2518
|
+
}
|
|
2519
|
+
async initialize(e) {
|
|
2520
|
+
if (this.config = {
|
|
2521
|
+
...this.config,
|
|
2522
|
+
...e
|
|
2523
|
+
}, e.customMessages) for (let [t, n] of Object.entries(e.customMessages)) this.addCustomMessages(t, n);
|
|
2524
|
+
await this.setLocale(e.locale ?? this.locale);
|
|
2525
|
+
}
|
|
2526
|
+
getLocale() {
|
|
2527
|
+
return this.locale;
|
|
2528
|
+
}
|
|
2529
|
+
async setLocale(e) {
|
|
2530
|
+
let t = this.resolveLocaleTag(e);
|
|
2531
|
+
if (!t) {
|
|
2532
|
+
this.locale = da(e) || "en-US", this.notify();
|
|
2533
|
+
return;
|
|
2534
|
+
}
|
|
2535
|
+
if (!this.catalogs.has(t)) {
|
|
2536
|
+
let e = this.loading.get(t);
|
|
2537
|
+
if (e) await e;
|
|
2538
|
+
else {
|
|
2539
|
+
let e = this.loadCatalog(t);
|
|
2540
|
+
this.loading.set(t, e);
|
|
2541
|
+
try {
|
|
2542
|
+
await e;
|
|
2543
|
+
} finally {
|
|
2544
|
+
this.loading.delete(t);
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
this.locale = t, this.notify();
|
|
2549
|
+
}
|
|
2550
|
+
t(e, t) {
|
|
2551
|
+
let n = this.lookup(e);
|
|
2552
|
+
return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : pa(n, t);
|
|
2553
|
+
}
|
|
2554
|
+
plural(e, t) {
|
|
2555
|
+
let n = this.lookupNode(e);
|
|
2556
|
+
return n === void 0 || !ca(n) ? this.t(e, t) : pa(n[this.selectPluralCategory(t.count)] ?? n.other, t);
|
|
2557
|
+
}
|
|
2558
|
+
getDirection() {
|
|
2559
|
+
return la(this.locale);
|
|
2560
|
+
}
|
|
2561
|
+
getAvailableLocales() {
|
|
2562
|
+
return [.../* @__PURE__ */ new Set([
|
|
2563
|
+
...this.catalogs.keys(),
|
|
2564
|
+
...this.config.availableLocales ?? [],
|
|
2565
|
+
...Object.keys(this.customMessages)
|
|
2566
|
+
])];
|
|
2567
|
+
}
|
|
2568
|
+
isLocaleLoaded(e) {
|
|
2569
|
+
let t = this.resolveLocaleTag(e);
|
|
2570
|
+
return t !== void 0 && this.catalogs.has(t);
|
|
2571
|
+
}
|
|
2572
|
+
subscribe(e) {
|
|
2573
|
+
return this.listeners.add(e), () => {
|
|
2574
|
+
this.listeners.delete(e);
|
|
2575
|
+
};
|
|
2576
|
+
}
|
|
2577
|
+
hasKey(e) {
|
|
2578
|
+
return this.lookup(e) !== void 0;
|
|
2579
|
+
}
|
|
2580
|
+
addCustomMessages(e, t) {
|
|
2581
|
+
let n = da(e);
|
|
2582
|
+
this.customMessages[n] = ma(this.customMessages[n] ?? {}, t), this.notify();
|
|
2583
|
+
}
|
|
2584
|
+
withLocale(t) {
|
|
2585
|
+
let n = this.resolveLocaleTag(t) ?? da(t);
|
|
2586
|
+
if (n === this.locale) return this;
|
|
2587
|
+
let r = new e({
|
|
2588
|
+
...this.config,
|
|
2589
|
+
locale: n
|
|
2590
|
+
});
|
|
2591
|
+
return r.locale = n || "en-US", r.catalogs = this.catalogs, r.customMessages = this.customMessages, r.loading = this.loading, r;
|
|
2592
|
+
}
|
|
2593
|
+
formatNumber(e, t) {
|
|
2594
|
+
try {
|
|
2595
|
+
return new Intl.NumberFormat(this.locale, t).format(e);
|
|
2596
|
+
} catch {
|
|
2597
|
+
return new Intl.NumberFormat(aa, t).format(e);
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
formatDate(e, t) {
|
|
2601
|
+
try {
|
|
2602
|
+
return new Intl.DateTimeFormat(this.locale, t).format(e);
|
|
2603
|
+
} catch {
|
|
2604
|
+
return new Intl.DateTimeFormat(aa, t).format(e);
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
getBundle(e = this.locale) {
|
|
2608
|
+
let t = this.resolveLocaleTag(e);
|
|
2609
|
+
if (!t) return;
|
|
2610
|
+
let n = this.catalogs.get(t);
|
|
2611
|
+
if (n) return {
|
|
2612
|
+
locale: t,
|
|
2613
|
+
translations: n,
|
|
2614
|
+
direction: la(t)
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
resolveLocaleTag(e) {
|
|
2618
|
+
if (!e) return;
|
|
2619
|
+
let t = this.getAvailableLocales(), n = ra(e, t);
|
|
2620
|
+
if (n) return n;
|
|
2621
|
+
let r = ta(e).split("-")[0];
|
|
2622
|
+
if (r) return t.find((e) => ta(e).split("-")[0] === r);
|
|
2623
|
+
}
|
|
2624
|
+
async loadCatalog(e) {
|
|
2625
|
+
let t = this.config.loadCatalog;
|
|
2626
|
+
if (t) try {
|
|
2627
|
+
this.catalogs.set(e, await t(e));
|
|
2628
|
+
} catch (t) {
|
|
2629
|
+
throw Error(`Failed to load i18n catalog for locale: ${e}`, { cause: t });
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
lookupNode(e) {
|
|
2633
|
+
let t = [
|
|
2634
|
+
this.customMessages[this.locale],
|
|
2635
|
+
this.catalogs.get(this.locale),
|
|
2636
|
+
this.customMessages[this.fallbackLocale],
|
|
2637
|
+
this.catalogs.get(this.fallbackLocale)
|
|
2638
|
+
];
|
|
2639
|
+
for (let n of t) {
|
|
2640
|
+
let t = fa(n, e);
|
|
2641
|
+
if (t !== void 0) return t;
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
lookup(e) {
|
|
2645
|
+
let t = this.lookupNode(e);
|
|
2646
|
+
if (typeof t == "string") return t;
|
|
2647
|
+
if (t !== void 0 && ca(t)) return t.other;
|
|
2648
|
+
}
|
|
2649
|
+
selectPluralCategory(t) {
|
|
2650
|
+
let n = e.pluralRules.get(this.locale);
|
|
2651
|
+
if (!n) {
|
|
2652
|
+
try {
|
|
2653
|
+
n = new Intl.PluralRules(this.locale);
|
|
2654
|
+
} catch {
|
|
2655
|
+
return t === 1 ? "one" : "other";
|
|
2656
|
+
}
|
|
2657
|
+
e.pluralRules.set(this.locale, n);
|
|
2658
|
+
}
|
|
2659
|
+
return n.select(t);
|
|
2660
|
+
}
|
|
2661
|
+
notify() {
|
|
2662
|
+
for (let e of this.listeners) e();
|
|
2663
|
+
}
|
|
2664
|
+
};
|
|
2665
|
+
b(ua, "pluralRules", /* @__PURE__ */ new Map());
|
|
2666
|
+
function da(e) {
|
|
2667
|
+
return e ? e.trim().replace(/_/g, "-") : "";
|
|
2668
|
+
}
|
|
2669
|
+
function fa(e, t) {
|
|
2670
|
+
if (!e) return;
|
|
2671
|
+
let n = e;
|
|
2672
|
+
for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
|
|
2673
|
+
return n;
|
|
2674
|
+
}
|
|
2675
|
+
function pa(e, t) {
|
|
2676
|
+
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
2677
|
+
let r = t[n];
|
|
2678
|
+
return r == null ? e : String(r);
|
|
2679
|
+
}) : e;
|
|
2680
|
+
}
|
|
2681
|
+
function ma(e, t) {
|
|
2682
|
+
let n = { ...e };
|
|
2683
|
+
for (let [e, r] of Object.entries(t)) {
|
|
2684
|
+
let t = n[e];
|
|
2685
|
+
n[e] = r && typeof r == "object" && t && typeof t == "object" ? ma(t, r) : r;
|
|
2686
|
+
}
|
|
2687
|
+
return n;
|
|
2688
|
+
}
|
|
2689
|
+
var ha;
|
|
2690
|
+
function ga() {
|
|
2691
|
+
return ha ||= new ua(), ha;
|
|
2692
|
+
}
|
|
2693
|
+
function _a(e) {
|
|
2694
|
+
let t = e?.i18n ?? ga();
|
|
2695
|
+
return {
|
|
2696
|
+
getLocale: () => t.getLocale(),
|
|
2697
|
+
setLocale: (e) => t.setLocale(e),
|
|
2698
|
+
t: (e, n) => t.t(e, n),
|
|
2699
|
+
plural: (e, n) => t.plural?.(e, n) ?? t.t(e, n),
|
|
2700
|
+
getDirection: () => t.getDirection?.() ?? "ltr",
|
|
2701
|
+
hasKey: (e) => t.hasKey?.(e) ?? !1,
|
|
2702
|
+
subscribe: (e) => t.subscribe?.(e) ?? (() => {})
|
|
2703
|
+
};
|
|
2704
|
+
}
|
|
2705
|
+
var va = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__loading svelte-sun9kf\"> </div>"), ya = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__error-details svelte-sun9kf\"> </div>"), ba = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-sun9kf\">Calculator failed to initialize. <!></div>"), xa = /* @__PURE__ */ li("<div class=\"pie-tool-calculator notranslate svelte-sun9kf\" role=\"region\" tabindex=\"-1\" translate=\"no\" style=\"width: 100%; height: 100%;\"><div class=\"pie-tool-calculator__container svelte-sun9kf\"></div> <!> <!></div>"), Sa = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__context-host svelte-sun9kf\"><!></div>"), Ca = {
|
|
1962
2706
|
hash: "svelte-sun9kf",
|
|
1963
2707
|
code: ".pie-tool-calculator__context-host.svelte-sun9kf {width:100%;height:100%;display:flex;min-height:0;}.pie-tool-calculator.svelte-sun9kf {position:relative;\n /* Frame follows the theme; the Desmos mount below keeps its own white,\n because the third-party calculator paints a white UI and a themed mount\n would only band it. */background:var(--pie-white, white);overflow:hidden;min-width:100%;min-height:0;display:flex;flex-direction:column;flex:1 1 auto;}.pie-tool-calculator__container.svelte-sun9kf {\n /* Desmos paints its own white UI here — deliberately not themed. */background:white;width:100%;height:100%;min-width:100%;min-height:100%;position:relative;overflow:hidden;}.pie-tool-calculator__loading.svelte-sun9kf {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;z-index:2;}.pie-tool-calculator__loading--error.svelte-sun9kf {color:var(--pie-incorrect, #b91c1c);flex-direction:column;gap:0.5rem;padding:0.75rem;text-align:center;}.pie-tool-calculator__error-details.svelte-sun9kf {font-size:0.8rem;line-height:1.2;color:var(--pie-incorrect, #7f1d1d);max-width:95%;word-break:break-word;}.pie-tool-calculator__container .dcg-container {width:100% !important;height:100% !important;}"
|
|
1964
2708
|
};
|
|
1965
|
-
function
|
|
1966
|
-
|
|
2709
|
+
function wa(t, n) {
|
|
2710
|
+
Ye(n, !0), ki(t, Ca);
|
|
1967
2711
|
let r = Ki(n, "visible", 7, !1), i = Ki(n, "toolId", 7, "calculator"), a = Ki(n, "calculatorType", 7, "basic"), o = Ki(n, "availableTypes", 23, () => [
|
|
1968
2712
|
"basic",
|
|
1969
2713
|
"scientific",
|
|
1970
2714
|
"graphing"
|
|
1971
|
-
]), s = Ki(n, "toolkitCoordinator", 7, null), c = /* @__PURE__ */ V(null), l = /* @__PURE__ */ V(null), u = /* @__PURE__ */ Wt(() => s() ?? Q(l)?.toolkitCoordinator),
|
|
2715
|
+
]), s = Ki(n, "toolkitCoordinator", 7, null), c = /* @__PURE__ */ V(null), l = /* @__PURE__ */ V(null), u = /* @__PURE__ */ Wt(() => _a(Q(l))), d = /* @__PURE__ */ Wt(() => s() ?? Q(l)?.toolkitCoordinator), f = /* @__PURE__ */ Wt(() => typeof o() == "string" ? o().split(",").map((e) => e.trim()) : o()), p = /* @__PURE__ */ V(void 0), m = /* @__PURE__ */ V(null), h = /* @__PURE__ */ V("basic"), g = /* @__PURE__ */ V(!1), ee = /* @__PURE__ */ V(!1), _ = /* @__PURE__ */ V(!1), v = /* @__PURE__ */ V(null), y = /* @__PURE__ */ V(!1);
|
|
1972
2716
|
fr(() => {
|
|
1973
2717
|
if (Q(c)) return e(Q(c), (e) => {
|
|
1974
2718
|
H(l, e, !0);
|
|
1975
2719
|
});
|
|
1976
2720
|
});
|
|
1977
|
-
function
|
|
2721
|
+
function te() {
|
|
1978
2722
|
return "calculator-desmos";
|
|
1979
2723
|
}
|
|
1980
|
-
async function
|
|
2724
|
+
async function ne(e) {
|
|
1981
2725
|
if (console.log("[ToolCalculator] getProvider called", {
|
|
1982
2726
|
type: e,
|
|
1983
|
-
hasToolkitCoordinator: !!Q(
|
|
1984
|
-
hasRegistry: !!Q(
|
|
1985
|
-
}), !Q(
|
|
2727
|
+
hasToolkitCoordinator: !!Q(d),
|
|
2728
|
+
hasRegistry: !!Q(d)?.toolProviderRegistry
|
|
2729
|
+
}), !Q(d)?.toolProviderRegistry) return console.warn("[ToolCalculator] No toolkitCoordinator or registry available"), null;
|
|
1986
2730
|
try {
|
|
1987
|
-
let e =
|
|
2731
|
+
let e = te();
|
|
1988
2732
|
console.log(`[ToolCalculator] Requesting ${e} provider from registry`);
|
|
1989
|
-
let t = await Q(
|
|
2733
|
+
let t = await Q(d).toolProviderRegistry.getProvider(e);
|
|
1990
2734
|
return console.log("[ToolCalculator] Got provider from registry:", t), t;
|
|
1991
2735
|
} catch (e) {
|
|
1992
2736
|
return console.error("[ToolCalculator] Failed to get provider:", e), null;
|
|
1993
2737
|
}
|
|
1994
2738
|
}
|
|
1995
|
-
function
|
|
2739
|
+
function b(e) {
|
|
1996
2740
|
return e ? e.childElementCount > 0 || !!e.querySelector(".dcg-container,.dcg-calculator-api-container,iframe,canvas") : !1;
|
|
1997
2741
|
}
|
|
1998
|
-
function
|
|
2742
|
+
function x(e) {
|
|
1999
2743
|
if (e) for (let t of [
|
|
2000
2744
|
60,
|
|
2001
2745
|
250,
|
|
@@ -2007,29 +2751,29 @@ function sa(t, n) {
|
|
|
2007
2751
|
} catch {}
|
|
2008
2752
|
}, t);
|
|
2009
2753
|
}
|
|
2010
|
-
async function
|
|
2011
|
-
if (!e || !await
|
|
2754
|
+
async function S(e, t, n = 8e3) {
|
|
2755
|
+
if (!e || !await re(e, n)) return !1;
|
|
2012
2756
|
H(y, !0);
|
|
2013
2757
|
try {
|
|
2014
2758
|
t?.resize?.();
|
|
2015
2759
|
} catch {}
|
|
2016
2760
|
return !0;
|
|
2017
2761
|
}
|
|
2018
|
-
async function
|
|
2762
|
+
async function re(e, t = 3e3) {
|
|
2019
2763
|
if (!e) return !1;
|
|
2020
2764
|
let n = Date.now();
|
|
2021
2765
|
for (; Date.now() - n < t;) {
|
|
2022
2766
|
if (!e.isConnected) return !1;
|
|
2023
|
-
if (
|
|
2767
|
+
if (b(e)) return !0;
|
|
2024
2768
|
await new Promise((e) => setTimeout(e, 100));
|
|
2025
2769
|
}
|
|
2026
|
-
return
|
|
2770
|
+
return b(e);
|
|
2027
2771
|
}
|
|
2028
|
-
function
|
|
2772
|
+
function ie() {
|
|
2029
2773
|
requestAnimationFrame(() => {
|
|
2030
2774
|
try {
|
|
2031
2775
|
if (!r()) return;
|
|
2032
|
-
let e = Q(
|
|
2776
|
+
let e = Q(m), t = Q(p);
|
|
2033
2777
|
if (!e || !t || !t.isConnected) return;
|
|
2034
2778
|
let n = document.activeElement;
|
|
2035
2779
|
if (n instanceof Node && t.contains(n)) return;
|
|
@@ -2037,7 +2781,7 @@ function sa(t, n) {
|
|
|
2037
2781
|
} catch {}
|
|
2038
2782
|
});
|
|
2039
2783
|
}
|
|
2040
|
-
function
|
|
2784
|
+
function ae(e, t) {
|
|
2041
2785
|
return new Promise((n) => {
|
|
2042
2786
|
let r = e;
|
|
2043
2787
|
function i() {
|
|
@@ -2050,7 +2794,7 @@ function sa(t, n) {
|
|
|
2050
2794
|
i();
|
|
2051
2795
|
});
|
|
2052
2796
|
}
|
|
2053
|
-
function
|
|
2797
|
+
function oe(e) {
|
|
2054
2798
|
let t = e === "graphing";
|
|
2055
2799
|
return {
|
|
2056
2800
|
theme: "light",
|
|
@@ -2066,41 +2810,41 @@ function sa(t, n) {
|
|
|
2066
2810
|
}
|
|
2067
2811
|
};
|
|
2068
2812
|
}
|
|
2069
|
-
let
|
|
2070
|
-
async function
|
|
2813
|
+
let se = /* @__PURE__ */ V(qn(oe("basic")));
|
|
2814
|
+
async function ce() {
|
|
2071
2815
|
if (console.log("[ToolCalculator] initCalculator called", {
|
|
2072
|
-
isInitializing: Q(
|
|
2073
|
-
isSwitching: Q(
|
|
2074
|
-
hasCalculatorInstance: !!Q(
|
|
2075
|
-
hasContainerEl: !!Q(
|
|
2816
|
+
isInitializing: Q(g),
|
|
2817
|
+
isSwitching: Q(ee),
|
|
2818
|
+
hasCalculatorInstance: !!Q(m),
|
|
2819
|
+
hasContainerEl: !!Q(p),
|
|
2076
2820
|
initializationFailed: Q(_),
|
|
2077
|
-
hasToolkitCoordinator: !!Q(
|
|
2078
|
-
hasRegistry: !!Q(
|
|
2079
|
-
}), Q(
|
|
2821
|
+
hasToolkitCoordinator: !!Q(d),
|
|
2822
|
+
hasRegistry: !!Q(d)?.toolProviderRegistry
|
|
2823
|
+
}), Q(g) || Q(ee) || Q(m) || !Q(p) || Q(_)) {
|
|
2080
2824
|
console.log("[ToolCalculator] Early return from initCalculator");
|
|
2081
2825
|
return;
|
|
2082
2826
|
}
|
|
2083
|
-
H(
|
|
2827
|
+
H(g, !0);
|
|
2084
2828
|
try {
|
|
2085
|
-
Q(
|
|
2086
|
-
requested: Q(
|
|
2087
|
-
availableTypes: Q(
|
|
2088
|
-
fallback: Q(
|
|
2089
|
-
}), H(
|
|
2090
|
-
let e = await
|
|
2829
|
+
Q(f).includes(Q(h)) || (console.log("[ToolCalculator] Calculator type not available, using fallback", {
|
|
2830
|
+
requested: Q(h),
|
|
2831
|
+
availableTypes: Q(f),
|
|
2832
|
+
fallback: Q(f)[0] || "basic"
|
|
2833
|
+
}), H(h, Q(f)[0] || "basic", !0)), console.log("[ToolCalculator] Getting provider for type:", Q(h));
|
|
2834
|
+
let e = await ne(Q(h));
|
|
2091
2835
|
if (console.log("[ToolCalculator] Got tool provider:", e), !e) throw Error("Desmos calculator tool provider not available");
|
|
2092
2836
|
console.log("[ToolCalculator] Creating calculator provider instance");
|
|
2093
2837
|
let t = await e.createInstance();
|
|
2094
|
-
if (console.log("[ToolCalculator] Got calculator provider:", t), !Q(
|
|
2838
|
+
if (console.log("[ToolCalculator] Got calculator provider:", t), !Q(p) || Q(m) || Q(ee)) {
|
|
2095
2839
|
console.log("[ToolCalculator] Aborting due to state change");
|
|
2096
2840
|
return;
|
|
2097
2841
|
}
|
|
2098
2842
|
console.log("[ToolCalculator] Creating calculator with config:", {
|
|
2099
|
-
type: Q(
|
|
2100
|
-
hasContainer: !!Q(
|
|
2101
|
-
config: Q(
|
|
2843
|
+
type: Q(h),
|
|
2844
|
+
hasContainer: !!Q(p),
|
|
2845
|
+
config: Q(se)
|
|
2102
2846
|
});
|
|
2103
|
-
let n = Q(
|
|
2847
|
+
let n = Q(p);
|
|
2104
2848
|
if (!n || !n.isConnected) {
|
|
2105
2849
|
console.warn("[ToolCalculator] Calculator container unavailable before mount");
|
|
2106
2850
|
return;
|
|
@@ -2109,53 +2853,53 @@ function sa(t, n) {
|
|
|
2109
2853
|
console.warn("[ToolCalculator] Calculator container disconnected before init");
|
|
2110
2854
|
return;
|
|
2111
2855
|
}
|
|
2112
|
-
H(
|
|
2856
|
+
H(m, await t.createCalculator(Q(h), n, Q(se)), !0), await ae(2), Q(m)?.resize?.(), x(Q(m)), H(y, !1), await S(n, Q(m), 4e3) || (console.warn("[ToolCalculator] Calculator mount pending after init; keeping instance and monitoring"), S(n, Q(m), 12e3)), console.log("[ToolCalculator] Calculator instance created:", Q(m)), H(_, !1), H(v, null), H(y, b(n), !0), console.log(`[ToolCalculator] ${Q(h)} calculator initialized successfully`), Q(y) && ie();
|
|
2113
2857
|
} catch (e) {
|
|
2114
|
-
H(_, !0), H(v, e instanceof Error ? e.message : String(e), !0), console.error("[ToolCalculator] Failed to initialize calculator:", e), H(
|
|
2858
|
+
H(_, !0), H(v, e instanceof Error ? e.message : String(e), !0), console.error("[ToolCalculator] Failed to initialize calculator:", e), H(m, null), H(y, !1);
|
|
2115
2859
|
} finally {
|
|
2116
|
-
H(
|
|
2860
|
+
H(g, !1);
|
|
2117
2861
|
}
|
|
2118
2862
|
}
|
|
2119
2863
|
fr(() => {
|
|
2120
|
-
!a() || !Q(
|
|
2121
|
-
}), Di(() => (r() &&
|
|
2122
|
-
Q(
|
|
2864
|
+
!a() || !Q(f).includes(a()) || H(h, a());
|
|
2865
|
+
}), Di(() => (r() && ce(), () => {
|
|
2866
|
+
Q(m)?.destroy();
|
|
2123
2867
|
})), fr(() => {
|
|
2124
2868
|
if (!r()) {
|
|
2125
|
-
if (Q(
|
|
2126
|
-
Q(
|
|
2869
|
+
if (Q(m)) try {
|
|
2870
|
+
Q(m).destroy();
|
|
2127
2871
|
} catch (e) {
|
|
2128
2872
|
console.warn("[ToolCalculator] Error destroying calculator on hide:", e);
|
|
2129
2873
|
} finally {
|
|
2130
|
-
H(
|
|
2874
|
+
H(m, null);
|
|
2131
2875
|
}
|
|
2132
2876
|
H(_, !1), H(v, null), H(y, !1);
|
|
2133
2877
|
return;
|
|
2134
2878
|
}
|
|
2135
|
-
!Q(
|
|
2136
|
-
r() && Q(
|
|
2879
|
+
!Q(m) && !Q(g) && !Q(ee) && !Q(_) && (Q(p)?.isConnected ? ce() : queueMicrotask(() => {
|
|
2880
|
+
r() && Q(p)?.isConnected && !Q(m) && !Q(g) && !Q(ee) && !Q(_) && ce();
|
|
2137
2881
|
}));
|
|
2138
2882
|
}), fr(() => {
|
|
2139
|
-
r() && Q(
|
|
2883
|
+
r() && Q(m) && Q(y) && ie();
|
|
2140
2884
|
});
|
|
2141
2885
|
let C = null;
|
|
2142
2886
|
fr(() => {
|
|
2143
|
-
if (r() && Q(
|
|
2887
|
+
if (r() && Q(p) && Q(m) && Q(p).isConnected) return C ||= new ResizeObserver((e) => {
|
|
2144
2888
|
for (let t of e) if (!t.target.isConnected) {
|
|
2145
2889
|
C?.unobserve(t.target);
|
|
2146
2890
|
return;
|
|
2147
2891
|
}
|
|
2148
|
-
if (Q(
|
|
2149
|
-
Q(
|
|
2892
|
+
if (Q(m)?.resize && Q(p)?.isConnected && r()) try {
|
|
2893
|
+
Q(m).resize();
|
|
2150
2894
|
} catch (e) {
|
|
2151
|
-
console.warn("[ToolCalculator] Error during resize:", e), C && Q(
|
|
2895
|
+
console.warn("[ToolCalculator] Error during resize:", e), C && Q(p) && C.unobserve(Q(p));
|
|
2152
2896
|
}
|
|
2153
|
-
}), C.observe(Q(
|
|
2154
|
-
C && Q(
|
|
2897
|
+
}), C.observe(Q(p)), () => {
|
|
2898
|
+
C && Q(p) && C.unobserve(Q(p)), C?.disconnect(), C = null;
|
|
2155
2899
|
};
|
|
2156
|
-
C &&= (Q(
|
|
2900
|
+
C &&= (Q(p) && C.unobserve(Q(p)), C.disconnect(), null);
|
|
2157
2901
|
});
|
|
2158
|
-
var
|
|
2902
|
+
var le = {
|
|
2159
2903
|
get visible() {
|
|
2160
2904
|
return r();
|
|
2161
2905
|
},
|
|
@@ -2190,35 +2934,40 @@ function sa(t, n) {
|
|
|
2190
2934
|
set toolkitCoordinator(e = null) {
|
|
2191
2935
|
s(e), jn();
|
|
2192
2936
|
}
|
|
2193
|
-
},
|
|
2194
|
-
var t =
|
|
2195
|
-
Gi(n, (e) => H(
|
|
2937
|
+
}, ue = Sa(), de = nr(ue), fe = (e) => {
|
|
2938
|
+
var t = xa(), n = nr(t);
|
|
2939
|
+
Gi(n, (e) => H(p, e), () => Q(p));
|
|
2196
2940
|
var a = rr(n, 2), o = (e) => {
|
|
2197
|
-
|
|
2941
|
+
var t = va(), n = nr(t, !0);
|
|
2942
|
+
Ve(t), yr((e) => pi(n, e), [() => Q(u).t("tools.calculator.loading")]), ui(e, t);
|
|
2198
2943
|
};
|
|
2199
2944
|
Oi(a, (e) => {
|
|
2200
|
-
(Q(
|
|
2945
|
+
(Q(g) || Q(ee) || r() && !Q(_) && !Q(y)) && e(o);
|
|
2201
2946
|
});
|
|
2202
2947
|
var s = rr(a, 2), c = (e) => {
|
|
2203
|
-
var t =
|
|
2204
|
-
var t =
|
|
2205
|
-
|
|
2948
|
+
var t = ba(), n = rr(nr(t)), r = (e) => {
|
|
2949
|
+
var t = ya(), n = nr(t, !0);
|
|
2950
|
+
Ve(t), yr(() => pi(n, Q(v))), ui(e, t);
|
|
2206
2951
|
};
|
|
2207
2952
|
Oi(n, (e) => {
|
|
2208
2953
|
Q(v) && e(r);
|
|
2209
|
-
}),
|
|
2954
|
+
}), Ve(t), ui(e, t);
|
|
2210
2955
|
};
|
|
2211
2956
|
Oi(s, (e) => {
|
|
2212
2957
|
Q(_) && e(c);
|
|
2213
|
-
}),
|
|
2214
|
-
Ni(t, "data-tool-id", i()), Ni(n, "data-calculator-type", Q(
|
|
2215
|
-
}
|
|
2958
|
+
}), Ve(t), yr((e, r, a) => {
|
|
2959
|
+
Ni(t, "data-tool-id", i()), Ni(t, "lang", e), Ni(t, "dir", r), Ni(t, "aria-label", a), Ni(n, "data-calculator-type", Q(h)), t.dir = t.dir;
|
|
2960
|
+
}, [
|
|
2961
|
+
() => Q(u).getLocale(),
|
|
2962
|
+
() => Q(u).getDirection?.() ?? "ltr",
|
|
2963
|
+
() => Q(u).t("tools.calculator.toolA11y")
|
|
2964
|
+
]), ui(e, t);
|
|
2216
2965
|
};
|
|
2217
|
-
return Oi(
|
|
2218
|
-
r() && e(
|
|
2219
|
-
}),
|
|
2966
|
+
return Oi(de, (e) => {
|
|
2967
|
+
r() && e(fe);
|
|
2968
|
+
}), Ve(ue), Gi(ue, (e) => H(c, e), () => Q(c)), ui(t, ue), Xe(le);
|
|
2220
2969
|
}
|
|
2221
|
-
customElements.define("pie-tool-calculator", ea(
|
|
2970
|
+
customElements.define("pie-tool-calculator", ea(wa, {
|
|
2222
2971
|
visible: {
|
|
2223
2972
|
attribute: "visible",
|
|
2224
2973
|
type: "Boolean"
|
|
@@ -2238,6 +2987,6 @@ customElements.define("pie-tool-calculator", ea(sa, {
|
|
|
2238
2987
|
toolkitCoordinator: { type: "Object" }
|
|
2239
2988
|
}, [], []));
|
|
2240
2989
|
//#endregion
|
|
2241
|
-
export {
|
|
2990
|
+
export { wa as default };
|
|
2242
2991
|
|
|
2243
|
-
//# sourceMappingURL=pie-tool-calculator-
|
|
2992
|
+
//# sourceMappingURL=pie-tool-calculator-BiWMTJe7.js.map
|