@ssgoi/core 6.6.1 → 6.6.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.
package/dist/internal.js CHANGED
@@ -1,9 +1,9 @@
1
- var Ct = Object.defineProperty;
2
- var Lt = (t, s, e) => s in t ? Ct(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
- var F = (t, s, e) => Lt(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { A as Ot } from "./multi-animation-Ch5rI3rB.js";
5
- import { M as ue, W as de } from "./multi-animation-Ch5rI3rB.js";
6
- class _t extends Ot {
1
+ var Nt = Object.defineProperty;
2
+ var kt = (t, n, e) => n in t ? Nt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
+ var F = (t, n, e) => kt(t, typeof n != "symbol" ? n + "" : n, e);
4
+ import { A as It } from "./multi-animation-Ch5rI3rB.js";
5
+ import { M as Ee, W as we } from "./multi-animation-Ch5rI3rB.js";
6
+ class Ht extends It {
7
7
  constructor() {
8
8
  super(...arguments);
9
9
  F(this, "child", null);
@@ -12,20 +12,20 @@ class _t extends Ot {
12
12
  F(this, "listeners", /* @__PURE__ */ new Set());
13
13
  }
14
14
  attach(e) {
15
- const n = this.child;
16
- if (this.child = e, this._settled = !1, n) {
17
- const a = n.getPose();
18
- n.complete(), e.matchInto(a);
15
+ const s = this.child;
16
+ if (this.child = e, this._settled = !1, s) {
17
+ const l = s.getPose();
18
+ s.complete(), e.matchInto(l);
19
19
  }
20
20
  e.playbackRate = this.playbackRate;
21
- const l = e.onComplete;
21
+ const o = e.onComplete;
22
22
  e.onComplete = () => {
23
- l == null || l(), this.child === e && (this.child = null, this._state = "idle", this._settled = !0), this.notify();
23
+ o == null || o(), this.child === e && (this.child = null, this._state = "idle", this._settled = !0), this.notify();
24
24
  };
25
- const p = e.onUpdate;
26
- e.onUpdate = (a) => {
27
- var g;
28
- p == null || p(a), (g = this.onUpdate) == null || g.call(this, a), this.notify();
25
+ const a = e.onUpdate;
26
+ e.onUpdate = (l) => {
27
+ var u;
28
+ a == null || a(l), (u = this.onUpdate) == null || u.call(this, l), this.notify();
29
29
  }, this._state === "paused" ? e.pause() : this._state === "reversing" ? e.reverse() : (this._state = "playing", e.play()), this.notify();
30
30
  }
31
31
  play() {
@@ -63,8 +63,8 @@ class _t extends Ot {
63
63
  return ((e = this.child) == null ? void 0 : e.progress) ?? 0;
64
64
  }
65
65
  findTimeForProgress(e) {
66
- var n;
67
- return ((n = this.child) == null ? void 0 : n.findTimeForProgress(e)) ?? null;
66
+ var s;
67
+ return ((s = this.child) == null ? void 0 : s.findTimeForProgress(e)) ?? null;
68
68
  }
69
69
  get playbackRate() {
70
70
  return super.playbackRate;
@@ -81,8 +81,8 @@ class _t extends Ot {
81
81
  return ((e = this.child) == null ? void 0 : e.getTimeline()) ?? [];
82
82
  }
83
83
  matchInto(e) {
84
- var n;
85
- (n = this.child) == null || n.matchInto(e);
84
+ var s;
85
+ (s = this.child) == null || s.matchInto(e);
86
86
  }
87
87
  /** Currently attached child, or null when nothing is playing. */
88
88
  get activeChild() {
@@ -98,581 +98,644 @@ class _t extends Ot {
98
98
  for (const e of this.listeners) e();
99
99
  }
100
100
  }
101
- const kt = (t, s) => {
101
+ const Wt = (t, n) => {
102
102
  var e;
103
- t.style.position = "absolute", t.style.width = "100%", t.style.top = `${-1 * (((e = s == null ? void 0 : s.scrollOffset) == null ? void 0 : e.y) ?? 0)}px`, t.style.left = "0";
104
- }, ht = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), Dt = (t) => {
105
- let s = t.parentElement;
106
- for (; s && s !== document.body; ) {
107
- const e = window.getComputedStyle(s);
108
- if (ht.has(e.overflowY) || ht.has(e.overflowX))
109
- return s;
110
- s = s.parentElement;
103
+ t.style.position = "absolute", t.style.width = "100%", t.style.top = `${-1 * (((e = n == null ? void 0 : n.scrollOffset) == null ? void 0 : e.y) ?? 0)}px`, t.style.left = "0";
104
+ }, gt = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), zt = (t) => {
105
+ let n = t.parentElement;
106
+ for (; n && n !== document.body; ) {
107
+ const e = window.getComputedStyle(n);
108
+ if (gt.has(e.overflowY) || gt.has(e.overflowX))
109
+ return n;
110
+ n = n.parentElement;
111
111
  }
112
112
  return document.documentElement;
113
- }, Nt = (t) => {
114
- let s = t.parentElement;
115
- for (; s && s !== document.body; ) {
116
- const e = window.getComputedStyle(s).position;
113
+ }, Bt = (t) => {
114
+ let n = t.parentElement;
115
+ for (; n && n !== document.body; ) {
116
+ const e = window.getComputedStyle(n).position;
117
117
  if (e === "relative" || e === "absolute" || e === "fixed" || e === "sticky")
118
- return s;
119
- s = s.parentElement;
118
+ return n;
119
+ n = n.parentElement;
120
120
  }
121
121
  return document.body;
122
122
  };
123
- function Ht(t) {
124
- const s = Object.keys(t);
125
- return Promise.all(s.map((e) => t[e])).then((e) => {
126
- const n = {};
127
- return s.forEach((l, p) => {
128
- n[l] = e[p];
129
- }), n;
123
+ function Ft(t) {
124
+ const n = Object.keys(t);
125
+ return Promise.all(n.map((e) => t[e])).then((e) => {
126
+ const s = {};
127
+ return n.forEach((o, a) => {
128
+ s[o] = e[a];
129
+ }), s;
130
130
  });
131
131
  }
132
- function It(t) {
133
- const s = t.filter((e) => e.symmetric).map((e) => ({
132
+ function Kt(t) {
133
+ const n = t.filter((e) => e.symmetric).map((e) => ({
134
134
  from: e.to,
135
135
  to: e.from,
136
136
  transition: e.transition
137
137
  }));
138
- return [...t, ...s];
138
+ return [...t, ...n];
139
139
  }
140
- function K(t, s) {
140
+ const Xt = 1e6, vt = 100, $t = 10;
141
+ function Ut(t) {
142
+ const n = t.trim(), e = n.indexOf("#"), s = n.indexOf("?"), o = [e, s].filter((a) => a >= 0).reduce((a, l) => Math.min(a, l), n.length);
143
+ return n.slice(0, o);
144
+ }
145
+ function at(t) {
146
+ const n = Ut(t);
147
+ try {
148
+ if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n))
149
+ return at(new URL(n).pathname);
150
+ } catch {
151
+ }
152
+ const s = (n.startsWith("/") ? n : `/${n}`).replace(/\/+/g, "/");
153
+ return (s.length > 1 ? s.replace(/\/+$/g, "") : s) || "/";
154
+ }
155
+ function qt(t) {
156
+ const n = t.trim();
157
+ return n === "*" ? "*" : at(n);
158
+ }
159
+ function ot(t) {
160
+ return t === "/" ? [] : t.slice(1).split("/");
161
+ }
162
+ function Vt(t) {
163
+ return t.startsWith(":") || t.startsWith("[") && t.endsWith("]") || t.startsWith("{") && t.endsWith("}");
164
+ }
165
+ function rt(t, n) {
166
+ const e = at(t), s = qt(n);
141
167
  if (s === "*")
142
- return !0;
143
- if (s.endsWith("/*")) {
144
- const e = s.slice(0, -1);
145
- return t.startsWith(e) && t.length > e.length;
168
+ return { matched: !0, specificity: 0 };
169
+ if (e === s)
170
+ return {
171
+ matched: !0,
172
+ specificity: Xt + ot(s).length * vt
173
+ };
174
+ const o = ot(e), a = ot(s);
175
+ let l = 0;
176
+ for (let u = 0; u < a.length; u++) {
177
+ const g = a[u], b = o[u], _ = u === a.length - 1;
178
+ if (g === void 0)
179
+ return { matched: !1, specificity: 0 };
180
+ if ((g === "*" || g === "**") && _)
181
+ return {
182
+ matched: g === "**" ? o.length >= u : o.length > u,
183
+ specificity: l
184
+ };
185
+ if (b === void 0)
186
+ return { matched: !1, specificity: 0 };
187
+ if (g === "*" || Vt(g)) {
188
+ l += $t;
189
+ continue;
190
+ }
191
+ if (g !== b)
192
+ return { matched: !1, specificity: 0 };
193
+ l += vt;
146
194
  }
147
- return t === s;
195
+ return {
196
+ matched: o.length === a.length,
197
+ specificity: l
198
+ };
148
199
  }
149
- function Wt(t, s, e) {
150
- for (const n of e)
151
- if (K(t, n.from) && K(s, n.to))
152
- return n.transition;
153
- for (const n of e)
154
- if ((n.from === "*" || K(t, n.from)) && (n.to === "*" || K(s, n.to)))
155
- return n.transition;
156
- return null;
200
+ function Gt(t, n) {
201
+ return rt(t, n).matched;
157
202
  }
158
- const Ft = 768, Kt = 10, Bt = 10;
159
- function Xt(t = {}) {
160
- const { preserveScroll: s = (u) => u } = t, e = typeof s == "function" ? s : () => s;
161
- let n = null, l = !1, p = !1;
162
- const a = () => {
163
- const u = (n == null ? void 0 : n.clientWidth) ?? 0, c = u > 0 ? u : typeof window < "u" ? window.innerWidth : 0;
164
- return c > 0 && c < Ft;
165
- }, g = () => (p || (l = a(), p = !0), l), v = (u) => {
166
- var E;
167
- const c = e(g());
168
- if (c === !1)
169
- return { preserves: !1, shared: !1, storageKey: `path:${u}` };
170
- if (c === !0)
171
- return { preserves: !0, shared: !1, storageKey: `path:${u}` };
172
- const m = ((E = c.exclude) == null ? void 0 : E.some((T) => K(u, T))) ?? !1, S = !m && !!c.key;
203
+ function Yt(t, n, e) {
204
+ let s;
205
+ for (const o of e) {
206
+ const a = rt(t, o.from);
207
+ if (!a.matched) continue;
208
+ const l = rt(n, o.to);
209
+ if (!l.matched) continue;
210
+ const u = a.specificity + l.specificity;
211
+ (!s || u > s.specificity) && (s = { transition: o.transition, specificity: u });
212
+ }
213
+ return (s == null ? void 0 : s.transition) ?? null;
214
+ }
215
+ const Zt = 768, Qt = 10, jt = 10;
216
+ function Jt(t = {}) {
217
+ const {
218
+ preserveScroll: n = (f) => f,
219
+ resolvePath: e = (f) => f
220
+ } = t, s = typeof n == "function" ? n : () => n;
221
+ let o = null, a = !1, l = !1;
222
+ const u = () => {
223
+ const f = (o == null ? void 0 : o.clientWidth) ?? 0, d = f > 0 ? f : typeof window < "u" ? window.innerWidth : 0;
224
+ return d > 0 && d < Zt;
225
+ }, g = () => (l || (a = u(), l = !0), a), b = (f) => {
226
+ var A;
227
+ const d = e(f), y = s(g());
228
+ if (y === !1)
229
+ return { preserves: !1, shared: !1, storageKey: `path:${d}` };
230
+ if (y === !0)
231
+ return { preserves: !0, shared: !1, storageKey: `path:${d}` };
232
+ const E = ((A = y.exclude) == null ? void 0 : A.some((C) => Gt(d, C))) ?? !1, P = !E && !!y.key;
173
233
  return {
174
- preserves: !m,
175
- shared: S,
176
- storageKey: S ? `shared:${c.key}` : `path:${u}`
234
+ preserves: !E,
235
+ shared: P,
236
+ storageKey: P ? `shared:${y.key}` : `path:${d}`
177
237
  };
178
- }, A = (u) => v(u).preserves;
179
- let C = null;
180
- const b = /* @__PURE__ */ new Map();
181
- let x = null, L = !1, H = 0;
182
- const I = () => {
183
- n && x && !L && b.set(v(x).storageKey, {
184
- x: n.scrollLeft,
185
- y: n.scrollTop
238
+ }, _ = (f) => b(f).preserves;
239
+ let L = null;
240
+ const w = /* @__PURE__ */ new Map();
241
+ let O = null, k = !1, W = 0;
242
+ const $ = () => {
243
+ o && O && !k && w.set(b(O).storageKey, {
244
+ x: o.scrollLeft,
245
+ y: o.scrollTop
186
246
  });
187
- }, z = (u) => {
188
- if (!n) return;
189
- const c = v(u);
190
- if (c.preserves && c.shared && !b.has(c.storageKey))
247
+ }, z = (f) => {
248
+ if (!o) return;
249
+ const d = b(f);
250
+ if (d.preserves && d.shared && !w.has(d.storageKey))
191
251
  return;
192
- const m = c.preserves && b.has(c.storageKey) ? b.get(c.storageKey) : { x: 0, y: 0 };
193
- let S = 0;
194
- const E = () => {
195
- if (!n) return;
196
- n.scrollTo({
197
- top: m.y,
198
- left: m.x
199
- }), !(Math.abs(n.scrollTop - m.y) < 1 && Math.abs(n.scrollLeft - m.x) < 1) && S < Kt && (S++, requestAnimationFrame(E));
252
+ const y = d.preserves && w.has(d.storageKey) ? w.get(d.storageKey) : { x: 0, y: 0 };
253
+ let E = 0;
254
+ const P = () => {
255
+ if (!o) return;
256
+ o.scrollTo({
257
+ top: y.y,
258
+ left: y.x
259
+ }), !(Math.abs(o.scrollTop - y.y) < 1 && Math.abs(o.scrollLeft - y.x) < 1) && E < Qt && (E++, requestAnimationFrame(P));
200
260
  };
201
- requestAnimationFrame(E);
261
+ requestAnimationFrame(P);
202
262
  };
203
263
  return {
204
- initializeContext: (u, c) => {
205
- L = !0;
206
- const m = ++H;
207
- C = u, n || (n = Dt(u), l = a(), p = !0, typeof ResizeObserver < "u" && new ResizeObserver(() => {
208
- l = a();
209
- }).observe(n), (n === document.documentElement ? window : n).addEventListener("scroll", I, {
264
+ initializeContext: (f, d) => {
265
+ k = !0;
266
+ const y = ++W;
267
+ L = f, o || (o = zt(f), a = u(), l = !0, typeof ResizeObserver < "u" && new ResizeObserver(() => {
268
+ a = u();
269
+ }).observe(o), (o === document.documentElement ? window : o).addEventListener("scroll", $, {
210
270
  passive: !0
211
- })), x = c, z(c);
212
- let S = 0;
213
- const E = () => {
214
- m === H && (S++, S >= Bt ? L = !1 : requestAnimationFrame(E));
271
+ })), O = d, z(d);
272
+ let E = 0;
273
+ const P = () => {
274
+ y === W && (E++, E >= jt ? k = !1 : requestAnimationFrame(P));
215
275
  };
216
- requestAnimationFrame(E);
276
+ requestAnimationFrame(P);
217
277
  },
218
- calculateScrollOffset: (u, c) => {
219
- const m = u ? v(u).storageKey : null, S = m && b.has(m) ? b.get(m) : { x: 0, y: 0 }, E = c ? v(c) : null, T = E != null && E.preserves ? E.storageKey : null, N = T && b.has(T) ? b.get(T) : { x: 0, y: 0 };
278
+ calculateScrollOffset: (f, d) => {
279
+ const y = f ? b(f).storageKey : null, E = y && w.has(y) ? w.get(y) : { x: 0, y: 0 }, P = d ? b(d) : null, A = P != null && P.preserves ? P.storageKey : null, C = A && w.has(A) ? w.get(A) : { x: 0, y: 0 };
220
280
  return {
221
- x: -N.x + S.x,
222
- y: -N.y + S.y
281
+ x: -C.x + E.x,
282
+ y: -C.y + E.y
223
283
  };
224
284
  },
225
- evictScrollPosition: (u) => {
226
- b.delete(v(u).storageKey);
285
+ evictScrollPosition: (f) => {
286
+ w.delete(b(f).storageKey);
227
287
  },
228
- shouldPreserve: A,
229
- getScrollContainer: () => n,
230
- getPositionedParentElement: () => C ? Nt(C) : document.body,
231
- getScrollPosition: (u) => {
232
- const c = u ? v(u).storageKey : null;
233
- return c && b.has(c) ? b.get(c) : { x: 0, y: 0 };
288
+ shouldPreserve: _,
289
+ getScrollContainer: () => o,
290
+ getPositionedParentElement: () => L ? Bt(L) : document.body,
291
+ getScrollPosition: (f) => {
292
+ const d = f ? b(f).storageKey : null;
293
+ return d && w.has(d) ? w.get(d) : { x: 0, y: 0 };
234
294
  },
235
295
  // Same measurement that drives `preserveScroll`'s `isMobile`, exposed so a
236
296
  // functional `transitions` config can branch on it too.
237
297
  getIsMobile: g
238
298
  };
239
299
  }
240
- const yt = 30, pt = 8, gt = 1.2, mt = 30, zt = 600;
241
- function $t() {
242
- let t = null, s = !1, e = !1, n = null, l = null, p = !1;
243
- const a = (d, f) => {
244
- for (let h = 0; h < d.length; h++) {
245
- const w = d.item(h);
246
- if (w && w.identifier === f) return w;
300
+ const bt = 30, St = 8, Et = 1.2, wt = 30, te = 600;
301
+ function ee() {
302
+ let t = null, n = !1, e = !1, s = null, o = null, a = !1;
303
+ const l = (h, v) => {
304
+ for (let S = 0; S < h.length; S++) {
305
+ const m = h.item(S);
306
+ if (m && m.identifier === v) return m;
247
307
  }
248
308
  return null;
309
+ }, u = () => {
310
+ s !== null && (clearTimeout(s), s = null);
249
311
  }, g = () => {
250
- n !== null && (clearTimeout(n), n = null);
251
- }, v = () => {
252
- l !== null && (clearTimeout(l), l = null);
253
- }, A = () => {
254
- s = !0, e = !0, g(), v(), n = setTimeout(() => {
255
- s = !1, e = !1, n = null;
256
- }, zt);
257
- }, C = (d) => {
258
- if (d.touches.length !== 1) {
312
+ o !== null && (clearTimeout(o), o = null);
313
+ }, b = () => {
314
+ n = !0, e = !0, u(), g(), s = setTimeout(() => {
315
+ n = !1, e = !1, s = null;
316
+ }, te);
317
+ }, _ = (h) => {
318
+ if (h.touches.length !== 1) {
259
319
  t = null;
260
320
  return;
261
321
  }
262
- const f = d.touches.item(0);
263
- if (!f) {
322
+ const v = h.touches.item(0);
323
+ if (!v) {
264
324
  t = null;
265
325
  return;
266
326
  }
267
- const h = window.innerWidth, w = f.clientX <= yt, O = f.clientX >= h - yt;
268
- if (!w && !O) {
327
+ const S = window.innerWidth, m = v.clientX <= bt, T = v.clientX >= S - bt;
328
+ if (!m && !T) {
269
329
  t = null;
270
330
  return;
271
331
  }
272
332
  t = {
273
- identifier: f.identifier,
274
- startX: f.clientX,
275
- startY: f.clientY,
276
- fromLeftEdge: w,
333
+ identifier: v.identifier,
334
+ startX: v.clientX,
335
+ startY: v.clientY,
336
+ fromLeftEdge: m,
277
337
  moved: !1
278
338
  };
279
- }, b = (d) => {
339
+ }, L = (h) => {
280
340
  if (!t) return;
281
- if (d.touches.length !== 1) {
341
+ if (h.touches.length !== 1) {
282
342
  t = null;
283
343
  return;
284
344
  }
285
- const f = a(d.touches, t.identifier);
286
- if (!f) {
345
+ const v = l(h.touches, t.identifier);
346
+ if (!v) {
287
347
  t = null;
288
348
  return;
289
349
  }
290
- const h = f.clientX - t.startX, w = f.clientY - t.startY, O = Math.abs(h), u = Math.abs(w);
291
- if (u > pt && u > O * gt) {
350
+ const S = v.clientX - t.startX, m = v.clientY - t.startY, T = Math.abs(S), I = Math.abs(m);
351
+ if (I > St && I > T * Et) {
292
352
  t = null;
293
353
  return;
294
354
  }
295
- const c = t.fromLeftEdge ? h > 0 : h < 0;
296
- O > pt && O > u * gt && c && (t.moved = !0);
297
- }, x = (d) => {
355
+ const f = t.fromLeftEdge ? S > 0 : S < 0;
356
+ T > St && T > I * Et && f && (t.moved = !0);
357
+ }, w = (h) => {
298
358
  if (!t) return;
299
- const f = a(d.changedTouches, t.identifier);
300
- if (!f) {
359
+ const v = l(h.changedTouches, t.identifier);
360
+ if (!v) {
301
361
  t = null;
302
362
  return;
303
363
  }
304
- const h = f.clientX - t.startX, w = t.fromLeftEdge ? h > 0 : h < 0;
305
- if (t.moved && w && Math.abs(h) >= mt) {
306
- A(), t = null;
364
+ const S = v.clientX - t.startX, m = t.fromLeftEdge ? S > 0 : S < 0;
365
+ if (t.moved && m && Math.abs(S) >= wt) {
366
+ b(), t = null;
307
367
  return;
308
368
  }
309
- t.moved && Math.abs(h) >= mt && A(), t = null;
310
- }, L = () => {
311
- t && (t.moved && A(), t = null);
369
+ t.moved && Math.abs(S) >= wt && b(), t = null;
370
+ }, O = () => {
371
+ t && (t.moved && b(), t = null);
312
372
  };
313
373
  return { initialize: () => {
314
- if (typeof window > "u" || p) return;
315
- p = !0;
316
- const d = { passive: !0, capture: !0 };
317
- window.addEventListener("touchstart", C, d), window.addEventListener("touchmove", b, d), window.addEventListener("touchend", x, d), window.addEventListener("touchcancel", L, d);
374
+ if (typeof window > "u" || a) return;
375
+ a = !0;
376
+ const h = { passive: !0, capture: !0 };
377
+ window.addEventListener("touchstart", _, h), window.addEventListener("touchmove", L, h), window.addEventListener("touchend", w, h), window.addEventListener("touchcancel", O, h);
318
378
  }, destroy: () => {
319
- if (typeof window > "u" || !p) return;
320
- p = !1;
321
- const d = { capture: !0 };
322
- window.removeEventListener("touchstart", C, d), window.removeEventListener("touchmove", b, d), window.removeEventListener("touchend", x, d), window.removeEventListener("touchcancel", L, d), g(), v(), t = null, s = !1, e = !1;
379
+ if (typeof window > "u" || !a) return;
380
+ a = !1;
381
+ const h = { capture: !0 };
382
+ window.removeEventListener("touchstart", _, h), window.removeEventListener("touchmove", L, h), window.removeEventListener("touchend", w, h), window.removeEventListener("touchcancel", O, h), u(), g(), t = null, n = !1, e = !1;
323
383
  }, isSwipeBack: () => {
324
- const d = s || e;
325
- return d && g(), d;
384
+ const h = n || e;
385
+ return h && u(), h;
326
386
  }, onPageEnter: () => {
327
- s = !1, g(), v(), l = setTimeout(() => {
328
- e = !1, l = null;
387
+ n = !1, u(), g(), o = setTimeout(() => {
388
+ e = !1, o = null;
329
389
  }, 0);
330
390
  } };
331
391
  }
332
- function Vt() {
392
+ function ne() {
333
393
  let t = null;
334
- function s() {
335
- var n, l;
336
- t && ((n = t.outResolve) == null || n.call(t, null), (l = t.inResolve) == null || l.call(t, null), t = null);
394
+ function n() {
395
+ var s, o;
396
+ t && ((s = t.outResolve) == null || s.call(t, null), (o = t.inResolve) == null || o.call(t, null), t = null);
337
397
  }
338
398
  function e() {
339
399
  if (t != null && t.from && (t != null && t.to) && (t != null && t.outResolve) && (t != null && t.inResolve)) {
340
400
  if (t.from === t.to) {
341
- s();
401
+ n();
342
402
  return;
343
403
  }
344
- const n = { from: t.from, to: t.to };
345
- t.outResolve(n), t.inResolve(n), t = null;
404
+ const s = { from: t.from, to: t.to };
405
+ t.outResolve(s), t.inResolve(s), t = null;
346
406
  }
347
407
  }
348
408
  return {
349
- trigger(n, l) {
350
- var a;
351
- l === "out" && (t == null ? void 0 : t.to) === n && !t.from && ((a = t.inResolve) == null || a.call(t, null), t = {}), t && (l === "out" && t.from && t.from !== n || l === "in" && t.to && t.to !== n) && s(), t || (t = {}), l === "out" ? t.from = n : t.to = n;
409
+ trigger(s, o) {
410
+ var l;
411
+ o === "out" && (t == null ? void 0 : t.to) === s && !t.from && ((l = t.inResolve) == null || l.call(t, null), t = {}), t && (o === "out" && t.from && t.from !== s || o === "in" && t.to && t.to !== s) && n(), t || (t = {}), o === "out" ? t.from = s : t.to = s;
352
412
  },
353
- get(n) {
354
- return new Promise((l) => {
355
- t || (t = {}), n === "out" ? t.outResolve = l : t.inResolve = l, e();
413
+ get(s) {
414
+ return new Promise((o) => {
415
+ t || (t = {}), s === "out" ? t.outResolve = o : t.inResolve = o, e();
356
416
  });
357
417
  }
358
418
  };
359
419
  }
360
420
  const X = /* @__PURE__ */ new Map();
361
- let G = null, vt = !1;
362
- function Et(t, s) {
421
+ let Y = null, Tt = !1;
422
+ function Mt(t, n) {
363
423
  if (t instanceof HTMLElement && X.has(t) && !t.isConnected) {
364
424
  const e = X.get(t);
365
- X.delete(t), queueMicrotask(() => e(s));
425
+ X.delete(t), queueMicrotask(() => e(n));
366
426
  }
367
427
  for (const e of Array.from(t.childNodes))
368
- Et(e, s);
428
+ Mt(e, n);
369
429
  }
370
- function qt() {
371
- if (vt || typeof document > "u") return;
372
- vt = !0, G = new MutationObserver((s) => {
373
- for (const e of s) {
374
- const n = {
430
+ function se() {
431
+ if (Tt || typeof document > "u") return;
432
+ Tt = !0, Y = new MutationObserver((n) => {
433
+ for (const e of n) {
434
+ const s = {
375
435
  parent: e.target,
376
436
  nextSibling: e.nextSibling
377
437
  };
378
- for (const l of Array.from(e.removedNodes))
379
- Et(l, n);
438
+ for (const o of Array.from(e.removedNodes))
439
+ Mt(o, s);
380
440
  }
381
441
  });
382
442
  const t = () => {
383
- G == null || G.observe(document.body, { childList: !0, subtree: !0 });
443
+ Y == null || Y.observe(document.body, { childList: !0, subtree: !0 });
384
444
  };
385
445
  document.body ? t() : document.addEventListener("DOMContentLoaded", t, { once: !0 });
386
446
  }
387
- function Ut(t, s) {
388
- return qt(), X.set(t, s), () => {
447
+ function ie(t, n) {
448
+ return se(), X.set(t, n), () => {
389
449
  X.delete(t);
390
450
  };
391
451
  }
392
- const it = /* @__PURE__ */ new WeakMap();
452
+ const ct = /* @__PURE__ */ new WeakMap();
393
453
  let Z = null;
394
- const j = "none !important";
395
- function B(t) {
396
- const s = t.style.getPropertyValue("display");
397
- return t.style.getPropertyPriority("display") ? `${s} !important` : s;
454
+ const Q = "none !important";
455
+ function K(t) {
456
+ const n = t.style.getPropertyValue("display");
457
+ return t.style.getPropertyPriority("display") ? `${n} !important` : n;
398
458
  }
399
- function Yt() {
459
+ function oe() {
400
460
  return Z || (Z = new MutationObserver((t) => {
401
- for (const s of t) {
402
- const e = s.target, n = it.get(e);
403
- if (!n) continue;
404
- const l = B(e);
405
- l !== n.accounted && (n.accounted = l, l === j ? (n.reactHidden = !0, n.onHide()) : l !== "none" && n.reactHidden && (n.reactHidden = !1, n.onShow()));
461
+ for (const n of t) {
462
+ const e = n.target, s = ct.get(e);
463
+ if (!s) continue;
464
+ const o = K(e);
465
+ o !== s.accounted && (s.accounted = o, o === Q ? (s.reactHidden = !0, s.onHide()) : o !== "none" && s.reactHidden && (s.reactHidden = !1, s.onShow()));
406
466
  }
407
467
  }), Z);
408
468
  }
409
- function Gt(t, s) {
410
- const e = B(t), n = {
469
+ function re(t, n) {
470
+ const e = K(t), s = {
411
471
  accounted: e,
412
- reactHidden: e === j,
413
- onHide: s.onHide,
414
- onShow: s.onShow
472
+ reactHidden: e === Q,
473
+ onHide: n.onHide,
474
+ onShow: n.onShow
415
475
  };
416
- return it.set(t, n), Yt().observe(t, {
476
+ return ct.set(t, s), oe().observe(t, {
417
477
  attributes: !0,
418
478
  attributeFilter: ["style"]
419
479
  }), {
420
480
  get isHidden() {
421
- return B(t) === j;
481
+ return K(t) === Q;
422
482
  },
423
- setDisplay(l, p = !1) {
424
- l === null ? t.style.removeProperty("display") : t.style.setProperty(
483
+ setDisplay(o, a = !1) {
484
+ o === null ? t.style.removeProperty("display") : t.style.setProperty(
425
485
  "display",
426
- l,
427
- p ? "important" : ""
428
- ), n.accounted = B(t);
486
+ o,
487
+ a ? "important" : ""
488
+ ), s.accounted = K(t);
429
489
  },
430
490
  sync() {
431
- n.accounted = B(t), n.reactHidden = n.accounted === j;
491
+ s.accounted = K(t), s.reactHidden = s.accounted === Q;
432
492
  },
433
493
  stop() {
434
- it.delete(t);
494
+ ct.delete(t);
435
495
  }
436
496
  };
437
497
  }
438
- function Zt(t) {
498
+ function ce(t) {
439
499
  return Array.isArray(t);
440
500
  }
441
- function wt(t) {
442
- const s = [];
501
+ function Rt(t) {
502
+ const n = [];
443
503
  for (const e of t)
444
- Zt(e) ? s.push(...wt(e)) : s.push(e);
445
- return s;
504
+ ce(e) ? n.push(...Rt(e)) : n.push(e);
505
+ return n;
446
506
  }
447
- function re(t, s = {}) {
507
+ function ge(t, n = {}) {
448
508
  const {
449
509
  transitions: e = [],
450
- middleware: n = (o, i) => ({ from: o, to: i }),
451
- preserveScroll: l = (o) => o
452
- } = t, p = s.host ?? new _t(), a = Vt(), g = typeof e == "function" ? e : () => e, v = $t();
453
- v.initialize();
454
- const {
455
- initializeContext: A,
456
- calculateScrollOffset: C,
457
- evictScrollPosition: b,
458
- shouldPreserve: x,
459
- getScrollContainer: L,
460
- getPositionedParentElement: H,
461
- getScrollPosition: I,
462
- getIsMobile: z
463
- } = Xt({ preserveScroll: l }), $ = /* @__PURE__ */ new Map(), d = () => {
464
- const o = z();
465
- let i = $.get(o);
466
- return i || (i = It(
467
- wt(g({ isMobile: o }))
468
- ), $.set(o, i)), i;
510
+ middleware: s = (i, r) => ({ from: i, to: r }),
511
+ preserveScroll: o = (i) => i
512
+ } = t, a = n.host ?? new Ht(), l = ne(), u = typeof e == "function" ? e : () => e, g = ee();
513
+ g.initialize();
514
+ const b = /* @__PURE__ */ new Map(), _ = (i) => {
515
+ let r = b.get(i);
516
+ return r === void 0 && (r = s(i, i).from, b.set(i, r)), r;
517
+ }, {
518
+ initializeContext: L,
519
+ calculateScrollOffset: w,
520
+ evictScrollPosition: O,
521
+ shouldPreserve: k,
522
+ getScrollContainer: W,
523
+ getPositionedParentElement: $,
524
+ getScrollPosition: z,
525
+ getIsMobile: h
526
+ } = Jt({ preserveScroll: o, resolvePath: _ }), v = /* @__PURE__ */ new Map(), S = () => {
527
+ const i = h();
528
+ let r = v.get(i);
529
+ return r || (r = Kt(
530
+ Rt(u({ isMobile: i }))
531
+ ), v.set(i, r)), r;
469
532
  };
470
- let f = null, h = null;
471
- const w = /* @__PURE__ */ new WeakMap(), O = (o) => {
472
- w.set(o, {
473
- parent: o.parentNode,
474
- nextSibling: o.nextSibling
533
+ let m = null, T = null;
534
+ const I = /* @__PURE__ */ new WeakMap(), f = (i) => {
535
+ I.set(i, {
536
+ parent: i.parentNode,
537
+ nextSibling: i.nextSibling
475
538
  });
476
- }, u = (o) => {
477
- const i = w.get(o);
478
- return i || {
479
- parent: o.parentNode,
480
- nextSibling: o.nextSibling
539
+ }, d = (i) => {
540
+ const r = I.get(i);
541
+ return r || {
542
+ parent: i.parentNode,
543
+ nextSibling: i.nextSibling
481
544
  };
482
- }, c = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap();
483
- let S = 0;
484
- const E = (o) => {
485
- const i = typeof getComputedStyle < "u" ? getComputedStyle(o).display : "";
486
- return i && i !== "none" ? i : "block";
487
- }, T = (o, i) => {
488
- i.visibleDisplay = o.style.getPropertyValue("display"), i.computedDisplay = E(o);
489
- }, N = (o, i) => {
490
- if (m.get(o) !== i) return;
491
- m.delete(o);
492
- const r = c.get(o);
493
- r && (r.savedCss !== null && (o.style.cssText = r.savedCss, r.savedCss = null), r.intent === "hidden" ? r.vis.setDisplay("none", !0) : r.visibleDisplay ? (r.vis.setDisplay(r.visibleDisplay, !1), T(o, r)) : (r.vis.setDisplay(null), T(o, r)));
494
- }, Tt = (o, i, r, y, R) => {
495
- const P = y.element, _ = R.element, k = (y.mode ?? "unmount") === "hidden", { parent: q, nextSibling: Q } = y.parent ? { parent: y.parent, nextSibling: y.nextSibling } : u(P), U = C(i, r), tt = {
496
- scrollOffset: U,
497
- from: { scroll: I(i) },
498
- to: { scroll: I(r) },
545
+ }, y = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
546
+ let P = 0;
547
+ const A = (i) => {
548
+ const r = typeof getComputedStyle < "u" ? getComputedStyle(i).display : "";
549
+ return r && r !== "none" ? r : "block";
550
+ }, C = (i, r) => {
551
+ r.visibleDisplay = i.style.getPropertyValue("display"), r.computedDisplay = A(i);
552
+ }, ut = (i, r) => {
553
+ if (E.get(i) !== r) return;
554
+ E.delete(i);
555
+ const c = y.get(i);
556
+ c && (c.savedCss !== null && (i.style.cssText = c.savedCss, c.savedCss = null), c.intent === "hidden" ? c.vis.setDisplay("none", !0) : c.visibleDisplay ? (c.vis.setDisplay(c.visibleDisplay, !1), C(i, c)) : (c.vis.setDisplay(null), C(i, c)));
557
+ }, Ct = (i, r, c, p, M) => {
558
+ const R = p.element, D = M.element, N = (p.mode ?? "unmount") === "hidden", { parent: q, nextSibling: J } = p.parent ? { parent: p.parent, nextSibling: p.nextSibling } : d(R), V = w(r, c), tt = {
559
+ scrollOffset: V,
560
+ from: { scroll: z(r) },
561
+ to: { scroll: z(c) },
499
562
  get scrollingElement() {
500
- return L() || document.documentElement;
563
+ return W() || document.documentElement;
501
564
  },
502
565
  get positionedParent() {
503
- return H();
566
+ return $();
504
567
  }
505
568
  };
506
- let M;
507
- if (k) {
508
- M = P, M.style.top = `${-1 * ((U == null ? void 0 : U.y) ?? 0)}px`;
509
- const D = c.get(_);
510
- D && D.savedCss === null && (D.savedCss = _.style.cssText);
569
+ let x;
570
+ if (N) {
571
+ x = R, x.style.top = `${-1 * ((V == null ? void 0 : V.y) ?? 0)}px`;
572
+ const H = y.get(D);
573
+ H && H.savedCss === null && (H.savedCss = D.style.cssText);
511
574
  } else
512
- M = P, kt(M, tt);
513
- x(i) || b(i);
514
- const Y = k ? ++S : 0;
515
- k && (m.set(_, Y), m.set(P, Y));
516
- const ut = Promise.resolve(M), dt = Promise.resolve(_), ft = [], xt = {
517
- from: ut,
518
- to: dt,
575
+ x = R, Wt(x, tt);
576
+ k(r) || O(r);
577
+ const G = N ? ++P : 0;
578
+ N && (E.set(D, G), E.set(R, G));
579
+ const pt = Promise.resolve(x), yt = Promise.resolve(D), mt = [], _t = {
580
+ from: pt,
581
+ to: yt,
519
582
  context: tt,
520
- createElement: ((D, et = "div") => {
521
- const W = document.createElement(et);
522
- return W.setAttribute("data-ssgoi-id", D), ft.push(W), W;
583
+ createElement: ((H, et = "div") => {
584
+ const B = document.createElement(et);
585
+ return B.setAttribute("data-ssgoi-id", H), mt.push(B), B;
523
586
  })
524
- }, At = Promise.resolve(
525
- o.prepare ? o.prepare(xt) : {}
587
+ }, Dt = Promise.resolve(
588
+ i.prepare ? i.prepare(_t) : {}
526
589
  );
527
- Ht({
528
- from: ut,
529
- to: dt,
530
- extras: At
531
- }).then(({ from: D, to: et, extras: W }) => {
532
- !k && q && (Q && q.contains(Q) ? q.insertBefore(M, Q) : q.appendChild(M));
533
- const nt = o.animation({
534
- from: D,
590
+ Ft({
591
+ from: pt,
592
+ to: yt,
593
+ extras: Dt
594
+ }).then(({ from: H, to: et, extras: B }) => {
595
+ !N && q && (J && q.contains(J) ? q.insertBefore(x, J) : q.appendChild(x));
596
+ const nt = i.animation({
597
+ from: H,
535
598
  to: et,
536
599
  context: tt,
537
- ...W
600
+ ...B
538
601
  }), st = nt.onComplete;
539
602
  nt.onComplete = () => {
540
- st == null || st(), k ? (N(P, Y), N(_, Y)) : M.parentNode && M.parentNode.removeChild(M);
541
- for (const ot of ft)
542
- ot.parentNode && ot.parentNode.removeChild(ot);
543
- }, p.attach(nt);
603
+ st == null || st(), N ? (ut(R, G), ut(D, G)) : x.parentNode && x.parentNode.removeChild(x);
604
+ for (const it of mt)
605
+ it.parentNode && it.parentNode.removeChild(it);
606
+ }, a.attach(nt);
544
607
  });
545
- }, V = (o, i) => {
546
- const r = v.isSwipeBack();
547
- a.trigger(o, i), a.get(i).then((y) => {
548
- if (i === "in" && v.onPageEnter(), !y) return;
549
- if (r) {
550
- i === "out" && y.from && !x(y.from) && b(y.from), f = null, h = null;
608
+ }, U = (i, r) => {
609
+ const c = g.isSwipeBack();
610
+ l.trigger(i, r), l.get(r).then((p) => {
611
+ if (r === "in" && g.onPageEnter(), !p) return;
612
+ if (c) {
613
+ r === "out" && p.from && !k(p.from) && O(p.from), m = null, T = null;
551
614
  return;
552
615
  }
553
- if (i !== "in") return;
554
- const { from: R, to: P } = n(
555
- y.from,
556
- y.to
557
- ), _ = Wt(
616
+ if (r !== "in") return;
617
+ const { from: M, to: R } = s(
618
+ p.from,
619
+ p.to
620
+ ), D = Yt(
621
+ M,
558
622
  R,
559
- P,
560
- d()
561
- ), J = f, k = h;
562
- f = null, h = null, !(!_ || !J || !k) && Tt(_, R, P, J, k);
623
+ S()
624
+ ), j = m, N = T;
625
+ m = null, T = null, !(!D || !j || !N) && Ct(D, p.from, p.to, j, N);
563
626
  });
564
- }, Rt = (o, i) => {
565
- const r = c.get(o);
566
- if (!r) return;
567
- const y = r.intent === "hidden";
568
- if (r.intent = "hidden", r.savedCss === null && (r.savedCss = o.style.cssText), r.vis.setDisplay(r.computedDisplay || "block", !0), o.style.position = "absolute", o.style.width = "100%", o.style.left = "0", y) return;
569
- const R = u(o);
570
- f = {
571
- element: o,
572
- parent: R.parent,
573
- nextSibling: R.nextSibling,
627
+ }, xt = (i, r) => {
628
+ const c = y.get(i);
629
+ if (!c) return;
630
+ const p = c.intent === "hidden";
631
+ if (c.intent = "hidden", c.savedCss === null && (c.savedCss = i.style.cssText), c.vis.setDisplay(c.computedDisplay || "block", !0), i.style.position = "absolute", i.style.width = "100%", i.style.left = "0", p) return;
632
+ const M = d(i);
633
+ m = {
634
+ element: i,
635
+ parent: M.parent,
636
+ nextSibling: M.nextSibling,
574
637
  mode: "hidden"
575
638
  };
576
- const P = o.getAttribute("data-ssgoi-transition") ?? i;
577
- V(P, "out");
578
- }, Pt = (o, i) => {
579
- const r = c.get(o);
580
- if (!r || r.intent === "visible") return;
581
- r.intent = "visible", T(o, r), r.savedCss !== null && (o.style.cssText = r.savedCss, r.visibleDisplay ? r.vis.setDisplay(r.visibleDisplay, !1) : r.vis.setDisplay(null)), A(o, i), h = {
582
- element: o,
583
- parent: o.parentElement,
584
- nextSibling: o.nextElementSibling
639
+ const R = i.getAttribute("data-ssgoi-transition") ?? r;
640
+ U(R, "out");
641
+ }, Lt = (i, r) => {
642
+ const c = y.get(i);
643
+ if (!c || c.intent === "visible") return;
644
+ c.intent = "visible", C(i, c), c.savedCss !== null && (i.style.cssText = c.savedCss, c.visibleDisplay ? c.vis.setDisplay(c.visibleDisplay, !1) : c.vis.setDisplay(null)), L(i, r), T = {
645
+ element: i,
646
+ parent: i.parentElement,
647
+ nextSibling: i.nextElementSibling
585
648
  };
586
- const y = o.getAttribute("data-ssgoi-transition") ?? i;
587
- V(y, "in");
588
- }, Mt = (o, i, r) => {
589
- const y = c.get(o);
590
- if (y && (y.vis.stop(), c.delete(o), m.delete(o), y.intent === "hidden")) {
591
- (f == null ? void 0 : f.element) === o && (f = null), (h == null ? void 0 : h.element) === o && (h = null);
649
+ const p = i.getAttribute("data-ssgoi-transition") ?? r;
650
+ U(p, "in");
651
+ }, Ot = (i, r, c) => {
652
+ const p = y.get(i);
653
+ if (p && (p.vis.stop(), y.delete(i), E.delete(i), p.intent === "hidden")) {
654
+ (m == null ? void 0 : m.element) === i && (m = null), (T == null ? void 0 : T.element) === i && (T = null);
592
655
  return;
593
656
  }
594
- const R = r ?? u(o);
595
- f = {
596
- element: o,
597
- parent: R.parent,
598
- nextSibling: R.nextSibling,
657
+ const M = c ?? d(i);
658
+ m = {
659
+ element: i,
660
+ parent: M.parent,
661
+ nextSibling: M.nextSibling,
599
662
  mode: "unmount"
600
663
  };
601
- const P = o.getAttribute("data-ssgoi-transition") ?? i;
602
- V(P, "out");
603
- }, lt = /* @__PURE__ */ new WeakSet(), ct = (o, i) => {
604
- if (lt.has(i)) return;
605
- lt.add(i), O(i);
606
- const r = Gt(i, {
607
- onHide: () => Rt(i, o),
608
- onShow: () => Pt(i, o)
609
- }), y = {
610
- vis: r,
664
+ const R = i.getAttribute("data-ssgoi-transition") ?? r;
665
+ U(R, "out");
666
+ }, dt = /* @__PURE__ */ new WeakSet(), ft = (i, r) => {
667
+ if (dt.has(r)) return;
668
+ dt.add(r), f(r);
669
+ const c = re(r, {
670
+ onHide: () => xt(r, i),
671
+ onShow: () => Lt(r, i)
672
+ }), p = {
673
+ vis: c,
611
674
  savedCss: null,
612
- intent: r.isHidden ? "hidden" : "visible",
675
+ intent: c.isHidden ? "hidden" : "visible",
613
676
  visibleDisplay: "",
614
677
  computedDisplay: "block"
615
678
  };
616
- c.set(i, y), r.isHidden || (T(i, y), A(i, o), h = {
617
- element: i,
618
- parent: i.parentElement,
619
- nextSibling: i.nextElementSibling
620
- }, V(o, "in")), Ut(i, (R) => Mt(i, o, R));
621
- }, at = /* @__PURE__ */ new Map();
622
- return { register: ct, refFor: (o) => {
623
- let i = at.get(o);
624
- return i || (i = (r) => {
625
- r && ct(o, r);
626
- }, at.set(o, i)), i;
679
+ y.set(r, p), c.isHidden || (C(r, p), L(r, i), T = {
680
+ element: r,
681
+ parent: r.parentElement,
682
+ nextSibling: r.nextElementSibling
683
+ }, U(i, "in")), ie(r, (M) => Ot(r, i, M));
684
+ }, ht = /* @__PURE__ */ new Map();
685
+ return { register: ft, refFor: (i) => {
686
+ let r = ht.get(i);
687
+ return r || (r = (c) => {
688
+ c && ft(i, c);
689
+ }, ht.set(i, r)), r;
627
690
  } };
628
691
  }
629
- const St = "data-ssgoi-root", jt = `[${St}]`, rt = "data-ssgoi-transition", bt = `[${rt}]`, Jt = "[data-ssgoi-clone]";
630
- function Qt() {
692
+ const At = "data-ssgoi-root", le = `[${At}]`, lt = "data-ssgoi-transition", Pt = `[${lt}]`, ae = "[data-ssgoi-clone]";
693
+ function ue() {
631
694
  return typeof MutationObserver < "u" && typeof HTMLElement < "u" && typeof Node < "u";
632
695
  }
633
- function te(t) {
696
+ function de(t) {
634
697
  return t.nodeType === Node.ELEMENT_NODE;
635
698
  }
636
- function ee(t) {
699
+ function fe(t) {
637
700
  return t instanceof HTMLElement;
638
701
  }
639
- function le(t, s) {
640
- if (!Qt()) return () => {
702
+ function ve(t, n) {
703
+ if (!ue()) return () => {
641
704
  };
642
- t.setAttribute(St, "");
643
- const e = (a) => a.closest(jt) === t, n = (a) => {
644
- if (!ee(a) || !e(a) || a.closest(Jt))
705
+ t.setAttribute(At, "");
706
+ const e = (l) => l.closest(le) === t, s = (l) => {
707
+ if (!fe(l) || !e(l) || l.closest(ae))
645
708
  return;
646
- const g = a.getAttribute(rt);
647
- g !== null && s.register(g, a);
648
- }, l = (a) => {
649
- if (te(a)) {
650
- a.matches(bt) && n(a);
651
- for (const g of a.querySelectorAll(bt))
652
- n(g);
709
+ const u = l.getAttribute(lt);
710
+ u !== null && n.register(u, l);
711
+ }, o = (l) => {
712
+ if (de(l)) {
713
+ l.matches(Pt) && s(l);
714
+ for (const u of l.querySelectorAll(Pt))
715
+ s(u);
653
716
  }
654
- }, p = new MutationObserver((a) => {
655
- for (const g of a) {
656
- if (g.type === "attributes") {
657
- n(g.target);
717
+ }, a = new MutationObserver((l) => {
718
+ for (const u of l) {
719
+ if (u.type === "attributes") {
720
+ s(u.target);
658
721
  continue;
659
722
  }
660
- for (const v of g.addedNodes)
661
- l(v);
723
+ for (const g of u.addedNodes)
724
+ o(g);
662
725
  }
663
726
  });
664
- return p.observe(t, {
727
+ return a.observe(t, {
665
728
  childList: !0,
666
729
  subtree: !0,
667
730
  attributes: !0,
668
- attributeFilter: [rt]
669
- }), l(t), () => p.disconnect();
731
+ attributeFilter: [lt]
732
+ }), o(t), () => a.disconnect();
670
733
  }
671
734
  export {
672
- Ot as Animation,
673
- _t as HostAnimation,
674
- ue as MultiAnimation,
675
- de as WebAnimation,
676
- re as createSggoiTransitionContext,
677
- le as observeSsgoiTransitions
735
+ It as Animation,
736
+ Ht as HostAnimation,
737
+ Ee as MultiAnimation,
738
+ we as WebAnimation,
739
+ ge as createSggoiTransitionContext,
740
+ ve as observeSsgoiTransitions
678
741
  };