hyperbook 0.113.1 → 0.113.3

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.
Files changed (55) hide show
  1. package/dist/asset-manifest.json +9 -9
  2. package/dist/assets/directive-bitflow/{EditorElement-zyz99U6n.js → EditorElement-BNwEKIvk.js} +258 -258
  3. package/dist/assets/directive-bitflow/{ReportElements-BnX14NtV.js → ReportElements-CAvHx5xm.js} +2 -2
  4. package/dist/assets/directive-bitflow/{bitLoaders-DIGwTcpd.js → bitLoaders-7qanePQL.js} +1138 -1073
  5. package/dist/assets/directive-bitflow/{dom-uYx_3K1r.js → dom-B6NPWBb1.js} +1558 -1551
  6. package/dist/assets/directive-bitflow/editor.js +3 -3
  7. package/dist/assets/directive-bitflow/flow.js +4 -4
  8. package/dist/assets/directive-bitflow/{index-BseSaQlX.js → index-4JaKZ7WT.js} +2 -2
  9. package/dist/assets/directive-bitflow/{index-e_8twLaN.js → index-6CQr_atd.js} +120 -120
  10. package/dist/assets/directive-bitflow/{index-COndsSPW.js → index-B9iG-a48.js} +9 -9
  11. package/dist/assets/directive-bitflow/{index-C5czXkRd.js → index-BFYoOtcY.js} +36 -36
  12. package/dist/assets/directive-bitflow/{index-YPMWh-1B.js → index-BI6aFdIS.js} +21 -21
  13. package/dist/assets/directive-bitflow/{index-D7m-hJZ9.js → index-Bf078mfo.js} +69 -69
  14. package/dist/assets/directive-bitflow/{index-Bf_FQRbK.js → index-BinE5Wvd.js} +19 -19
  15. package/dist/assets/directive-bitflow/{index-CFcRAa3F.js → index-BoX5-jkC.js} +31 -31
  16. package/dist/assets/directive-bitflow/{index-NyNuXp4C.js → index-BqRsXShM.js} +34 -34
  17. package/dist/assets/directive-bitflow/{index-Fr7yl4Vn.js → index-BxihQ8Oo.js} +21 -21
  18. package/dist/assets/directive-bitflow/{index-B3jMTk1o.js → index-C5YguHZU.js} +101 -101
  19. package/dist/assets/directive-bitflow/{index-XxGfBwJe.js → index-C8zwSmE6.js} +27 -27
  20. package/dist/assets/directive-bitflow/{index-BLcJNyog.js → index-C9JSBTNc.js} +91 -91
  21. package/dist/assets/directive-bitflow/{index-CjscG0z6.js → index-CCMI6UK4.js} +75 -75
  22. package/dist/assets/directive-bitflow/{index-CK1UMcfT.js → index-CGDt8H6s.js} +24 -24
  23. package/dist/assets/directive-bitflow/{index-xapm2BQE.js → index-Ca1v0pjV.js} +102 -92
  24. package/dist/assets/directive-bitflow/{index-IQHOi2fr.js → index-CaYn3Gmh.js} +31 -31
  25. package/dist/assets/directive-bitflow/{index-BpG316Ls.js → index-CbQue0If.js} +67 -67
  26. package/dist/assets/directive-bitflow/{index-CzdZQibq.js → index-CjH3h0OO.js} +79 -79
  27. package/dist/assets/directive-bitflow/{index-B7Z6Q-PQ.js → index-CkO3QfOS.js} +8 -8
  28. package/dist/assets/directive-bitflow/{index-BIJ7VfD2.js → index-Cz4i5rfe.js} +39 -39
  29. package/dist/assets/directive-bitflow/{index-8jTO-NJA.js → index-D0NtgeiX.js} +85 -85
  30. package/dist/assets/directive-bitflow/{index-DtsDy2By.js → index-D1C_1SPY.js} +14 -14
  31. package/dist/assets/directive-bitflow/{index-BdBBCZSy.js → index-D45u7EVR.js} +227 -194
  32. package/dist/assets/directive-bitflow/{index-cnRM_JDB.js → index-D9Ox4YpM.js} +33 -33
  33. package/dist/assets/directive-bitflow/{index-Bqf-kixT.js → index-DJ1w2Xcm.js} +46 -46
  34. package/dist/assets/directive-bitflow/{index-BQ5h4nDN.js → index-DUqW2fmV.js} +94 -94
  35. package/dist/assets/directive-bitflow/{index-ChgzyMHe.js → index-Deedj9EF.js} +25 -25
  36. package/dist/assets/directive-bitflow/{index-CZyaFdD2.js → index-Dg6nnY_v.js} +68 -68
  37. package/dist/assets/directive-bitflow/{index-kRpwcprB.js → index-DgxEzomz.js} +2 -2
  38. package/dist/assets/directive-bitflow/{index-D5yZNeIg.js → index-Dl0-ZAT5.js} +52 -52
  39. package/dist/assets/directive-bitflow/{index-DnVYIuen.js → index-Do6dmZyj.js} +42 -42
  40. package/dist/assets/directive-bitflow/{index-DjWNEPDL.js → index-DqnGC-DU.js} +31 -31
  41. package/dist/assets/directive-bitflow/{index-ivI25bnR.js → index-DwXXeSwk.js} +73 -73
  42. package/dist/assets/directive-bitflow/{index-Bf_NXJjq.js → index-b6qwcTj9.js} +15 -15
  43. package/dist/assets/directive-bitflow/{index-Fq7njn6_.js → index-d105UFQI.js} +58 -58
  44. package/dist/assets/directive-bitflow/{index-CW9iev-_.js → index-jijMWQB6.js} +8 -8
  45. package/dist/assets/directive-bitflow/{index-C_ZTSeqv.js → index-kxO5_U9Y.js} +24 -24
  46. package/dist/assets/directive-bitflow/{index-DoKlIgCD.js → index-p5AOgOal.js} +35 -35
  47. package/dist/assets/directive-bitflow/{index-CvCZVgKv.js → index-q2APknM6.js} +46 -46
  48. package/dist/assets/directive-bitflow/{index-eN2S_MLj.js → index-zVkWgm5I.js} +70 -70
  49. package/dist/assets/directive-bitflow/index.js +6 -6
  50. package/dist/assets/directive-bitflow/katex-DSLAjWZH-CHGN3Pr6.js +11314 -0
  51. package/dist/assets/directive-bitflow/katex-Dv-tcU2S-Dv-tcU2S.js +4 -0
  52. package/dist/assets/directive-bitflow/report.js +1 -1
  53. package/dist/assets/directive-bitflow/{shareableReport-ArQU1XjG.js → shareableReport-mdyEMdsJ.js} +6 -6
  54. package/dist/index.js +1 -1
  55. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
