@voidzero-dev/vitepress-theme 0.1.32 → 0.1.33

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 (124) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index10.js +2 -2
  4. package/dist/index11.js +2 -2
  5. package/dist/index12.js +2 -2
  6. package/dist/index13.js +1 -1
  7. package/dist/index14.js +2 -2
  8. package/dist/index15.js +1 -1
  9. package/dist/index16.js +2 -2
  10. package/dist/index17.js +1 -1
  11. package/dist/index18.js +7 -0
  12. package/dist/index19.js +20 -2
  13. package/dist/index2.js +6 -4
  14. package/dist/index21.js +1 -1
  15. package/dist/index22.js +1 -1
  16. package/dist/index23.js +1 -1
  17. package/dist/index24.js +1 -1
  18. package/dist/index25.js +2 -21
  19. package/dist/index26.js +4 -0
  20. package/dist/index27.js +21 -7
  21. package/dist/index29.js +9 -0
  22. package/dist/index3.js +3 -3
  23. package/dist/index30.js +105 -2
  24. package/dist/index32.js +2 -295
  25. package/dist/index34.js +275 -127
  26. package/dist/index36.js +147 -18
  27. package/dist/index38.js +114 -18
  28. package/dist/index4.js +6 -6
  29. package/dist/index40.js +2 -26
  30. package/dist/index41.js +14 -18
  31. package/dist/index42.js +20 -16
  32. package/dist/index43.js +16 -16
  33. package/dist/index44.js +13 -13
  34. package/dist/index45.js +14 -14
  35. package/dist/index46.js +26 -2
  36. package/dist/index47.js +2 -2
  37. package/dist/index48.js +2 -2
  38. package/dist/index49.js +2 -2
  39. package/dist/index50.js +2 -2
  40. package/dist/index51.js +2 -2
  41. package/dist/index52.js +2 -2
  42. package/dist/index53.js +2 -2
  43. package/dist/index54.js +2 -2
  44. package/dist/index55.js +2 -2
  45. package/dist/index56.js +1 -1
  46. package/dist/index57.js +2 -2
  47. package/dist/index58.js +18 -2
  48. package/dist/index59.js +18 -2
  49. package/dist/index60.js +18 -2
  50. package/dist/index61.js +1 -1
  51. package/dist/index62.js +49 -2
  52. package/dist/index63.js +43 -34
  53. package/dist/index64.js +2587 -2
  54. package/dist/index65.js +51 -2
  55. package/dist/index66.js +7207 -2
  56. package/dist/index67.js +14 -2
  57. package/dist/index68.js +34 -2
  58. package/dist/index69.js +2 -2
  59. package/dist/index7.js +1 -1
  60. package/dist/index70.js +2 -2
  61. package/dist/index71.js +2 -2
  62. package/dist/index72.js +2 -2
  63. package/dist/index73.js +2 -2
  64. package/dist/index74.js +2 -2
  65. package/dist/index75.js +2 -2
  66. package/dist/index76.js +2 -22
  67. package/dist/index77.js +2 -124
  68. package/dist/index78.js +2 -2
  69. package/dist/index79.js +2 -33
  70. package/dist/index8.js +2 -2
  71. package/dist/index80.js +21 -1201
  72. package/dist/index81.js +124 -5
  73. package/dist/index82.js +2 -4
  74. package/dist/index83.js +436 -312
  75. package/dist/index84.js +1735 -2
  76. package/dist/index85.js +4 -0
  77. package/dist/index86.js +4 -0
  78. package/dist/index87.js +4 -0
  79. package/dist/index88.js +4 -0
  80. package/dist/index89.js +4 -0
  81. package/dist/index9.js +2 -2
  82. package/dist/index90.js +4 -0
  83. package/dist/index91.js +35 -0
  84. package/dist/index92.js +1204 -0
  85. package/dist/index93.js +448 -0
  86. package/dist/index94.js +7 -0
  87. package/dist/index95.js +4 -0
  88. package/dist/index96.js +317 -0
  89. package/dist/index97.js +4 -0
  90. package/dist/index98.js +6 -0
  91. package/dist/vitepress/components/shared/Eyebrow.vue.d.ts +5 -0
  92. package/dist/vitepress/components/shared/Footer.vue.d.ts +2 -0
  93. package/dist/vitepress/components/shared/RiveAnimation.vue.d.ts +20 -0
  94. package/dist/vitepress/components/shared/Terminal.vue.d.ts +4 -0
  95. package/dist/vitepress/components/shared/icons/VZIconBluesky.vue.d.ts +2 -0
  96. package/dist/vitepress/components/shared/icons/VZIconGitHub.vue.d.ts +2 -0
  97. package/dist/vitepress/components/shared/icons/VZIconTwitter.vue.d.ts +2 -0
  98. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation1.vue.d.ts +5 -0
  99. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation2.vue.d.ts +5 -0
  100. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation3.vue.d.ts +5 -0
  101. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation4.vue.d.ts +5 -0
  102. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation5.vue.d.ts +5 -0
  103. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation6.vue.d.ts +5 -0
  104. package/dist/vitepress/components/viteplus/Header.vue.d.ts +17 -0
  105. package/dist/vitepress/components/voidzero/CaseStudySlider.vue.d.ts +5 -0
  106. package/dist/vitepress/components/voidzero/CustomersSectionHeading.vue.d.ts +2 -0
  107. package/dist/vitepress/components/voidzero/GitHubStats.vue.d.ts +7 -0
  108. package/dist/vitepress/components/voidzero/Header.vue.d.ts +2 -0
  109. package/dist/vitepress/components/voidzero/Hero.vue.d.ts +2 -0
  110. package/dist/vitepress/components/voidzero/OpenSourceSectionHeading.vue.d.ts +2 -0
  111. package/dist/vitepress/components/voidzero/OpenSourceSectionProjects.vue.d.ts +2 -0
  112. package/dist/vitepress/components/voidzero/Statistics.vue.d.ts +7 -0
  113. package/dist/vitepress/components/voidzero/StatisticsSectionHeading.vue.d.ts +2 -0
  114. package/dist/vitepress/components/voidzero/TeamCTA.vue.d.ts +2 -0
  115. package/dist/vitepress/components/voidzero/TrustedBy.vue.d.ts +2 -0
  116. package/dist/vitepress/components/voidzero/VitePlusSectionFeatures.vue.d.ts +2 -0
  117. package/dist/vitepress/components/voidzero/VitePlusSectionHeading.vue.d.ts +2 -0
  118. package/dist/vitepress/index.d.ts +6 -0
  119. package/package.json +9 -6
  120. package/dist/index20.js +0 -4
  121. package/dist/index28.js +0 -107
  122. package/dist/index37.js +0 -20
  123. package/dist/index39.js +0 -4
  124. /package/dist/{index31.js → index33.js} +0 -0
