@cardenelabs/dragon 0.45.0 → 0.45.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 (52) hide show
  1. package/dist/cli.cjs +71 -30
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/cli.js +71 -30
  4. package/dist/cli.js.map +1 -1
  5. package/dist/export.cjs +71 -30
  6. package/dist/export.cjs.map +1 -1
  7. package/dist/export.js +71 -30
  8. package/dist/export.js.map +1 -1
  9. package/dist/index.cjs +71 -30
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +71 -30
  12. package/dist/index.js.map +1 -1
  13. package/dist/light/{chunk-VRAW7VAQ.cjs → chunk-5OQV42W3.cjs} +50 -19
  14. package/dist/light/chunk-5OQV42W3.cjs.map +1 -0
  15. package/dist/light/chunk-CLS6JVKK.cjs.map +1 -1
  16. package/dist/light/{chunk-JNSHZTPF.js → chunk-EHTQUCW4.js} +49 -18
  17. package/dist/light/chunk-EHTQUCW4.js.map +1 -0
  18. package/dist/light/{chunk-OUQ44P45.cjs → chunk-JCEKXALJ.cjs} +81 -81
  19. package/dist/light/{chunk-OUQ44P45.cjs.map → chunk-JCEKXALJ.cjs.map} +1 -1
  20. package/dist/light/{chunk-6ZUKJ3VO.js → chunk-YEQSLVIN.js} +2 -2
  21. package/dist/light/{git-C4RVNFT6.js → git-GESUYKGR.js} +3 -3
  22. package/dist/light/{git-I7D7RIW2.cjs → git-K3KAAAWW.cjs} +59 -59
  23. package/dist/light/{git-I7D7RIW2.cjs.map → git-K3KAAAWW.cjs.map} +1 -1
  24. package/dist/light/index.cjs +232 -220
  25. package/dist/light/index.cjs.map +1 -1
  26. package/dist/light/index.js +32 -20
  27. package/dist/light/index.js.map +1 -1
  28. package/dist/light/{lineup-YEG4HHEI.js → lineup-2V2U7HZH.js} +3 -3
  29. package/dist/light/{lineup-FAIKTH3Y.cjs → lineup-623J25LU.cjs} +40 -40
  30. package/dist/light/{lineup-FAIKTH3Y.cjs.map → lineup-623J25LU.cjs.map} +1 -1
  31. package/dist/light/{state-ZZUK6AQT.cjs → state-OZVCHX7H.cjs} +41 -41
  32. package/dist/light/{state-ZZUK6AQT.cjs.map → state-OZVCHX7H.cjs.map} +1 -1
  33. package/dist/light/{state-P3LIVI3K.js → state-T4OTVING.js} +2 -2
  34. package/dist/light/{time-B5WUQOFP.js → time-6WEMD4FQ.js} +3 -3
  35. package/dist/light/{time-64DJKYAL.cjs → time-PQCPVQOE.cjs} +84 -84
  36. package/dist/light/{time-64DJKYAL.cjs.map → time-PQCPVQOE.cjs.map} +1 -1
  37. package/dist/light/{tree-66EH4QVI.cjs → tree-6D7KI57H.cjs} +62 -62
  38. package/dist/light/{tree-66EH4QVI.cjs.map → tree-6D7KI57H.cjs.map} +1 -1
  39. package/dist/light/{tree-5HPREYW2.js → tree-ZJZQI5QT.js} +3 -3
  40. package/dist/player.global.js +3 -3
  41. package/package.json +1 -1
  42. package/src/layout/scene.ts +58 -16
  43. package/src/look/values.ts +1 -1
  44. package/src/render/draw.ts +39 -17
  45. package/dist/light/chunk-JNSHZTPF.js.map +0 -1
  46. package/dist/light/chunk-VRAW7VAQ.cjs.map +0 -1
  47. /package/dist/light/{chunk-6ZUKJ3VO.js.map → chunk-YEQSLVIN.js.map} +0 -0
  48. /package/dist/light/{git-C4RVNFT6.js.map → git-GESUYKGR.js.map} +0 -0
  49. /package/dist/light/{lineup-YEG4HHEI.js.map → lineup-2V2U7HZH.js.map} +0 -0
  50. /package/dist/light/{state-P3LIVI3K.js.map → state-T4OTVING.js.map} +0 -0
  51. /package/dist/light/{time-B5WUQOFP.js.map → time-6WEMD4FQ.js.map} +0 -0
  52. /package/dist/light/{tree-5HPREYW2.js.map → tree-ZJZQI5QT.js.map} +0 -0
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkVRAW7VAQcjs = require('./chunk-VRAW7VAQ.cjs');
15
+ var _chunk5OQV42W3cjs = require('./chunk-5OQV42W3.cjs');
16
16
 
17
17
  // src/render/icons.ts
18
18
  var ICONS = {
@@ -75,13 +75,13 @@ function findOverlaps(inks, stills, traces = []) {
75
75
  const lines = traces.filter((trace) => visible(trace, t));
76
76
  for (const ink of seen) {
77
77
  if (ink.boxed) continue;
78
- for (const line of lines) if (_chunkVRAW7VAQcjs.crossesRect.call(void 0, line.points, ink.rect, BITE)) out.push({ kind: "line", step, text: ink.text, line: { from: line.from, to: line.to }, spots: [spotOf(ink)] });
78
+ for (const line of lines) if (_chunk5OQV42W3cjs.crossesRect.call(void 0, line.points, ink.rect, BITE)) out.push({ kind: "line", step, text: ink.text, line: { from: line.from, to: line.to }, spots: [spotOf(ink)] });
79
79
  }
80
80
  });
81
81
  return out;
82
82
  }
