@zerops/web-components 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -111,6 +111,36 @@ declare module 'react' {
111
111
  | `deployed` | `string` | Deploy clicked; the app URL that was opened |
112
112
  | `detailOpened` | — | A detail/title link was clicked |
113
113
 
114
+ ## `<zerops-network-diagram>`
115
+
116
+ The homepage's animated network diagram (project shell, infra core, L7 routing, live request traces) for any recipe environment:
117
+
118
+ ```js
119
+ import '@zerops/web-components/network-diagram';
120
+ ```
121
+
122
+ ```html
123
+ <!-- self-fetching -->
124
+ <zerops-network-diagram slug="zerops-showcase" environment="highly-available-production"></zerops-network-diagram>
125
+ ```
126
+
127
+ ```js
128
+ // captured-data mode — same snapshot the recipe card uses
129
+ import showcase from '@zerops/web-components/recipes/zerops-showcase.json';
130
+ const el = document.querySelector('zerops-network-diagram');
131
+ await customElements.whenDefined('zerops-network-diagram');
132
+ el.recipeData = showcase;
133
+ ```
134
+
135
+ | Property | Attribute | Default | Purpose |
136
+ |---|---|---|---|
137
+ | `slug` | `slug` | — | Catalog slug to self-fetch |
138
+ | `recipeData` | `recipe-data` (JSON string) | — | Captured recipe; wins over `slug` |
139
+ | `environment` | `environment` | `highly-available-production` | Environment to draw (falls back to the recipe default) |
140
+ | `apiBase` | `api-base` | `https://api.zerops.io` | Public API origin |
141
+
142
+ The trace animation pauses off-viewport and respects `prefers-reduced-motion`.
143
+
114
144
  ## Known caveats
115
145
 
116
146
  - The stylesheet includes a CSS-layered normalize that can nudge host-page base styles.
@@ -1,7 +1,7 @@
1
1
  var At = Object.defineProperty;
2
2
  var Pt = (n, e, t) => e in n ? At(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var l = (n, e, t) => Pt(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { R as T, ɵ as Nt } from "./register-C5_R6XU0.js";
4
+ import { W as T, k as Nt } from "./recipe-fetch-BEQGCaPU.js";
5
5
  var S = /* @__PURE__ */ (function(n) {
6
6
  return n[n.State = 0] = "State", n[n.Transition = 1] = "Transition", n[n.Sequence = 2] = "Sequence", n[n.Group = 3] = "Group", n[n.Animate = 4] = "Animate", n[n.Keyframes = 5] = "Keyframes", n[n.Style = 6] = "Style", n[n.Trigger = 7] = "Trigger", n[n.Reference = 8] = "Reference", n[n.AnimateChild = 9] = "AnimateChild", n[n.AnimateRef = 10] = "AnimateRef", n[n.Query = 11] = "Query", n[n.Stagger = 12] = "Stagger", n;
7
7
  })(S || {});
@@ -172,7 +172,7 @@ class ut {
172
172
  t.forEach((s) => s()), t.length = 0;
173
173
  }
174
174
  }
175
- const Re = "!";
175
+ const De = "!";
176
176
  function He(n) {
177
177
  return new T(3e3, !1);
178
178
  }
@@ -182,10 +182,10 @@ function kt() {
182
182
  function Ft() {
183
183
  return new T(3101, !1);
184
184
  }
185
- function Rt(n) {
185
+ function Dt(n) {
186
186
  return new T(3001, !1);
187
187
  }
188
- function Dt(n) {
188
+ function Rt(n) {
189
189
  return new T(3003, !1);
190
190
  }
191
191
  function Ot(n) {
@@ -221,10 +221,10 @@ function Vt() {
221
221
  function Gt() {
222
222
  return new T(3202, !1);
223
223
  }
224
- function Ut() {
224
+ function Wt() {
225
225
  return new T(3013, !1);
226
226
  }
227
- function Wt(n) {
227
+ function Ut(n) {
228
228
  return new T(3014, !1);
229
229
  }
230
230
  function jt(n) {
@@ -276,7 +276,7 @@ function os(n, e) {
276
276
  return new T(3505, !1);
277
277
  }
278
278
  const ls = /* @__PURE__ */ new Set(["-moz-outline-radius", "-moz-outline-radius-bottomleft", "-moz-outline-radius-bottomright", "-moz-outline-radius-topleft", "-moz-outline-radius-topright", "-ms-grid-columns", "-ms-grid-rows", "-webkit-line-clamp", "-webkit-text-fill-color", "-webkit-text-stroke", "-webkit-text-stroke-color", "accent-color", "all", "backdrop-filter", "background", "background-color", "background-position", "background-size", "block-size", "border", "border-block-end", "border-block-end-color", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-width", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-width", "border-color", "border-end-end-radius", "border-end-start-radius", "border-image-outset", "border-image-slice", "border-image-width", "border-inline-end", "border-inline-end-color", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-width", "border-left", "border-left-color", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-width", "border-start-end-radius", "border-start-start-radius", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-width", "border-width", "bottom", "box-shadow", "caret-color", "clip", "clip-path", "color", "column-count", "column-gap", "column-rule", "column-rule-color", "column-rule-width", "column-width", "columns", "filter", "flex", "flex-basis", "flex-grow", "flex-shrink", "font", "font-size", "font-size-adjust", "font-stretch", "font-variation-settings", "font-weight", "gap", "grid-column-gap", "grid-gap", "grid-row-gap", "grid-template-columns", "grid-template-rows", "height", "inline-size", "input-security", "inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "left", "letter-spacing", "line-clamp", "line-height", "margin", "margin-block-end", "margin-block-start", "margin-bottom", "margin-inline-end", "margin-inline-start", "margin-left", "margin-right", "margin-top", "mask", "mask-border", "mask-position", "mask-size", "max-block-size", "max-height", "max-inline-size", "max-lines", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "outline", "outline-color", "outline-offset", "outline-width", "padding", "padding-block-end", "padding-block-start", "padding-bottom", "padding-inline-end", "padding-inline-start", "padding-left", "padding-right", "padding-top", "perspective", "perspective-origin", "right", "rotate", "row-gap", "scale", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-coordinate", "scroll-snap-destination", "scrollbar-color", "shape-image-threshold", "shape-margin", "shape-outside", "tab-size", "text-decoration", "text-decoration-color", "text-decoration-thickness", "text-emphasis", "text-emphasis-color", "text-indent", "text-shadow", "text-underline-offset", "top", "transform", "transform-origin", "translate", "vertical-align", "visibility", "width", "word-spacing", "z-index", "zoom"]);
279
- function W(n) {
279
+ function U(n) {
280
280
  switch (n.length) {
281
281
  case 0:
282
282
  return new ie();
@@ -295,7 +295,7 @@ function ct(n, e, t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map())
295
295
  let d = _, g = E;
296
296
  if (_ !== "offset")
297
297
  switch (d = n.normalizePropertyName(d, i), g) {
298
- case Re:
298
+ case De:
299
299
  g = t.get(_);
300
300
  break;
301
301
  case G:
@@ -311,7 +311,7 @@ function ct(n, e, t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map())
311
311
  throw Jt();
312
312
  return r;
313
313
  }
314
- function De(n, e, t, s) {
314
+ function Re(n, e, t, s) {
315
315
  switch (e) {
316
316
  case "start":
317
317
  n.onStart(() => s(t && Ee(t, "start", n)));
@@ -445,7 +445,7 @@ function te(n) {
445
445
  function _s(n, e, t) {
446
446
  const s = e.params || {}, i = pt(n);
447
447
  i.length && i.forEach((r) => {
448
- s.hasOwnProperty(r) || t.push(Rt());
448
+ s.hasOwnProperty(r) || t.push(Dt());
449
449
  });
450
450
  }
451
451
  const Ce = /* @__PURE__ */ new RegExp(`${dt}\\s*(.+?)\\s*${ds}`, "g");
@@ -462,7 +462,7 @@ function pt(n) {
462
462
  function ne(n, e, t) {
463
463
  const s = `${n}`, i = s.replace(Ce, (r, a) => {
464
464
  let o = e[a];
465
- return o == null && (t.push(Dt()), o = ""), o.toString();
465
+ return o == null && (t.push(Rt()), o = ""), o.toString();
466
466
  });
467
467
  return i == s ? n : i;
468
468
  }
@@ -631,10 +631,10 @@ function Ze(n, e) {
631
631
  }
632
632
  const gt = ":self", Fs = /* @__PURE__ */ new RegExp(`s*${gt}s*,?`, "g");
633
633
  function Ke(n, e, t, s) {
634
- return new Rs(n).build(e, t, s);
634
+ return new Ds(n).build(e, t, s);
635
635
  }
636
636
  const xe = "";
637
- class Rs {
637
+ class Ds {
638
638
  constructor(e) {
639
639
  l(this, "_driver");
640
640
  this._driver = e;
@@ -838,7 +838,7 @@ class Rs {
838
838
  visitQuery(e, t) {
839
839
  const s = t.currentQuerySelector, i = e.options || {};
840
840
  t.queryCount++, t.currentQuery = e;
841
- const [r, a] = Ds(e.selector);
841
+ const [r, a] = Rs(e.selector);
842
842
  t.currentQuerySelector = s.length ? s + " " + r : r, L(t.collectedStyles, t.currentQuerySelector, /* @__PURE__ */ new Map());
843
843
  const o = M(this, te(e.animation), t);
844
844
  return t.currentQuery = null, t.currentQuerySelector = s, {
@@ -853,7 +853,7 @@ class Rs {
853
853
  };
854
854
  }
855
855
  visitStagger(e, t) {
856
- t.currentQuery || t.errors.push(Ut());
856
+ t.currentQuery || t.errors.push(Wt());
857
857
  const s = e.timings === "full" ? {
858
858
  duration: 0,
859
859
  delay: 0,
@@ -867,7 +867,7 @@ class Rs {
867
867
  };
868
868
  }
869
869
  }
870
- function Ds(n) {
870
+ function Rs(n) {
871
871
  const e = !!n.split(/\s*,\s*/).find((t) => t == gt);
872
872
  return e && (n = n.replace(Fs, "")), n = n.replace(/@\*/g, fe).replace(/@\w+/g, (t) => fe + "-" + t.slice(1)).replace(/:animating/g, Pe), [n, e];
873
873
  }
@@ -1191,7 +1191,7 @@ class Qe {
1191
1191
  let u = this._driver.query(this.element, e, h);
1192
1192
  s !== 0 && (u = s < 0 ? u.slice(u.length + s, u.length) : u.slice(0, s)), o.push(...u);
1193
1193
  }
1194
- return !r && o.length == 0 && a.push(Wt()), o;
1194
+ return !r && o.length == 0 && a.push(Ut()), o;
1195
1195
  }
1196
1196
  }
1197
1197
  class ge {
@@ -1262,7 +1262,7 @@ class ge {
1262
1262
  }
1263
1263
  setStyles(e, t, s, i) {
1264
1264
  t && this._previousKeyframe.set("easing", t);
1265
- const r = i && i.params || {}, a = Us(e, this._globalTimelineStyles);
1265
+ const r = i && i.params || {}, a = Ws(e, this._globalTimelineStyles);
1266
1266
  for (let [o, h] of a) {
1267
1267
  const u = ne(h, r, s);
1268
1268
  this._pendingStyles.set(o, u), this._localTimelineStyles.has(o) || this._backFill.set(o, this._globalTimelineStyles.get(o) ?? G), this._updateStyle(o, u);
@@ -1301,7 +1301,7 @@ class ge {
1301
1301
  this._keyframes.forEach((o, h) => {
1302
1302
  const u = new Map([...this._backFill, ...o]);
1303
1303
  u.forEach((c, f) => {
1304
- c === Re ? e.add(f) : c === G && t.add(f);
1304
+ c === De ? e.add(f) : c === G && t.add(f);
1305
1305
  }), s || u.set("offset", h / this.duration), i.push(u);
1306
1306
  });
1307
1307
  const r = [...e.values()], a = [...t.values()];
@@ -1355,7 +1355,7 @@ function et(n, e = 3) {
1355
1355
  const t = Math.pow(10, e - 1);
1356
1356
  return Math.round(n * t) / t;
1357
1357
  }
1358
- function Us(n, e) {
1358
+ function Ws(n, e) {
1359
1359
  const t = /* @__PURE__ */ new Map();
1360
1360
  let s;
1361
1361
  return n.forEach((i) => {
@@ -1395,7 +1395,7 @@ class _t {
1395
1395
  this._triggerName = e, this.ast = t, this._stateStyles = s;
1396
1396
  }
1397
1397
  match(e, t, s, i) {
1398
- return Ws(this.ast.matchers, e, t, s, i);
1398
+ return Us(this.ast.matchers, e, t, s, i);
1399
1399
  }
1400
1400
  buildStyles(e, t, s) {
1401
1401
  let i = this._stateStyles.get("*");
@@ -1406,18 +1406,18 @@ class _t {
1406
1406
  params: St(g, E),
1407
1407
  delay: this.ast.options?.delay
1408
1408
  }, B = c ? [] : qe(e, t, this.ast.animation, r, a, d, w, Z, u, f);
1409
- let R = 0;
1410
- return B.forEach((D) => {
1411
- R = Math.max(D.duration + D.delay, R);
1412
- }), f.length ? tt(t, this._triggerName, s, i, C, d, w, [], [], P, F, R, f) : (B.forEach((D) => {
1413
- const j = D.element, x = L(P, j, /* @__PURE__ */ new Set());
1414
- D.preStyleProps.forEach((H) => x.add(H));
1409
+ let D = 0;
1410
+ return B.forEach((R) => {
1411
+ D = Math.max(R.duration + R.delay, D);
1412
+ }), f.length ? tt(t, this._triggerName, s, i, C, d, w, [], [], P, F, D, f) : (B.forEach((R) => {
1413
+ const j = R.element, x = L(P, j, /* @__PURE__ */ new Set());
1414
+ R.preStyleProps.forEach((H) => x.add(H));
1415
1415
  const Ve = L(F, j, /* @__PURE__ */ new Set());
1416
- D.postStyleProps.forEach((H) => Ve.add(H)), j !== t && A.add(j);
1417
- }), tt(t, this._triggerName, s, i, C, d, w, B, [...A.values()], P, F, R));
1416
+ R.postStyleProps.forEach((H) => Ve.add(H)), j !== t && A.add(j);
1417
+ }), tt(t, this._triggerName, s, i, C, d, w, B, [...A.values()], P, F, D));
1418
1418
  }
1419
1419
  }
1420
- function Ws(n, e, t, s, i) {
1420
+ function Us(n, e, t, s, i) {
1421
1421
  return n.some((r) => r(e, t, s, i));
1422
1422
  }
1423
1423
  function St(n, e) {
@@ -1530,7 +1530,7 @@ class Js {
1530
1530
  const h = a.map((c) => {
1531
1531
  const f = o.get(c.element);
1532
1532
  return this._buildPlayer(c, /* @__PURE__ */ new Map(), f);
1533
- }), u = W(h);
1533
+ }), u = U(h);
1534
1534
  return this._playersById.set(e, u), u.onDestroy(() => this.destroy(e)), this.players.push(u), u;
1535
1535
  }
1536
1536
  destroy(e) {
@@ -1547,7 +1547,7 @@ class Js {
1547
1547
  }
1548
1548
  listen(e, t, s, i) {
1549
1549
  const r = Oe(t, "", "", "");
1550
- return De(this._getPlayer(e), s, r, i), () => {
1550
+ return Re(this._getPlayer(e), s, r, i), () => {
1551
1551
  };
1552
1552
  }
1553
1553
  command(e, t, s, i) {
@@ -1747,7 +1747,7 @@ class ni {
1747
1747
  c && o.push(c);
1748
1748
  }
1749
1749
  }), o.length)
1750
- return this._engine.markElementAsRemoved(this.id, e, !0, t, a), s && W(o).onDone(() => this._engine.processLeaveNode(e)), !0;
1750
+ return this._engine.markElementAsRemoved(this.id, e, !0, t, a), s && U(o).onDone(() => this._engine.processLeaveNode(e)), !0;
1751
1751
  }
1752
1752
  return !1;
1753
1753
  }
@@ -1808,7 +1808,7 @@ class ni {
1808
1808
  a && a.forEach((o) => {
1809
1809
  if (o.name == s.triggerName) {
1810
1810
  const h = Oe(r, s.triggerName, s.fromState.value, s.toState.value);
1811
- h._data = e, De(s.player, o.phase, h, o.callback);
1811
+ h._data = e, Re(s.player, o.phase, h, o.callback);
1812
1812
  }
1813
1813
  }), i.markedForDestroy ? this._engine.afterFlush(() => {
1814
1814
  i.destroy();
@@ -1980,7 +1980,7 @@ class ri {
1980
1980
  whenRenderingDone() {
1981
1981
  return new Promise((e) => {
1982
1982
  if (this.players.length)
1983
- return W(this.players).onDone(() => e());
1983
+ return U(this.players).onDone(() => e());
1984
1984
  e();
1985
1985
  });
1986
1986
  }
@@ -2020,7 +2020,7 @@ class ri {
2020
2020
  }
2021
2021
  if (this.totalQueuedPlayers = 0, this.collectedEnterElements.length = 0, this.collectedLeaveElements.length = 0, this._flushFns.forEach((s) => s()), this._flushFns = [], this._whenQuietFns.length) {
2022
2022
  const s = this._whenQuietFns;
2023
- this._whenQuietFns = [], t.length ? W(t).onDone(() => {
2023
+ this._whenQuietFns = [], t.length ? U(t).onDone(() => {
2024
2024
  s.forEach((i) => i());
2025
2025
  }) : s.forEach((i) => i());
2026
2026
  }
@@ -2080,7 +2080,7 @@ class ri {
2080
2080
  return;
2081
2081
  }
2082
2082
  }
2083
- const q = !f || !this.driver.containsElement(f, N), O = F.get(N), U = d.get(N), v = this._buildInstruction(y, s, U, O, q);
2083
+ const q = !f || !this.driver.containsElement(f, N), O = F.get(N), W = d.get(N), v = this._buildInstruction(y, s, W, O, q);
2084
2084
  if (v.errors && v.errors.length) {
2085
2085
  B.push(v);
2086
2086
  return;
@@ -2093,10 +2093,10 @@ class ri {
2093
2093
  b.onStart(() => J(N, v.fromStyles)), b.onDestroy(() => Q(N, v.toStyles)), i.push(b);
2094
2094
  return;
2095
2095
  }
2096
- const We = [];
2096
+ const Ue = [];
2097
2097
  v.timelines.forEach((k) => {
2098
- k.stretchStartingKeyframe = !0, this.disabledNodes.has(k.element) || We.push(k);
2099
- }), v.timelines = We, s.append(N, v.timelines);
2098
+ k.stretchStartingKeyframe = !0, this.disabledNodes.has(k.element) || Ue.push(k);
2099
+ }), v.timelines = Ue, s.append(N, v.timelines);
2100
2100
  const vt = {
2101
2101
  instruction: v,
2102
2102
  player: b,
@@ -2118,14 +2118,14 @@ class ri {
2118
2118
  m.push(os(p.triggerName, p.errors));
2119
2119
  }), Z.forEach((p) => p.destroy()), this.reportError(m);
2120
2120
  }
2121
- const R = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map();
2121
+ const D = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
2122
2122
  a.forEach((m) => {
2123
2123
  const p = m.element;
2124
- s.has(p) && (D.set(p, p), this._beforeAnimationBuild(m.player.namespaceId, m.instruction, R));
2124
+ s.has(p) && (R.set(p, p), this._beforeAnimationBuild(m.player.namespaceId, m.instruction, D));
2125
2125
  }), i.forEach((m) => {
2126
2126
  const p = m.element;
2127
2127
  this._getPreviousPlayers(p, !1, m.namespaceId, m.triggerName, null).forEach((b) => {
2128
- L(R, p, []).push(b), b.destroy();
2128
+ L(D, p, []).push(b), b.destroy();
2129
2129
  });
2130
2130
  });
2131
2131
  const j = w.filter((m) => ot(m, h, u)), x = /* @__PURE__ */ new Map();
@@ -2134,12 +2134,12 @@ class ri {
2134
2134
  });
2135
2135
  const H = /* @__PURE__ */ new Map();
2136
2136
  _.forEach((m, p) => {
2137
- rt(H, this.driver, new Set(m), h, Re);
2137
+ rt(H, this.driver, new Set(m), h, De);
2138
2138
  }), j.forEach((m) => {
2139
2139
  const p = x.get(m), y = H.get(m);
2140
2140
  x.set(m, new Map([...p?.entries() ?? [], ...y?.entries() ?? []]));
2141
2141
  });
2142
- const _e = [], Ge = [], Ue = {};
2142
+ const _e = [], Ge = [], We = {};
2143
2143
  a.forEach((m) => {
2144
2144
  const {
2145
2145
  element: p,
@@ -2151,33 +2151,33 @@ class ri {
2151
2151
  y.onDestroy(() => Q(p, b.toStyles)), y.disabled = !0, y.overrideTotalTime(b.totalTime), i.push(y);
2152
2152
  return;
2153
2153
  }
2154
- let N = Ue;
2155
- if (D.size > 1) {
2154
+ let N = We;
2155
+ if (R.size > 1) {
2156
2156
  let O = p;
2157
- const U = [];
2157
+ const W = [];
2158
2158
  for (; O = O.parentNode; ) {
2159
- const v = D.get(O);
2159
+ const v = R.get(O);
2160
2160
  if (v) {
2161
2161
  N = v;
2162
2162
  break;
2163
2163
  }
2164
- U.push(O);
2164
+ W.push(O);
2165
2165
  }
2166
- U.forEach((v) => D.set(v, N));
2166
+ W.forEach((v) => R.set(v, N));
2167
2167
  }
2168
- const q = this._buildAnimation(y.namespaceId, b, R, r, H, x);
2169
- if (y.setRealPlayer(q), N === Ue)
2168
+ const q = this._buildAnimation(y.namespaceId, b, D, r, H, x);
2169
+ if (y.setRealPlayer(q), N === We)
2170
2170
  _e.push(y);
2171
2171
  else {
2172
2172
  const O = this.playersByElement.get(N);
2173
- O && O.length && (y.parentPlayer = W(O)), i.push(y);
2173
+ O && O.length && (y.parentPlayer = U(O)), i.push(y);
2174
2174
  }
2175
2175
  } else
2176
2176
  J(p, b.fromStyles), y.onDestroy(() => Q(p, b.toStyles)), Ge.push(y), c.has(p) && i.push(y);
2177
2177
  }), Ge.forEach((m) => {
2178
2178
  const p = r.get(m.element);
2179
2179
  if (p && p.length) {
2180
- const y = W(p);
2180
+ const y = U(p);
2181
2181
  m.setRealPlayer(y);
2182
2182
  }
2183
2183
  }), i.forEach((m) => {
@@ -2191,8 +2191,8 @@ class ri {
2191
2191
  let q = o.get(p);
2192
2192
  q && q.length && b.push(...q);
2193
2193
  let O = this.driver.query(p, Pe, !0);
2194
- for (let U = 0; U < O.length; U++) {
2195
- let v = o.get(O[U]);
2194
+ for (let W = 0; W < O.length; W++) {
2195
+ let v = o.get(O[W]);
2196
2196
  v && v.length && b.push(...v);
2197
2197
  }
2198
2198
  }
@@ -2246,20 +2246,20 @@ class ri {
2246
2246
  c.add(g);
2247
2247
  const w = g[K];
2248
2248
  if (w && w.removedBeforeQueried) return new ie(d.duration, d.delay);
2249
- const A = g !== h, P = ui((s.get(g) || si).map((R) => R.getRealPlayer())).filter((R) => {
2250
- const D = R;
2251
- return D.element ? D.element === g : !1;
2249
+ const A = g !== h, P = ui((s.get(g) || si).map((D) => D.getRealPlayer())).filter((D) => {
2250
+ const R = D;
2251
+ return R.element ? R.element === g : !1;
2252
2252
  }), F = r.get(g), C = a.get(g), Z = ct(this._normalizer, d.keyframes, F, C), B = this._buildPlayer(d, Z, P);
2253
2253
  if (d.subTimeline && i && f.add(g), A) {
2254
- const R = new Fe(e, o, g);
2255
- R.setRealPlayer(B), u.push(R);
2254
+ const D = new Fe(e, o, g);
2255
+ D.setRealPlayer(B), u.push(D);
2256
2256
  }
2257
2257
  return B;
2258
2258
  });
2259
2259
  u.forEach((d) => {
2260
2260
  L(this.playersByQueriedElement, d.element, []).push(d), d.onDone(() => ai(this.playersByQueriedElement, d.element, d));
2261
2261
  }), c.forEach((d) => z(d, $e));
2262
- const _ = W(E);
2262
+ const _ = U(E);
2263
2263
  return _.onDestroy(() => {
2264
2264
  c.forEach((d) => ee(d, $e)), Q(h, t.toStyles);
2265
2265
  }), f.forEach((d) => {
@@ -2288,7 +2288,7 @@ class Fe {
2288
2288
  }
2289
2289
  setRealPlayer(e) {
2290
2290
  this._containsRealPlayer || (this._player = e, this._queuedCallbacks.forEach((t, s) => {
2291
- t.forEach((i) => De(e, s, void 0, i));
2291
+ t.forEach((i) => Re(e, s, void 0, i));
2292
2292
  }), this._queuedCallbacks.clear(), this._containsRealPlayer = !0, this.overrideTotalTime(e.totalTime), this.queued = !1);
2293
2293
  }
2294
2294
  getRealPlayer() {
@@ -2409,7 +2409,7 @@ function ee(n, e) {
2409
2409
  n.classList?.remove(e);
2410
2410
  }
2411
2411
  function hi(n, e, t) {
2412
- W(t).onDone(() => n.processLeaveNode(e));
2412
+ U(t).onDone(() => n.processLeaveNode(e));
2413
2413
  }
2414
2414
  function ui(n) {
2415
2415
  const e = [];