package/dist/index83.js CHANGED
@@ -1,317 +1,441 @@
1
- import { __module as q } from "./index84.js";
2
- var fe = q.exports, te;
3
- function he() {
4
- return te ? q.exports : (te = 1, (function(ne, ve) {
5
- (function(z, Q) {
6
- ne.exports = Q();
7
- })(typeof self < "u" ? self : fe, (() => (() => {
8
- var z = { 3146: (s, c, p) => {
9
- for (var S = p(3491), m = typeof window > "u" ? p.g : window, g = ["moz", "webkit"], h = "AnimationFrame", d = m["request" + h], _ = m["cancel" + h] || m["cancelRequest" + h], O = 0; !d && O < g.length; O++) d = m[g[O] + "Request" + h], _ = m[g[O] + "Cancel" + h] || m[g[O] + "CancelRequest" + h];
10
- if (!d || !_) {
11
- var D = 0, x = 0, b = [], R = 1e3 / 60;
12
- d = function(y) {
13
- if (b.length === 0) {
14
- var T = S(), L = Math.max(0, R - (T - D));
15
- D = L + T, setTimeout((function() {
16
- var M = b.slice(0);
17
- b.length = 0;
18
- for (var C = 0; C < M.length; C++) if (!M[C].cancelled) try {
19
- M[C].callback(D);
20
- } catch (N) {
21
- setTimeout((function() {
22
- throw N;
23
- }), 0);
24
- }
25
- }), Math.round(L));
26
- }
27
- return b.push({ handle: ++x, callback: y, cancelled: !1 }), x;
28
- }, _ = function(y) {
29
- for (var T = 0; T < b.length; T++) b[T].handle === y && (b[T].cancelled = !0);
30
- };
31
- }
32
- s.exports = function(y) {
33
- return d.call(m, y);
34
- }, s.exports.cancel = function() {
35
- _.apply(m, arguments);
36
- }, s.exports.polyfill = function(y) {
37
- y || (y = m), y.requestAnimationFrame = d, y.cancelAnimationFrame = _;
38
- };
39
- }, 3491: function(s) {
40
- (function() {
41
- var c, p, S, m, g, h;
42
- typeof performance < "u" && performance !== null && performance.now ? s.exports = function() {
43
- return performance.now();
44
- } : typeof process < "u" && process !== null && process.hrtime ? (s.exports = function() {
45
- return (c() - g) / 1e6;
46
- }, p = process.hrtime, m = (c = function() {
47
- var d;
48
- return 1e9 * (d = p())[0] + d[1];
49
- })(), h = 1e9 * process.uptime(), g = m - h) : Date.now ? (s.exports = function() {
50
- return Date.now() - S;
51
- }, S = Date.now()) : (s.exports = function() {
52
- return (/* @__PURE__ */ new Date()).getTime() - S;
53
- }, S = (/* @__PURE__ */ new Date()).getTime());
54
- }).call(this);
55
- } }, Q = {};
56
- function w(s) {
57
- var c = Q[s];
58
- if (c !== void 0) return c.exports;
59
- var p = Q[s] = { exports: {} };
60
- return z[s].call(p.exports, p, p.exports, w), p.exports;
1
+ const m = (n, t, e) => {
2
+ const i = document.createElement(n), [s, r] = Array.isArray(t) ? [void 0, t] : [t, e];
3
+ return s && Object.assign(i, s), r?.forEach((a) => i.appendChild(a)), i;
4
+ }, V = (n, t) => {
5
+ var e;
6
+ return t === "left" ? n.offsetLeft : (((e = n.offsetParent instanceof HTMLElement ? n.offsetParent : null) == null ? void 0 : e.offsetWidth) ?? 0) - n.offsetWidth - n.offsetLeft;
7
+ }, B = (n) => n.offsetWidth > 0 && n.offsetHeight > 0, G = (n, t) => {
8
+ !customElements.get(n) && customElements.define(n, t);
9
+ };
10
+ function X(n, t, { reverse: e = !1 } = {}) {
11
+ const i = n.length;
12
+ for (let s = e ? i - 1 : 0; e ? s >= 0 : s < i; e ? s-- : s++)
13
+ t(n[s], s);
14
+ }
15
+ function J(n, t, e, i) {
16
+ const s = t.formatToParts(n);
17
+ e && s.unshift({ type: "prefix", value: e }), i && s.push({ type: "suffix", value: i });
18
+ const r = [], a = [], o = [], c = [], d = {}, p = (h) => `${h}:${d[h] = (d[h] ?? -1) + 1}`;
19
+ let $ = "", g = !1, v = !1;
20
+ for (const h of s) {
21
+ $ += h.value;
22
+ const l = h.type === "minusSign" || h.type === "plusSign" ? "sign" : h.type;
23
+ l === "integer" ? (g = !0, a.push(...h.value.split("").map((S) => ({ type: l, value: parseInt(S) })))) : l === "group" ? a.push({ type: l, value: h.value }) : l === "decimal" ? (v = !0, o.push({ type: l, value: h.value, key: p(l) })) : l === "fraction" ? o.push(...h.value.split("").map((S) => ({
24
+ type: l,
25
+ value: parseInt(S),
26
+ key: p(l),
27
+ pos: -1 - d[l]
28
+ }))) : (g || v ? c : r).push({
29
+ type: l,
30
+ value: h.value,
31
+ key: p(l)
32
+ });
33
+ }
34
+ const R = [];
35
+ for (let h = a.length - 1; h >= 0; h--) {
36
+ const l = a[h];
37
+ R.unshift(l.type === "integer" ? {
38
+ ...l,
39
+ key: p(l.type),
40
+ pos: d[l.type]
41
+ } : {
42
+ ...l,
43
+ key: p(l.type)
44
+ });
45
+ }
46
+ return {
47
+ pre: r,
48
+ integer: R,
49
+ fraction: o,
50
+ post: c,
51
+ valueAsString: $,
52
+ value: typeof n == "string" ? parseFloat(n) : n
53
+ };
54
+ }
55
+ const F = String.raw, W = (() => {
56
+ try {
57
+ document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
58
+ } catch {
59
+ return !1;
60
+ }
61
+ return !0;
62
+ })(), O = typeof CSS < "u" && CSS.supports && CSS.supports("line-height", "mod(1,1)"), j = typeof matchMedia < "u" ? matchMedia("(prefers-reduced-motion: reduce)") : null, w = "--_number-flow-d-opacity", A = "--_number-flow-d-width", b = "--_number-flow-dx", E = "--_number-flow-d", D = (() => {
63
+ try {
64
+ return CSS.registerProperty({
65
+ name: w,
66
+ syntax: "<number>",
67
+ inherits: !1,
68
+ initialValue: "0"
69
+ }), CSS.registerProperty({
70
+ name: b,
71
+ syntax: "<length>",
72
+ inherits: !0,
73
+ initialValue: "0px"
74
+ }), CSS.registerProperty({
75
+ name: A,
76
+ syntax: "<number>",
77
+ inherits: !1,
78
+ initialValue: "0"
79
+ }), CSS.registerProperty({
80
+ name: E,
81
+ syntax: "<number>",
82
+ inherits: !0,
83
+ initialValue: "0"
84
+ }), !0;
85
+ } catch {
86
+ return !1;
87
+ }
88
+ })(), I = "var(--number-flow-char-height, 1em)", u = "var(--number-flow-mask-height, 0.25em)", k = `calc(${u} / 2)`, x = "var(--number-flow-mask-width, 0.5em)", f = `calc(${x} / var(--scale-x))`, y = "#000 0, transparent 71%", U = F`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${I} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${A}) / var(--width));transform:translateX(var(${b})) scaleX(var(--scale-x));margin:0 calc(-1 * ${x});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${f},#000 calc(100% - ${f}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${u},#000 calc(100% - ${u}),transparent 100% ),radial-gradient(at bottom right,${y}),radial-gradient(at bottom left,${y}),radial-gradient(at top left,${y}),radial-gradient(at top right,${y});-webkit-mask-size:100% calc(100% - ${u} * 2),calc(100% - ${f} * 2) 100%,${f} ${u},${f} ${u},${f} ${u},${f} ${u};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${k} ${x};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${b})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${E})}.digit__num,.number .section::after{padding:${k} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${w}))}`, z = HTMLElement, H = O && W && D;
89
+ let _;
90
+ class Y extends z {
91
+ constructor() {
92
+ super(), this.created = !1, this.batched = !1;
93
+ const { animated: t, ...e } = this.constructor.defaultProps;
94
+ this._animated = this.computedAnimated = t, Object.assign(this, e);
95
+ }
96
+ get animated() {
97
+ return this._animated;
98
+ }
99
+ set animated(t) {
100
+ var e;
101
+ this.animated !== t && (this._animated = t, (e = this.shadowRoot) == null || e.getAnimations().forEach((i) => i.finish()));
102
+ }
103
+ /**
104
+ * @internal
105
+ */
106
+ set data(t) {
107
+ var e;
108
+ if (t == null)
109
+ return;
110
+ const { pre: i, integer: s, fraction: r, post: a, value: o } = t;
111
+ if (this.created) {
112
+ const c = this._data;
113
+ this._data = t, this.computedTrend = typeof this.trend == "function" ? this.trend(c.value, o) : this.trend, this.computedAnimated = H && this._animated && (!this.respectMotionPreference || !(j != null && j.matches)) && // https://github.com/barvian/number-flow/issues/9
114
+ B(this), (e = this.plugins) == null || e.forEach((d) => {
115
+ var p;
116
+ return (p = d.onUpdate) == null ? void 0 : p.call(d, t, c, this);
117
+ }), this.batched || this.willUpdate(), this._pre.update(i), this._num.update({ integer: s, fraction: r }), this._post.update(a), this.batched || this.didUpdate();
118
+ } else {
119
+ this._data = t, this.attachShadow({ mode: "open" });
120
+ try {
121
+ this._internals ?? (this._internals = this.attachInternals()), this._internals.role = "img";
122
+ } catch {
123
+ }
124
+ if (typeof CSSStyleSheet < "u" && this.shadowRoot.adoptedStyleSheets)
125
+ _ || (_ = new CSSStyleSheet(), _.replaceSync(U)), this.shadowRoot.adoptedStyleSheets = [_];
126
+ else {
127
+ const c = document.createElement("style");
128
+ c.textContent = U, this.shadowRoot.appendChild(c);
129
+ }
130
+ this._pre = new T(this, i, {
131
+ justify: "right",
132
+ part: "left"
133
+ }), this.shadowRoot.appendChild(this._pre.el), this._num = new Z(this, s, r), this.shadowRoot.appendChild(this._num.el), this._post = new T(this, a, {
134
+ justify: "left",
135
+ part: "right"
136
+ }), this.shadowRoot.appendChild(this._post.el), this.created = !0;
137
+ }
138
+ try {
139
+ this._internals.ariaLabel = t.valueAsString;
140
+ } catch {
141
+ }
142
+ }
143
+ /**
144
+ * @internal
145
+ */
146
+ willUpdate() {
147
+ this._pre.willUpdate(), this._num.willUpdate(), this._post.willUpdate();
148
+ }
149
+ /**
150
+ * @internal
151
+ */
152
+ didUpdate() {
153
+ if (!this.computedAnimated)
154
+ return;
155
+ this._abortAnimationsFinish ? this._abortAnimationsFinish.abort() : this.dispatchEvent(new Event("animationsstart")), this._pre.didUpdate(), this._num.didUpdate(), this._post.didUpdate();
156
+ const t = new AbortController();
157
+ Promise.all(this.shadowRoot.getAnimations().map((e) => e.finished)).then(() => {
158
+ t.signal.aborted || (this.dispatchEvent(new Event("animationsfinish")), this._abortAnimationsFinish = void 0);
159
+ }), this._abortAnimationsFinish = t;
160
+ }
161
+ }
162
+ Y.defaultProps = {
163
+ transformTiming: {
164
+ duration: 900,
165
+ // Make sure to keep this minified:
166
+ easing: "linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"
167
+ },
168
+ spinTiming: void 0,
169
+ opacityTiming: { duration: 450, easing: "ease-out" },
170
+ animated: !0,
171
+ trend: (n, t) => Math.sign(t - n),
172
+ respectMotionPreference: !0,
173
+ plugins: void 0,
174
+ digits: void 0
175
+ };
176
+ class Z {
177
+ constructor(t, e, i, { className: s, ...r } = {}) {
178
+ this.flow = t, this._integer = new P(t, e, {
179
+ justify: "right",
180
+ part: "integer"
181
+ }), this._fraction = new P(t, i, {
182
+ justify: "left",
183
+ part: "fraction"
184
+ }), this._inner = m("span", {
185
+ className: "number__inner"
186
+ }, [this._integer.el, this._fraction.el]), this.el = m("span", {
187
+ ...r,
188
+ part: "number",
189
+ className: `number ${s ?? ""}`
190
+ }, [this._inner]);
191
+ }
192
+ willUpdate() {
193
+ this._prevWidth = this.el.offsetWidth, this._prevLeft = this.el.getBoundingClientRect().left, this._integer.willUpdate(), this._fraction.willUpdate();
194
+ }
195
+ update({ integer: t, fraction: e }) {
196
+ this._integer.update(t), this._fraction.update(e);
197
+ }
198
+ didUpdate() {
199
+ const t = this.el.getBoundingClientRect();
200
+ this._integer.didUpdate(), this._fraction.didUpdate();
201
+ const e = this._prevLeft - t.left, i = this.el.offsetWidth, s = this._prevWidth - i;
202
+ this.el.style.setProperty("--width", String(i)), this.el.animate({
203
+ [b]: [`${e}px`, "0px"],
204
+ [A]: [s, 0]
205
+ }, {
206
+ ...this.flow.transformTiming,
207
+ composite: "accumulate"
208
+ });
209
+ }
210
+ }
211
+ class N {
212
+ constructor(t, e, { justify: i, className: s, ...r }, a) {
213
+ this.flow = t, this.children = /* @__PURE__ */ new Map(), this.onCharRemove = (c) => () => {
214
+ this.children.delete(c);
215
+ }, this.justify = i;
216
+ const o = e.map((c) => this.addChar(c).el);
217
+ this.el = m("span", {
218
+ ...r,
219
+ className: `section section--justify-${i} ${s ?? ""}`
220
+ }, a ? a(o) : o);
221
+ }
222
+ addChar(t, { startDigitsAtZero: e = !1, ...i } = {}) {
223
+ const s = t.type === "integer" || t.type === "fraction" ? new L(this, t.type, e ? 0 : t.value, t.pos, {
224
+ ...i,
225
+ onRemove: this.onCharRemove(t.key)
226
+ }) : new q(this, t.type, t.value, {
227
+ ...i,
228
+ onRemove: this.onCharRemove(t.key)
229
+ });
230
+ return this.children.set(t.key, s), s;
231
+ }
232
+ unpop(t) {
233
+ t.el.removeAttribute("inert"), t.el.style.top = "", t.el.style[this.justify] = "";
234
+ }
235
+ pop(t) {
236
+ t.forEach((e) => {
237
+ e.el.style.top = `${e.el.offsetTop}px`, e.el.style[this.justify] = `${V(e.el, this.justify)}px`;
238
+ }), t.forEach((e) => {
239
+ e.el.setAttribute("inert", ""), e.present = !1;
240
+ });
241
+ }
242
+ addNewAndUpdateExisting(t) {
243
+ const e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = this.justify === "left", r = s ? "prepend" : "append";
244
+ if (X(t, (a) => {
245
+ let o;
246
+ this.children.has(a.key) ? (o = this.children.get(a.key), i.set(a, o), this.unpop(o), o.present = !0) : (o = this.addChar(a, { startDigitsAtZero: !0, animateIn: !0 }), e.set(a, o)), this.el[r](o.el);
247
+ }, { reverse: s }), this.flow.computedAnimated) {
248
+ const a = this.el.getBoundingClientRect();
249
+ e.forEach((o) => {
250
+ o.willUpdate(a);
251
+ });
252
+ }
253
+ e.forEach((a, o) => {
254
+ a.update(o.value);
255
+ }), i.forEach((a, o) => {
256
+ a.update(o.value);
257
+ });
258
+ }
259
+ willUpdate() {
260
+ const t = this.el.getBoundingClientRect();
261
+ this._prevOffset = t[this.justify], this.children.forEach((e) => e.willUpdate(t));
262
+ }
263
+ didUpdate() {
264
+ const t = this.el.getBoundingClientRect();
265
+ this.children.forEach((s) => s.didUpdate(t));
266
+ const e = t[this.justify], i = this._prevOffset - e;
267
+ i && this.children.size && this.el.animate({
268
+ transform: [`translateX(${i}px)`, "none"]
269
+ }, {
270
+ ...this.flow.transformTiming,
271
+ composite: "accumulate"
272
+ });
273
+ }
274
+ }
275
+ class P extends N {
276
+ update(t) {
277
+ const e = /* @__PURE__ */ new Map();
278
+ this.children.forEach((i, s) => {
279
+ t.find((r) => r.key === s) || e.set(s, i), this.unpop(i);
280
+ }), this.addNewAndUpdateExisting(t), e.forEach((i) => {
281
+ i instanceof L && i.update(0);
282
+ }), this.pop(e);
283
+ }
284
+ }
285
+ class T extends N {
286
+ update(t) {
287
+ const e = /* @__PURE__ */ new Map();
288
+ this.children.forEach((i, s) => {
289
+ t.find((r) => r.key === s) || e.set(s, i);
290
+ }), this.pop(e), this.addNewAndUpdateExisting(t);
291
+ }
292
+ }
293
+ class C {
294
+ constructor(t, e, { onRemove: i, animateIn: s = !1 } = {}) {
295
+ this.flow = t, this.el = e, this._present = !0, this._remove = () => {
296
+ var r;
297
+ this.el.remove(), (r = this._onRemove) == null || r.call(this);
298
+ }, this.el.classList.add("animate-presence"), this.flow.computedAnimated && s && this.el.animate({
299
+ [w]: [-0.9999, 0]
300
+ }, {
301
+ ...this.flow.opacityTiming,
302
+ composite: "accumulate"
303
+ }), this._onRemove = i;
304
+ }
305
+ get present() {
306
+ return this._present;
307
+ }
308
+ set present(t) {
309
+ if (this._present !== t) {
310
+ if (this._present = t, t ? this.el.removeAttribute("inert") : this.el.setAttribute("inert", ""), !this.flow.computedAnimated) {
311
+ t || this._remove();
312
+ return;
61
313
  }
62
- w.n = (s) => {
63
- var c = s && s.__esModule ? () => s.default : () => s;
64
- return w.d(c, { a: c }), c;
65
- }, w.d = (s, c) => {
66
- for (var p in c) w.o(c, p) && !w.o(s, p) && Object.defineProperty(s, p, { enumerable: !0, get: c[p] });
67
- }, w.g = (function() {
68
- if (typeof globalThis == "object") return globalThis;
69
- try {
70
- return this || new Function("return this")();
71
- } catch {
72
- if (typeof window == "object") return window;
73
- }
74
- })(), w.o = (s, c) => Object.prototype.hasOwnProperty.call(s, c);
75
- var J = {};
76
- return (() => {
77
- w.d(J, { default: () => oe });
78
- var s = w(3146), c = w.n(s);
79
- const p = function(o) {
80
- return new RegExp(/<[a-z][\s\S]*>/i).test(o);
81
- }, S = function(o, t) {
82
- return Math.floor(Math.random() * (t - o + 1)) + o;
83
- };
84
- var m = "TYPE_CHARACTER", g = "REMOVE_CHARACTER", h = "REMOVE_ALL", d = "REMOVE_LAST_VISIBLE_NODE", _ = "PAUSE_FOR", O = "CALL_FUNCTION", D = "ADD_HTML_TAG_ELEMENT", x = "CHANGE_DELETE_SPEED", b = "CHANGE_DELAY", R = "CHANGE_CURSOR", y = "PASTE_STRING", T = "HTML_TAG";
85
- function L(o) {
86
- return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
87
- return typeof t;
88
- } : function(t) {
89
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
90
- }, L(o);
91
- }
92
- function M(o, t) {
93
- var a = Object.keys(o);
94
- if (Object.getOwnPropertySymbols) {
95
- var r = Object.getOwnPropertySymbols(o);
96
- t && (r = r.filter((function(A) {
97
- return Object.getOwnPropertyDescriptor(o, A).enumerable;
98
- }))), a.push.apply(a, r);
99
- }
100
- return a;
101
- }
102
- function C(o) {
103
- for (var t = 1; t < arguments.length; t++) {
104
- var a = arguments[t] != null ? arguments[t] : {};
105
- t % 2 ? M(Object(a), !0).forEach((function(r) {
106
- u(o, r, a[r]);
107
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(a)) : M(Object(a)).forEach((function(r) {
108
- Object.defineProperty(o, r, Object.getOwnPropertyDescriptor(a, r));
109
- }));
110
- }
111
- return o;
112
- }
113
- function N(o) {
114
- return (function(t) {
115
- if (Array.isArray(t)) return U(t);
116
- })(o) || (function(t) {
117
- if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
118
- })(o) || (function(t, a) {
119
- if (t) {
120
- if (typeof t == "string") return U(t, a);
121
- var r = {}.toString.call(t).slice(8, -1);
122
- return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? U(t, a) : void 0;
123
- }
124
- })(o) || (function() {
125
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
126
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
127
- })();
128
- }
129
- function U(o, t) {
130
- (t == null || t > o.length) && (t = o.length);
131
- for (var a = 0, r = Array(t); a < t; a++) r[a] = o[a];
314
+ this.el.style.setProperty("--_number-flow-d-opacity", t ? "0" : "-.999"), this.el.animate({
315
+ [w]: t ? [-0.9999, 0] : [0.999, 0]
316
+ }, {
317
+ ...this.flow.opacityTiming,
318
+ composite: "accumulate"
319
+ }), t ? this.flow.removeEventListener("animationsfinish", this._remove) : this.flow.addEventListener("animationsfinish", this._remove, {
320
+ once: !0
321
+ });
322
+ }
323
+ }
324
+ }
325
+ class M extends C {
326
+ constructor(t, e, i, s) {
327
+ super(t.flow, i, s), this.section = t, this.value = e, this.el = i;
328
+ }
329
+ }
330
+ class L extends M {
331
+ constructor(t, e, i, s, r) {
332
+ var a, o;
333
+ const c = (((o = (a = t.flow.digits) == null ? void 0 : a[s]) == null ? void 0 : o.max) ?? 9) + 1, d = Array.from({ length: c }).map(($, g) => {
334
+ const v = m("span", { className: "digit__num" }, [
335
+ document.createTextNode(String(g))
336
+ ]);
337
+ return g !== i && v.setAttribute("inert", ""), v.style.setProperty("--n", String(g)), v;
338
+ }), p = m("span", {
339
+ part: `digit ${e}-digit`,
340
+ className: "digit"
341
+ }, d);
342
+ p.style.setProperty("--current", String(i)), p.style.setProperty("--length", String(c)), super(t, i, p, r), this.pos = s, this._onAnimationsFinish = () => {
343
+ this.el.classList.remove("is-spinning");
344
+ }, this._numbers = d, this.length = c;
345
+ }
346
+ willUpdate(t) {
347
+ const e = this.el.getBoundingClientRect();
348
+ this._prevValue = this.value;
349
+ const i = e[this.section.justify] - t[this.section.justify], s = e.width / 2;
350
+ this._prevCenter = this.section.justify === "left" ? i + s : i - s;
351
+ }
352
+ update(t) {
353
+ this.el.style.setProperty("--current", String(t)), this._numbers.forEach((e, i) => i === t ? e.removeAttribute("inert") : e.setAttribute("inert", "")), this.value = t;
354
+ }
355
+ didUpdate(t) {
356
+ const e = this.el.getBoundingClientRect(), i = e[this.section.justify] - t[this.section.justify], s = e.width / 2, r = this.section.justify === "left" ? i + s : i - s, a = this._prevCenter - r;
357
+ a && this.el.animate({
358
+ transform: [`translateX(${a}px)`, "none"]
359
+ }, {
360
+ ...this.flow.transformTiming,
361
+ composite: "accumulate"
362
+ });
363
+ const o = this.getDelta();
364
+ o && (this.el.classList.add("is-spinning"), this.el.animate({
365
+ [E]: [-o, 0]
366
+ }, {
367
+ ...this.flow.spinTiming ?? this.flow.transformTiming,
368
+ composite: "accumulate"
369
+ }), this.flow.addEventListener("animationsfinish", this._onAnimationsFinish, { once: !0 }));
370
+ }
371
+ getDelta() {
372
+ var t;
373
+ if (this.flow.plugins)
374
+ for (const s of this.flow.plugins) {
375
+ const r = (t = s.getDelta) == null ? void 0 : t.call(s, this.value, this._prevValue, this);
376
+ if (r != null)
132
377
  return r;
133
- }
134
- function re(o, t) {
135
- for (var a = 0; a < t.length; a++) {
136
- var r = t[a];
137
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(o, $(r.key), r);
138
- }
139
- }
140
- function u(o, t, a) {
141
- return (t = $(t)) in o ? Object.defineProperty(o, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : o[t] = a, o;
142
- }
143
- function $(o) {
144
- var t = (function(a) {
145
- if (L(a) != "object" || !a) return a;
146
- var r = a[Symbol.toPrimitive];
147
- if (r !== void 0) {
148
- var A = r.call(a, "string");
149
- if (L(A) != "object") return A;
150
- throw new TypeError("@@toPrimitive must return a primitive value.");
151
- }
152
- return String(a);
153
- })(o);
154
- return L(t) == "symbol" ? t : t + "";
155
- }
156
- const oe = (function() {
157
- function o(r, A) {
158
- var e = this;
159
- if ((function(n, i) {
160
- if (!(n instanceof i)) throw new TypeError("Cannot call a class as a function");
161
- })(this, o), u(this, "state", { cursorAnimation: null, lastFrameTime: null, pauseUntil: null, eventQueue: [], eventLoop: null, eventLoopPaused: !1, reverseCalledEvents: [], calledEvents: [], visibleNodes: [], initialOptions: null, elements: { container: null, wrapper: document.createElement("span"), cursor: document.createElement("span") } }), u(this, "options", { strings: null, cursor: "|", delay: "natural", pauseFor: 1500, deleteSpeed: "natural", loop: !1, autoStart: !1, devMode: !1, skipAddStyles: !1, wrapperClassName: "Typewriter__wrapper", cursorClassName: "Typewriter__cursor", stringSplitter: null, onCreateTextNode: null, onRemoveNode: null }), u(this, "setupWrapperElement", (function() {
162
- e.state.elements.container && (e.state.elements.wrapper.className = e.options.wrapperClassName, e.state.elements.cursor.className = e.options.cursorClassName, e.state.elements.cursor.innerHTML = e.options.cursor, e.state.elements.container.innerHTML = "", e.state.elements.container.appendChild(e.state.elements.wrapper), e.state.elements.container.appendChild(e.state.elements.cursor));
163
- })), u(this, "start", (function() {
164
- return e.state.eventLoopPaused = !1, e.runEventLoop(), e;
165
- })), u(this, "pause", (function() {
166
- return e.state.eventLoopPaused = !0, e;
167
- })), u(this, "stop", (function() {
168
- return e.state.eventLoop && ((0, s.cancel)(e.state.eventLoop), e.state.eventLoop = null), e;
169
- })), u(this, "pauseFor", (function(n) {
170
- return e.addEventToQueue(_, { ms: n }), e;
171
- })), u(this, "typeOutAllStrings", (function() {
172
- return typeof e.options.strings == "string" ? (e.typeString(e.options.strings).pauseFor(e.options.pauseFor), e) : (e.options.strings.forEach((function(n) {
173
- e.typeString(n).pauseFor(e.options.pauseFor).deleteAll(e.options.deleteSpeed);
174
- })), e);
175
- })), u(this, "typeString", (function(n) {
176
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
177
- if (p(n)) return e.typeOutHTMLString(n, i);
178
- if (n) {
179
- var f = (e.options || {}).stringSplitter, v = typeof f == "function" ? f(n) : n.split("");
180
- e.typeCharacters(v, i);
181
- }
182
- return e;
183
- })), u(this, "pasteString", (function(n) {
184
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
185
- return p(n) ? e.typeOutHTMLString(n, i, !0) : (n && e.addEventToQueue(y, { character: n, node: i }), e);
186
- })), u(this, "typeOutHTMLString", (function(n) {
187
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, f = arguments.length > 2 ? arguments[2] : void 0, v = (function(k) {
188
- var j = document.createElement("div");
189
- return j.innerHTML = k, j.childNodes;
190
- })(n);
191
- if (v.length > 0) for (var l = 0; l < v.length; l++) {
192
- var E = v[l], P = E.innerHTML;
193
- E && E.nodeType !== 3 ? (E.innerHTML = "", e.addEventToQueue(D, { node: E, parentNode: i }), f ? e.pasteString(P, E) : e.typeString(P, E)) : E.textContent && (f ? e.pasteString(E.textContent, i) : e.typeString(E.textContent, i));
194
- }
195
- return e;
196
- })), u(this, "deleteAll", (function() {
197
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "natural";
198
- return e.addEventToQueue(h, { speed: n }), e;
199
- })), u(this, "changeDeleteSpeed", (function(n) {
200
- if (!n) throw new Error("Must provide new delete speed");
201
- return e.addEventToQueue(x, { speed: n }), e;
202
- })), u(this, "changeDelay", (function(n) {
203
- if (!n) throw new Error("Must provide new delay");
204
- return e.addEventToQueue(b, { delay: n }), e;
205
- })), u(this, "changeCursor", (function(n) {
206
- if (!n) throw new Error("Must provide new cursor");
207
- return e.addEventToQueue(R, { cursor: n }), e;
208
- })), u(this, "deleteChars", (function(n) {
209
- if (!n) throw new Error("Must provide amount of characters to delete");
210
- for (var i = 0; i < n; i++) e.addEventToQueue(g);
211
- return e;
212
- })), u(this, "callFunction", (function(n, i) {
213
- if (!n || typeof n != "function") throw new Error("Callback must be a function");
214
- return e.addEventToQueue(O, { cb: n, thisArg: i }), e;
215
- })), u(this, "typeCharacters", (function(n) {
216
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
217
- if (!n || !Array.isArray(n)) throw new Error("Characters must be an array");
218
- return n.forEach((function(f) {
219
- e.addEventToQueue(m, { character: f, node: i });
220
- })), e;
221
- })), u(this, "removeCharacters", (function(n) {
222
- if (!n || !Array.isArray(n)) throw new Error("Characters must be an array");
223
- return n.forEach((function() {
224
- e.addEventToQueue(g);
225
- })), e;
226
- })), u(this, "addEventToQueue", (function(n, i) {
227
- var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
228
- return e.addEventToStateProperty(n, i, f, "eventQueue");
229
- })), u(this, "addReverseCalledEvent", (function(n, i) {
230
- var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
231
- return e.options.loop ? e.addEventToStateProperty(n, i, f, "reverseCalledEvents") : e;
232
- })), u(this, "addEventToStateProperty", (function(n, i) {
233
- var f = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], v = arguments.length > 3 ? arguments[3] : void 0, l = { eventName: n, eventArgs: i || {} };
234
- return e.state[v] = f ? [l].concat(N(e.state[v])) : [].concat(N(e.state[v]), [l]), e;
235
- })), u(this, "runEventLoop", (function() {
236
- e.state.lastFrameTime || (e.state.lastFrameTime = Date.now());
237
- var n = Date.now(), i = n - e.state.lastFrameTime;
238
- if (!e.state.eventQueue.length) {
239
- if (!e.options.loop) return;
240
- e.state.eventQueue = N(e.state.calledEvents), e.state.calledEvents = [], e.options = C({}, e.state.initialOptions);
241
- }
242
- if (e.state.eventLoop = c()(e.runEventLoop), !e.state.eventLoopPaused) {
243
- if (e.state.pauseUntil) {
244
- if (n < e.state.pauseUntil) return;
245
- e.state.pauseUntil = null;
246
- }
247
- var f, v = N(e.state.eventQueue), l = v.shift();
248
- if (!(i <= (f = l.eventName === d || l.eventName === g ? e.options.deleteSpeed === "natural" ? S(40, 80) : e.options.deleteSpeed : e.options.delay === "natural" ? S(120, 160) : e.options.delay))) {
249
- var E = l.eventName, P = l.eventArgs;
250
- switch (e.logInDevMode({ currentEvent: l, state: e.state, delay: f }), E) {
251
- case y:
252
- case m:
253
- var k = P.character, j = P.node, X = document.createTextNode(k), F = X;
254
- e.options.onCreateTextNode && typeof e.options.onCreateTextNode == "function" && (F = e.options.onCreateTextNode(k, X)), F && (j ? j.appendChild(F) : e.state.elements.wrapper.appendChild(F)), e.state.visibleNodes = [].concat(N(e.state.visibleNodes), [{ type: "TEXT_NODE", character: k, node: F }]);
255
- break;
256
- case g:
257
- v.unshift({ eventName: d, eventArgs: { removingCharacterNode: !0 } });
258
- break;
259
- case _:
260
- var ae = l.eventArgs.ms;
261
- e.state.pauseUntil = Date.now() + parseInt(ae);
262
- break;
263
- case O:
264
- var K = l.eventArgs, se = K.cb, ie = K.thisArg;
265
- se.call(ie, { elements: e.state.elements });
266
- break;
267
- case D:
268
- var Z = l.eventArgs, Y = Z.node, V = Z.parentNode;
269
- V ? V.appendChild(Y) : e.state.elements.wrapper.appendChild(Y), e.state.visibleNodes = [].concat(N(e.state.visibleNodes), [{ type: T, node: Y, parentNode: V || e.state.elements.wrapper }]);
270
- break;
271
- case h:
272
- var ue = e.state.visibleNodes, W = P.speed, H = [];
273
- W && H.push({ eventName: x, eventArgs: { speed: W, temp: !0 } });
274
- for (var ee = 0, le = ue.length; ee < le; ee++) H.push({ eventName: d, eventArgs: { removingCharacterNode: !1 } });
275
- W && H.push({ eventName: x, eventArgs: { speed: e.options.deleteSpeed, temp: !0 } }), v.unshift.apply(v, H);
276
- break;
277
- case d:
278
- var ce = l.eventArgs.removingCharacterNode;
279
- if (e.state.visibleNodes.length) {
280
- var G = e.state.visibleNodes.pop(), pe = G.type, I = G.node, de = G.character;
281
- e.options.onRemoveNode && typeof e.options.onRemoveNode == "function" && e.options.onRemoveNode({ node: I, character: de }), I && I.parentNode.removeChild(I), pe === T && ce && v.unshift({ eventName: d, eventArgs: {} });
282
- }
283
- break;
284
- case x:
285
- e.options.deleteSpeed = l.eventArgs.speed;
286
- break;
287
- case b:
288
- e.options.delay = l.eventArgs.delay;
289
- break;
290
- case R:
291
- e.options.cursor = l.eventArgs.cursor, e.state.elements.cursor.innerHTML = l.eventArgs.cursor;
292
- }
293
- e.options.loop && (l.eventName === d || l.eventArgs && l.eventArgs.temp || (e.state.calledEvents = [].concat(N(e.state.calledEvents), [l]))), e.state.eventQueue = v, e.state.lastFrameTime = n;
294
- }
295
- }
296
- })), r) if (typeof r == "string") {
297
- var B = document.querySelector(r);
298
- if (!B) throw new Error("Could not find container element");
299
- this.state.elements.container = B;
300
- } else this.state.elements.container = r;
301
- A && (this.options = C(C({}, this.options), A)), this.state.initialOptions = C({}, this.options), this.init();
302
- }
303
- var t, a;
304
- return t = o, (a = [{ key: "init", value: function() {
305
- var r, A;
306
- this.setupWrapperElement(), this.addEventToQueue(R, { cursor: this.options.cursor }, !0), this.addEventToQueue(h, null, !0), !window || window.___TYPEWRITER_JS_STYLES_ADDED___ || this.options.skipAddStyles || (r = ".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}", (A = document.createElement("style")).appendChild(document.createTextNode(r)), document.head.appendChild(A), window.___TYPEWRITER_JS_STYLES_ADDED___ = !0), this.options.autoStart === !0 && this.options.strings && this.typeOutAllStrings().start();
307
- } }, { key: "logInDevMode", value: function(r) {
308
- this.options.devMode && console.log(r);
309
- } }]) && re(t.prototype, a), Object.defineProperty(t, "prototype", { writable: !1 }), o;
310
- })();
311
- })(), J.default;
312
- })()));
313
- })(q), q.exports);
378
+ }
379
+ const e = this.value - this._prevValue, i = this.flow.computedTrend || Math.sign(e);
380
+ return i < 0 && this.value > this._prevValue ? this.value - this.length - this._prevValue : i > 0 && this.value < this._prevValue ? this.length - this._prevValue + this.value : e;
381
+ }
382
+ }
383
+ class q extends M {
384
+ constructor(t, e, i, s) {
385
+ const r = m("span", {
386
+ className: "symbol__value",
387
+ textContent: i
388
+ });
389
+ super(t, i, m("span", {
390
+ part: `symbol ${e}`,
391
+ className: "symbol"
392
+ }, [r]), s), this.type = e, this._children = /* @__PURE__ */ new Map(), this._onChildRemove = (a) => () => {
393
+ this._children.delete(a);
394
+ }, this._children.set(i, new C(this.flow, r, {
395
+ onRemove: this._onChildRemove(i)
396
+ }));
397
+ }
398
+ willUpdate(t) {
399
+ if (this.type === "decimal")
400
+ return;
401
+ const e = this.el.getBoundingClientRect();
402
+ this._prevOffset = e[this.section.justify] - t[this.section.justify];
403
+ }
404
+ update(t) {
405
+ if (this.value !== t) {
406
+ const e = this._children.get(this.value);
407
+ e && (e.present = !1);
408
+ const i = this._children.get(t);
409
+ if (i)
410
+ i.present = !0;
411
+ else {
412
+ const s = m("span", {
413
+ className: "symbol__value",
414
+ textContent: t
415
+ });
416
+ this.el.appendChild(s), this._children.set(t, new C(this.flow, s, {
417
+ animateIn: !0,
418
+ onRemove: this._onChildRemove(t)
419
+ }));
420
+ }
421
+ }
422
+ this.value = t;
423
+ }
424
+ didUpdate(t) {
425
+ if (this.type === "decimal")
426
+ return;
427
+ const e = this.el.getBoundingClientRect()[this.section.justify] - t[this.section.justify], i = this._prevOffset - e;
428
+ i && this.el.animate({
429
+ transform: [`translateX(${i}px)`, "none"]
430
+ }, { ...this.flow.transformTiming, composite: "accumulate" });
431
+ }
314
432
  }
315
433
  export {
316
- he as __require
434
+ L as D,
435
+ Y as N,
436
+ z as S,
437
+ H as c,
438
+ G as d,
439
+ J as f,
440
+ j as p
317
441
  };