83
83
  function describeOverlap(overlap, lang = "ja") {
84
- const t = _chunkVRAW7VAQcjs.FIGURE_TEXT[lang];
84
+ const t = _chunk5OQV42W3cjs.FIGURE_TEXT[lang];
85
85
  const partName = (part) => part.kind === "icon" ? t.iconOf(part.box) : part.kind === "coin" ? t.coin : t.envelope;
86
86
  const name = (spot) => spot.badge ? t.badgeName(spot.text) : spot.part ? partName(spot.part) : t.quoted(spot.text);
87
87
  if (overlap.kind === "texts") return t.textsOverlap(name(overlap.spots[0]), name(overlap.spots[1]));
@@ -99,7 +99,7 @@ function glyph(name, x, y, scale, cls = "dg-gl") {
99
99
  }
100
100
  function iconSvg(name) {
101
101
  if (!Object.hasOwn(ICONS, name)) return void 0;
102
- const width = _chunkVRAW7VAQcjs.LOOK.stroke.glyph * _chunkVRAW7VAQcjs.LOOK.box.iconScale;
102
+ const width = _chunk5OQV42W3cjs.LOOK.stroke.glyph * _chunk5OQV42W3cjs.LOOK.box.iconScale;
103
103
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 -12 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="${width}" stroke-linecap="round" stroke-linejoin="round"><path d="${ICONS[name]}"/></svg>`;
104
104
  }
105
105
  function pathOf(points) {
@@ -112,7 +112,7 @@ function pathOf(points) {
112
112
  const [cx, cy] = pts[i + 1];
113
113
  const l1 = Math.hypot(bx - ax, by - ay);
114
114
  const l2 = Math.hypot(cx - bx, cy - by);
115
- const a = Math.min(_chunkVRAW7VAQcjs.LOOK.edge.bend, l1 / 2, l2 / 2);
115
+ const a = Math.min(_chunk5OQV42W3cjs.LOOK.edge.bend, l1 / 2, l2 / 2);
116
116
  d += ` L ${r1(bx - (bx - ax) / l1 * a)} ${r1(by - (by - ay) / l1 * a)} Q ${r1(bx)} ${r1(by)} ${r1(bx + (cx - bx) / l2 * a)} ${r1(by + (cy - by) / l2 * a)}`;
117
117
  }
118
118
  if (pts.length > 1) {
@@ -127,17 +127,17 @@ function arrowHead(points) {
127
127
  const len = Math.hypot(ex - px, ey - py) || 1;
128
128
  const dx = (ex - px) / len;
129
129
  const dy = (ey - py) / len;
130
- const { arrow: a, arrowHalf: h } = _chunkVRAW7VAQcjs.LOOK.edge;
130
+ const { arrow: a, arrowHalf: h } = _chunk5OQV42W3cjs.LOOK.edge;
131
131
  return `M ${r1(ex - dx * a - dy * h)} ${r1(ey - dy * a + dx * h)} L ${r1(ex)} ${r1(ey)} L ${r1(ex - dx * a + dy * h)} ${r1(ey - dy * a - dx * h)}`;
132
132
  }
133
133
  var sansOf = (t) => ({ ...t, family: "sans" });
134
134
  function write(ink, cls, x, y, text, style, shown = ALWAYS, anchor) {
135
- _optionalChain([ink, 'optionalAccess', _ => _.push, 'call', _2 => _2({ text, rect: _chunkVRAW7VAQcjs.textBox.call(void 0, text, x, y, style, anchor), shown })]);
135
+ _optionalChain([ink, 'optionalAccess', _ => _.push, 'call', _2 => _2({ text, rect: _chunk5OQV42W3cjs.textBox.call(void 0, text, x, y, style, anchor), shown })]);
136
136
  return `<text class="${cls}" x="${r1(x)}" y="${r1(y)}"${anchor ? ` text-anchor="${anchor}"` : ""}>${esc(text)}</text>`;
137
137
  }
138
138
  function rangeKf(m, ranges) {
139
139
  const pts = [[0, { opacity: 0 }]];
140
- for (const [a, b] of ranges) pts.push([a, { opacity: 0 }, _chunkVRAW7VAQcjs.EASE.out], [a + _chunkVRAW7VAQcjs.MOTION.fade, { opacity: 1 }], [b - 0.1, { opacity: 1 }, _chunkVRAW7VAQcjs.EASE.inOut], [b + 0.25, { opacity: 0 }]);
140
+ for (const [a, b] of ranges) pts.push([a, { opacity: 0 }, _chunk5OQV42W3cjs.EASE.out], [a + _chunk5OQV42W3cjs.MOTION.fade, { opacity: 1 }], [b - 0.1, { opacity: 1 }, _chunk5OQV42W3cjs.EASE.inOut], [b + 0.25, { opacity: 0 }]);
141
141
  pts.push([m.total, { opacity: 0 }]);
142
142
  return m.kf(pts);
143
143
  }
@@ -152,10 +152,10 @@ function activeKf(ctx, on) {
152
152
  return rangeKf(ctx.m, ranges);
153
153
  }
154
154
  function band(region, ink) {
155
- const { radius, icon, iconRadius, iconScale, nameY, line } = _chunkVRAW7VAQcjs.LOOK.region;
155
+ const { radius, icon, iconRadius, iconScale, nameY, line } = _chunk5OQV42W3cjs.LOOK.region;
156
156
  const { x, y } = region.header;
157
- const lines = region.lines.map((t, k) => write(ink, "dg-bz", x, region.y + nameY + k * line, t, _chunkVRAW7VAQcjs.TYPE.regionName)).join("");
158
- const note = region.note ? write(ink, "dg-bx", x, region.y + nameY + region.lines.length * line + 1, region.note, _chunkVRAW7VAQcjs.TYPE.regionNote) : "";
157
+ const lines = region.lines.map((t, k) => write(ink, "dg-bz", x, region.y + nameY + k * line, t, _chunk5OQV42W3cjs.TYPE.regionName)).join("");
158
+ const note = region.note ? write(ink, "dg-bx", x, region.y + nameY + region.lines.length * line + 1, region.note, _chunk5OQV42W3cjs.TYPE.regionNote) : "";
159
159
  const mark = region.icon && ICONS[region.icon] ? `<rect class="dg-bi" x="${r1(x)}" y="${r1(y)}" width="${icon}" height="${icon}" rx="${iconRadius}"/>${glyph(region.icon, x + icon / 2, y + icon / 2, iconScale)}` : "";
160
160
  return `<g style="${cs(region.color)}"><rect class="dg-band" x="${r1(region.x + 0.5)}" y="${r1(region.y + 0.5)}" width="${r1(region.w - 1)}" height="${r1(region.h - 1)}" rx="${radius}"/>${mark}${lines}${note}</g>`;
161
161
  }
@@ -163,50 +163,50 @@ function subLines(box, m, changes, y, ink, right) {
163
163
  const seq = [[0, _nullishCoalesce(box.sub, () => ( "")), "dg-ss"], ...changes];
164
164
  return seq.map(([t, text, cls], k) => {
165
165
  const next = _optionalChain([seq, 'access', _3 => _3[k + 1], 'optionalAccess', _4 => _4[0]]);
166
- const anim = k === 0 ? next === void 0 ? "" : m.until(next - _chunkVRAW7VAQcjs.MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - _chunkVRAW7VAQcjs.MOTION.untilFade);
166
+ const anim = k === 0 ? next === void 0 ? "" : m.until(next - _chunk5OQV42W3cjs.MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - _chunk5OQV42W3cjs.MOTION.untilFade);
167
167
  if (text === "") return "";
168
- const shown = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - _chunkVRAW7VAQcjs.MOTION.untilFade]];
169
- const style = cls === "dg-ss" ? _chunkVRAW7VAQcjs.TYPE.boxSub : _chunkVRAW7VAQcjs.TYPE.boxSubStrong;
170
- const drawn = right === void 0 ? write(ink, cls, box.cx, y, text, style, shown, "middle") : write(ink, cls, right - _chunkVRAW7VAQcjs.textWidth.call(void 0, text, style), y, text, style, shown);
168
+ const shown = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - _chunk5OQV42W3cjs.MOTION.untilFade]];
169
+ const style = cls === "dg-ss" ? _chunk5OQV42W3cjs.TYPE.boxSub : _chunk5OQV42W3cjs.TYPE.boxSubStrong;
170
+ const drawn = right === void 0 ? write(ink, cls, box.cx, y, text, style, shown, "middle") : write(ink, cls, right - _chunk5OQV42W3cjs.textWidth.call(void 0, text, style), y, text, style, shown);
171
171
  return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
172
172
  }).join("");
173
173
  }
174
174
  function cardFrame(box, ctx, act, y, h) {
175
- const rect = (cls, extra = "") => `<rect class="${cls}" x="${r1(box.x)}" y="${r1(y)}" width="${r1(box.w)}" height="${h}" rx="${_chunkVRAW7VAQcjs.LOOK.box.radius}"${extra}/>`;
175
+ const rect = (cls, extra = "") => `<rect class="${cls}" x="${r1(box.x)}" y="${r1(y)}" width="${r1(box.w)}" height="${h}" rx="${_chunk5OQV42W3cjs.LOOK.box.radius}"${extra}/>`;
176
176
  return `${act ? `<g class="dg-a" style="${act}">${rect("dg-halo")}</g>` : ""}${rect("dg-st", ` ${ctx.sh}`)}${act ? `<g class="dg-a" style="${act}">${rect("dg-on")}</g>` : ""}`;
177
177
  }
178
178
  function card(box, ctx, on, changes, lit) {
179
- const { icon, iconRadius, iconScale, iconY, nameY, subY } = _chunkVRAW7VAQcjs.LOOK.box;
179
+ const { icon, iconRadius, iconScale, iconY, nameY, subY } = _chunk5OQV42W3cjs.LOOK.box;
180
180
  const subs = subLines(box, ctx.m, changes, box.cy + subY, ctx.ink);
181
181
  const act = lit ? lit.length > 0 ? rangeKf(ctx.m, lit.map((s) => [s.start, s.end])) : void 0 : on.length > 0 ? activeKf(ctx, on) : void 0;
182
182
  const ix = _nullishCoalesce(box.iconX, () => ( box.cx));
183
- const slot = box.slot ? `<rect class="dg-slot" x="${r1(box.slot.x)}" y="${r1(box.slot.y)}" width="${r1(box.slot.w)}" height="${r1(box.slot.h)}" rx="${_chunkVRAW7VAQcjs.LOOK.slot.radius}"/>` : "";
183
+ const slot = box.slot ? `<rect class="dg-slot" x="${r1(box.slot.x)}" y="${r1(box.slot.y)}" width="${r1(box.slot.w)}" height="${r1(box.slot.h)}" rx="${_chunk5OQV42W3cjs.LOOK.slot.radius}"/>` : "";
184
184
  let mark = "";
185
185
  if (box.icon && ICONS[box.icon]) {
186
186
  const rect = { x: ix - icon / 2, y: box.cy + iconY - icon / 2, w: icon, h: icon };
187
187
  ctx.ink.push({ text: `${box.name} \u306E\u7D75\u67C4`, rect, shown: ALWAYS, boxed: true, part: { kind: "icon", box: box.name } });
188
188
  mark = `<rect class="dg-ic" x="${r1(rect.x)}" y="${r1(rect.y)}" width="${icon}" height="${icon}" rx="${iconRadius}"/>${glyph(box.icon, ix, box.cy + iconY, iconScale)}`;
189
189
  }
190
- return `<g style="${cs(box.color)}">${cardFrame(box, ctx, act, box.y, box.h)}${slot}${mark}${write(ctx.ink, "dg-sn", box.cx, box.cy + nameY, box.name, _chunkVRAW7VAQcjs.TYPE.boxName, ALWAYS, "middle")}${subs}</g>`;
190
+ return `<g style="${cs(box.color)}">${cardFrame(box, ctx, act, box.y, box.h)}${slot}${mark}${write(ctx.ink, "dg-sn", box.cx, box.cy + nameY, box.name, _chunk5OQV42W3cjs.TYPE.boxName, ALWAYS, "middle")}${subs}</g>`;
191
191
  }
192
192
  function headCard(box, ctx, on, changes) {
193
- const { pad, h, nameY, subY } = _chunkVRAW7VAQcjs.LOOK.follow.head;
193
+ const { pad, h, nameY, subY } = _chunk5OQV42W3cjs.LOOK.follow.head;
194
194
  const subs = subLines(box, ctx.m, changes, pad + subY);
195
195
  const act = on.length > 0 ? activeKf(ctx, on) : void 0;
196
196
  return `<g style="${cs(box.color)}">${cardFrame(box, ctx, act, pad, h)}<text class="dg-sn" x="${r1(box.cx)}" y="${r1(pad + nameY)}" text-anchor="middle">${esc(box.name)}</text>${subs}</g>`;
197
197
  }
198
198
  function ghostCard(box, ink) {
199
- const { icon, iconRadius, iconScale, radius } = _chunkVRAW7VAQcjs.LOOK.box;
200
- const G = _chunkVRAW7VAQcjs.LOOK.state.ghost;
199
+ const { icon, iconRadius, iconScale, radius } = _chunk5OQV42W3cjs.LOOK.box;
200
+ const G = _chunk5OQV42W3cjs.LOOK.state.ghost;
201
201
  const ix = box.x + G.pad + icon / 2;
202
202
  const tx = box.x + G.pad + icon + G.gap;
203
203
  const mark = box.icon && ICONS[box.icon] ? `<rect class="dg-ic" x="${r1(ix - icon / 2)}" y="${r1(box.cy - icon / 2)}" width="${icon}" height="${icon}" rx="${iconRadius}"/>${glyph(box.icon, ix, box.cy, iconScale)}` : "";
204
- const nameY = box.sub ? G.nameY : _chunkVRAW7VAQcjs.LOOK.baseline.mark;
205
- const sub = box.sub ? write(ink, "dg-ss", tx, box.cy + G.subY, box.sub, _chunkVRAW7VAQcjs.TYPE.boxSub, ALWAYS, "start") : "";
206
- return `<g data-ghost="${esc(box.id)}" style="${cs(box.color)}"><rect class="dg-ghost" x="${r1(box.x)}" y="${r1(box.y)}" width="${r1(box.w)}" height="${box.h}" rx="${radius}"/>${mark}${write(ink, "dg-sn", tx, box.cy + nameY, box.name, _chunkVRAW7VAQcjs.TYPE.boxName, ALWAYS, "start")}${sub}</g>`;
204
+ const nameY = box.sub ? G.nameY : _chunk5OQV42W3cjs.LOOK.baseline.mark;
205
+ const sub = box.sub ? write(ink, "dg-ss", tx, box.cy + G.subY, box.sub, _chunk5OQV42W3cjs.TYPE.boxSub, ALWAYS, "start") : "";
206
+ return `<g data-ghost="${esc(box.id)}" style="${cs(box.color)}"><rect class="dg-ghost" x="${r1(box.x)}" y="${r1(box.y)}" width="${r1(box.w)}" height="${box.h}" rx="${radius}"/>${mark}${write(ink, "dg-sn", tx, box.cy + nameY, box.name, _chunk5OQV42W3cjs.TYPE.boxName, ALWAYS, "start")}${sub}</g>`;
207
207
  }
208
208
  function doneMark(box, at, ctx) {
209
- const { r, inset } = _chunkVRAW7VAQcjs.LOOK.state.done;
209
+ const { r, inset } = _chunk5OQV42W3cjs.LOOK.state.done;
210
210
  const x = box.x + box.w - inset;
211
211
  const y = box.y + inset;
212
212
  return `<g class="dg-popc dg-a" data-done="${esc(box.id)}" style="${cs(box.color)};${ctx.m.pop(at)}"><circle class="dg-done" cx="${r1(x)}" cy="${r1(y)}" r="${r}"/>${glyph("check", x, y, 0.5, "dg-done-ck")}</g>`;
@@ -214,19 +214,19 @@ function doneMark(box, at, ctx) {
214
214
  function path(p, color, ink, traces) {
215
215
  traces.push({ from: p.from, to: p.to, points: p.points, shown: ALWAYS });
216
216
  const sans = _optionalChain([p, 'access', _5 => _5.label, 'optionalAccess', _6 => _6.family]) === "sans";
217
- const label2 = p.label ? write(ink, `dg-path-t${sans ? " dg-path-tj" : ""}`, p.label.x + _chunkVRAW7VAQcjs.LOOK.label.padX, p.label.y + p.label.h / 2 + _chunkVRAW7VAQcjs.LOOK.baseline.label, p.label.text, sans ? _chunkVRAW7VAQcjs.TYPE.labelJa : _chunkVRAW7VAQcjs.TYPE.label) : "";
217
+ const label2 = p.label ? write(ink, `dg-path-t${sans ? " dg-path-tj" : ""}`, p.label.x + _chunk5OQV42W3cjs.LOOK.label.padX, p.label.y + p.label.h / 2 + _chunk5OQV42W3cjs.LOOK.baseline.label, p.label.text, sans ? _chunk5OQV42W3cjs.TYPE.labelJa : _chunk5OQV42W3cjs.TYPE.label) : "";
218
218
  return `<g data-path="${esc(`${p.from}->${p.to}`)}" style="${cs(color)}"><path class="dg-path" d="${pathOf(p.points)}"/><path class="dg-path-h" d="${arrowHead(p.points)}"/>${label2}</g>`;
219
219
  }
220
220
  function side(s, color, ink) {
221
- const { pad } = _chunkVRAW7VAQcjs.LOOK.state.side;
222
- const title = s.y + pad + _chunkVRAW7VAQcjs.TYPE.regionName.size;
223
- const notes = s.notes.map((note, k) => write(ink, "dg-side-n", s.x + pad, title + _chunkVRAW7VAQcjs.LOOK.region.line * (k + 1), note, _chunkVRAW7VAQcjs.TYPE.regionNote)).join("");
224
- return `<g style="${cs(color)}"><rect class="dg-side" x="${r1(s.x + 0.5)}" y="${r1(s.y + 0.5)}" width="${r1(s.w - 1)}" height="${r1(s.h - 1)}" rx="${_chunkVRAW7VAQcjs.LOOK.region.radius}"/>${write(ink, "dg-side-t", s.x + pad, title, s.title, _chunkVRAW7VAQcjs.TYPE.regionName)}${notes}</g>`;
221
+ const { pad } = _chunk5OQV42W3cjs.LOOK.state.side;
222
+ const title = s.y + pad + _chunk5OQV42W3cjs.TYPE.regionName.size;
223
+ const notes = s.notes.map((note, k) => write(ink, "dg-side-n", s.x + pad, title + _chunk5OQV42W3cjs.LOOK.region.line * (k + 1), note, _chunk5OQV42W3cjs.TYPE.regionNote)).join("");
224
+ return `<g style="${cs(color)}"><rect class="dg-side" x="${r1(s.x + 0.5)}" y="${r1(s.y + 0.5)}" width="${r1(s.w - 1)}" height="${r1(s.h - 1)}" rx="${_chunk5OQV42W3cjs.LOOK.region.radius}"/>${write(ink, "dg-side-t", s.x + pad, title, s.title, _chunk5OQV42W3cjs.TYPE.regionName)}${notes}</g>`;
225
225
  }
226
226
  function endMark(e, color, ink) {
227
- const { end } = _chunkVRAW7VAQcjs.LOOK.state;
228
- const at = _chunkVRAW7VAQcjs.markText.call(void 0, e);
229
- const text = e.text === "" ? "" : write(ink, "dg-mark", at[0], at[1], e.text, _chunkVRAW7VAQcjs.TYPE.regionNote);
227
+ const { end } = _chunk5OQV42W3cjs.LOOK.state;
228
+ const at = _chunk5OQV42W3cjs.markText.call(void 0, e);
229
+ const text = e.text === "" ? "" : write(ink, "dg-mark", at[0], at[1], e.text, _chunk5OQV42W3cjs.TYPE.regionNote);
230
230
  const x = r1(e.x);
231
231
  const y = r1(e.y);
232
232
  if (e.kind === "start") return `<g data-end="start"><circle class="dg-start" cx="${x}" cy="${y}" r="${e.r}"/>${text}</g>`;
@@ -243,20 +243,20 @@ function edge(e, time, ctx, past = false, since = 0) {
243
243
  const head = arrowHead(e.points);
244
244
  const { start: a, drawn: b, end } = time;
245
245
  const tail = past ? [
246
- [end, { opacity: 1 }, _chunkVRAW7VAQcjs.EASE.inOut],
246
+ [end, { opacity: 1 }, _chunk5OQV42W3cjs.EASE.inOut],
247
247
  [end + 0.4, { opacity: 0 }],
248
248
  [m.total, { opacity: 0 }]
249
249
  ] : [
250
- [end, { opacity: 1 }, _chunkVRAW7VAQcjs.EASE.inOut],
250
+ [end, { opacity: 1 }, _chunk5OQV42W3cjs.EASE.inOut],
251
251
  [end + 0.4, { opacity: 0.45 }],
252
- [ctx.end + 0.3, { opacity: 0.45 }, _chunkVRAW7VAQcjs.EASE.inOut],
252
+ [ctx.end + 0.3, { opacity: 0.45 }, _chunk5OQV42W3cjs.EASE.inOut],
253
253
  [ctx.end + 1, { opacity: 0.95 }],
254
- [m.last, { opacity: 0.95 }, _chunkVRAW7VAQcjs.EASE.inOut],
254
+ [m.last, { opacity: 0.95 }, _chunk5OQV42W3cjs.EASE.inOut],
255
255
  [m.total, { opacity: 0 }]
256
256
  ];
257
257
  const line = m.kf([
258
258
  [0, { opacity: 0, "stroke-dashoffset": 1 }],
259
- [a, { opacity: 0, "stroke-dashoffset": 1 }, _chunkVRAW7VAQcjs.EASE.inOut],
259
+ [a, { opacity: 0, "stroke-dashoffset": 1 }, _chunk5OQV42W3cjs.EASE.inOut],
260
260
  [a + 0.05, { opacity: 1 }],
261
261
  [b, { "stroke-dashoffset": 0 }],
262
262
  [m.last, { "stroke-dashoffset": 0 }],
@@ -269,11 +269,11 @@ function edge(e, time, ctx, past = false, since = 0) {
269
269
  [0, { opacity: 0, "stroke-dashoffset": 0 }],
270
270
  [b, { opacity: 0, "stroke-dashoffset": 0 }],
271
271
  [b + 0.25, { opacity: 0.9 }],
272
- [end - 0.1, { opacity: 0.9 }, _chunkVRAW7VAQcjs.EASE.inOut],
272
+ [end - 0.1, { opacity: 0.9 }, _chunk5OQV42W3cjs.EASE.inOut],
273
273
  [end + 0.2, { opacity: 0, "stroke-dashoffset": run }],
274
274
  [m.total, { opacity: 0, "stroke-dashoffset": run }]
275
275
  ]);
276
- const grey = past ? m.kf([[0, { opacity: 0 }], [end, { opacity: 0 }, _chunkVRAW7VAQcjs.EASE.inOut], [end + 0.4, { opacity: 1 }], [m.last, { opacity: 1 }, _chunkVRAW7VAQcjs.EASE.inOut], [m.total, { opacity: 0 }]]) : "";
276
+ const grey = past ? m.kf([[0, { opacity: 0 }], [end, { opacity: 0 }, _chunk5OQV42W3cjs.EASE.inOut], [end + 0.4, { opacity: 1 }], [m.last, { opacity: 1 }, _chunk5OQV42W3cjs.EASE.inOut], [m.total, { opacity: 0 }]]) : "";
277
277
  const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
278
278
  return {
279
279
  base: `${since > 0 ? `<g class="dg-a" style="${m.vis(since)}">${path2}</g>` : path2}${past ? `<path class="dg-e-past dg-a" d="${d}" style="${grey}"/><path class="dg-eh-past dg-a" d="${head}" style="${grey}"/>` : ""}`,
@@ -282,12 +282,12 @@ function edge(e, time, ctx, past = false, since = 0) {
282
282
  }
283
283
  function label(l, time, ctx) {
284
284
  const ja = l.family === "sans" ? " dg-capj" : "";
285
- const { radius } = _chunkVRAW7VAQcjs.LOOK.label;
285
+ const { radius } = _chunk5OQV42W3cjs.LOOK.label;
286
286
  const shown = time.again ? [[time.start, time.end], [time.again.start, time.again.end]] : [[time.start, time.end]];
287
287
  ctx.ink.push({ text: l.text, rect: l, shown, boxed: true });
288
- if (time.after) ctx.ink.push({ text: l.text, rect: _chunkVRAW7VAQcjs.textBox.call(void 0, l.text, l.x + l.w / 2, l.y + l.h / 2 + _chunkVRAW7VAQcjs.LOOK.baseline.label, l.family === "sans" ? _chunkVRAW7VAQcjs.TYPE.labelJa : _chunkVRAW7VAQcjs.TYPE.label, "middle"), shown: [[time.after.start, time.after.end]] });
288
+ if (time.after) ctx.ink.push({ text: l.text, rect: _chunk5OQV42W3cjs.textBox.call(void 0, l.text, l.x + l.w / 2, l.y + l.h / 2 + _chunk5OQV42W3cjs.LOOK.baseline.label, l.family === "sans" ? _chunk5OQV42W3cjs.TYPE.labelJa : _chunk5OQV42W3cjs.TYPE.label, "middle"), shown: [[time.after.start, time.after.end]] });
289
289
  const x = r1(l.x + l.w / 2);
290
- const y = r1(l.y + l.h / 2 + _chunkVRAW7VAQcjs.LOOK.baseline.label);
290
+ const y = r1(l.y + l.h / 2 + _chunk5OQV42W3cjs.LOOK.baseline.label);
291
291
  const past = time.after ? `<g class="dg-cap-past${l.family === "sans" ? " dg-cap-pastj" : ""} dg-a" style="${ctx.m.vis(time.after.start, time.after.end)}"><text x="${x}" y="${y}" text-anchor="middle">${esc(l.text)}</text></g>` : "";
292
292
  const caps = shown.map(([a, b]) => `<g class="dg-cap${ja} dg-a" style="${cs(l.color)};${ctx.m.rise(a, b, true)}"><rect x="${r1(l.x)}" y="${r1(l.y)}" width="${r1(l.w)}" height="${l.h}" rx="${radius}"/><text x="${x}" y="${y}" text-anchor="middle">${esc(l.text)}</text></g>`);
293
293
  return `${past}${caps.join("")}`;
@@ -296,30 +296,30 @@ function action(a, at, until, ctx, again) {
296
296
  const shown = again ? [[at, until], [again.start, again.end]] : [[at, until]];
297
297
  ctx.ink.push({ text: a.text, rect: a, shown, boxed: true });
298
298
  return shown.map(
299
- ([from, to]) => `<g class="dg-act dg-a" style="${cs(a.color)};${ctx.m.rise(from, to, true)}"><rect x="${r1(a.x)}" y="${r1(a.y)}" width="${r1(a.w)}" height="${a.h}" rx="${_chunkVRAW7VAQcjs.LOOK.action.radius}"/><text x="${r1(a.x + a.w / 2)}" y="${r1(a.y + a.h / 2 + _chunkVRAW7VAQcjs.LOOK.baseline.action)}" text-anchor="middle">${esc(a.text)}</text></g>`
299
+ ([from, to]) => `<g class="dg-act dg-a" style="${cs(a.color)};${ctx.m.rise(from, to, true)}"><rect x="${r1(a.x)}" y="${r1(a.y)}" width="${r1(a.w)}" height="${a.h}" rx="${_chunk5OQV42W3cjs.LOOK.action.radius}"/><text x="${r1(a.x + a.w / 2)}" y="${r1(a.y + a.h / 2 + _chunk5OQV42W3cjs.LOOK.baseline.action)}" text-anchor="middle">${esc(a.text)}</text></g>`
300
300
  ).join("");
301
301
  }
302
302
  function carrierShape(e, sh) {
303
- const C = _chunkVRAW7VAQcjs.LOOK.carrier;
303
+ const C = _chunk5OQV42W3cjs.LOOK.carrier;
304
304
  if (e.carry.kind === "coin") return `<circle class="dg-coin" r="${C.coinR}"/><circle class="dg-coin-in" r="${C.coinIn}"/>`;
305
305
  if (e.carry.kind === "tag") {
306
306
  const text = e.carry.text;
307
- const ja = _chunkVRAW7VAQcjs.hasWide.call(void 0, text);
308
- const w = _chunkVRAW7VAQcjs.textWidth.call(void 0, text, ja ? _chunkVRAW7VAQcjs.TYPE.carrierJa : _chunkVRAW7VAQcjs.TYPE.carrier) + C.tagPadX * 2;
309
- return `<rect class="dg-car" x="${r1(-w / 2)}" y="${-C.tagH / 2}" width="${r1(w)}" height="${C.tagH}" rx="${C.tagH / 2}" ${sh}/><text class="dg-car-t${ja ? " dg-car-tj" : ""}" y="${_chunkVRAW7VAQcjs.LOOK.baseline.carrier}" text-anchor="middle">${esc(text)}</text>`;
307
+ const ja = _chunk5OQV42W3cjs.hasWide.call(void 0, text);
308
+ const w = _chunk5OQV42W3cjs.textWidth.call(void 0, text, ja ? _chunk5OQV42W3cjs.TYPE.carrierJa : _chunk5OQV42W3cjs.TYPE.carrier) + C.tagPadX * 2;
309
+ return `<rect class="dg-car" x="${r1(-w / 2)}" y="${-C.tagH / 2}" width="${r1(w)}" height="${C.tagH}" rx="${C.tagH / 2}" ${sh}/><text class="dg-car-t${ja ? " dg-car-tj" : ""}" y="${_chunk5OQV42W3cjs.LOOK.baseline.carrier}" text-anchor="middle">${esc(text)}</text>`;
310
310
  }
311
311
  return `<rect class="dg-env" x="${-C.envW / 2}" y="${-C.envH / 2}" width="${C.envW}" height="${C.envH}" rx="3" ${sh}/><path class="dg-env-in" d="M -8 -4.5 L 0 1.5 L 8 -4.5"/>`;
312
312
  }
313
313
  var easeInOut = (t) => t < 0.5 ? 4 * t * t * t : 1 - (-2 * t + 2) ** 3 / 2;
314
314
  function carrier(e, time, ctx) {
315
315
  const { m } = ctx;
316
- const n = _chunkVRAW7VAQcjs.LOOK.carrier.samples;
316
+ const n = _chunk5OQV42W3cjs.LOOK.carrier.samples;
317
317
  const route = e.wait ? [e.wait, ...e.points] : e.points;
318
- const length = _chunkVRAW7VAQcjs.pathLength.call(void 0, route);
318
+ const length = _chunk5OQV42W3cjs.pathLength.call(void 0, route);
319
319
  const { depart: a, arrive: b, start: from, end: gone } = time;
320
320
  const path2 = [];
321
321
  for (let k = 0; k <= n; k++) {
322
- const [x, y] = _chunkVRAW7VAQcjs.along.call(void 0, route, easeInOut(k / n) * length);
322
+ const [x, y] = _chunk5OQV42W3cjs.along.call(void 0, route, easeInOut(k / n) * length);
323
323
  path2.push([a + (b - a) * k / n, x, y]);
324
324
  }
325
325
  const first = path2[0];
@@ -328,7 +328,7 @@ function carrier(e, time, ctx) {
328
328
  const pts = [[0, first[1], first[2]], ...path2];
329
329
  if (e.settle) pts.push([Math.min(b + 0.3, Math.max(gone, b + 0.01)), rest[0], rest[1]]);
330
330
  pts.push([gone, rest[0], rest[1]], [m.total, rest[0], rest[1]]);
331
- const [hx, hy] = _chunkVRAW7VAQcjs.carrierHalf.call(void 0, e.carry);
331
+ const [hx, hy] = _chunk5OQV42W3cjs.carrierHalf.call(void 0, e.carry);
332
332
  const name = e.carry.kind === "tag" ? e.carry.text : e.carry.kind === "coin" ? "\u786C\u8CA8" : "\u5C01\u7B52";
333
333
  const part = e.carry.kind === "tag" ? {} : { part: { kind: e.carry.kind === "coin" ? "coin" : "envelope" } };
334
334
  const box = (p) => ({ x: p[0] - hx, y: p[1] - hy, w: hx * 2, h: hy * 2 });
@@ -342,17 +342,17 @@ function badge(b, ctx, grey = false) {
342
342
  const span = ctx.t.steps[b.step];
343
343
  const a = span.start;
344
344
  const e = span.end;
345
- const { r, ring: rr } = _chunkVRAW7VAQcjs.LOOK.badge;
345
+ const { r, ring: rr } = _chunk5OQV42W3cjs.LOOK.badge;
346
346
  const shown = { visibility: "visible" };
347
347
  const hidden = { visibility: "hidden" };
348
348
  const swap = b.until === void 0 ? void 0 : ctx.t.steps[b.until].start;
349
349
  const next = swap !== void 0 && swap <= e + 1e-6;
350
350
  const fill = m.kf([
351
351
  [0, { opacity: 0, transform: "scale(.5)", ...hidden }],
352
- [a, { opacity: 0, transform: "scale(.5)", ...hidden }, _chunkVRAW7VAQcjs.EASE.pop],
352
+ [a, { opacity: 0, transform: "scale(.5)", ...hidden }, _chunk5OQV42W3cjs.EASE.pop],
353
353
  [a + 0.35, { opacity: 1, transform: "scale(1)", ...shown }],
354
- [e, { opacity: 1, transform: "scale(1)", ...shown }, _chunkVRAW7VAQcjs.EASE.inOut],
355
- [e + (next ? _chunkVRAW7VAQcjs.MOTION.untilFade : 0.4), { opacity: 0, transform: "scale(1)", ...hidden }],
354
+ [e, { opacity: 1, transform: "scale(1)", ...shown }, _chunk5OQV42W3cjs.EASE.inOut],
355
+ [e + (next ? _chunk5OQV42W3cjs.MOTION.untilFade : 0.4), { opacity: 0, transform: "scale(1)", ...hidden }],
356
356
  [m.total, { opacity: 0, transform: "scale(.5)", ...hidden }]
357
357
  ]);
358
358
  const pastEnd = _nullishCoalesce(swap, () => ( m.last));
@@ -361,34 +361,34 @@ function badge(b, ctx, grey = false) {
361
361
  [m.total, { opacity: 0, ...hidden }]
362
362
  ]) : m.kf([
363
363
  [0, { opacity: 0, ...hidden }],
364
- [e, { opacity: 0, ...hidden }, _chunkVRAW7VAQcjs.EASE.inOut],
364
+ [e, { opacity: 0, ...hidden }, _chunk5OQV42W3cjs.EASE.inOut],
365
365
  [e + 0.4, { opacity: 1, ...shown }],
366
- [pastEnd, { opacity: 1, ...shown }, _chunkVRAW7VAQcjs.EASE.inOut],
367
- ...swap === void 0 ? [] : [[swap + _chunkVRAW7VAQcjs.MOTION.untilFade, { opacity: 0, ...hidden }]],
366
+ [pastEnd, { opacity: 1, ...shown }, _chunk5OQV42W3cjs.EASE.inOut],
367
+ ...swap === void 0 ? [] : [[swap + _chunk5OQV42W3cjs.MOTION.untilFade, { opacity: 0, ...hidden }]],
368
368
  [m.total, { opacity: 0, ...hidden }]
369
369
  ]);
370
370
  const ring = m.kf([
371
371
  [0, { opacity: 0, transform: "scale(1)" }],
372
372
  [a + 0.05, { opacity: 0, transform: "scale(1)" }],
373
- [a + 0.1, { opacity: 0.7, transform: "scale(1)" }, _chunkVRAW7VAQcjs.EASE.out],
373
+ [a + 0.1, { opacity: 0.7, transform: "scale(1)" }, _chunk5OQV42W3cjs.EASE.out],
374
374
  [a + 0.9, { opacity: 0, transform: "scale(2.3)" }],
375
375
  [m.total, { opacity: 0, transform: "scale(1)" }]
376
376
  ]);
377
377
  const x = r1(b.x);
378
378
  const y = r1(b.y);
379
- const ty = r1(b.y + _chunkVRAW7VAQcjs.LOOK.baseline.badge);
379
+ const ty = r1(b.y + _chunk5OQV42W3cjs.LOOK.baseline.badge);
380
380
  const no = b.step + 1;
381
381
  ctx.ink.push({ text: String(no), rect: { x: b.x - r, y: b.y - r, w: r * 2, h: r * 2 }, shown: [[a, pastEnd]], boxed: true, badge: true });
382
382
  return `<g class="dg-bd" data-step="${b.step}" style="${cs(b.color)}"><circle class="dg-bdr dg-popc dg-a" cx="${x}" cy="${y}" r="${rr}" style="${ring}"/><g class="dg-a" style="${past}"><circle class="${grey ? "dg-bdp-g" : "dg-bdp"}" cx="${x}" cy="${y}" r="${rr}"/><text class="${grey ? "dg-bdpt-g" : "dg-bdpt"}" x="${x}" y="${ty}" text-anchor="middle">${no}</text></g><g class="dg-popc dg-a" style="${fill}"><circle class="dg-bdf" cx="${x}" cy="${y}" r="${r}"/><text class="dg-bdft" x="${x}" y="${ty}" text-anchor="middle">${no}</text></g></g>`;
383
383
  }
384
384
  function strip(s, changes, ctx, now = false, arrivals = /* @__PURE__ */ new Map(), meter) {
385
385
  const { m, sh } = ctx;
386
- const S = _chunkVRAW7VAQcjs.LOOK.strip;
386
+ const S = _chunk5OQV42W3cjs.LOOK.strip;
387
387
  const my = s.y + S.h / 2;
388
388
  const parts = [
389
- `<rect class="dg-strip" x="${r1(s.x + 0.5)}" y="${r1(s.y + 0.5)}" width="${r1(s.w - 1)}" height="${r1(s.h - 1)}" rx="${_chunkVRAW7VAQcjs.LOOK.region.radius}" ${sh}/>`,
390
- `<g style="${cs("slate")}"><rect class="dg-bi" x="${r1(s.x + S.pad)}" y="${r1(my - S.icon / 2)}" width="${S.icon}" height="${S.icon}" rx="${_chunkVRAW7VAQcjs.LOOK.box.iconRadius}"/>${glyph("env", s.x + S.pad + S.icon / 2, my, 0.78)}</g>`,
391
- write(ctx.ink, "dg-sh", s.x + S.titleX, my + _chunkVRAW7VAQcjs.LOOK.baseline.stripTitle, s.title, _chunkVRAW7VAQcjs.TYPE.stripTitle)
389
+ `<rect class="dg-strip" x="${r1(s.x + 0.5)}" y="${r1(s.y + 0.5)}" width="${r1(s.w - 1)}" height="${r1(s.h - 1)}" rx="${_chunk5OQV42W3cjs.LOOK.region.radius}" ${sh}/>`,
390
+ `<g style="${cs("slate")}"><rect class="dg-bi" x="${r1(s.x + S.pad)}" y="${r1(my - S.icon / 2)}" width="${S.icon}" height="${S.icon}" rx="${_chunk5OQV42W3cjs.LOOK.box.iconRadius}"/>${glyph("env", s.x + S.pad + S.icon / 2, my, 0.78)}</g>`,
391
+ write(ctx.ink, "dg-sh", s.x + S.titleX, my + _chunk5OQV42W3cjs.LOOK.baseline.stripTitle, s.title, _chunk5OQV42W3cjs.TYPE.stripTitle)
392
392
  ];
393
393
  s.fields.forEach((field, i) => {
394
394
  const prev = s.fields[i - 1];
@@ -396,7 +396,7 @@ function strip(s, changes, ctx, now = false, arrivals = /* @__PURE__ */ new Map(
396
396
  const sx = field.x - S.fieldGap / 2;
397
397
  parts.push(`<line class="dg-sep" x1="${r1(sx)}" y1="${r1(field.y + S.sepInset)}" x2="${r1(sx)}" y2="${r1(field.y + S.h - S.sepInset)}"/>`);
398
398
  }
399
- parts.push(write(ctx.ink, "dg-fl", field.x, field.y + S.nameY, field.name, _chunkVRAW7VAQcjs.TYPE.fieldName));
399
+ parts.push(write(ctx.ink, "dg-fl", field.x, field.y + S.nameY, field.name, _chunk5OQV42W3cjs.TYPE.fieldName));
400
400
  const gauge = _optionalChain([meter, 'optionalCall', _7 => _7(field)]);
401
401
  if (gauge !== void 0) {
402
402
  parts.push(gauge);
@@ -408,30 +408,30 @@ function strip(s, changes, ctx, now = false, arrivals = /* @__PURE__ */ new Map(
408
408
  values.forEach((c, k) => {
409
409
  const next = _optionalChain([values, 'access', _8 => _8[k + 1], 'optionalAccess', _9 => _9.at]);
410
410
  const value = c.value;
411
- const cls = _chunkVRAW7VAQcjs.hasWide.call(void 0, value) ? "dg-fvj" : "dg-fv";
412
- ctx.ink.push({ text: value, rect: _chunkVRAW7VAQcjs.textBox.call(void 0, value, field.x, field.y + S.valueY, _chunkVRAW7VAQcjs.hasWide.call(void 0, value) ? _chunkVRAW7VAQcjs.TYPE.fieldValueJa : _chunkVRAW7VAQcjs.TYPE.fieldValue), shown: [[c.at, next === void 0 ? Number.POSITIVE_INFINITY : next - _chunkVRAW7VAQcjs.MOTION.untilFade]] });
411
+ const cls = _chunk5OQV42W3cjs.hasWide.call(void 0, value) ? "dg-fvj" : "dg-fv";
412
+ ctx.ink.push({ text: value, rect: _chunk5OQV42W3cjs.textBox.call(void 0, value, field.x, field.y + S.valueY, _chunk5OQV42W3cjs.hasWide.call(void 0, value) ? _chunk5OQV42W3cjs.TYPE.fieldValueJa : _chunk5OQV42W3cjs.TYPE.fieldValue), shown: [[c.at, next === void 0 ? Number.POSITIVE_INFINITY : next - _chunk5OQV42W3cjs.MOTION.untilFade]] });
413
413
  const textOf = (c2) => `<text class="${c2}" x="${r1(field.x)}" y="${r1(field.y + S.valueY)}">${esc(value)}</text>`;
414
414
  const text = textOf(cls);
415
415
  if (!now) {
416
- const anim = next === void 0 ? m.rise(c.at) : m.rise(c.at, next - _chunkVRAW7VAQcjs.MOTION.untilFade);
416
+ const anim = next === void 0 ? m.rise(c.at) : m.rise(c.at, next - _chunk5OQV42W3cjs.MOTION.untilFade);
417
417
  parts.push(`<g class="dg-a" style="${anim}">${text}</g>`);
418
418
  return;
419
419
  }
420
420
  const until = Math.min(c.until, _nullishCoalesce(next, () => ( c.until)));
421
- const dot = `<circle class="dg-fl-now" cx="${r1(field.x + _chunkVRAW7VAQcjs.textWidth.call(void 0, field.name, _chunkVRAW7VAQcjs.TYPE.fieldName) + S.now.gap)}" cy="${r1(field.y + S.nameY - _chunkVRAW7VAQcjs.TYPE.fieldName.size / 3)}" r="${S.now.r}"/>`;
422
- parts.push(`<g class="dg-fv-now dg-a" data-step="${c.step}" style="${cs(c.color)};${m.rise(c.at, until - _chunkVRAW7VAQcjs.MOTION.untilFade)}">${textOf(`${cls} dg-fv-c`)}${dot}</g>`);
423
- if (next === void 0 || next > until) parts.push(`<g class="dg-a" style="${m.vis(until - _chunkVRAW7VAQcjs.MOTION.untilFade, next === void 0 ? m.last : next - _chunkVRAW7VAQcjs.MOTION.untilFade)}">${text}</g>`);
421
+ const dot = `<circle class="dg-fl-now" cx="${r1(field.x + _chunk5OQV42W3cjs.textWidth.call(void 0, field.name, _chunk5OQV42W3cjs.TYPE.fieldName) + S.now.gap)}" cy="${r1(field.y + S.nameY - _chunk5OQV42W3cjs.TYPE.fieldName.size / 3)}" r="${S.now.r}"/>`;
422
+ parts.push(`<g class="dg-fv-now dg-a" data-step="${c.step}" style="${cs(c.color)};${m.rise(c.at, until - _chunk5OQV42W3cjs.MOTION.untilFade)}">${textOf(`${cls} dg-fv-c`)}${dot}</g>`);
423
+ if (next === void 0 || next > until) parts.push(`<g class="dg-a" style="${m.vis(until - _chunk5OQV42W3cjs.MOTION.untilFade, next === void 0 ? m.last : next - _chunk5OQV42W3cjs.MOTION.untilFade)}">${text}</g>`);
424
424
  });
425
425
  tags.forEach((c, k) => {
426
426
  const next = _optionalChain([tags, 'access', _10 => _10[k + 1], 'optionalAccess', _11 => _11.at]);
427
427
  const tag = c.tag;
428
428
  const shown = _optionalChain([[...values], 'access', _12 => _12.reverse, 'call', _13 => _13(), 'access', _14 => _14.find, 'call', _15 => _15((v) => v.at <= c.at + 1e-9), 'optionalAccess', _16 => _16.value]);
429
- const x = field.x + (shown ? _chunkVRAW7VAQcjs.textWidth.call(void 0, shown, _chunkVRAW7VAQcjs.hasWide.call(void 0, shown) ? _chunkVRAW7VAQcjs.TYPE.fieldValueJa : _chunkVRAW7VAQcjs.TYPE.fieldValue) + S.tagGap : 0);
430
- const w = _chunkVRAW7VAQcjs.textWidth.call(void 0, tag, _chunkVRAW7VAQcjs.TYPE.tag) + S.tagPadX * 2;
431
- const y = field.y + S.valueY - S.tagH / 2 - _chunkVRAW7VAQcjs.LOOK.baseline.tag;
432
- ctx.ink.push({ text: tag, rect: { x, y, w, h: S.tagH }, shown: [[c.at, next === void 0 ? Number.POSITIVE_INFINITY : next - _chunkVRAW7VAQcjs.MOTION.untilFade]], boxed: true });
429
+ const x = field.x + (shown ? _chunk5OQV42W3cjs.textWidth.call(void 0, shown, _chunk5OQV42W3cjs.hasWide.call(void 0, shown) ? _chunk5OQV42W3cjs.TYPE.fieldValueJa : _chunk5OQV42W3cjs.TYPE.fieldValue) + S.tagGap : 0);
430
+ const w = _chunk5OQV42W3cjs.textWidth.call(void 0, tag, _chunk5OQV42W3cjs.TYPE.tag) + S.tagPadX * 2;
431
+ const y = field.y + S.valueY - S.tagH / 2 - _chunk5OQV42W3cjs.LOOK.baseline.tag;
432
+ ctx.ink.push({ text: tag, rect: { x, y, w, h: S.tagH }, shown: [[c.at, next === void 0 ? Number.POSITIVE_INFINITY : next - _chunk5OQV42W3cjs.MOTION.untilFade]], boxed: true });
433
433
  parts.push(
434
- `<g class="dg-tg dg-popc dg-a" style="${cs(c.color)};${next === void 0 ? m.pop(c.at) : m.pop(c.at, next - _chunkVRAW7VAQcjs.MOTION.untilFade)}"><rect x="${r1(x)}" y="${r1(y)}" width="${r1(w)}" height="${S.tagH}" rx="${S.tagH / 2}"/><text x="${r1(x + w / 2)}" y="${r1(y + S.tagH / 2 + _chunkVRAW7VAQcjs.LOOK.baseline.tag)}" text-anchor="middle">${esc(tag)}</text></g>`
434
+ `<g class="dg-tg dg-popc dg-a" style="${cs(c.color)};${next === void 0 ? m.pop(c.at) : m.pop(c.at, next - _chunk5OQV42W3cjs.MOTION.untilFade)}"><rect x="${r1(x)}" y="${r1(y)}" width="${r1(w)}" height="${S.tagH}" rx="${S.tagH / 2}"/><text x="${r1(x + w / 2)}" y="${r1(y + S.tagH / 2 + _chunk5OQV42W3cjs.LOOK.baseline.tag)}" text-anchor="middle">${esc(tag)}</text></g>`
435
435
  );
436
436
  });
437
437
  });
@@ -442,8 +442,8 @@ function strip(s, changes, ctx, now = false, arrivals = /* @__PURE__ */ new Map(
442
442
  const sx = t.x - S.fieldGap / 2;
443
443
  parts.push(`<line class="dg-sep" x1="${r1(sx)}" y1="${r1(t.y + S.sepInset)}" x2="${r1(sx)}" y2="${r1(t.y + S.h - S.sepInset)}"/>`);
444
444
  }
445
- parts.push(write(ctx.ink, "dg-fl", t.x, t.y + S.nameY, t.title, _chunkVRAW7VAQcjs.TYPE.fieldName));
446
- const dy = t.y + S.valueY - _chunkVRAW7VAQcjs.TYPE.fieldValue.size / 3;
445
+ parts.push(write(ctx.ink, "dg-fl", t.x, t.y + S.nameY, t.title, _chunk5OQV42W3cjs.TYPE.fieldName));
446
+ const dy = t.y + S.valueY - _chunk5OQV42W3cjs.TYPE.fieldValue.size / 3;
447
447
  t.states.forEach((state, k) => {
448
448
  const cx = r1(t.x + S.trail.r + k * S.trail.step);
449
449
  const at = arrivals.get(state.box);
@@ -486,4 +486,4 @@ function strip(s, changes, ctx, now = false, arrivals = /* @__PURE__ */ new Map(
486
486
 
487
487
 
488
488
  exports.ICONS = ICONS; exports.ALWAYS = ALWAYS; exports.findOverlaps = findOverlaps; exports.describeOverlap = describeOverlap; exports.esc = esc; exports.linkTo = linkTo; exports.cs = cs; exports.glyph = glyph; exports.iconSvg = iconSvg; exports.pathOf = pathOf; exports.arrowHead = arrowHead; exports.sansOf = sansOf; exports.write = write; exports.activeKf = activeKf; exports.band = band; exports.subLines = subLines; exports.card = card; exports.headCard = headCard; exports.ghostCard = ghostCard; exports.doneMark = doneMark; exports.path = path; exports.side = side; exports.endMark = endMark; exports.lifeline = lifeline; exports.edge = edge; exports.label = label; exports.action = action; exports.carrier = carrier; exports.badge = badge; exports.strip = strip;
489
- //# sourceMappingURL=chunk-OUQ44P45.cjs.map
489
+ //# sourceMappingURL=chunk-JCEKXALJ.cjs.map