- import { L as V, ak as Fe, P as M, a2 as E, a as L, j as t, a5 as Me, aj as $e, ac as Ee, ad as ve, a9 as De, a4 as ue, b as D, aa as Pe, s as Re } from "./dom-uYx_3K1r.js";
2
- import { v as We, y as ke, A as z, t as G, e as Oe, P as Ve, M as Ke, E as Ie, s as Ge, L as Ze, R as qe } from "./bitLoaders-DIGwTcpd.js";
3
- const B = (e, o) => {
1
+ import { P as V, ak as Fe, Y as M, a2 as E, a as L, j as t, a5 as Me, aj as $e, ac as Ee, ad as ve, a9 as De, a4 as ue, b as D, aa as Pe, s as Re } from "./dom-B6NPWBb1.js";
2
+ import { e as We, C as ke, g as z, r as B, P as Oe, M as Ve, F as Ke, B as Ie, y as Be, U as Ge, H as Ze } from "./bitLoaders-7qanePQL.js";
3
+ const q = (e, o) => {
4
4
  const l = $e(e, { variables: { x: o } });
5
5
  return l.ok ? l.rest !== "" ? { ok: !1, error: "trailing" } : { ok: !0, value: l.value } : { ok: !1, error: l.error };
6
6
  }, ee = (e) => (o) => {
7
- const l = B(e, o);
7
+ const l = q(e, o);
8
8
  return l.ok ? l.value : NaN;
9
- }, Be = {
9
+ }, qe = {
10
10
  empty: "Enter a function of x, like “0.5x^2 - 2”.",
11
11
  tooLong: "That is too long to be a function of x.",
12
12
  syntax: "That is not arithmetic the task can work out. It accepts + − × ÷ ^, sqrt, sin, cos, exp, ln, abs, pi, e, and x.",
@@ -19,20 +19,20 @@ const B = (e, o) => {
19
19
  expressionNotAllowed: "Enter a valid function of x.",
20
20
  notFinite: "That is not a finite number at every handle — check for something like dividing by zero or the square root of a negative number.",
21
21
  trailing: "There is text left over after the function — check for a stray character."
22
- }, fe = (e) => Be[e], H = (e) => String(e), Ye = 1e-9, ne = (e, o) => {
22
+ }, fe = (e) => qe[e], H = (e) => String(e), Ye = 1e-9, ne = (e, o) => {
23
23
  const l = ee(e.target), r = {};
24
24
  for (const a of e.handles) {
25
25
  const i = o?.values?.[H(a)];
26
26
  r[H(a)] = i !== void 0 && Number.isFinite(i) && Math.abs(i - l(a)) <= e.tolerance + Ye ? "correct" : "wrong";
27
27
  }
28
28
  return r;
29
- }, _e = (e, o) => {
29
+ }, Ue = (e, o) => {
30
30
  const l = Object.values(ne(e, o));
31
31
  return {
32
32
  earned: l.filter((r) => r === "correct").length,
33
33
  possible: l.length
34
34
  };
35
- }, Ue = (e, o) => {
35
+ }, _e = (e, o) => {
36
36
  const l = Object.values(ne(e, o));
37
37
  return l.length > 0 && l.every((r) => r === "correct");
38
38
  }, Je = ({
@@ -41,14 +41,14 @@ const B = (e, o) => {
41
41
  }) => {
42
42
  if (e.evaluation.mode === "skip")
43
43
  return { state: "unknown", allowRetry: !1 };
44
- const l = Ue(e, o), r = _e(e, o), a = e.partialCredit && r.possible > 0 ? r : { earned: l ? 1 : 0, possible: 1 };
44
+ const l = _e(e, o), r = Ue(e, o), a = e.partialCredit && r.possible > 0 ? r : { earned: l ? 1 : 0, possible: 1 };
45
45
  return {
46
46
  state: l ? "correct" : "wrong",
47
47
  score: a,
48
48
  allowRetry: e.evaluation.enableRetry,
49
49
  detail: { handles: ne(e, o) }
50
50
  };
51
- }, ye = 1e3, q = 640, h = { top: 24, right: 24, bottom: 100, left: 128 }, T = ye - h.left - h.right, j = q - h.top - h.bottom, K = (e) => e.max - e.min || 1, A = (e, o) => h.left + (o - e.min) / K(e) * T, C = (e, o) => h.top + j - (o - e.min) / K(e) * j, xt = (e, o) => e.min + (o - h.left) / T * K(e), Xe = (e, o) => e.min + (h.top + j - o) / j * K(e), $ = (e) => Math.round(e * 1e9) / 1e9, de = (e) => {
51
+ }, ye = 1e3, Z = 640, h = { top: 24, right: 24, bottom: 100, left: 128 }, A = ye - h.left - h.right, j = Z - h.top - h.bottom, K = (e) => e.max - e.min || 1, C = (e, o) => h.left + (o - e.min) / K(e) * A, T = (e, o) => h.top + j - (o - e.min) / K(e) * j, xt = (e, o) => e.min + (o - h.left) / A * K(e), Xe = (e, o) => e.min + (h.top + j - o) / j * K(e), $ = (e) => Math.round(e * 1e9) / 1e9, de = (e) => {
52
52
  const o = e.step > 0 ? e.step : K(e), l = Math.max(0, Math.round((e.max - e.min) / o));
53
53
  return Array.from({ length: l + 1 }, (r, a) => $(e.min + a * o));
54
54
  }, he = (e, o, l) => {
@@ -176,7 +176,7 @@ const B = (e, o) => {
176
176
  }), i.mode !== "auto") return;
177
177
  let b = !1, g = !1;
178
178
  for (const d of l) {
179
- const u = B(r, d);
179
+ const u = q(r, d);
180
180
  if (!u.ok) {
181
181
  b || (b = !0, e.issues.push({
182
182
  code: "custom",
@@ -195,7 +195,7 @@ const B = (e, o) => {
195
195
  }
196
196
  a.forEach((d, u) => {
197
197
  for (const x of l) {
198
- const y = B(d.expression, x);
198
+ const y = q(d.expression, x);
199
199
  if (!y.ok) {
200
200
  e.issues.push({
201
201
  code: "custom",
@@ -345,34 +345,34 @@ const B = (e, o) => {
345
345
  onSet: i,
346
346
  revealTarget: b
347
347
  }) => {
348
- const g = (n, f) => D(O, n, r, f), d = L.useRef(null), u = ct(d), x = L.useRef(null), [, y] = L.useReducer((n) => n + 1, 0), [S, s] = L.useState(""), c = !!i && !a, k = o?.values ?? {}, m = e.axes.x, p = e.axes.y, oe = de(m), le = de(p), Y = b ?? !!l, _ = (n) => {
348
+ const g = (n, f) => D(O, n, r, f), d = L.useRef(null), u = ct(d), x = L.useRef(null), [, y] = L.useReducer((n) => n + 1, 0), [S, s] = L.useState(""), c = !!i && !a, k = o?.values ?? {}, m = e.axes.x, p = e.axes.y, oe = de(m), le = de(p), Y = b ?? !!l, U = (n) => {
349
349
  const f = d.current?.getBoundingClientRect();
350
350
  if (!f || f.height === 0) return null;
351
- const w = (n - f.top) / f.height * q;
351
+ const w = (n - f.top) / f.height * Z;
352
352
  return Xe(p, w);
353
- }, U = (n, f) => {
353
+ }, _ = (n, f) => {
354
354
  i && (i(n, f), s(
355
355
  g("handleSet", { x: N(n), y: N(f) })
356
356
  ));
357
- }, Ae = (n, f) => {
357
+ }, Ce = (n, f) => {
358
358
  if (!c || n.button !== 0) return;
359
- const w = _(n.clientY);
359
+ const w = U(n.clientY);
360
360
  w !== null && (x.current = { x: f, value: W(p, w, e.snap) }, y());
361
361
  };
362
- Ge((n) => {
362
+ Be((n) => {
363
363
  const f = x.current;
364
364
  if (!f) return;
365
- const w = _(n.clientY);
365
+ const w = U(n.clientY);
366
366
  w !== null && (x.current = { x: f.x, value: W(p, w, e.snap) }, y());
367
367
  }, () => {
368
368
  const n = x.current;
369
- n && (x.current = null, y(), U(n.x, n.value));
369
+ n && (x.current = null, y(), _(n.x, n.value));
370
370
  });
371
- const Ce = (n, f) => {
371
+ const Te = (n, f) => {
372
372
  if (!c) return;
373
- const w = _(n.clientY);
374
- w !== null && U(f, W(p, w, e.snap));
375
- }, Te = (n, f, w) => {
373
+ const w = U(n.clientY);
374
+ w !== null && _(f, W(p, w, e.snap));
375
+ }, Ae = (n, f, w) => {
376
376
  if (!c) return;
377
377
  let v;
378
378
  switch (n.key) {
@@ -397,37 +397,37 @@ const B = (e, o) => {
397
397
  default:
398
398
  return;
399
399
  }
400
- n.preventDefault(), U(f, W(p, v, e.snap));
400
+ n.preventDefault(), _(f, W(p, v, e.snap));
401
401
  }, ie = (() => {
402
402
  const n = [...e.handles].sort((v, J) => v - J);
403
403
  let f = m.max - m.min;
404
404
  for (let v = 1; v < n.length; v++)
405
405
  f = Math.min(f, n[v] - n[v - 1]);
406
- const w = f / (m.max - m.min || 1) * T;
406
+ const w = f / (m.max - m.min || 1) * A;
407
407
  return Math.min(70, Math.max(10, w / 2));
408
408
  })(), se = [...e.handles].sort((n, f) => n - f).map((n) => ({ x: n, value: x.current?.x === n ? x.current.value : k[H(n)] })).filter((n) => n.value !== void 0), re = e.shown.filter((n) => n.expression.trim() !== "").map((n, f) => ({
409
409
  ...n,
410
410
  color: ge[f % ge.length],
411
411
  segments: we(ee(n.expression), m, p)
412
- })), ze = Y ? we(ee(e.target), m, p) : [], ce = (n) => n.map((f) => `${A(m, f.x)},${C(p, f.y)}`).join(" ");
412
+ })), ze = Y ? we(ee(e.target), m, p) : [], ce = (n) => n.map((f) => `${C(m, f.x)},${T(p, f.y)}`).join(" ");
413
413
  return /* @__PURE__ */ t.jsxs("div", { className: "bitflow-function-plot", children: [
414
414
  /* @__PURE__ */ t.jsxs(
415
415
  "svg",
416
416
  {
417
417
  ref: d,
418
418
  className: "bitflow-function-plot-diagram",
419
- viewBox: `0 0 ${ye} ${q}`,
419
+ viewBox: `0 0 ${ye} ${Z}`,
420
420
  role: "group",
421
421
  "aria-label": g("diagramLabel"),
422
422
  style: { "--bitflow-function-plot-scale": u },
423
423
  children: [
424
- /* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "function-plot-clip", children: /* @__PURE__ */ t.jsx("rect", { x: h.left, y: h.top, width: T, height: j }) }) }),
424
+ /* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "function-plot-clip", children: /* @__PURE__ */ t.jsx("rect", { x: h.left, y: h.top, width: A, height: j }) }) }),
425
425
  /* @__PURE__ */ t.jsxs("g", { className: "bitflow-function-plot-grid", children: [
426
426
  oe.map((n) => /* @__PURE__ */ t.jsx(
427
427
  "line",
428
428
  {
429
- x1: A(m, n),
430
- x2: A(m, n),
429
+ x1: C(m, n),
430
+ x2: C(m, n),
431
431
  y1: h.top,
432
432
  y2: h.top + j
433
433
  },
@@ -436,10 +436,10 @@ const B = (e, o) => {
436
436
  le.map((n) => /* @__PURE__ */ t.jsx(
437
437
  "line",
438
438
  {
439
- y1: C(p, n),
440
- y2: C(p, n),
439
+ y1: T(p, n),
440
+ y2: T(p, n),
441
441
  x1: h.left,
442
- x2: h.left + T
442
+ x2: h.left + A
443
443
  },
444
444
  `y${n}`
445
445
  ))
@@ -449,7 +449,7 @@ const B = (e, o) => {
449
449
  "line",
450
450
  {
451
451
  x1: h.left,
452
- x2: h.left + T,
452
+ x2: h.left + A,
453
453
  y1: h.top + j,
454
454
  y2: h.top + j
455
455
  }
@@ -467,8 +467,8 @@ const B = (e, o) => {
467
467
  "line",
468
468
  {
469
469
  className: "bitflow-function-plot-zero",
470
- x1: A(m, 0),
471
- x2: A(m, 0),
470
+ x1: C(m, 0),
471
+ x2: C(m, 0),
472
472
  y1: h.top,
473
473
  y2: h.top + j
474
474
  }
@@ -478,9 +478,9 @@ const B = (e, o) => {
478
478
  {
479
479
  className: "bitflow-function-plot-zero",
480
480
  x1: h.left,
481
- x2: h.left + T,
482
- y1: C(p, 0),
483
- y2: C(p, 0)
481
+ x2: h.left + A,
482
+ y1: T(p, 0),
483
+ y2: T(p, 0)
484
484
  }
485
485
  )
486
486
  ] }),
@@ -488,7 +488,7 @@ const B = (e, o) => {
488
488
  he(oe, m.step, 11).map((n) => /* @__PURE__ */ t.jsx(
489
489
  "text",
490
490
  {
491
- x: A(m, n),
491
+ x: C(m, n),
492
492
  y: h.top + j + 8 + 22 * u,
493
493
  textAnchor: "middle",
494
494
  children: N(n)
@@ -499,7 +499,7 @@ const B = (e, o) => {
499
499
  "text",
500
500
  {
501
501
  x: h.left - 10,
502
- y: C(p, n),
502
+ y: T(p, n),
503
503
  textAnchor: "end",
504
504
  dominantBaseline: "middle",
505
505
  children: N(n)
@@ -511,8 +511,8 @@ const B = (e, o) => {
511
511
  "text",
512
512
  {
513
513
  className: "bitflow-function-plot-axis-label",
514
- x: h.left + T / 2,
515
- y: q - 10,
514
+ x: h.left + A / 2,
515
+ y: Z - 10,
516
516
  textAnchor: "middle",
517
517
  children: m.label
518
518
  }
@@ -555,11 +555,11 @@ const B = (e, o) => {
555
555
  "polyline",
556
556
  {
557
557
  className: "bitflow-function-plot-sketch",
558
- points: se.map((n) => `${A(m, n.x)},${C(p, n.value)}`).join(" ")
558
+ points: se.map((n) => `${C(m, n.x)},${T(p, n.value)}`).join(" ")
559
559
  }
560
560
  ),
561
561
  e.handles.map((n) => {
562
- const f = H(n), w = x.current?.x === n, v = k[f], J = w || v !== void 0, P = w ? x.current.value : v ?? je(p), F = l?.[f], I = A(m, n), He = C(p, P), X = ["bitflow-function-plot-knob"];
562
+ const f = H(n), w = x.current?.x === n, v = k[f], J = w || v !== void 0, P = w ? x.current.value : v ?? je(p), F = l?.[f], I = C(m, n), He = T(p, P), X = ["bitflow-function-plot-knob"];
563
563
  return F ? X.push(`bitflow-function-plot-knob-${F}`) : J && X.push("bitflow-function-plot-knob-set"), /* @__PURE__ */ t.jsxs("g", { children: [
564
564
  /* @__PURE__ */ t.jsx(
565
565
  "line",
@@ -579,7 +579,7 @@ const B = (e, o) => {
579
579
  width: ie * 2,
580
580
  y: h.top,
581
581
  height: j,
582
- onClick: (R) => Ce(R, n)
582
+ onClick: (R) => Te(R, n)
583
583
  }
584
584
  ),
585
585
  /* @__PURE__ */ t.jsxs(
@@ -595,8 +595,8 @@ const B = (e, o) => {
595
595
  "aria-valuemax": c ? p.max : void 0,
596
596
  "aria-valuenow": c ? P : void 0,
597
597
  "aria-valuetext": c ? F ? g("knobValueStateText", { x: N(n), y: N(P), state: g(F) }) : g("knobValueText", { x: N(n), y: N(P) }) : void 0,
598
- onPointerDown: (R) => Ae(R, n),
599
- onKeyDown: (R) => Te(R, n, P),
598
+ onPointerDown: (R) => Ce(R, n),
599
+ onKeyDown: (R) => Ae(R, n, P),
600
600
  children: [
601
601
  c && /* @__PURE__ */ t.jsx("circle", { className: "bitflow-function-plot-knob-hit", r: it }),
602
602
  /* @__PURE__ */ t.jsx("circle", { className: "bitflow-function-plot-knob-ring", r: Q + 6 }),
@@ -694,7 +694,7 @@ const B = (e, o) => {
694
694
  }) => {
695
695
  const b = (d, u) => D(O, d, a, u), g = l?.detail?.handles;
696
696
  return /* @__PURE__ */ t.jsxs("div", { className: "bitflow-stack", children: [
697
- /* @__PURE__ */ t.jsx(Ze, { markdown: e.instruction }),
697
+ /* @__PURE__ */ t.jsx(Ge, { markdown: e.instruction }),
698
698
  /* @__PURE__ */ t.jsx("p", { className: "bitflow-hint", children: b(r ? "howToReadonly" : "howTo") }),
699
699
  /* @__PURE__ */ t.jsx(
700
700
  Le,
@@ -737,7 +737,7 @@ const B = (e, o) => {
737
737
  }) => {
738
738
  const a = (s, c) => D(lt, s, o, c), i = (s) => l({ ...e, ...s }), [b, g] = L.useState(5), d = (s, c) => i({ axes: { ...e.axes, [s]: { ...e.axes[s], ...c } } }), u = (s, c) => i({
739
739
  shown: e.shown.map((k, m) => m === s ? { ...k, ...c } : k)
740
- }), x = (s, c, k, m) => /* @__PURE__ */ t.jsx(G, { label: s, error: m, children: (p) => /* @__PURE__ */ t.jsx(
740
+ }), x = (s, c, k, m) => /* @__PURE__ */ t.jsx(B, { label: s, error: m, children: (p) => /* @__PURE__ */ t.jsx(
741
741
  te,
742
742
  {
743
743
  ...p,
@@ -748,7 +748,7 @@ const B = (e, o) => {
748
748
  ) }), y = (s) => /* @__PURE__ */ t.jsxs("fieldset", { className: "bitflow-field", children: [
749
749
  /* @__PURE__ */ t.jsx("legend", { className: "bitflow-label", children: a(s === "x" ? "xAxisLegend" : "yAxisLegend") }),
750
750
  /* @__PURE__ */ t.jsxs("div", { className: "bitflow-row", children: [
751
- /* @__PURE__ */ t.jsx(G, { label: a("axisLabelField"), children: (c) => /* @__PURE__ */ t.jsx(
751
+ /* @__PURE__ */ t.jsx(B, { label: a("axisLabelField"), children: (c) => /* @__PURE__ */ t.jsx(
752
752
  "input",
753
753
  {
754
754
  ...c,
@@ -775,7 +775,7 @@ const B = (e, o) => {
775
775
  ] }), S = {
776
776
  values: Object.fromEntries(
777
777
  e.handles.flatMap((s) => {
778
- const c = B(e.target, s);
778
+ const c = q(e.target, s);
779
779
  return c.ok ? [[H(s), c.value]] : [];
780
780
  })
781
781
  )
@@ -807,7 +807,7 @@ const B = (e, o) => {
807
807
  /* @__PURE__ */ t.jsx("legend", { className: "bitflow-label", children: a("shownLabel") }),
808
808
  /* @__PURE__ */ t.jsx("span", { className: "bitflow-hint", children: a("shownHint") }),
809
809
  e.shown.length === 0 && /* @__PURE__ */ t.jsx("p", { className: "bitflow-text-muted", children: a("noShown") }),
810
- e.shown.map((s, c) => /* @__PURE__ */ t.jsxs("div", { className: "bitflow-stack-small", children: [
810
+ e.shown.map((s, c) => /* @__PURE__ */ t.jsxs("div", { className: "bitflow-stack-small bitflow-stack", children: [
811
811
  /* @__PURE__ */ t.jsxs("div", { className: "bitflow-function-plot-editor-row", children: [
812
812
  /* @__PURE__ */ t.jsx(
813
813
  "input",
@@ -866,7 +866,7 @@ const B = (e, o) => {
866
866
  }
867
867
  ),
868
868
  /* @__PURE__ */ t.jsxs("div", { className: "bitflow-row", children: [
869
- /* @__PURE__ */ t.jsx(G, { label: a("spreadCountLabel"), children: (s) => /* @__PURE__ */ t.jsx(
869
+ /* @__PURE__ */ t.jsx(B, { label: a("spreadCountLabel"), children: (s) => /* @__PURE__ */ t.jsx(
870
870
  "input",
871
871
  {
872
872
  ...s,
@@ -899,7 +899,7 @@ const B = (e, o) => {
899
899
  /* @__PURE__ */ t.jsx(Le, { data: e, answer: S, locale: o, revealTarget: !0 })
900
900
  ] }),
901
901
  /* @__PURE__ */ t.jsxs(Oe, { summary: a("advanced"), children: [
902
- /* @__PURE__ */ t.jsx(G, { label: a("toleranceLabel"), hint: a("toleranceHint"), children: (s) => /* @__PURE__ */ t.jsx(
902
+ /* @__PURE__ */ t.jsx(B, { label: a("toleranceLabel"), hint: a("toleranceHint"), children: (s) => /* @__PURE__ */ t.jsx(
903
903
  te,
904
904
  {
905
905
  ...s,
@@ -937,7 +937,7 @@ const B = (e, o) => {
937
937
  )
938
938
  ] })
939
939
  ] });
940
- }, Se = "task-function-plot", Z = { label: "", min: -5, max: 5, step: 1 };
940
+ }, Se = "task-function-plot", G = { label: "", min: -5, max: 5, step: 1 };
941
941
  Pe({
942
942
  type: Se,
943
943
  kind: "task",
@@ -951,17 +951,17 @@ Pe({
951
951
  }),
952
952
  defaultData: () => ({
953
953
  instruction: "",
954
- axes: { x: { ...Z }, y: { ...Z } },
954
+ axes: { x: { ...G }, y: { ...G } },
955
955
  target: "0",
956
956
  shown: [],
957
- handles: ae(Z, 5),
958
- tolerance: Z.step / 2,
957
+ handles: ae(G, 5),
958
+ tolerance: G.step / 2,
959
959
  snap: "half",
960
960
  partialCredit: !0,
961
961
  evaluation: ve()
962
962
  })
963
963
  });
964
- qe(Se);
964
+ Ze(Se);
965
965
  Re("bitflow-styles-task-function-plot", ot);
966
966
  export {
967
967
  mt as AnswerSchema,
@@ -971,21 +971,21 @@ export {
971
971
  ht as Form,
972
972
  h as MARGIN,
973
973
  j as PLOT_HEIGHT,
974
- T as PLOT_WIDTH,
974
+ A as PLOT_WIDTH,
975
975
  Le as PlotView,
976
976
  Ne as SNAPS,
977
977
  tt as ShownCurveSchema,
978
978
  et as SnapSchema,
979
979
  Se as TYPE,
980
980
  ft as Task,
981
- q as VIEW_HEIGHT,
981
+ Z as VIEW_HEIGHT,
982
982
  ye as VIEW_WIDTH,
983
- Ue as allCorrect,
983
+ _e as allCorrect,
984
984
  je as defaultHandleValue,
985
985
  ae as defaultHandles,
986
986
  fe as describeFormulaError,
987
987
  Je as evaluate,
988
- B as evaluateFormulaAt,
988
+ q as evaluateFormulaAt,
989
989
  lt as formMessages,
990
990
  N as formatTick,
991
991
  ee as formulaFn,
@@ -996,11 +996,11 @@ export {
996
996
  O as messages,
997
997
  $ as round9,
998
998
  we as sampleCurve,
999
- _e as scoreOf,
999
+ Ue as scoreOf,
1000
1000
  W as snapValue,
1001
1001
  de as ticksFor,
1002
1002
  xt as xFromView,
1003
- A as xToView,
1003
+ C as xToView,
1004
1004
  Xe as yFromView,
1005
- C as yToView
1005
+ T as yToView
1006
1006
  };
@@ -1,5 +1,5 @@
1
- import { L as i, a2 as m, j as t, b as a, s as l, aa as k } from "./dom-uYx_3K1r.js";
2
- import { v as w, L as c, R as p } from "./bitLoaders-DIGwTcpd.js";
1
+ import { P as i, a2 as m, j as t, b as a, s as l, aa as k } from "./dom-B6NPWBb1.js";
2
+ import { e as w, U as c, H as p } from "./bitLoaders-7qanePQL.js";
3
3
  const b = "", e = {
4
4
  en: {
5
5
  name: "Text",