@music-lyric-player/base 0.15.0 → 0.17.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.
@@ -1,6 +1,5 @@
1
- import { freezeObjectDeep as fr, ConfigManager as mr, Event as pr } from "@music-lyric-player/utils";
2
- import "lodash-es";
3
- const Ht = fr({
1
+ import { freezeObjectDeep as mr, ConfigManager as dr, Event as pr } from "@music-lyric-player/utils";
2
+ const Ht = mr({
4
3
  driver: "animation",
5
4
  bridgeActive: !0,
6
5
  mergeWindow: 300,
@@ -10,32 +9,47 @@ const Ht = fr({
10
9
  useMeta: !0,
11
10
  resetTempOnLyricChange: !0
12
11
  }
13
- }), ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ }), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14
13
  __proto__: null,
15
14
  DEFAULT: Ht
16
- }, Symbol.toStringTag, { value: "Module" })), B = (s = 8) => {
17
- let e = "";
18
- for (; e.length < s; )
19
- e += Math.random().toString(36).slice(2);
20
- return e.slice(0, s);
21
- };
22
- var zt = /* @__PURE__ */ ((s) => (s.ChineseSimplified = "zh-hans", s.ChineseTraditional = "zh-hant", s.English = "en", s.Japanese = "ja", s.Korean = "ko", s.Russian = "ru", s.French = "fr", s.German = "de", s.Spanish = "es", s.Italian = "it", s.Portuguese = "pt", s))(zt || {});
23
- class dr {
15
+ }, Symbol.toStringTag, { value: "Module" }));
16
+ var zt = /* @__PURE__ */ ((r) => (r.ChineseSimplified = "zh-hans", r.ChineseTraditional = "zh-hant", r.English = "en", r.Japanese = "ja", r.Korean = "ko", r.Russian = "ru", r.French = "fr", r.German = "de", r.Spanish = "es", r.Italian = "it", r.Portuguese = "pt", r))(zt || {});
17
+ class Er {
24
18
  /**
25
19
  * Language tag.
26
20
  */
27
- tag = "";
21
+ tag;
28
22
  /**
29
23
  * Share within the lyric, ranging from 0 to 100.
30
24
  * Recommended to be computed from word-level language counts.
31
25
  */
32
- percent = 0;
26
+ percent;
27
+ constructor(e = {}) {
28
+ this.tag = e.tag ?? "", this.percent = e.percent ?? 0;
29
+ }
33
30
  }
34
31
  class Yt {
35
32
  /**
36
33
  * All languages with their shares.
34
+ *
35
+ * Shares are a snapshot filled by the language transform; stale after lines change.
37
36
  */
38
- list = [];
37
+ list;
38
+ constructor(e = {}) {
39
+ this.list = e.list ?? [];
40
+ }
41
+ /**
42
+ * Whether a language of the given tag is present.
43
+ */
44
+ has(e) {
45
+ return this.list.some((t) => t.tag === e);
46
+ }
47
+ /**
48
+ * The language entry of the given tag.
49
+ */
50
+ byType(e) {
51
+ return this.list.find((t) => t.tag === e);
52
+ }
39
53
  /**
40
54
  * The language with the highest share.
41
55
  */
@@ -50,11 +64,14 @@ class Kt {
50
64
  /**
51
65
  * Start time in milliseconds.
52
66
  */
53
- start = 0;
67
+ start;
54
68
  /**
55
69
  * End time in milliseconds.
56
70
  */
57
- end = 0;
71
+ end;
72
+ constructor(e = 0, t = 0) {
73
+ this.start = e, this.end = t;
74
+ }
58
75
  /**
59
76
  * Duration in milliseconds, derived from end minus start.
60
77
  */
@@ -62,11 +79,7 @@ class Kt {
62
79
  return this.end - this.start;
63
80
  }
64
81
  }
65
- class Er {
66
- /**
67
- * Unique identifier of the token.
68
- */
69
- id = B(6).toUpperCase();
82
+ class gr {
70
83
  /**
71
84
  * Time range of the token.
72
85
  */
@@ -74,13 +87,12 @@ class Er {
74
87
  /**
75
88
  * Text content of the token.
76
89
  */
77
- content = "";
90
+ content;
91
+ constructor(e = {}) {
92
+ this.time = e.time, this.content = e.content ?? "";
93
+ }
78
94
  }
79
- class Jt {
80
- /**
81
- * Unique identifier of the item.
82
- */
83
- id = B(6).toUpperCase();
95
+ class ze {
84
96
  /**
85
97
  * Time range of the item, independent from its words.
86
98
  */
@@ -88,14 +100,19 @@ class Jt {
88
100
  /**
89
101
  * Tokens composing the item in order.
90
102
  */
91
- words = [];
103
+ words;
92
104
  /**
93
105
  * Language or transliteration scheme of this item.
94
106
  * Should be set when multiple languages coexist, since line-level aggregation groups items by it.
95
107
  */
96
108
  language;
109
+ constructor(e = {}) {
110
+ this.time = e.time, this.words = e.words ?? [], this.language = e.language;
111
+ }
97
112
  /**
98
113
  * Flat text joined from every word.
114
+ *
115
+ * Live: recomputed on each access.
99
116
  */
100
117
  get content() {
101
118
  let e = "";
@@ -104,13 +121,25 @@ class Jt {
104
121
  return e;
105
122
  }
106
123
  }
107
- class gr extends Jt {
124
+ class Rr extends ze {
125
+ /**
126
+ * Whether this ruby marks the start of a phrase.
127
+ */
128
+ phraseStart;
129
+ constructor(e = {}) {
130
+ super(e), this.phraseStart = e.phraseStart ?? !1;
131
+ }
132
+ }
133
+ class vr extends ze {
108
134
  /**
109
135
  * Original annotation type name.
110
136
  */
111
- key = "";
137
+ key;
138
+ constructor(e = {}) {
139
+ super(e), this.key = e.key ?? "";
140
+ }
112
141
  }
113
- class Rr {
142
+ class Ir {
114
143
  /**
115
144
  * Ruby annotation such as furigana.
116
145
  */
@@ -123,13 +152,12 @@ class Rr {
123
152
  * Unknown annotations keyed by their original type name.
124
153
  */
125
154
  unknowns;
155
+ constructor(e = {}) {
156
+ this.ruby = e.ruby, this.romans = e.romans, this.unknowns = e.unknowns;
157
+ }
126
158
  }
127
- var k = /* @__PURE__ */ ((s) => (s.Normal = "Normal", s.Space = "Space", s))(k || {});
128
- class vr {
129
- /**
130
- * Unique identifier of the word.
131
- */
132
- id = B(6).toUpperCase();
159
+ var k = /* @__PURE__ */ ((r) => (r.Normal = "Normal", r.Space = "Space", r))(k || {});
160
+ class $r {
133
161
  /**
134
162
  * Discriminant marking this as a normal word.
135
163
  */
@@ -141,7 +169,7 @@ class vr {
141
169
  /**
142
170
  * Text content of the word.
143
171
  */
144
- content = "";
172
+ content;
145
173
  /**
146
174
  * Language of this word.
147
175
  */
@@ -153,9 +181,12 @@ class vr {
153
181
  /**
154
182
  * Whether the word is stressed.
155
183
  */
156
- stress = !1;
184
+ stress;
185
+ constructor(e = {}) {
186
+ this.time = e.time, this.content = e.content ?? "", this.language = e.language, this.annotation = e.annotation, this.stress = e.stress ?? !1;
187
+ }
157
188
  }
158
- class Ir {
189
+ class Lr {
159
190
  /**
160
191
  * Discriminant marking this as a space.
161
192
  */
@@ -163,182 +194,134 @@ class Ir {
163
194
  /**
164
195
  * Number of consecutive space characters.
165
196
  */
166
- count = 1;
197
+ count;
198
+ constructor(e = {}) {
199
+ this.count = e.count ?? 1;
200
+ }
167
201
  }
168
- class Y {
169
- /**
170
- * Language or transliteration scheme of this item.
171
- * Should be set when multiple languages coexist, since aggregation from words groups by it.
172
- */
173
- language;
202
+ var Zt = /* @__PURE__ */ ((r) => (r.Ruby = "Ruby", r.Roman = "Roman", r.Translate = "Translate", r.Unknown = "Unknown", r))(Zt || {});
203
+ const Tr = [
204
+ "Ruby",
205
+ "Roman",
206
+ "Unknown"
207
+ /* Unknown */
208
+ ];
209
+ class Jt {
174
210
  /**
175
- * Original text.
211
+ * All annotation items in order.
212
+ *
213
+ * Derived items are a snapshot from `deriveLineAnnotation`; re-run it after words change.
176
214
  */
177
- content = "";
178
- }
179
- class Zt extends Y {
215
+ list;
216
+ constructor(e = {}) {
217
+ this.list = e.list ?? [];
218
+ }
180
219
  /**
181
- * Original annotation type name.
220
+ * Whether any item of a kind exists.
182
221
  */
183
- key = "";
184
- }
185
- class Qt {
186
- #e;
187
- constructor(e) {
188
- this.#e = e;
222
+ has(e) {
223
+ return this.list.some((t) => t.kind === e);
189
224
  }
190
225
  /**
191
- * Aggregate one per-word item into a single line item, padding spaces to follow word spacing.
226
+ * All items of a kind.
192
227
  */
193
- #i(e) {
194
- let t = "", n = 0, i, c = !1;
195
- for (let h = 0, o = this.#e.words.length; h < o; h++) {
196
- const a = this.#e.words[h];
197
- if (a.type === k.Space) {
198
- n += a.count;
199
- continue;
200
- }
201
- const r = e(a);
202
- r && (c && (t += " ".repeat(n)), t += r.content, i ??= r.language, n = 0, c = !0);
203
- }
204
- if (!c)
205
- return;
206
- const l = new Y();
207
- return l.content = t, l.language = i, l;
228
+ all(e) {
229
+ return this.list.filter((t) => t.kind === e);
208
230
  }
209
231
  /**
210
- * Aggregate multi-value per-word items into line items, one per language.
232
+ * The first item of a kind, preferring a language match then falling back to the first.
211
233
  */
212
- #a(e) {
213
- const t = [];
214
- for (let i = 0, c = this.#e.words.length; i < c; i++) {
215
- const l = this.#e.words[i];
216
- if (l.type === k.Space)
217
- continue;
218
- const h = e(l);
219
- if (h)
220
- for (const o of h) {
221
- const a = o.language ?? "";
222
- t.includes(a) || t.push(a);
223
- }
234
+ first(e, t) {
235
+ const n = this.all(e);
236
+ if (t !== void 0) {
237
+ const i = n.find((c) => c.language === t);
238
+ if (i)
239
+ return i;
224
240
  }
225
- if (!t.length)
226
- return;
227
- const n = [];
228
- for (const i of t) {
229
- let c = "", l = 0, h = !1;
230
- for (let a = 0, r = this.#e.words.length; a < r; a++) {
231
- const u = this.#e.words[a];
232
- if (u.type === k.Space) {
233
- l += u.count;
234
- continue;
235
- }
236
- const f = e(u)?.find((E) => (E.language ?? "") === i);
237
- f && (h && (c += " ".repeat(l)), c += f.content, l = 0, h = !0);
241
+ return n[0];
242
+ }
243
+ }
244
+ const H = (r, e) => ({
245
+ derived: !1,
246
+ ...e,
247
+ kind: r
248
+ }), se = (r, e, t, n) => {
249
+ const i = [];
250
+ for (let o = 0, h = r.length; o < h; o++) {
251
+ const a = r[o];
252
+ if (a.type === k.Space)
253
+ continue;
254
+ const l = e(a);
255
+ if (l)
256
+ for (const s of l) {
257
+ const u = t(s);
258
+ i.includes(u) || i.push(u);
238
259
  }
239
- const o = new Y();
240
- o.content = c, o.language = i || void 0, n.push(o);
241
- }
242
- return n;
243
260
  }
244
- /**
245
- * Aggregate unknown per-word items into line items, one per key.
246
- */
247
- #o() {
248
- const e = [];
249
- for (let n = 0, i = this.#e.words.length; n < i; n++) {
250
- const c = this.#e.words[n];
251
- if (c.type === k.Space)
261
+ const c = [];
262
+ for (const o of i) {
263
+ let h = "", a = 0, l, s = !1;
264
+ for (let u = 0, f = r.length; u < f; u++) {
265
+ const E = r[u];
266
+ if (E.type === k.Space) {
267
+ a += E.count;
252
268
  continue;
253
- const l = c.annotation?.unknowns;
254
- if (l)
255
- for (const h of l)
256
- e.includes(h.key) || e.push(h.key);
257
- }
258
- if (!e.length)
259
- return;
260
- const t = [];
261
- for (const n of e) {
262
- let i = "", c = 0, l, h = !1;
263
- for (let a = 0, r = this.#e.words.length; a < r; a++) {
264
- const u = this.#e.words[a];
265
- if (u.type === k.Space) {
266
- c += u.count;
267
- continue;
268
- }
269
- const f = u.annotation?.unknowns?.find((E) => E.key === n);
270
- f && (h && (i += " ".repeat(c)), i += f.content, l ??= f.language, c = 0, h = !0);
271
269
  }
272
- const o = new Zt();
273
- o.key = n, o.content = i, o.language = l, t.push(o);
270
+ const S = e(E)?.find((d) => t(d) === o);
271
+ S && (s && (h += " ".repeat(a)), h += S.content, l ??= S.language, a = 0, s = !0);
274
272
  }
275
- return t;
276
- }
277
- #t;
278
- /**
279
- * Ruby annotation: the explicit value, otherwise aggregated from words.
280
- */
281
- get ruby() {
282
- return this.#t ?? this.#i((e) => e.annotation?.ruby);
283
- }
284
- /**
285
- * Override the words-derived ruby with an explicit value.
286
- */
287
- set ruby(e) {
288
- this.#t = e;
289
- }
290
- #r;
291
- /**
292
- * Romanized transliterations: the explicit value, otherwise aggregated from words grouped by language.
293
- */
294
- get romans() {
295
- return this.#r ?? this.#a((e) => e.annotation?.romans);
296
- }
297
- /**
298
- * Override the words-derived romans with explicit values.
299
- */
300
- set romans(e) {
301
- this.#r = e;
302
- }
303
- #s;
304
- /**
305
- * Translations, explicit only since words carry no line-level translation.
306
- */
307
- get translates() {
308
- return this.#s;
309
- }
310
- /**
311
- * Set the explicit translations.
312
- */
313
- set translates(e) {
314
- this.#s = e;
315
- }
316
- #n;
317
- /**
318
- * Unknown annotations: the explicit value, otherwise aggregated from words grouped by key.
319
- */
320
- get unknowns() {
321
- return this.#n ?? this.#o();
322
- }
323
- /**
324
- * Override the words-derived unknowns with explicit values.
325
- */
326
- set unknowns(e) {
327
- this.#n = e;
273
+ s && c.push(n(o, h, l));
274
+ }
275
+ return c;
276
+ }, Nr = (r) => {
277
+ const { words: e, annotation: t } = r;
278
+ for (const n of Tr) {
279
+ const i = t.list.some((o) => o.kind === n && !o.derived);
280
+ if (t.list = t.list.filter((o) => !(o.kind === n && o.derived)), i)
281
+ continue;
282
+ let c;
283
+ switch (n) {
284
+ case "Ruby":
285
+ c = se(
286
+ e,
287
+ (o) => {
288
+ const h = o.annotation?.ruby;
289
+ return h ? [h] : void 0;
290
+ },
291
+ () => "",
292
+ (o, h, a) => H("Ruby", { content: h, language: a, derived: !0 })
293
+ );
294
+ break;
295
+ case "Roman":
296
+ c = se(
297
+ e,
298
+ (o) => o.annotation?.romans,
299
+ (o) => o.language ?? "",
300
+ (o, h) => H("Roman", { content: h, language: o || void 0, derived: !0 })
301
+ );
302
+ break;
303
+ default:
304
+ c = se(
305
+ e,
306
+ (o) => o.annotation?.unknowns,
307
+ (o) => o.key,
308
+ (o, h, a) => H("Unknown", { content: h, language: a, key: o, derived: !0 })
309
+ );
310
+ }
311
+ t.list.push(...c);
328
312
  }
329
- }
330
- var er = /* @__PURE__ */ ((s) => (s.Normal = "Normal", s.Interlude = "Interlude", s))(er || {});
331
- class tr {
332
- /**
333
- * Unique identifier of the line.
334
- */
335
- id = B(6).toUpperCase();
313
+ };
314
+ var Qt = /* @__PURE__ */ ((r) => (r.Normal = "Normal", r.Interlude = "Interlude", r))(Qt || {});
315
+ class er {
336
316
  /**
337
317
  * Time range of the line.
338
318
  */
339
- time = new Kt();
319
+ time;
320
+ constructor(e = {}) {
321
+ this.time = e.time ?? new Kt();
322
+ }
340
323
  }
341
- class rr extends tr {
324
+ class tr extends er {
342
325
  /**
343
326
  * Discriminant marking this as a normal line.
344
327
  */
@@ -350,9 +333,18 @@ class rr extends tr {
350
333
  /**
351
334
  * Words composing the line in order.
352
335
  */
353
- words = [];
336
+ words;
337
+ /**
338
+ * Annotations applied to the whole line, derived from words unless set explicitly.
339
+ */
340
+ annotation;
341
+ constructor(e = {}) {
342
+ super(e), this.agent = e.agent, this.words = e.words ?? [], this.annotation = e.annotation ?? new Jt(), e.languages && (this.languages = e.languages);
343
+ }
354
344
  /**
355
345
  * Plain text of the line joined from every word.
346
+ *
347
+ * Live: recomputed from words on each access.
356
348
  */
357
349
  get original() {
358
350
  let e = "";
@@ -362,13 +354,9 @@ class rr extends tr {
362
354
  }
363
355
  return e;
364
356
  }
365
- /**
366
- * Annotations applied to the whole line, derived from words unless set explicitly.
367
- */
368
- annotation = new Qt(this);
369
357
  #e;
370
358
  /**
371
- * Language tags of this line: the value set explicitly, otherwise collected from words.
359
+ * Language tags of this line: the explicit value, otherwise live-collected from words on each access.
372
360
  */
373
361
  get languages() {
374
362
  if (this.#e?.length)
@@ -387,22 +375,24 @@ class rr extends tr {
387
375
  this.#e = e;
388
376
  }
389
377
  }
390
- class $r extends rr {
378
+ class Sr extends tr {
391
379
  /**
392
380
  * Background lines attached to this line.
393
381
  */
394
382
  background;
383
+ constructor(e = {}) {
384
+ super(e), this.background = e.background;
385
+ }
395
386
  }
396
- class Lr extends tr {
387
+ class Or extends er {
397
388
  /**
398
389
  * Discriminant marking this as an interlude line.
399
390
  */
400
391
  type = "Interlude";
401
392
  }
402
- var _ = /* @__PURE__ */ ((s) => (s.Offset = "Offset", s.Duration = "Duration", s.Title = "Title", s.Singer = "Singer", s.Album = "Album", s.Creator = "Creator", s.Author = "Author", s.Isrc = "Isrc", s.Unknown = "Unknown", s))(_ || {});
403
- const Tr = (s, e, t) => ({
404
- id: B(6).toUpperCase(),
405
- type: s,
393
+ var rr = /* @__PURE__ */ ((r) => (r.Offset = "Offset", r.Duration = "Duration", r.Title = "Title", r.Singer = "Singer", r.Album = "Album", r.Creator = "Creator", r.Author = "Author", r.Isrc = "Isrc", r.Unknown = "Unknown", r))(rr || {});
394
+ const Ar = (r, e, t) => ({
395
+ type: r,
406
396
  key: e,
407
397
  value: t
408
398
  });
@@ -410,162 +400,186 @@ class sr {
410
400
  /**
411
401
  * All meta entries in order.
412
402
  */
413
- list = [];
414
- listOf(e) {
415
- return this.list.filter((t) => t.type === e);
403
+ list;
404
+ constructor(e = {}) {
405
+ this.list = e.list ?? [];
416
406
  }
417
407
  /**
418
- * All offset meta entries.
408
+ * Whether any entry of a meta type exists.
419
409
  */
420
- get offsets() {
421
- return this.listOf(_.Offset);
410
+ has(e) {
411
+ return this.list.some((t) => t.type === e);
422
412
  }
423
413
  /**
424
- * All duration meta entries.
414
+ * All entries of a meta type.
425
415
  */
426
- get durations() {
427
- return this.listOf(_.Duration);
416
+ all(e) {
417
+ return this.list.filter((t) => t.type === e);
428
418
  }
429
419
  /**
430
- * All title meta entries.
420
+ * The first entry of a meta type.
431
421
  */
432
- get titles() {
433
- return this.listOf(_.Title);
422
+ first(e) {
423
+ return this.list.find((t) => t.type === e);
434
424
  }
435
425
  /**
436
- * All singer meta entries.
426
+ * All entries with the given original key.
437
427
  */
438
- get singers() {
439
- return this.listOf(_.Singer);
428
+ byKey(e) {
429
+ return this.list.filter((t) => t.key === e);
440
430
  }
431
+ }
432
+ var nr = /* @__PURE__ */ ((r) => (r.Person = "Person", r.Group = "Group", r.Other = "Other", r.Unknown = "Unknown", r))(nr || {});
433
+ class wr {
441
434
  /**
442
- * All album meta entries.
435
+ * Unique identifier of the agent.
443
436
  */
444
- get albums() {
445
- return this.listOf(_.Album);
446
- }
437
+ id;
447
438
  /**
448
- * All creator meta entries.
439
+ * Performing type of the agent.
449
440
  */
450
- get creators() {
451
- return this.listOf(_.Creator);
452
- }
441
+ type;
453
442
  /**
454
- * All author meta entries.
443
+ * Number of lines performed by this agent.
444
+ *
445
+ * Snapshot filled by `calcAgentIndex` at parse time; stale after lines change.
455
446
  */
456
- get authors() {
457
- return this.listOf(_.Author);
458
- }
447
+ count;
459
448
  /**
460
- * All isrc meta entries.
449
+ * Display names of the agent; a group may carry more than one.
461
450
  */
462
- get isrcs() {
463
- return this.listOf(_.Isrc);
451
+ names;
452
+ constructor(e = {}) {
453
+ this.id = e.id ?? "", this.type = e.type ?? "Unknown", this.count = e.count ?? 0, this.names = e.names ?? [];
464
454
  }
455
+ }
456
+ class yr {
465
457
  /**
466
- * All unknown meta entries.
458
+ * Identifier of the referenced agent.
467
459
  */
468
- get unknowns() {
469
- return this.listOf(_.Unknown);
470
- }
471
- }
472
- var nr = /* @__PURE__ */ ((s) => (s.Person = "Person", s.Group = "Group", s.Other = "Other", s.Unknown = "Unknown", s))(nr || {});
473
- class Or {
460
+ id;
474
461
  /**
475
- * Unique identifier of the agent.
462
+ * Index of this agent occurrence among all lines.
463
+ *
464
+ * Snapshot filled by `calcAgentIndex` at parse time.
476
465
  */
477
- id = "";
466
+ globalIndex;
478
467
  /**
479
- * Performing type of the agent.
468
+ * Index of this agent occurrence within its block.
469
+ *
470
+ * Snapshot filled by `calcAgentIndex` at parse time.
480
471
  */
481
- type = "Unknown";
472
+ blockIndex;
473
+ constructor(e = {}) {
474
+ this.id = e.id ?? "", this.globalIndex = e.globalIndex ?? 0, this.blockIndex = e.blockIndex ?? 0;
475
+ }
476
+ }
477
+ class ir {
482
478
  /**
483
- * Number of lines performed by this agent.
479
+ * All agents in order.
484
480
  */
485
- count = 0;
481
+ list;
482
+ constructor(e = {}) {
483
+ this.list = e.list ?? [];
484
+ }
486
485
  /**
487
- * Display names of the agent; a group may carry more than one.
486
+ * Whether any agent of a type exists.
488
487
  */
489
- names = [];
490
- }
491
- class Sr {
488
+ has(e) {
489
+ return this.list.some((t) => t.type === e);
490
+ }
492
491
  /**
493
- * Identifier of the referenced Agent.
492
+ * All agents of a type.
494
493
  */
495
- id = "";
494
+ all(e) {
495
+ return this.list.filter((t) => t.type === e);
496
+ }
496
497
  /**
497
- * Index of this agent occurrence among all lines.
498
+ * The agent with the given id, used to resolve a LineAgent reference.
498
499
  */
499
- globalIndex = 0;
500
+ byId(e) {
501
+ return this.list.find((t) => t.id === e);
502
+ }
500
503
  /**
501
- * Index of this agent occurrence within its block.
504
+ * The agent performing the most lines.
502
505
  */
503
- blockIndex = 0;
506
+ get primary() {
507
+ let e;
508
+ for (let t = 0, n = this.list.length; t < n; t++)
509
+ (!e || this.list[t].count > e.count) && (e = this.list[t]);
510
+ return e;
511
+ }
504
512
  }
505
- const ir = "0.8.0";
506
- var ar = /* @__PURE__ */ ((s) => (s.Invalid = "Invalid", s.Empty = "Empty", s.Normal = "Normal", s))(ar || {}), or = /* @__PURE__ */ ((s) => (s.None = "None", s.Line = "Line", s.Syllable = "Syllable", s))(or || {});
507
- class Nr {
513
+ const ar = "0.9.0";
514
+ var or = /* @__PURE__ */ ((r) => (r.Invalid = "Invalid", r.Empty = "Empty", r.Normal = "Normal", r))(or || {}), lr = /* @__PURE__ */ ((r) => (r.None = "None", r.Line = "Line", r.Syllable = "Syllable", r))(lr || {});
515
+ class Cr {
508
516
  /**
509
517
  * Schema version of this data model.
510
518
  */
511
- version = ir;
519
+ version = ar;
512
520
  /**
513
521
  * Overall classification of the lyric.
514
522
  */
515
- type = "Invalid";
523
+ type;
516
524
  /**
517
525
  * Timing precision of the lyric.
518
526
  */
519
- timing = "None";
527
+ timing;
520
528
  /**
521
529
  * Metadata of the lyric.
522
530
  */
523
- meta = new sr();
531
+ meta;
524
532
  /**
525
533
  * Language distribution of the lyric.
526
534
  */
527
- language = new Yt();
535
+ language;
528
536
  /**
529
537
  * Performing agents referenced by lines.
530
538
  */
531
- agents = [];
539
+ agent;
532
540
  /**
533
541
  * Lyric lines in order.
534
542
  */
535
- lines = [];
543
+ lines;
544
+ constructor(e = {}) {
545
+ this.type = e.type ?? "Invalid", this.timing = e.timing ?? "None", this.meta = e.meta ?? new sr(), this.language = e.language ?? new Yt(), this.agent = e.agent ?? new ir(), this.lines = e.lines ?? [];
546
+ }
536
547
  }
537
- const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
548
+ const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
538
549
  __proto__: null,
539
- Agent: Or,
550
+ Agent: ir,
551
+ AgentItem: wr,
540
552
  AgentType: nr,
541
- Info: Nr,
542
- InfoTiming: or,
543
- InfoType: ar,
553
+ Info: Cr,
554
+ InfoTiming: lr,
555
+ InfoType: or,
544
556
  Language: Yt,
545
- LanguageItem: dr,
557
+ LanguageItem: Er,
546
558
  LanguageType: zt,
547
- LineAgent: Sr,
548
- LineAnnotation: Qt,
549
- LineAnnotationItem: Y,
550
- LineInterlude: Lr,
551
- LineNormal: $r,
552
- LineNormalBase: rr,
553
- LineType: er,
554
- LineUnknownAnnotation: Zt,
559
+ LineAgent: yr,
560
+ LineAnnotation: Jt,
561
+ LineAnnotationKind: Zt,
562
+ LineInterlude: Or,
563
+ LineNormal: Sr,
564
+ LineNormalBase: tr,
565
+ LineType: Qt,
555
566
  Meta: sr,
556
- MetaType: _,
567
+ MetaType: rr,
557
568
  Time: Kt,
558
- Version: ir,
559
- WordAnnotation: Rr,
560
- WordAnnotationContent: Er,
561
- WordAnnotationItem: Jt,
562
- WordNormal: vr,
563
- WordSpace: Ir,
569
+ Version: ar,
570
+ WordAnnotation: Ir,
571
+ WordAnnotationContent: gr,
572
+ WordAnnotationItem: ze,
573
+ WordNormal: $r,
574
+ WordRubyAnnotation: Rr,
575
+ WordSpace: Lr,
564
576
  WordType: k,
565
- WordUnknownAnnotation: gr,
566
- createMetaItem: Tr
577
+ WordUnknownAnnotation: vr,
578
+ createLineAnnotationItem: H,
579
+ createMetaItem: Ar,
580
+ deriveLineAnnotation: Nr
567
581
  }, Symbol.toStringTag, { value: "Module" }));
568
- class wr {
582
+ class Pr {
569
583
  lines = [];
570
584
  mergedEnd = [];
571
585
  /**
@@ -587,13 +601,13 @@ class wr {
587
601
  this.mergedEnd = c;
588
602
  return;
589
603
  }
590
- const l = Math.max(0, t), h = n > 0 ? n : 1 / 0;
591
- let o = this.getRawTime(i - 1);
592
- c[i - 1] = o;
593
- let a = 1;
594
- for (let r = i - 2; r >= 0; r--) {
595
- const u = this.getRawTime(r);
596
- l > 0 && a < h && Math.abs(o - u) < l ? (c[r] = Math.max(u, c[r + 1]), a++) : (c[r] = u, a = 1), o = u;
604
+ const o = Math.max(0, t), h = n > 0 ? n : 1 / 0;
605
+ let a = this.getRawTime(i - 1);
606
+ c[i - 1] = a;
607
+ let l = 1;
608
+ for (let s = i - 2; s >= 0; s--) {
609
+ const u = this.getRawTime(s);
610
+ o > 0 && l < h && Math.abs(a - u) < o ? (c[s] = Math.max(u, c[s + 1]), l++) : (c[s] = u, l = 1), a = u;
597
611
  }
598
612
  this.mergedEnd = c;
599
613
  }
@@ -605,7 +619,7 @@ class wr {
605
619
  return t === void 0 ? this.getRawTime(e) : t;
606
620
  }
607
621
  }
608
- class Ar {
622
+ class qr {
609
623
  temp = 0;
610
624
  meta = 0;
611
625
  setTemp(e) {
@@ -619,7 +633,7 @@ class Ar {
619
633
  this.meta = 0;
620
634
  return;
621
635
  }
622
- const n = e.meta.offsets[0]?.value;
636
+ const n = e.meta.first(X.MetaType.Offset)?.value;
623
637
  this.meta = typeof n == "number" && Number.isFinite(n) ? n : 0;
624
638
  }
625
639
  resolve(e) {
@@ -627,7 +641,7 @@ class Ar {
627
641
  return Number.isFinite(t) ? t : 0;
628
642
  }
629
643
  }
630
- class yr {
644
+ class br {
631
645
  frameId = null;
632
646
  timerId = null;
633
647
  schedule(e, t) {
@@ -644,13 +658,13 @@ class yr {
644
658
  this.frameId !== null && (globalThis.cancelAnimationFrame(this.frameId), this.frameId = null), this.timerId !== null && (globalThis.clearTimeout(this.timerId), this.timerId = null);
645
659
  }
646
660
  }
647
- var H = { exports: {} }, ie, tt;
648
- function K() {
649
- if (tt) return ie;
661
+ var W = { exports: {} }, ne, tt;
662
+ function z() {
663
+ if (tt) return ne;
650
664
  tt = 1;
651
- const s = "2.0.0", e = 256, t = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
665
+ const r = "2.0.0", e = 256, t = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
652
666
  9007199254740991, n = 16, i = e - 6;
653
- return ie = {
667
+ return ne = {
654
668
  MAX_LENGTH: e,
655
669
  MAX_SAFE_COMPONENT_LENGTH: n,
656
670
  MAX_SAFE_BUILD_LENGTH: i,
@@ -664,86 +678,86 @@ function K() {
664
678
  "prepatch",
665
679
  "prerelease"
666
680
  ],
667
- SEMVER_SPEC_VERSION: s,
681
+ SEMVER_SPEC_VERSION: r,
668
682
  FLAG_INCLUDE_PRERELEASE: 1,
669
683
  FLAG_LOOSE: 2
670
- }, ie;
684
+ }, ne;
671
685
  }
672
- var ae, rt;
673
- function J() {
674
- return rt || (rt = 1, ae = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {
675
- }), ae;
686
+ var ie, rt;
687
+ function Y() {
688
+ return rt || (rt = 1, ie = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {
689
+ }), ie;
676
690
  }
677
691
  var st;
678
- function W() {
679
- return st || (st = 1, (function(s, e) {
692
+ function B() {
693
+ return st || (st = 1, (function(r, e) {
680
694
  const {
681
695
  MAX_SAFE_COMPONENT_LENGTH: t,
682
696
  MAX_SAFE_BUILD_LENGTH: n,
683
697
  MAX_LENGTH: i
684
- } = K(), c = J();
685
- e = s.exports = {};
686
- const l = e.re = [], h = e.safeRe = [], o = e.src = [], a = e.safeSrc = [], r = e.t = {};
698
+ } = z(), c = Y();
699
+ e = r.exports = {};
700
+ const o = e.re = [], h = e.safeRe = [], a = e.src = [], l = e.safeSrc = [], s = e.t = {};
687
701
  let u = 0;
688
702
  const f = "[a-zA-Z0-9-]", E = [
689
703
  ["\\s", 1],
690
704
  ["\\d", i],
691
705
  [f, n]
692
- ], S = (O) => {
693
- for (const [w, G] of E)
694
- O = O.split(`${w}*`).join(`${w}{0,${G}}`).split(`${w}+`).join(`${w}{1,${G}}`);
695
- return O;
696
- }, p = (O, w, G) => {
697
- const A = S(w), b = u++;
698
- c(O, b, w), r[O] = b, o[b] = w, a[b] = A, l[b] = new RegExp(w, G ? "g" : void 0), h[b] = new RegExp(A, G ? "g" : void 0);
706
+ ], S = (N) => {
707
+ for (const [A, b] of E)
708
+ N = N.split(`${A}*`).join(`${A}{0,${b}}`).split(`${A}+`).join(`${A}{1,${b}}`);
709
+ return N;
710
+ }, d = (N, A, b) => {
711
+ const w = S(A), G = u++;
712
+ c(N, G, A), s[N] = G, a[G] = A, l[G] = w, o[G] = new RegExp(A, b ? "g" : void 0), h[G] = new RegExp(w, b ? "g" : void 0);
699
713
  };
700
- p("NUMERICIDENTIFIER", "0|[1-9]\\d*"), p("NUMERICIDENTIFIERLOOSE", "\\d+"), p("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), p("MAINVERSION", `(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})\\.(${o[r.NUMERICIDENTIFIER]})`), p("MAINVERSIONLOOSE", `(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})\\.(${o[r.NUMERICIDENTIFIERLOOSE]})`), p("PRERELEASEIDENTIFIER", `(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIER]})`), p("PRERELEASEIDENTIFIERLOOSE", `(?:${o[r.NONNUMERICIDENTIFIER]}|${o[r.NUMERICIDENTIFIERLOOSE]})`), p("PRERELEASE", `(?:-(${o[r.PRERELEASEIDENTIFIER]}(?:\\.${o[r.PRERELEASEIDENTIFIER]})*))`), p("PRERELEASELOOSE", `(?:-?(${o[r.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[r.PRERELEASEIDENTIFIERLOOSE]})*))`), p("BUILDIDENTIFIER", `${f}+`), p("BUILD", `(?:\\+(${o[r.BUILDIDENTIFIER]}(?:\\.${o[r.BUILDIDENTIFIER]})*))`), p("FULLPLAIN", `v?${o[r.MAINVERSION]}${o[r.PRERELEASE]}?${o[r.BUILD]}?`), p("FULL", `^${o[r.FULLPLAIN]}$`), p("LOOSEPLAIN", `[v=\\s]*${o[r.MAINVERSIONLOOSE]}${o[r.PRERELEASELOOSE]}?${o[r.BUILD]}?`), p("LOOSE", `^${o[r.LOOSEPLAIN]}$`), p("GTLT", "((?:<|>)?=?)"), p("XRANGEIDENTIFIERLOOSE", `${o[r.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), p("XRANGEIDENTIFIER", `${o[r.NUMERICIDENTIFIER]}|x|X|\\*`), p("XRANGEPLAIN", `[v=\\s]*(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:\\.(${o[r.XRANGEIDENTIFIER]})(?:${o[r.PRERELEASE]})?${o[r.BUILD]}?)?)?`), p("XRANGEPLAINLOOSE", `[v=\\s]*(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[r.XRANGEIDENTIFIERLOOSE]})(?:${o[r.PRERELEASELOOSE]})?${o[r.BUILD]}?)?)?`), p("XRANGE", `^${o[r.GTLT]}\\s*${o[r.XRANGEPLAIN]}$`), p("XRANGELOOSE", `^${o[r.GTLT]}\\s*${o[r.XRANGEPLAINLOOSE]}$`), p("COERCEPLAIN", `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`), p("COERCE", `${o[r.COERCEPLAIN]}(?:$|[^\\d])`), p("COERCEFULL", o[r.COERCEPLAIN] + `(?:${o[r.PRERELEASE]})?(?:${o[r.BUILD]})?(?:$|[^\\d])`), p("COERCERTL", o[r.COERCE], !0), p("COERCERTLFULL", o[r.COERCEFULL], !0), p("LONETILDE", "(?:~>?)"), p("TILDETRIM", `(\\s*)${o[r.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", p("TILDE", `^${o[r.LONETILDE]}${o[r.XRANGEPLAIN]}$`), p("TILDELOOSE", `^${o[r.LONETILDE]}${o[r.XRANGEPLAINLOOSE]}$`), p("LONECARET", "(?:\\^)"), p("CARETTRIM", `(\\s*)${o[r.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", p("CARET", `^${o[r.LONECARET]}${o[r.XRANGEPLAIN]}$`), p("CARETLOOSE", `^${o[r.LONECARET]}${o[r.XRANGEPLAINLOOSE]}$`), p("COMPARATORLOOSE", `^${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]})$|^$`), p("COMPARATOR", `^${o[r.GTLT]}\\s*(${o[r.FULLPLAIN]})$|^$`), p("COMPARATORTRIM", `(\\s*)${o[r.GTLT]}\\s*(${o[r.LOOSEPLAIN]}|${o[r.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", p("HYPHENRANGE", `^\\s*(${o[r.XRANGEPLAIN]})\\s+-\\s+(${o[r.XRANGEPLAIN]})\\s*$`), p("HYPHENRANGELOOSE", `^\\s*(${o[r.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[r.XRANGEPLAINLOOSE]})\\s*$`), p("STAR", "(<|>)?=?\\s*\\*"), p("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), p("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
701
- })(H, H.exports)), H.exports;
714
+ d("NUMERICIDENTIFIER", "0|[1-9]\\d*"), d("NUMERICIDENTIFIERLOOSE", "\\d+"), d("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), d("MAINVERSION", `(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`), d("MAINVERSIONLOOSE", `(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASEIDENTIFIER", `(?:${a[s.NONNUMERICIDENTIFIER]}|${a[s.NUMERICIDENTIFIER]})`), d("PRERELEASEIDENTIFIERLOOSE", `(?:${a[s.NONNUMERICIDENTIFIER]}|${a[s.NUMERICIDENTIFIERLOOSE]})`), d("PRERELEASE", `(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`), d("PRERELEASELOOSE", `(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`), d("BUILDIDENTIFIER", `${f}+`), d("BUILD", `(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`), d("FULLPLAIN", `v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`), d("FULL", `^${a[s.FULLPLAIN]}$`), d("LOOSEPLAIN", `[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`), d("LOOSE", `^${a[s.LOOSEPLAIN]}$`), d("GTLT", "((?:<|>)?=?)"), d("XRANGEIDENTIFIERLOOSE", `${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), d("XRANGEIDENTIFIER", `${a[s.NUMERICIDENTIFIER]}|x|X|\\*`), d("XRANGEPLAIN", `[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`), d("XRANGEPLAINLOOSE", `[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`), d("XRANGE", `^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`), d("XRANGELOOSE", `^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`), d("COERCEPLAIN", `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`), d("COERCE", `${a[s.COERCEPLAIN]}(?:$|[^\\d])`), d("COERCEFULL", a[s.COERCEPLAIN] + `(?:${a[s.PRERELEASE]})?(?:${a[s.BUILD]})?(?:$|[^\\d])`), d("COERCERTL", a[s.COERCE], !0), d("COERCERTLFULL", a[s.COERCEFULL], !0), d("LONETILDE", "(?:~>?)"), d("TILDETRIM", `(\\s*)${a[s.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", d("TILDE", `^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`), d("TILDELOOSE", `^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`), d("LONECARET", "(?:\\^)"), d("CARETTRIM", `(\\s*)${a[s.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", d("CARET", `^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`), d("CARETLOOSE", `^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`), d("COMPARATORLOOSE", `^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`), d("COMPARATOR", `^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`), d("COMPARATORTRIM", `(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", d("HYPHENRANGE", `^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`), d("HYPHENRANGELOOSE", `^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`), d("STAR", "(<|>)?=?\\s*\\*"), d("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), d("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
715
+ })(W, W.exports)), W.exports;
702
716
  }
703
- var oe, nt;
717
+ var ae, nt;
704
718
  function Ye() {
705
- if (nt) return oe;
719
+ if (nt) return ae;
706
720
  nt = 1;
707
- const s = Object.freeze({ loose: !0 }), e = Object.freeze({});
708
- return oe = (n) => n ? typeof n != "object" ? s : n : e, oe;
721
+ const r = Object.freeze({ loose: !0 }), e = Object.freeze({});
722
+ return ae = (n) => n ? typeof n != "object" ? r : n : e, ae;
709
723
  }
710
- var le, it;
711
- function lr() {
712
- if (it) return le;
724
+ var oe, it;
725
+ function cr() {
726
+ if (it) return oe;
713
727
  it = 1;
714
- const s = /^[0-9]+$/, e = (n, i) => {
728
+ const r = /^[0-9]+$/, e = (n, i) => {
715
729
  if (typeof n == "number" && typeof i == "number")
716
730
  return n === i ? 0 : n < i ? -1 : 1;
717
- const c = s.test(n), l = s.test(i);
718
- return c && l && (n = +n, i = +i), n === i ? 0 : c && !l ? -1 : l && !c ? 1 : n < i ? -1 : 1;
731
+ const c = r.test(n), o = r.test(i);
732
+ return c && o && (n = +n, i = +i), n === i ? 0 : c && !o ? -1 : o && !c ? 1 : n < i ? -1 : 1;
719
733
  };
720
- return le = {
734
+ return oe = {
721
735
  compareIdentifiers: e,
722
736
  rcompareIdentifiers: (n, i) => e(i, n)
723
- }, le;
737
+ }, oe;
724
738
  }
725
- var ce, at;
726
- function x() {
727
- if (at) return ce;
739
+ var le, at;
740
+ function D() {
741
+ if (at) return le;
728
742
  at = 1;
729
- const s = J(), { MAX_LENGTH: e, MAX_SAFE_INTEGER: t } = K(), { safeRe: n, t: i } = W(), c = Ye(), { compareIdentifiers: l } = lr();
743
+ const r = Y(), { MAX_LENGTH: e, MAX_SAFE_INTEGER: t } = z(), { safeRe: n, t: i } = B(), c = Ye(), { compareIdentifiers: o } = cr();
730
744
  class h {
731
- constructor(a, r) {
732
- if (r = c(r), a instanceof h) {
733
- if (a.loose === !!r.loose && a.includePrerelease === !!r.includePrerelease)
734
- return a;
735
- a = a.version;
736
- } else if (typeof a != "string")
737
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);
738
- if (a.length > e)
745
+ constructor(l, s) {
746
+ if (s = c(s), l instanceof h) {
747
+ if (l.loose === !!s.loose && l.includePrerelease === !!s.includePrerelease)
748
+ return l;
749
+ l = l.version;
750
+ } else if (typeof l != "string")
751
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);
752
+ if (l.length > e)
739
753
  throw new TypeError(
740
754
  `version is longer than ${e} characters`
741
755
  );
742
- s("SemVer", a, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
743
- const u = a.trim().match(r.loose ? n[i.LOOSE] : n[i.FULL]);
756
+ r("SemVer", l, s), this.options = s, this.loose = !!s.loose, this.includePrerelease = !!s.includePrerelease;
757
+ const u = l.trim().match(s.loose ? n[i.LOOSE] : n[i.FULL]);
744
758
  if (!u)
745
- throw new TypeError(`Invalid Version: ${a}`);
746
- if (this.raw = a, this.major = +u[1], this.minor = +u[2], this.patch = +u[3], this.major > t || this.major < 0)
759
+ throw new TypeError(`Invalid Version: ${l}`);
760
+ if (this.raw = l, this.major = +u[1], this.minor = +u[2], this.patch = +u[3], this.major > t || this.major < 0)
747
761
  throw new TypeError("Invalid major version");
748
762
  if (this.minor > t || this.minor < 0)
749
763
  throw new TypeError("Invalid minor version");
@@ -764,28 +778,28 @@ function x() {
764
778
  toString() {
765
779
  return this.version;
766
780
  }
767
- compare(a) {
768
- if (s("SemVer.compare", this.version, this.options, a), !(a instanceof h)) {
769
- if (typeof a == "string" && a === this.version)
781
+ compare(l) {
782
+ if (r("SemVer.compare", this.version, this.options, l), !(l instanceof h)) {
783
+ if (typeof l == "string" && l === this.version)
770
784
  return 0;
771
- a = new h(a, this.options);
785
+ l = new h(l, this.options);
772
786
  }
773
- return a.version === this.version ? 0 : this.compareMain(a) || this.comparePre(a);
787
+ return l.version === this.version ? 0 : this.compareMain(l) || this.comparePre(l);
774
788
  }
775
- compareMain(a) {
776
- return a instanceof h || (a = new h(a, this.options)), this.major < a.major ? -1 : this.major > a.major ? 1 : this.minor < a.minor ? -1 : this.minor > a.minor ? 1 : this.patch < a.patch ? -1 : this.patch > a.patch ? 1 : 0;
789
+ compareMain(l) {
790
+ return l instanceof h || (l = new h(l, this.options)), this.major < l.major ? -1 : this.major > l.major ? 1 : this.minor < l.minor ? -1 : this.minor > l.minor ? 1 : this.patch < l.patch ? -1 : this.patch > l.patch ? 1 : 0;
777
791
  }
778
- comparePre(a) {
779
- if (a instanceof h || (a = new h(a, this.options)), this.prerelease.length && !a.prerelease.length)
792
+ comparePre(l) {
793
+ if (l instanceof h || (l = new h(l, this.options)), this.prerelease.length && !l.prerelease.length)
780
794
  return -1;
781
- if (!this.prerelease.length && a.prerelease.length)
795
+ if (!this.prerelease.length && l.prerelease.length)
782
796
  return 1;
783
- if (!this.prerelease.length && !a.prerelease.length)
797
+ if (!this.prerelease.length && !l.prerelease.length)
784
798
  return 0;
785
- let r = 0;
799
+ let s = 0;
786
800
  do {
787
- const u = this.prerelease[r], f = a.prerelease[r];
788
- if (s("prerelease compare", r, u, f), u === void 0 && f === void 0)
801
+ const u = this.prerelease[s], f = l.prerelease[s];
802
+ if (r("prerelease compare", s, u, f), u === void 0 && f === void 0)
789
803
  return 0;
790
804
  if (f === void 0)
791
805
  return 1;
@@ -793,15 +807,15 @@ function x() {
793
807
  return -1;
794
808
  if (u === f)
795
809
  continue;
796
- return l(u, f);
797
- } while (++r);
810
+ return o(u, f);
811
+ } while (++s);
798
812
  }
799
- compareBuild(a) {
800
- a instanceof h || (a = new h(a, this.options));
801
- let r = 0;
813
+ compareBuild(l) {
814
+ l instanceof h || (l = new h(l, this.options));
815
+ let s = 0;
802
816
  do {
803
- const u = this.build[r], f = a.build[r];
804
- if (s("build compare", r, u, f), u === void 0 && f === void 0)
817
+ const u = this.build[s], f = l.build[s];
818
+ if (r("build compare", s, u, f), u === void 0 && f === void 0)
805
819
  return 0;
806
820
  if (f === void 0)
807
821
  return 1;
@@ -809,35 +823,35 @@ function x() {
809
823
  return -1;
810
824
  if (u === f)
811
825
  continue;
812
- return l(u, f);
813
- } while (++r);
826
+ return o(u, f);
827
+ } while (++s);
814
828
  }
815
829
  // preminor will bump the version up to the next minor release, and immediately
816
830
  // down to pre-release. premajor and prepatch work the same way.
817
- inc(a, r, u) {
818
- if (a.startsWith("pre")) {
819
- if (!r && u === !1)
831
+ inc(l, s, u) {
832
+ if (l.startsWith("pre")) {
833
+ if (!s && u === !1)
820
834
  throw new Error("invalid increment argument: identifier is empty");
821
- if (r) {
822
- const f = `-${r}`.match(this.options.loose ? n[i.PRERELEASELOOSE] : n[i.PRERELEASE]);
823
- if (!f || f[1] !== r)
824
- throw new Error(`invalid identifier: ${r}`);
835
+ if (s) {
836
+ const f = `-${s}`.match(this.options.loose ? n[i.PRERELEASELOOSE] : n[i.PRERELEASE]);
837
+ if (!f || f[1] !== s)
838
+ throw new Error(`invalid identifier: ${s}`);
825
839
  }
826
840
  }
827
- switch (a) {
841
+ switch (l) {
828
842
  case "premajor":
829
- this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", r, u);
843
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", s, u);
830
844
  break;
831
845
  case "preminor":
832
- this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", r, u);
846
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", s, u);
833
847
  break;
834
848
  case "prepatch":
835
- this.prerelease.length = 0, this.inc("patch", r, u), this.inc("pre", r, u);
849
+ this.prerelease.length = 0, this.inc("patch", s, u), this.inc("pre", s, u);
836
850
  break;
837
851
  // If the input is a non-prerelease version, this acts the same as
838
852
  // prepatch.
839
853
  case "prerelease":
840
- this.prerelease.length === 0 && this.inc("patch", r, u), this.inc("pre", r, u);
854
+ this.prerelease.length === 0 && this.inc("patch", s, u), this.inc("pre", s, u);
841
855
  break;
842
856
  case "release":
843
857
  if (this.prerelease.length === 0)
@@ -864,263 +878,263 @@ function x() {
864
878
  for (; --E >= 0; )
865
879
  typeof this.prerelease[E] == "number" && (this.prerelease[E]++, E = -2);
866
880
  if (E === -1) {
867
- if (r === this.prerelease.join(".") && u === !1)
881
+ if (s === this.prerelease.join(".") && u === !1)
868
882
  throw new Error("invalid increment argument: identifier already exists");
869
883
  this.prerelease.push(f);
870
884
  }
871
885
  }
872
- if (r) {
873
- let E = [r, f];
874
- u === !1 && (E = [r]), l(this.prerelease[0], r) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = E) : this.prerelease = E;
886
+ if (s) {
887
+ let E = [s, f];
888
+ u === !1 && (E = [s]), o(this.prerelease[0], s) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = E) : this.prerelease = E;
875
889
  }
876
890
  break;
877
891
  }
878
892
  default:
879
- throw new Error(`invalid increment argument: ${a}`);
893
+ throw new Error(`invalid increment argument: ${l}`);
880
894
  }
881
895
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
882
896
  }
883
897
  }
884
- return ce = h, ce;
898
+ return le = h, le;
885
899
  }
886
- var ue, ot;
887
- function M() {
888
- if (ot) return ue;
900
+ var ce, ot;
901
+ function j() {
902
+ if (ot) return ce;
889
903
  ot = 1;
890
- const s = x();
891
- return ue = (t, n, i = !1) => {
892
- if (t instanceof s)
904
+ const r = D();
905
+ return ce = (t, n, i = !1) => {
906
+ if (t instanceof r)
893
907
  return t;
894
908
  try {
895
- return new s(t, n);
909
+ return new r(t, n);
896
910
  } catch (c) {
897
911
  if (!i)
898
912
  return null;
899
913
  throw c;
900
914
  }
901
- }, ue;
915
+ }, ce;
902
916
  }
903
- var he, lt;
904
- function Cr() {
905
- if (lt) return he;
917
+ var ue, lt;
918
+ function Gr() {
919
+ if (lt) return ue;
906
920
  lt = 1;
907
- const s = M();
908
- return he = (t, n) => {
909
- const i = s(t, n);
921
+ const r = j();
922
+ return ue = (t, n) => {
923
+ const i = r(t, n);
910
924
  return i ? i.version : null;
911
- }, he;
925
+ }, ue;
912
926
  }
913
- var fe, ct;
914
- function Pr() {
915
- if (ct) return fe;
927
+ var he, ct;
928
+ function xr() {
929
+ if (ct) return he;
916
930
  ct = 1;
917
- const s = M();
918
- return fe = (t, n) => {
919
- const i = s(t.trim().replace(/^[=v]+/, ""), n);
931
+ const r = j();
932
+ return he = (t, n) => {
933
+ const i = r(t.trim().replace(/^[=v]+/, ""), n);
920
934
  return i ? i.version : null;
921
- }, fe;
935
+ }, he;
922
936
  }
923
- var me, ut;
924
- function qr() {
925
- if (ut) return me;
937
+ var fe, ut;
938
+ function Dr() {
939
+ if (ut) return fe;
926
940
  ut = 1;
927
- const s = x();
928
- return me = (t, n, i, c, l) => {
929
- typeof i == "string" && (l = c, c = i, i = void 0);
941
+ const r = D();
942
+ return fe = (t, n, i, c, o) => {
943
+ typeof i == "string" && (o = c, c = i, i = void 0);
930
944
  try {
931
- return new s(
932
- t instanceof s ? t.version : t,
945
+ return new r(
946
+ t instanceof r ? t.version : t,
933
947
  i
934
- ).inc(n, c, l).version;
948
+ ).inc(n, c, o).version;
935
949
  } catch {
936
950
  return null;
937
951
  }
938
- }, me;
952
+ }, fe;
939
953
  }
940
- var pe, ht;
941
- function Gr() {
942
- if (ht) return pe;
954
+ var me, ht;
955
+ function _r() {
956
+ if (ht) return me;
943
957
  ht = 1;
944
- const s = M();
945
- return pe = (t, n) => {
946
- const i = s(t, null, !0), c = s(n, null, !0), l = i.compare(c);
947
- if (l === 0)
958
+ const r = j();
959
+ return me = (t, n) => {
960
+ const i = r(t, null, !0), c = r(n, null, !0), o = i.compare(c);
961
+ if (o === 0)
948
962
  return null;
949
- const h = l > 0, o = h ? i : c, a = h ? c : i, r = !!o.prerelease.length;
950
- if (!!a.prerelease.length && !r) {
951
- if (!a.patch && !a.minor)
963
+ const h = o > 0, a = h ? i : c, l = h ? c : i, s = !!a.prerelease.length;
964
+ if (!!l.prerelease.length && !s) {
965
+ if (!l.patch && !l.minor)
952
966
  return "major";
953
- if (a.compareMain(o) === 0)
954
- return a.minor && !a.patch ? "minor" : "patch";
967
+ if (l.compareMain(a) === 0)
968
+ return l.minor && !l.patch ? "minor" : "patch";
955
969
  }
956
- const f = r ? "pre" : "";
970
+ const f = s ? "pre" : "";
957
971
  return i.major !== c.major ? f + "major" : i.minor !== c.minor ? f + "minor" : i.patch !== c.patch ? f + "patch" : "prerelease";
958
- }, pe;
972
+ }, me;
959
973
  }
960
974
  var de, ft;
961
- function br() {
975
+ function Ur() {
962
976
  if (ft) return de;
963
977
  ft = 1;
964
- const s = x();
965
- return de = (t, n) => new s(t, n).major, de;
978
+ const r = D();
979
+ return de = (t, n) => new r(t, n).major, de;
966
980
  }
967
- var Ee, mt;
968
- function Dr() {
969
- if (mt) return Ee;
981
+ var pe, mt;
982
+ function Fr() {
983
+ if (mt) return pe;
970
984
  mt = 1;
971
- const s = x();
972
- return Ee = (t, n) => new s(t, n).minor, Ee;
985
+ const r = D();
986
+ return pe = (t, n) => new r(t, n).minor, pe;
987
+ }
988
+ var Ee, dt;
989
+ function kr() {
990
+ if (dt) return Ee;
991
+ dt = 1;
992
+ const r = D();
993
+ return Ee = (t, n) => new r(t, n).patch, Ee;
973
994
  }
974
995
  var ge, pt;
975
- function xr() {
996
+ function jr() {
976
997
  if (pt) return ge;
977
998
  pt = 1;
978
- const s = x();
979
- return ge = (t, n) => new s(t, n).patch, ge;
980
- }
981
- var Re, dt;
982
- function Ur() {
983
- if (dt) return Re;
984
- dt = 1;
985
- const s = M();
986
- return Re = (t, n) => {
987
- const i = s(t, n);
999
+ const r = j();
1000
+ return ge = (t, n) => {
1001
+ const i = r(t, n);
988
1002
  return i && i.prerelease.length ? i.prerelease : null;
989
- }, Re;
1003
+ }, ge;
990
1004
  }
991
- var ve, Et;
992
- function F() {
993
- if (Et) return ve;
1005
+ var Re, Et;
1006
+ function U() {
1007
+ if (Et) return Re;
994
1008
  Et = 1;
995
- const s = x();
996
- return ve = (t, n, i) => new s(t, i).compare(new s(n, i)), ve;
1009
+ const r = D();
1010
+ return Re = (t, n, i) => new r(t, i).compare(new r(n, i)), Re;
997
1011
  }
998
- var Ie, gt;
999
- function _r() {
1000
- if (gt) return Ie;
1012
+ var ve, gt;
1013
+ function Mr() {
1014
+ if (gt) return ve;
1001
1015
  gt = 1;
1002
- const s = F();
1003
- return Ie = (t, n, i) => s(n, t, i), Ie;
1016
+ const r = U();
1017
+ return ve = (t, n, i) => r(n, t, i), ve;
1004
1018
  }
1005
- var $e, Rt;
1006
- function Fr() {
1007
- if (Rt) return $e;
1019
+ var Ie, Rt;
1020
+ function Vr() {
1021
+ if (Rt) return Ie;
1008
1022
  Rt = 1;
1009
- const s = F();
1010
- return $e = (t, n) => s(t, n, !0), $e;
1023
+ const r = U();
1024
+ return Ie = (t, n) => r(t, n, !0), Ie;
1011
1025
  }
1012
- var Le, vt;
1026
+ var $e, vt;
1013
1027
  function Ke() {
1014
- if (vt) return Le;
1028
+ if (vt) return $e;
1015
1029
  vt = 1;
1016
- const s = x();
1017
- return Le = (t, n, i) => {
1018
- const c = new s(t, i), l = new s(n, i);
1019
- return c.compare(l) || c.compareBuild(l);
1020
- }, Le;
1030
+ const r = D();
1031
+ return $e = (t, n, i) => {
1032
+ const c = new r(t, i), o = new r(n, i);
1033
+ return c.compare(o) || c.compareBuild(o);
1034
+ }, $e;
1021
1035
  }
1022
- var Te, It;
1023
- function jr() {
1024
- if (It) return Te;
1036
+ var Le, It;
1037
+ function Xr() {
1038
+ if (It) return Le;
1025
1039
  It = 1;
1026
- const s = Ke();
1027
- return Te = (t, n) => t.sort((i, c) => s(i, c, n)), Te;
1040
+ const r = Ke();
1041
+ return Le = (t, n) => t.sort((i, c) => r(i, c, n)), Le;
1028
1042
  }
1029
- var Oe, $t;
1030
- function kr() {
1031
- if ($t) return Oe;
1043
+ var Te, $t;
1044
+ function Br() {
1045
+ if ($t) return Te;
1032
1046
  $t = 1;
1033
- const s = Ke();
1034
- return Oe = (t, n) => t.sort((i, c) => s(c, i, n)), Oe;
1047
+ const r = Ke();
1048
+ return Te = (t, n) => t.sort((i, c) => r(c, i, n)), Te;
1035
1049
  }
1036
- var Se, Lt;
1037
- function Z() {
1038
- if (Lt) return Se;
1050
+ var Ne, Lt;
1051
+ function K() {
1052
+ if (Lt) return Ne;
1039
1053
  Lt = 1;
1040
- const s = F();
1041
- return Se = (t, n, i) => s(t, n, i) > 0, Se;
1054
+ const r = U();
1055
+ return Ne = (t, n, i) => r(t, n, i) > 0, Ne;
1042
1056
  }
1043
- var Ne, Tt;
1044
- function Je() {
1045
- if (Tt) return Ne;
1057
+ var Se, Tt;
1058
+ function Ze() {
1059
+ if (Tt) return Se;
1046
1060
  Tt = 1;
1047
- const s = F();
1048
- return Ne = (t, n, i) => s(t, n, i) < 0, Ne;
1061
+ const r = U();
1062
+ return Se = (t, n, i) => r(t, n, i) < 0, Se;
1049
1063
  }
1050
- var we, Ot;
1051
- function cr() {
1052
- if (Ot) return we;
1053
- Ot = 1;
1054
- const s = F();
1055
- return we = (t, n, i) => s(t, n, i) === 0, we;
1064
+ var Oe, Nt;
1065
+ function ur() {
1066
+ if (Nt) return Oe;
1067
+ Nt = 1;
1068
+ const r = U();
1069
+ return Oe = (t, n, i) => r(t, n, i) === 0, Oe;
1056
1070
  }
1057
1071
  var Ae, St;
1058
- function ur() {
1072
+ function hr() {
1059
1073
  if (St) return Ae;
1060
1074
  St = 1;
1061
- const s = F();
1062
- return Ae = (t, n, i) => s(t, n, i) !== 0, Ae;
1075
+ const r = U();
1076
+ return Ae = (t, n, i) => r(t, n, i) !== 0, Ae;
1063
1077
  }
1064
- var ye, Nt;
1065
- function Ze() {
1066
- if (Nt) return ye;
1067
- Nt = 1;
1068
- const s = F();
1069
- return ye = (t, n, i) => s(t, n, i) >= 0, ye;
1078
+ var we, Ot;
1079
+ function Je() {
1080
+ if (Ot) return we;
1081
+ Ot = 1;
1082
+ const r = U();
1083
+ return we = (t, n, i) => r(t, n, i) >= 0, we;
1070
1084
  }
1071
- var Ce, wt;
1085
+ var ye, At;
1072
1086
  function Qe() {
1087
+ if (At) return ye;
1088
+ At = 1;
1089
+ const r = U();
1090
+ return ye = (t, n, i) => r(t, n, i) <= 0, ye;
1091
+ }
1092
+ var Ce, wt;
1093
+ function fr() {
1073
1094
  if (wt) return Ce;
1074
1095
  wt = 1;
1075
- const s = F();
1076
- return Ce = (t, n, i) => s(t, n, i) <= 0, Ce;
1077
- }
1078
- var Pe, At;
1079
- function hr() {
1080
- if (At) return Pe;
1081
- At = 1;
1082
- const s = cr(), e = ur(), t = Z(), n = Ze(), i = Je(), c = Qe();
1083
- return Pe = (h, o, a, r) => {
1084
- switch (o) {
1096
+ const r = ur(), e = hr(), t = K(), n = Je(), i = Ze(), c = Qe();
1097
+ return Ce = (h, a, l, s) => {
1098
+ switch (a) {
1085
1099
  case "===":
1086
- return typeof h == "object" && (h = h.version), typeof a == "object" && (a = a.version), h === a;
1100
+ return typeof h == "object" && (h = h.version), typeof l == "object" && (l = l.version), h === l;
1087
1101
  case "!==":
1088
- return typeof h == "object" && (h = h.version), typeof a == "object" && (a = a.version), h !== a;
1102
+ return typeof h == "object" && (h = h.version), typeof l == "object" && (l = l.version), h !== l;
1089
1103
  case "":
1090
1104
  case "=":
1091
1105
  case "==":
1092
- return s(h, a, r);
1106
+ return r(h, l, s);
1093
1107
  case "!=":
1094
- return e(h, a, r);
1108
+ return e(h, l, s);
1095
1109
  case ">":
1096
- return t(h, a, r);
1110
+ return t(h, l, s);
1097
1111
  case ">=":
1098
- return n(h, a, r);
1112
+ return n(h, l, s);
1099
1113
  case "<":
1100
- return i(h, a, r);
1114
+ return i(h, l, s);
1101
1115
  case "<=":
1102
- return c(h, a, r);
1116
+ return c(h, l, s);
1103
1117
  default:
1104
- throw new TypeError(`Invalid operator: ${o}`);
1118
+ throw new TypeError(`Invalid operator: ${a}`);
1105
1119
  }
1106
- }, Pe;
1120
+ }, Ce;
1107
1121
  }
1108
- var qe, yt;
1109
- function Mr() {
1110
- if (yt) return qe;
1122
+ var Pe, yt;
1123
+ function Wr() {
1124
+ if (yt) return Pe;
1111
1125
  yt = 1;
1112
- const s = x(), e = M(), { safeRe: t, t: n } = W();
1113
- return qe = (c, l) => {
1114
- if (c instanceof s)
1126
+ const r = D(), e = j(), { safeRe: t, t: n } = B();
1127
+ return Pe = (c, o) => {
1128
+ if (c instanceof r)
1115
1129
  return c;
1116
1130
  if (typeof c == "number" && (c = String(c)), typeof c != "string")
1117
1131
  return null;
1118
- l = l || {};
1132
+ o = o || {};
1119
1133
  let h = null;
1120
- if (!l.rtl)
1121
- h = c.match(l.includePrerelease ? t[n.COERCEFULL] : t[n.COERCE]);
1134
+ if (!o.rtl)
1135
+ h = c.match(o.includePrerelease ? t[n.COERCEFULL] : t[n.COERCE]);
1122
1136
  else {
1123
- const E = l.includePrerelease ? t[n.COERCERTLFULL] : t[n.COERCERTL];
1137
+ const E = o.includePrerelease ? t[n.COERCERTLFULL] : t[n.COERCERTL];
1124
1138
  let S;
1125
1139
  for (; (S = E.exec(c)) && (!h || h.index + h[0].length !== c.length); )
1126
1140
  (!h || S.index + S[0].length !== h.index + h[0].length) && (h = S), E.lastIndex = S.index + S[1].length + S[2].length;
@@ -1128,15 +1142,15 @@ function Mr() {
1128
1142
  }
1129
1143
  if (h === null)
1130
1144
  return null;
1131
- const o = h[2], a = h[3] || "0", r = h[4] || "0", u = l.includePrerelease && h[5] ? `-${h[5]}` : "", f = l.includePrerelease && h[6] ? `+${h[6]}` : "";
1132
- return e(`${o}.${a}.${r}${u}${f}`, l);
1133
- }, qe;
1145
+ const a = h[2], l = h[3] || "0", s = h[4] || "0", u = o.includePrerelease && h[5] ? `-${h[5]}` : "", f = o.includePrerelease && h[6] ? `+${h[6]}` : "";
1146
+ return e(`${a}.${l}.${s}${u}${f}`, o);
1147
+ }, Pe;
1134
1148
  }
1135
- var Ge, Ct;
1136
- function Vr() {
1137
- if (Ct) return Ge;
1149
+ var qe, Ct;
1150
+ function Hr() {
1151
+ if (Ct) return qe;
1138
1152
  Ct = 1;
1139
- class s {
1153
+ class r {
1140
1154
  constructor() {
1141
1155
  this.max = 1e3, this.map = /* @__PURE__ */ new Map();
1142
1156
  }
@@ -1159,28 +1173,28 @@ function Vr() {
1159
1173
  return this;
1160
1174
  }
1161
1175
  }
1162
- return Ge = s, Ge;
1176
+ return qe = r, qe;
1163
1177
  }
1164
1178
  var be, Pt;
1165
- function j() {
1179
+ function F() {
1166
1180
  if (Pt) return be;
1167
1181
  Pt = 1;
1168
- const s = /\s+/g;
1182
+ const r = /\s+/g;
1169
1183
  class e {
1170
1184
  constructor(m, v) {
1171
1185
  if (v = i(v), m instanceof e)
1172
1186
  return m.loose === !!v.loose && m.includePrerelease === !!v.includePrerelease ? m : new e(m.raw, v);
1173
1187
  if (m instanceof c)
1174
1188
  return this.raw = m.value, this.set = [[m]], this.formatted = void 0, this;
1175
- if (this.options = v, this.loose = !!v.loose, this.includePrerelease = !!v.includePrerelease, this.raw = m.trim().replace(s, " "), this.set = this.raw.split("||").map((g) => this.parseRange(g.trim())).filter((g) => g.length), !this.set.length)
1189
+ if (this.options = v, this.loose = !!v.loose, this.includePrerelease = !!v.includePrerelease, this.raw = m.trim().replace(r, " "), this.set = this.raw.split("||").map((g) => this.parseRange(g.trim())).filter((g) => g.length), !this.set.length)
1176
1190
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
1177
1191
  if (this.set.length > 1) {
1178
1192
  const g = this.set[0];
1179
- if (this.set = this.set.filter((I) => !p(I[0])), this.set.length === 0)
1193
+ if (this.set = this.set.filter((I) => !d(I[0])), this.set.length === 0)
1180
1194
  this.set = [g];
1181
1195
  else if (this.set.length > 1) {
1182
1196
  for (const I of this.set)
1183
- if (I.length === 1 && O(I[0])) {
1197
+ if (I.length === 1 && N(I[0])) {
1184
1198
  this.set = [I];
1185
1199
  break;
1186
1200
  }
@@ -1210,24 +1224,24 @@ function j() {
1210
1224
  const g = ((this.options.includePrerelease && E) | (this.options.loose && S)) + ":" + m, I = n.get(g);
1211
1225
  if (I)
1212
1226
  return I;
1213
- const R = this.options.loose, $ = R ? o[a.HYPHENRANGELOOSE] : o[a.HYPHENRANGE];
1214
- m = m.replace($, se(this.options.includePrerelease)), l("hyphen replace", m), m = m.replace(o[a.COMPARATORTRIM], r), l("comparator trim", m), m = m.replace(o[a.TILDETRIM], u), l("tilde trim", m), m = m.replace(o[a.CARETTRIM], f), l("caret trim", m);
1215
- let N = m.split(" ").map((P) => G(P, this.options)).join(" ").split(/\s+/).map((P) => re(P, this.options));
1216
- R && (N = N.filter((P) => (l("loose invalid filter", P, this.options), !!P.match(o[a.COMPARATORLOOSE])))), l("range list", N);
1217
- const T = /* @__PURE__ */ new Map(), y = N.map((P) => new c(P, this.options));
1227
+ const R = this.options.loose, $ = R ? a[l.HYPHENRANGELOOSE] : a[l.HYPHENRANGE];
1228
+ m = m.replace($, te(this.options.includePrerelease)), o("hyphen replace", m), m = m.replace(a[l.COMPARATORTRIM], s), o("comparator trim", m), m = m.replace(a[l.TILDETRIM], u), o("tilde trim", m), m = m.replace(a[l.CARETTRIM], f), o("caret trim", m);
1229
+ let O = m.split(" ").map((P) => b(P, this.options)).join(" ").split(/\s+/).map((P) => ee(P, this.options));
1230
+ R && (O = O.filter((P) => (o("loose invalid filter", P, this.options), !!P.match(a[l.COMPARATORLOOSE])))), o("range list", O);
1231
+ const T = /* @__PURE__ */ new Map(), y = O.map((P) => new c(P, this.options));
1218
1232
  for (const P of y) {
1219
- if (p(P))
1233
+ if (d(P))
1220
1234
  return [P];
1221
1235
  T.set(P.value, P);
1222
1236
  }
1223
1237
  T.size > 1 && T.has("") && T.delete("");
1224
- const D = [...T.values()];
1225
- return n.set(g, D), D;
1238
+ const x = [...T.values()];
1239
+ return n.set(g, x), x;
1226
1240
  }
1227
1241
  intersects(m, v) {
1228
1242
  if (!(m instanceof e))
1229
1243
  throw new TypeError("a Range is required");
1230
- return this.set.some((g) => w(g, v) && m.set.some((I) => w(I, v) && g.every((R) => I.every(($) => R.intersects($, v)))));
1244
+ return this.set.some((g) => A(g, v) && m.set.some((I) => A(I, v) && g.every((R) => I.every(($) => R.intersects($, v)))));
1231
1245
  }
1232
1246
  // if ANY of the sets match ALL of its comparators, then pass
1233
1247
  test(m) {
@@ -1240,56 +1254,56 @@ function j() {
1240
1254
  return !1;
1241
1255
  }
1242
1256
  for (let v = 0; v < this.set.length; v++)
1243
- if (ne(this.set[v], m, this.options))
1257
+ if (re(this.set[v], m, this.options))
1244
1258
  return !0;
1245
1259
  return !1;
1246
1260
  }
1247
1261
  }
1248
1262
  be = e;
1249
- const t = Vr(), n = new t(), i = Ye(), c = Q(), l = J(), h = x(), {
1250
- safeRe: o,
1251
- t: a,
1252
- comparatorTrimReplace: r,
1263
+ const t = Hr(), n = new t(), i = Ye(), c = Z(), o = Y(), h = D(), {
1264
+ safeRe: a,
1265
+ t: l,
1266
+ comparatorTrimReplace: s,
1253
1267
  tildeTrimReplace: u,
1254
1268
  caretTrimReplace: f
1255
- } = W(), { FLAG_INCLUDE_PRERELEASE: E, FLAG_LOOSE: S } = K(), p = (d) => d.value === "<0.0.0-0", O = (d) => d.value === "", w = (d, m) => {
1269
+ } = B(), { FLAG_INCLUDE_PRERELEASE: E, FLAG_LOOSE: S } = z(), d = (p) => p.value === "<0.0.0-0", N = (p) => p.value === "", A = (p, m) => {
1256
1270
  let v = !0;
1257
- const g = d.slice();
1271
+ const g = p.slice();
1258
1272
  let I = g.pop();
1259
1273
  for (; v && g.length; )
1260
1274
  v = g.every((R) => I.intersects(R, m)), I = g.pop();
1261
1275
  return v;
1262
- }, G = (d, m) => (d = d.replace(o[a.BUILD], ""), l("comp", d, m), d = C(d, m), l("caret", d), d = b(d, m), l("tildes", d), d = L(d, m), l("xrange", d), d = te(d, m), l("stars", d), d), A = (d) => !d || d.toLowerCase() === "x" || d === "*", b = (d, m) => d.trim().split(/\s+/).map((v) => U(v, m)).join(" "), U = (d, m) => {
1263
- const v = m.loose ? o[a.TILDELOOSE] : o[a.TILDE];
1264
- return d.replace(v, (g, I, R, $, N) => {
1265
- l("tilde", d, g, I, R, $, N);
1276
+ }, b = (p, m) => (p = p.replace(a[l.BUILD], ""), o("comp", p, m), p = C(p, m), o("caret", p), p = G(p, m), o("tildes", p), p = L(p, m), o("xrange", p), p = Q(p, m), o("stars", p), p), w = (p) => !p || p.toLowerCase() === "x" || p === "*", G = (p, m) => p.trim().split(/\s+/).map((v) => _(v, m)).join(" "), _ = (p, m) => {
1277
+ const v = m.loose ? a[l.TILDELOOSE] : a[l.TILDE];
1278
+ return p.replace(v, (g, I, R, $, O) => {
1279
+ o("tilde", p, g, I, R, $, O);
1266
1280
  let T;
1267
- return A(I) ? T = "" : A(R) ? T = `>=${I}.0.0 <${+I + 1}.0.0-0` : A($) ? T = `>=${I}.${R}.0 <${I}.${+R + 1}.0-0` : N ? (l("replaceTilde pr", N), T = `>=${I}.${R}.${$}-${N} <${I}.${+R + 1}.0-0`) : T = `>=${I}.${R}.${$} <${I}.${+R + 1}.0-0`, l("tilde return", T), T;
1281
+ return w(I) ? T = "" : w(R) ? T = `>=${I}.0.0 <${+I + 1}.0.0-0` : w($) ? T = `>=${I}.${R}.0 <${I}.${+R + 1}.0-0` : O ? (o("replaceTilde pr", O), T = `>=${I}.${R}.${$}-${O} <${I}.${+R + 1}.0-0`) : T = `>=${I}.${R}.${$} <${I}.${+R + 1}.0-0`, o("tilde return", T), T;
1268
1282
  });
1269
- }, C = (d, m) => d.trim().split(/\s+/).map((v) => q(v, m)).join(" "), q = (d, m) => {
1270
- l("caret", d, m);
1271
- const v = m.loose ? o[a.CARETLOOSE] : o[a.CARET], g = m.includePrerelease ? "-0" : "";
1272
- return d.replace(v, (I, R, $, N, T) => {
1273
- l("caret", d, I, R, $, N, T);
1283
+ }, C = (p, m) => p.trim().split(/\s+/).map((v) => q(v, m)).join(" "), q = (p, m) => {
1284
+ o("caret", p, m);
1285
+ const v = m.loose ? a[l.CARETLOOSE] : a[l.CARET], g = m.includePrerelease ? "-0" : "";
1286
+ return p.replace(v, (I, R, $, O, T) => {
1287
+ o("caret", p, I, R, $, O, T);
1274
1288
  let y;
1275
- return A(R) ? y = "" : A($) ? y = `>=${R}.0.0${g} <${+R + 1}.0.0-0` : A(N) ? R === "0" ? y = `>=${R}.${$}.0${g} <${R}.${+$ + 1}.0-0` : y = `>=${R}.${$}.0${g} <${+R + 1}.0.0-0` : T ? (l("replaceCaret pr", T), R === "0" ? $ === "0" ? y = `>=${R}.${$}.${N}-${T} <${R}.${$}.${+N + 1}-0` : y = `>=${R}.${$}.${N}-${T} <${R}.${+$ + 1}.0-0` : y = `>=${R}.${$}.${N}-${T} <${+R + 1}.0.0-0`) : (l("no pr"), R === "0" ? $ === "0" ? y = `>=${R}.${$}.${N}${g} <${R}.${$}.${+N + 1}-0` : y = `>=${R}.${$}.${N}${g} <${R}.${+$ + 1}.0-0` : y = `>=${R}.${$}.${N} <${+R + 1}.0.0-0`), l("caret return", y), y;
1289
+ return w(R) ? y = "" : w($) ? y = `>=${R}.0.0${g} <${+R + 1}.0.0-0` : w(O) ? R === "0" ? y = `>=${R}.${$}.0${g} <${R}.${+$ + 1}.0-0` : y = `>=${R}.${$}.0${g} <${+R + 1}.0.0-0` : T ? (o("replaceCaret pr", T), R === "0" ? $ === "0" ? y = `>=${R}.${$}.${O}-${T} <${R}.${$}.${+O + 1}-0` : y = `>=${R}.${$}.${O}-${T} <${R}.${+$ + 1}.0-0` : y = `>=${R}.${$}.${O}-${T} <${+R + 1}.0.0-0`) : (o("no pr"), R === "0" ? $ === "0" ? y = `>=${R}.${$}.${O}${g} <${R}.${$}.${+O + 1}-0` : y = `>=${R}.${$}.${O}${g} <${R}.${+$ + 1}.0-0` : y = `>=${R}.${$}.${O} <${+R + 1}.0.0-0`), o("caret return", y), y;
1276
1290
  });
1277
- }, L = (d, m) => (l("replaceXRanges", d, m), d.split(/\s+/).map((v) => V(v, m)).join(" ")), V = (d, m) => {
1278
- d = d.trim();
1279
- const v = m.loose ? o[a.XRANGELOOSE] : o[a.XRANGE];
1280
- return d.replace(v, (g, I, R, $, N, T) => {
1281
- l("xRange", d, g, I, R, $, N, T);
1282
- const y = A(R), D = y || A($), P = D || A(N), X = P;
1283
- return I === "=" && X && (I = ""), T = m.includePrerelease ? "-0" : "", y ? I === ">" || I === "<" ? g = "<0.0.0-0" : g = "*" : I && X ? (D && ($ = 0), N = 0, I === ">" ? (I = ">=", D ? (R = +R + 1, $ = 0, N = 0) : ($ = +$ + 1, N = 0)) : I === "<=" && (I = "<", D ? R = +R + 1 : $ = +$ + 1), I === "<" && (T = "-0"), g = `${I + R}.${$}.${N}${T}`) : D ? g = `>=${R}.0.0${T} <${+R + 1}.0.0-0` : P && (g = `>=${R}.${$}.0${T} <${R}.${+$ + 1}.0-0`), l("xRange return", g), g;
1291
+ }, L = (p, m) => (o("replaceXRanges", p, m), p.split(/\s+/).map((v) => M(v, m)).join(" ")), M = (p, m) => {
1292
+ p = p.trim();
1293
+ const v = m.loose ? a[l.XRANGELOOSE] : a[l.XRANGE];
1294
+ return p.replace(v, (g, I, R, $, O, T) => {
1295
+ o("xRange", p, g, I, R, $, O, T);
1296
+ const y = w(R), x = y || w($), P = x || w(O), V = P;
1297
+ return I === "=" && V && (I = ""), T = m.includePrerelease ? "-0" : "", y ? I === ">" || I === "<" ? g = "<0.0.0-0" : g = "*" : I && V ? (x && ($ = 0), O = 0, I === ">" ? (I = ">=", x ? (R = +R + 1, $ = 0, O = 0) : ($ = +$ + 1, O = 0)) : I === "<=" && (I = "<", x ? R = +R + 1 : $ = +$ + 1), I === "<" && (T = "-0"), g = `${I + R}.${$}.${O}${T}`) : x ? g = `>=${R}.0.0${T} <${+R + 1}.0.0-0` : P && (g = `>=${R}.${$}.0${T} <${R}.${+$ + 1}.0-0`), o("xRange return", g), g;
1284
1298
  });
1285
- }, te = (d, m) => (l("replaceStars", d, m), d.trim().replace(o[a.STAR], "")), re = (d, m) => (l("replaceGTE0", d, m), d.trim().replace(o[m.includePrerelease ? a.GTE0PRE : a.GTE0], "")), se = (d) => (m, v, g, I, R, $, N, T, y, D, P, X) => (A(g) ? v = "" : A(I) ? v = `>=${g}.0.0${d ? "-0" : ""}` : A(R) ? v = `>=${g}.${I}.0${d ? "-0" : ""}` : $ ? v = `>=${v}` : v = `>=${v}${d ? "-0" : ""}`, A(y) ? T = "" : A(D) ? T = `<${+y + 1}.0.0-0` : A(P) ? T = `<${y}.${+D + 1}.0-0` : X ? T = `<=${y}.${D}.${P}-${X}` : d ? T = `<${y}.${D}.${+P + 1}-0` : T = `<=${T}`, `${v} ${T}`.trim()), ne = (d, m, v) => {
1286
- for (let g = 0; g < d.length; g++)
1287
- if (!d[g].test(m))
1299
+ }, Q = (p, m) => (o("replaceStars", p, m), p.trim().replace(a[l.STAR], "")), ee = (p, m) => (o("replaceGTE0", p, m), p.trim().replace(a[m.includePrerelease ? l.GTE0PRE : l.GTE0], "")), te = (p) => (m, v, g, I, R, $, O, T, y, x, P, V) => (w(g) ? v = "" : w(I) ? v = `>=${g}.0.0${p ? "-0" : ""}` : w(R) ? v = `>=${g}.${I}.0${p ? "-0" : ""}` : $ ? v = `>=${v}` : v = `>=${v}${p ? "-0" : ""}`, w(y) ? T = "" : w(x) ? T = `<${+y + 1}.0.0-0` : w(P) ? T = `<${y}.${+x + 1}.0-0` : V ? T = `<=${y}.${x}.${P}-${V}` : p ? T = `<${y}.${x}.${+P + 1}-0` : T = `<=${T}`, `${v} ${T}`.trim()), re = (p, m, v) => {
1300
+ for (let g = 0; g < p.length; g++)
1301
+ if (!p[g].test(m))
1288
1302
  return !1;
1289
1303
  if (m.prerelease.length && !v.includePrerelease) {
1290
- for (let g = 0; g < d.length; g++)
1291
- if (l(d[g].semver), d[g].semver !== c.ANY && d[g].semver.prerelease.length > 0) {
1292
- const I = d[g].semver;
1304
+ for (let g = 0; g < p.length; g++)
1305
+ if (o(p[g].semver), p[g].semver !== c.ANY && p[g].semver.prerelease.length > 0) {
1306
+ const I = p[g].semver;
1293
1307
  if (I.major === m.major && I.minor === m.minor && I.patch === m.patch)
1294
1308
  return !0;
1295
1309
  }
@@ -1299,256 +1313,256 @@ function j() {
1299
1313
  };
1300
1314
  return be;
1301
1315
  }
1302
- var De, qt;
1303
- function Q() {
1304
- if (qt) return De;
1316
+ var Ge, qt;
1317
+ function Z() {
1318
+ if (qt) return Ge;
1305
1319
  qt = 1;
1306
- const s = /* @__PURE__ */ Symbol("SemVer ANY");
1320
+ const r = /* @__PURE__ */ Symbol("SemVer ANY");
1307
1321
  class e {
1308
1322
  static get ANY() {
1309
- return s;
1323
+ return r;
1310
1324
  }
1311
- constructor(r, u) {
1312
- if (u = t(u), r instanceof e) {
1313
- if (r.loose === !!u.loose)
1314
- return r;
1315
- r = r.value;
1325
+ constructor(s, u) {
1326
+ if (u = t(u), s instanceof e) {
1327
+ if (s.loose === !!u.loose)
1328
+ return s;
1329
+ s = s.value;
1316
1330
  }
1317
- r = r.trim().split(/\s+/).join(" "), l("comparator", r, u), this.options = u, this.loose = !!u.loose, this.parse(r), this.semver === s ? this.value = "" : this.value = this.operator + this.semver.version, l("comp", this);
1331
+ s = s.trim().split(/\s+/).join(" "), o("comparator", s, u), this.options = u, this.loose = !!u.loose, this.parse(s), this.semver === r ? this.value = "" : this.value = this.operator + this.semver.version, o("comp", this);
1318
1332
  }
1319
- parse(r) {
1320
- const u = this.options.loose ? n[i.COMPARATORLOOSE] : n[i.COMPARATOR], f = r.match(u);
1333
+ parse(s) {
1334
+ const u = this.options.loose ? n[i.COMPARATORLOOSE] : n[i.COMPARATOR], f = s.match(u);
1321
1335
  if (!f)
1322
- throw new TypeError(`Invalid comparator: ${r}`);
1323
- this.operator = f[1] !== void 0 ? f[1] : "", this.operator === "=" && (this.operator = ""), f[2] ? this.semver = new h(f[2], this.options.loose) : this.semver = s;
1336
+ throw new TypeError(`Invalid comparator: ${s}`);
1337
+ this.operator = f[1] !== void 0 ? f[1] : "", this.operator === "=" && (this.operator = ""), f[2] ? this.semver = new h(f[2], this.options.loose) : this.semver = r;
1324
1338
  }
1325
1339
  toString() {
1326
1340
  return this.value;
1327
1341
  }
1328
- test(r) {
1329
- if (l("Comparator.test", r, this.options.loose), this.semver === s || r === s)
1342
+ test(s) {
1343
+ if (o("Comparator.test", s, this.options.loose), this.semver === r || s === r)
1330
1344
  return !0;
1331
- if (typeof r == "string")
1345
+ if (typeof s == "string")
1332
1346
  try {
1333
- r = new h(r, this.options);
1347
+ s = new h(s, this.options);
1334
1348
  } catch {
1335
1349
  return !1;
1336
1350
  }
1337
- return c(r, this.operator, this.semver, this.options);
1351
+ return c(s, this.operator, this.semver, this.options);
1338
1352
  }
1339
- intersects(r, u) {
1340
- if (!(r instanceof e))
1353
+ intersects(s, u) {
1354
+ if (!(s instanceof e))
1341
1355
  throw new TypeError("a Comparator is required");
1342
- return this.operator === "" ? this.value === "" ? !0 : new o(r.value, u).test(this.value) : r.operator === "" ? r.value === "" ? !0 : new o(this.value, u).test(r.semver) : (u = t(u), u.includePrerelease && (this.value === "<0.0.0-0" || r.value === "<0.0.0-0") || !u.includePrerelease && (this.value.startsWith("<0.0.0") || r.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && r.operator.startsWith(">") || this.operator.startsWith("<") && r.operator.startsWith("<") || this.semver.version === r.semver.version && this.operator.includes("=") && r.operator.includes("=") || c(this.semver, "<", r.semver, u) && this.operator.startsWith(">") && r.operator.startsWith("<") || c(this.semver, ">", r.semver, u) && this.operator.startsWith("<") && r.operator.startsWith(">")));
1356
+ return this.operator === "" ? this.value === "" ? !0 : new a(s.value, u).test(this.value) : s.operator === "" ? s.value === "" ? !0 : new a(this.value, u).test(s.semver) : (u = t(u), u.includePrerelease && (this.value === "<0.0.0-0" || s.value === "<0.0.0-0") || !u.includePrerelease && (this.value.startsWith("<0.0.0") || s.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && s.operator.startsWith(">") || this.operator.startsWith("<") && s.operator.startsWith("<") || this.semver.version === s.semver.version && this.operator.includes("=") && s.operator.includes("=") || c(this.semver, "<", s.semver, u) && this.operator.startsWith(">") && s.operator.startsWith("<") || c(this.semver, ">", s.semver, u) && this.operator.startsWith("<") && s.operator.startsWith(">")));
1343
1357
  }
1344
1358
  }
1345
- De = e;
1346
- const t = Ye(), { safeRe: n, t: i } = W(), c = hr(), l = J(), h = x(), o = j();
1347
- return De;
1359
+ Ge = e;
1360
+ const t = Ye(), { safeRe: n, t: i } = B(), c = fr(), o = Y(), h = D(), a = F();
1361
+ return Ge;
1348
1362
  }
1349
- var xe, Gt;
1350
- function ee() {
1351
- if (Gt) return xe;
1352
- Gt = 1;
1353
- const s = j();
1363
+ var xe, bt;
1364
+ function J() {
1365
+ if (bt) return xe;
1366
+ bt = 1;
1367
+ const r = F();
1354
1368
  return xe = (t, n, i) => {
1355
1369
  try {
1356
- n = new s(n, i);
1370
+ n = new r(n, i);
1357
1371
  } catch {
1358
1372
  return !1;
1359
1373
  }
1360
1374
  return n.test(t);
1361
1375
  }, xe;
1362
1376
  }
1363
- var Ue, bt;
1364
- function Xr() {
1365
- if (bt) return Ue;
1366
- bt = 1;
1367
- const s = j();
1368
- return Ue = (t, n) => new s(t, n).set.map((i) => i.map((c) => c.value).join(" ").trim().split(" ")), Ue;
1377
+ var De, Gt;
1378
+ function zr() {
1379
+ if (Gt) return De;
1380
+ Gt = 1;
1381
+ const r = F();
1382
+ return De = (t, n) => new r(t, n).set.map((i) => i.map((c) => c.value).join(" ").trim().split(" ")), De;
1369
1383
  }
1370
- var _e, Dt;
1371
- function Br() {
1372
- if (Dt) return _e;
1373
- Dt = 1;
1374
- const s = x(), e = j();
1384
+ var _e, xt;
1385
+ function Yr() {
1386
+ if (xt) return _e;
1387
+ xt = 1;
1388
+ const r = D(), e = F();
1375
1389
  return _e = (n, i, c) => {
1376
- let l = null, h = null, o = null;
1390
+ let o = null, h = null, a = null;
1377
1391
  try {
1378
- o = new e(i, c);
1392
+ a = new e(i, c);
1379
1393
  } catch {
1380
1394
  return null;
1381
1395
  }
1382
- return n.forEach((a) => {
1383
- o.test(a) && (!l || h.compare(a) === -1) && (l = a, h = new s(l, c));
1384
- }), l;
1396
+ return n.forEach((l) => {
1397
+ a.test(l) && (!o || h.compare(l) === -1) && (o = l, h = new r(o, c));
1398
+ }), o;
1385
1399
  }, _e;
1386
1400
  }
1387
- var Fe, xt;
1388
- function Wr() {
1389
- if (xt) return Fe;
1390
- xt = 1;
1391
- const s = x(), e = j();
1392
- return Fe = (n, i, c) => {
1393
- let l = null, h = null, o = null;
1401
+ var Ue, Dt;
1402
+ function Kr() {
1403
+ if (Dt) return Ue;
1404
+ Dt = 1;
1405
+ const r = D(), e = F();
1406
+ return Ue = (n, i, c) => {
1407
+ let o = null, h = null, a = null;
1394
1408
  try {
1395
- o = new e(i, c);
1409
+ a = new e(i, c);
1396
1410
  } catch {
1397
1411
  return null;
1398
1412
  }
1399
- return n.forEach((a) => {
1400
- o.test(a) && (!l || h.compare(a) === 1) && (l = a, h = new s(l, c));
1401
- }), l;
1402
- }, Fe;
1413
+ return n.forEach((l) => {
1414
+ a.test(l) && (!o || h.compare(l) === 1) && (o = l, h = new r(o, c));
1415
+ }), o;
1416
+ }, Ue;
1403
1417
  }
1404
- var je, Ut;
1405
- function Hr() {
1406
- if (Ut) return je;
1407
- Ut = 1;
1408
- const s = x(), e = j(), t = Z();
1409
- return je = (i, c) => {
1418
+ var Fe, _t;
1419
+ function Zr() {
1420
+ if (_t) return Fe;
1421
+ _t = 1;
1422
+ const r = D(), e = F(), t = K();
1423
+ return Fe = (i, c) => {
1410
1424
  i = new e(i, c);
1411
- let l = new s("0.0.0");
1412
- if (i.test(l) || (l = new s("0.0.0-0"), i.test(l)))
1413
- return l;
1414
- l = null;
1425
+ let o = new r("0.0.0");
1426
+ if (i.test(o) || (o = new r("0.0.0-0"), i.test(o)))
1427
+ return o;
1428
+ o = null;
1415
1429
  for (let h = 0; h < i.set.length; ++h) {
1416
- const o = i.set[h];
1417
- let a = null;
1418
- o.forEach((r) => {
1419
- const u = new s(r.semver.version);
1420
- switch (r.operator) {
1430
+ const a = i.set[h];
1431
+ let l = null;
1432
+ a.forEach((s) => {
1433
+ const u = new r(s.semver.version);
1434
+ switch (s.operator) {
1421
1435
  case ">":
1422
1436
  u.prerelease.length === 0 ? u.patch++ : u.prerelease.push(0), u.raw = u.format();
1423
1437
  /* fallthrough */
1424
1438
  case "":
1425
1439
  case ">=":
1426
- (!a || t(u, a)) && (a = u);
1440
+ (!l || t(u, l)) && (l = u);
1427
1441
  break;
1428
1442
  case "<":
1429
1443
  case "<=":
1430
1444
  break;
1431
1445
  /* istanbul ignore next */
1432
1446
  default:
1433
- throw new Error(`Unexpected operation: ${r.operator}`);
1447
+ throw new Error(`Unexpected operation: ${s.operator}`);
1434
1448
  }
1435
- }), a && (!l || t(l, a)) && (l = a);
1449
+ }), l && (!o || t(o, l)) && (o = l);
1436
1450
  }
1437
- return l && i.test(l) ? l : null;
1438
- }, je;
1451
+ return o && i.test(o) ? o : null;
1452
+ }, Fe;
1439
1453
  }
1440
- var ke, _t;
1441
- function zr() {
1442
- if (_t) return ke;
1443
- _t = 1;
1444
- const s = j();
1454
+ var ke, Ut;
1455
+ function Jr() {
1456
+ if (Ut) return ke;
1457
+ Ut = 1;
1458
+ const r = F();
1445
1459
  return ke = (t, n) => {
1446
1460
  try {
1447
- return new s(t, n).range || "*";
1461
+ return new r(t, n).range || "*";
1448
1462
  } catch {
1449
1463
  return null;
1450
1464
  }
1451
1465
  }, ke;
1452
1466
  }
1453
- var Me, Ft;
1467
+ var je, Ft;
1454
1468
  function et() {
1455
- if (Ft) return Me;
1469
+ if (Ft) return je;
1456
1470
  Ft = 1;
1457
- const s = x(), e = Q(), { ANY: t } = e, n = j(), i = ee(), c = Z(), l = Je(), h = Qe(), o = Ze();
1458
- return Me = (r, u, f, E) => {
1459
- r = new s(r, E), u = new n(u, E);
1460
- let S, p, O, w, G;
1471
+ const r = D(), e = Z(), { ANY: t } = e, n = F(), i = J(), c = K(), o = Ze(), h = Qe(), a = Je();
1472
+ return je = (s, u, f, E) => {
1473
+ s = new r(s, E), u = new n(u, E);
1474
+ let S, d, N, A, b;
1461
1475
  switch (f) {
1462
1476
  case ">":
1463
- S = c, p = h, O = l, w = ">", G = ">=";
1477
+ S = c, d = h, N = o, A = ">", b = ">=";
1464
1478
  break;
1465
1479
  case "<":
1466
- S = l, p = o, O = c, w = "<", G = "<=";
1480
+ S = o, d = a, N = c, A = "<", b = "<=";
1467
1481
  break;
1468
1482
  default:
1469
1483
  throw new TypeError('Must provide a hilo val of "<" or ">"');
1470
1484
  }
1471
- if (i(r, u, E))
1485
+ if (i(s, u, E))
1472
1486
  return !1;
1473
- for (let A = 0; A < u.set.length; ++A) {
1474
- const b = u.set[A];
1475
- let U = null, C = null;
1476
- if (b.forEach((q) => {
1477
- q.semver === t && (q = new e(">=0.0.0")), U = U || q, C = C || q, S(q.semver, U.semver, E) ? U = q : O(q.semver, C.semver, E) && (C = q);
1478
- }), U.operator === w || U.operator === G || (!C.operator || C.operator === w) && p(r, C.semver))
1487
+ for (let w = 0; w < u.set.length; ++w) {
1488
+ const G = u.set[w];
1489
+ let _ = null, C = null;
1490
+ if (G.forEach((q) => {
1491
+ q.semver === t && (q = new e(">=0.0.0")), _ = _ || q, C = C || q, S(q.semver, _.semver, E) ? _ = q : N(q.semver, C.semver, E) && (C = q);
1492
+ }), _.operator === A || _.operator === b || (!C.operator || C.operator === A) && d(s, C.semver))
1479
1493
  return !1;
1480
- if (C.operator === G && O(r, C.semver))
1494
+ if (C.operator === b && N(s, C.semver))
1481
1495
  return !1;
1482
1496
  }
1483
1497
  return !0;
1484
- }, Me;
1498
+ }, je;
1499
+ }
1500
+ var Me, kt;
1501
+ function Qr() {
1502
+ if (kt) return Me;
1503
+ kt = 1;
1504
+ const r = et();
1505
+ return Me = (t, n, i) => r(t, n, ">", i), Me;
1485
1506
  }
1486
1507
  var Ve, jt;
1487
- function Yr() {
1508
+ function es() {
1488
1509
  if (jt) return Ve;
1489
1510
  jt = 1;
1490
- const s = et();
1491
- return Ve = (t, n, i) => s(t, n, ">", i), Ve;
1511
+ const r = et();
1512
+ return Ve = (t, n, i) => r(t, n, "<", i), Ve;
1492
1513
  }
1493
- var Xe, kt;
1494
- function Kr() {
1495
- if (kt) return Xe;
1496
- kt = 1;
1497
- const s = et();
1498
- return Xe = (t, n, i) => s(t, n, "<", i), Xe;
1499
- }
1500
- var Be, Mt;
1501
- function Jr() {
1502
- if (Mt) return Be;
1514
+ var Xe, Mt;
1515
+ function ts() {
1516
+ if (Mt) return Xe;
1503
1517
  Mt = 1;
1504
- const s = j();
1505
- return Be = (t, n, i) => (t = new s(t, i), n = new s(n, i), t.intersects(n, i)), Be;
1518
+ const r = F();
1519
+ return Xe = (t, n, i) => (t = new r(t, i), n = new r(n, i), t.intersects(n, i)), Xe;
1506
1520
  }
1507
- var We, Vt;
1508
- function Zr() {
1509
- if (Vt) return We;
1521
+ var Be, Vt;
1522
+ function rs() {
1523
+ if (Vt) return Be;
1510
1524
  Vt = 1;
1511
- const s = ee(), e = F();
1512
- return We = (t, n, i) => {
1525
+ const r = J(), e = U();
1526
+ return Be = (t, n, i) => {
1513
1527
  const c = [];
1514
- let l = null, h = null;
1515
- const o = t.sort((f, E) => e(f, E, i));
1516
- for (const f of o)
1517
- s(f, n, i) ? (h = f, l || (l = f)) : (h && c.push([l, h]), h = null, l = null);
1518
- l && c.push([l, null]);
1519
- const a = [];
1528
+ let o = null, h = null;
1529
+ const a = t.sort((f, E) => e(f, E, i));
1530
+ for (const f of a)
1531
+ r(f, n, i) ? (h = f, o || (o = f)) : (h && c.push([o, h]), h = null, o = null);
1532
+ o && c.push([o, null]);
1533
+ const l = [];
1520
1534
  for (const [f, E] of c)
1521
- f === E ? a.push(f) : !E && f === o[0] ? a.push("*") : E ? f === o[0] ? a.push(`<=${E}`) : a.push(`${f} - ${E}`) : a.push(`>=${f}`);
1522
- const r = a.join(" || "), u = typeof n.raw == "string" ? n.raw : String(n);
1523
- return r.length < u.length ? r : n;
1524
- }, We;
1525
- }
1526
- var He, Xt;
1527
- function Qr() {
1528
- if (Xt) return He;
1535
+ f === E ? l.push(f) : !E && f === a[0] ? l.push("*") : E ? f === a[0] ? l.push(`<=${E}`) : l.push(`${f} - ${E}`) : l.push(`>=${f}`);
1536
+ const s = l.join(" || "), u = typeof n.raw == "string" ? n.raw : String(n);
1537
+ return s.length < u.length ? s : n;
1538
+ }, Be;
1539
+ }
1540
+ var We, Xt;
1541
+ function ss() {
1542
+ if (Xt) return We;
1529
1543
  Xt = 1;
1530
- const s = j(), e = Q(), { ANY: t } = e, n = ee(), i = F(), c = (u, f, E = {}) => {
1544
+ const r = F(), e = Z(), { ANY: t } = e, n = J(), i = U(), c = (u, f, E = {}) => {
1531
1545
  if (u === f)
1532
1546
  return !0;
1533
- u = new s(u, E), f = new s(f, E);
1547
+ u = new r(u, E), f = new r(f, E);
1534
1548
  let S = !1;
1535
- e: for (const p of u.set) {
1536
- for (const O of f.set) {
1537
- const w = o(p, O, E);
1538
- if (S = S || w !== null, w)
1549
+ e: for (const d of u.set) {
1550
+ for (const N of f.set) {
1551
+ const A = a(d, N, E);
1552
+ if (S = S || A !== null, A)
1539
1553
  continue e;
1540
1554
  }
1541
1555
  if (S)
1542
1556
  return !1;
1543
1557
  }
1544
1558
  return !0;
1545
- }, l = [new e(">=0.0.0-0")], h = [new e(">=0.0.0")], o = (u, f, E) => {
1559
+ }, o = [new e(">=0.0.0-0")], h = [new e(">=0.0.0")], a = (u, f, E) => {
1546
1560
  if (u === f)
1547
1561
  return !0;
1548
1562
  if (u.length === 1 && u[0].semver === t) {
1549
1563
  if (f.length === 1 && f[0].semver === t)
1550
1564
  return !0;
1551
- E.includePrerelease ? u = l : u = h;
1565
+ E.includePrerelease ? u = o : u = h;
1552
1566
  }
1553
1567
  if (f.length === 1 && f[0].semver === t) {
1554
1568
  if (E.includePrerelease)
@@ -1556,125 +1570,125 @@ function Qr() {
1556
1570
  f = h;
1557
1571
  }
1558
1572
  const S = /* @__PURE__ */ new Set();
1559
- let p, O;
1573
+ let d, N;
1560
1574
  for (const L of u)
1561
- L.operator === ">" || L.operator === ">=" ? p = a(p, L, E) : L.operator === "<" || L.operator === "<=" ? O = r(O, L, E) : S.add(L.semver);
1575
+ L.operator === ">" || L.operator === ">=" ? d = l(d, L, E) : L.operator === "<" || L.operator === "<=" ? N = s(N, L, E) : S.add(L.semver);
1562
1576
  if (S.size > 1)
1563
1577
  return null;
1564
- let w;
1565
- if (p && O) {
1566
- if (w = i(p.semver, O.semver, E), w > 0)
1578
+ let A;
1579
+ if (d && N) {
1580
+ if (A = i(d.semver, N.semver, E), A > 0)
1567
1581
  return null;
1568
- if (w === 0 && (p.operator !== ">=" || O.operator !== "<="))
1582
+ if (A === 0 && (d.operator !== ">=" || N.operator !== "<="))
1569
1583
  return null;
1570
1584
  }
1571
1585
  for (const L of S) {
1572
- if (p && !n(L, String(p), E) || O && !n(L, String(O), E))
1586
+ if (d && !n(L, String(d), E) || N && !n(L, String(N), E))
1573
1587
  return null;
1574
- for (const V of f)
1575
- if (!n(L, String(V), E))
1588
+ for (const M of f)
1589
+ if (!n(L, String(M), E))
1576
1590
  return !1;
1577
1591
  return !0;
1578
1592
  }
1579
- let G, A, b, U, C = O && !E.includePrerelease && O.semver.prerelease.length ? O.semver : !1, q = p && !E.includePrerelease && p.semver.prerelease.length ? p.semver : !1;
1580
- C && C.prerelease.length === 1 && O.operator === "<" && C.prerelease[0] === 0 && (C = !1);
1593
+ let b, w, G, _, C = N && !E.includePrerelease && N.semver.prerelease.length ? N.semver : !1, q = d && !E.includePrerelease && d.semver.prerelease.length ? d.semver : !1;
1594
+ C && C.prerelease.length === 1 && N.operator === "<" && C.prerelease[0] === 0 && (C = !1);
1581
1595
  for (const L of f) {
1582
- if (U = U || L.operator === ">" || L.operator === ">=", b = b || L.operator === "<" || L.operator === "<=", p) {
1596
+ if (_ = _ || L.operator === ">" || L.operator === ">=", G = G || L.operator === "<" || L.operator === "<=", d) {
1583
1597
  if (q && L.semver.prerelease && L.semver.prerelease.length && L.semver.major === q.major && L.semver.minor === q.minor && L.semver.patch === q.patch && (q = !1), L.operator === ">" || L.operator === ">=") {
1584
- if (G = a(p, L, E), G === L && G !== p)
1598
+ if (b = l(d, L, E), b === L && b !== d)
1585
1599
  return !1;
1586
- } else if (p.operator === ">=" && !n(p.semver, String(L), E))
1600
+ } else if (d.operator === ">=" && !n(d.semver, String(L), E))
1587
1601
  return !1;
1588
1602
  }
1589
- if (O) {
1603
+ if (N) {
1590
1604
  if (C && L.semver.prerelease && L.semver.prerelease.length && L.semver.major === C.major && L.semver.minor === C.minor && L.semver.patch === C.patch && (C = !1), L.operator === "<" || L.operator === "<=") {
1591
- if (A = r(O, L, E), A === L && A !== O)
1605
+ if (w = s(N, L, E), w === L && w !== N)
1592
1606
  return !1;
1593
- } else if (O.operator === "<=" && !n(O.semver, String(L), E))
1607
+ } else if (N.operator === "<=" && !n(N.semver, String(L), E))
1594
1608
  return !1;
1595
1609
  }
1596
- if (!L.operator && (O || p) && w !== 0)
1610
+ if (!L.operator && (N || d) && A !== 0)
1597
1611
  return !1;
1598
1612
  }
1599
- return !(p && b && !O && w !== 0 || O && U && !p && w !== 0 || q || C);
1600
- }, a = (u, f, E) => {
1613
+ return !(d && G && !N && A !== 0 || N && _ && !d && A !== 0 || q || C);
1614
+ }, l = (u, f, E) => {
1601
1615
  if (!u)
1602
1616
  return f;
1603
1617
  const S = i(u.semver, f.semver, E);
1604
1618
  return S > 0 ? u : S < 0 || f.operator === ">" && u.operator === ">=" ? f : u;
1605
- }, r = (u, f, E) => {
1619
+ }, s = (u, f, E) => {
1606
1620
  if (!u)
1607
1621
  return f;
1608
1622
  const S = i(u.semver, f.semver, E);
1609
1623
  return S < 0 ? u : S > 0 || f.operator === "<" && u.operator === "<=" ? f : u;
1610
1624
  };
1611
- return He = c, He;
1625
+ return We = c, We;
1612
1626
  }
1613
- var ze, Bt;
1614
- function es() {
1615
- if (Bt) return ze;
1627
+ var He, Bt;
1628
+ function ns() {
1629
+ if (Bt) return He;
1616
1630
  Bt = 1;
1617
- const s = W(), e = K(), t = x(), n = lr(), i = M(), c = Cr(), l = Pr(), h = qr(), o = Gr(), a = br(), r = Dr(), u = xr(), f = Ur(), E = F(), S = _r(), p = Fr(), O = Ke(), w = jr(), G = kr(), A = Z(), b = Je(), U = cr(), C = ur(), q = Ze(), L = Qe(), V = hr(), te = Mr(), re = Q(), se = j(), ne = ee(), d = Xr(), m = Br(), v = Wr(), g = Hr(), I = zr(), R = et(), $ = Yr(), N = Kr(), T = Jr(), y = Zr(), D = Qr();
1618
- return ze = {
1631
+ const r = B(), e = z(), t = D(), n = cr(), i = j(), c = Gr(), o = xr(), h = Dr(), a = _r(), l = Ur(), s = Fr(), u = kr(), f = jr(), E = U(), S = Mr(), d = Vr(), N = Ke(), A = Xr(), b = Br(), w = K(), G = Ze(), _ = ur(), C = hr(), q = Je(), L = Qe(), M = fr(), Q = Wr(), ee = Z(), te = F(), re = J(), p = zr(), m = Yr(), v = Kr(), g = Zr(), I = Jr(), R = et(), $ = Qr(), O = es(), T = ts(), y = rs(), x = ss();
1632
+ return He = {
1619
1633
  parse: i,
1620
1634
  valid: c,
1621
- clean: l,
1635
+ clean: o,
1622
1636
  inc: h,
1623
- diff: o,
1624
- major: a,
1625
- minor: r,
1637
+ diff: a,
1638
+ major: l,
1639
+ minor: s,
1626
1640
  patch: u,
1627
1641
  prerelease: f,
1628
1642
  compare: E,
1629
1643
  rcompare: S,
1630
- compareLoose: p,
1631
- compareBuild: O,
1632
- sort: w,
1633
- rsort: G,
1634
- gt: A,
1635
- lt: b,
1636
- eq: U,
1644
+ compareLoose: d,
1645
+ compareBuild: N,
1646
+ sort: A,
1647
+ rsort: b,
1648
+ gt: w,
1649
+ lt: G,
1650
+ eq: _,
1637
1651
  neq: C,
1638
1652
  gte: q,
1639
1653
  lte: L,
1640
- cmp: V,
1641
- coerce: te,
1642
- Comparator: re,
1643
- Range: se,
1644
- satisfies: ne,
1645
- toComparators: d,
1654
+ cmp: M,
1655
+ coerce: Q,
1656
+ Comparator: ee,
1657
+ Range: te,
1658
+ satisfies: re,
1659
+ toComparators: p,
1646
1660
  maxSatisfying: m,
1647
1661
  minSatisfying: v,
1648
1662
  minVersion: g,
1649
1663
  validRange: I,
1650
1664
  outside: R,
1651
1665
  gtr: $,
1652
- ltr: N,
1666
+ ltr: O,
1653
1667
  intersects: T,
1654
1668
  simplifyRange: y,
1655
- subset: D,
1669
+ subset: x,
1656
1670
  SemVer: t,
1657
- re: s.re,
1658
- src: s.src,
1659
- tokens: s.t,
1671
+ re: r.re,
1672
+ src: r.src,
1673
+ tokens: r.t,
1660
1674
  SEMVER_SPEC_VERSION: e.SEMVER_SPEC_VERSION,
1661
1675
  RELEASE_TYPES: e.RELEASE_TYPES,
1662
1676
  compareIdentifiers: n.compareIdentifiers,
1663
1677
  rcompareIdentifiers: n.rcompareIdentifiers
1664
- }, ze;
1678
+ }, He;
1665
1679
  }
1666
- var ts = es();
1667
- const Wt = `^${z.Version}`;
1668
- class is {
1669
- config = new mr(Ht);
1680
+ var is = ns();
1681
+ const Wt = `^${X.Version}`;
1682
+ class ls {
1683
+ config = new dr(Ht);
1670
1684
  event = new pr();
1671
1685
  state;
1672
1686
  active;
1673
1687
  time;
1674
1688
  info;
1675
- merger = new wr();
1676
- offset = new Ar();
1677
- driver = new yr();
1689
+ merger = new Pr();
1690
+ offset = new qr();
1691
+ driver = new br();
1678
1692
  constructor() {
1679
1693
  this.state = {
1680
1694
  playing: !1,
@@ -1685,7 +1699,7 @@ class is {
1685
1699
  }, this.time = {
1686
1700
  start: 0,
1687
1701
  seek: 0
1688
- }, this.info = new z.Info(), this.config.event.add("update", this.onConfigUpdate);
1702
+ }, this.info = new X.Info(), this.config.event.add("update", this.onConfigUpdate);
1689
1703
  }
1690
1704
  onConfigUpdate = (e) => {
1691
1705
  const t = e.has("offset.useMeta");
@@ -1715,14 +1729,14 @@ class is {
1715
1729
  if (i - n + 1 === t.length)
1716
1730
  return { lines: e, index: t };
1717
1731
  const c = /* @__PURE__ */ new Map();
1718
- for (let o = 0; o < t.length; o++)
1719
- c.set(t[o], e[o]);
1720
- const l = [], h = [];
1721
- for (let o = n; o <= i; o++) {
1722
- const a = c.get(o) ?? this.info.lines[o];
1723
- a && (l.push(a), h.push(o));
1732
+ for (let a = 0; a < t.length; a++)
1733
+ c.set(t[a], e[a]);
1734
+ const o = [], h = [];
1735
+ for (let a = n; a <= i; a++) {
1736
+ const l = c.get(a) ?? this.info.lines[a];
1737
+ l && (o.push(l), h.push(a));
1724
1738
  }
1725
- return { lines: l, index: h };
1739
+ return { lines: o, index: h };
1726
1740
  }
1727
1741
  handleEmitLinesUpdate(e) {
1728
1742
  const t = this.handleBridgeActive(this.active.lines, this.active.index);
@@ -1734,12 +1748,12 @@ class is {
1734
1748
  const t = [], n = [];
1735
1749
  let i = this.info.lines.length;
1736
1750
  for (let c = 0; c < this.info.lines.length; c++) {
1737
- const l = this.info.lines[c];
1738
- if (l.time.start > e) {
1751
+ const o = this.info.lines[c];
1752
+ if (o.time.start > e) {
1739
1753
  i = c;
1740
1754
  break;
1741
1755
  }
1742
- this.merger.getMergedTime(c) > e && (t.push(l), n.push(c));
1756
+ this.merger.getMergedTime(c) > e && (t.push(o), n.push(c));
1743
1757
  }
1744
1758
  this.state.scanIndex = i, this.active.lines = t, this.active.index = n, this.handleEmitLinesUpdate(!0);
1745
1759
  }
@@ -1747,8 +1761,8 @@ class is {
1747
1761
  let t = !1;
1748
1762
  const n = [], i = [];
1749
1763
  for (let c = 0; c < this.active.lines.length; c++) {
1750
- const l = this.active.lines[c], h = this.active.index[c];
1751
- e >= this.merger.getMergedTime(h) ? t = !0 : (n.push(l), i.push(h));
1764
+ const o = this.active.lines[c], h = this.active.index[c];
1765
+ e >= this.merger.getMergedTime(h) ? t = !0 : (n.push(o), i.push(h));
1752
1766
  }
1753
1767
  for (; this.state.scanIndex < this.info.lines.length; ) {
1754
1768
  const c = this.info.lines[this.state.scanIndex];
@@ -1769,7 +1783,7 @@ class is {
1769
1783
  if (!e)
1770
1784
  return;
1771
1785
  let t = e;
1772
- ts.satisfies(e.version, Wt) || (console.warn(`[music-lyric-player] ignored lyric with incompatible version "${e.version}", expected "${Wt}"`), t = new z.Info()), this.pause(), this.info = t, this.handleBuildMergedLineEnd(), this.offset.refreshFromMeta(this.info, this.config.current.offset.useMeta), this.config.current.offset.resetTempOnLyricChange && this.offset.resetTemp(), this.active.lines = [], this.active.index = [], this.state.scanIndex = 0, this.time.seek = 0, this.event.emit("lyricUpdate", t), this.event.emit("linesUpdate", [], [], -1, !1);
1786
+ is.satisfies(e.version, Wt) || (console.warn(`[music-lyric-player] ignored lyric with incompatible version "${e.version}", expected "${Wt}"`), t = new X.Info()), this.pause(), this.info = t, this.handleBuildMergedLineEnd(), this.offset.refreshFromMeta(this.info, this.config.current.offset.useMeta), this.config.current.offset.resetTempOnLyricChange && this.offset.resetTemp(), this.active.lines = [], this.active.index = [], this.state.scanIndex = 0, this.time.seek = 0, this.event.emit("lyricUpdate", t), this.event.emit("linesUpdate", [], [], -1, !1);
1773
1787
  }
1774
1788
  /**
1775
1789
  * Start playback
@@ -1789,7 +1803,7 @@ class is {
1789
1803
  * Stop playback
1790
1804
  */
1791
1805
  dispose() {
1792
- this.pause(), this.event.clear(), this.config.event.remove("update", this.onConfigUpdate), this.active.lines = [], this.active.index = [], this.info = new z.Info();
1806
+ this.pause(), this.event.clear(), this.config.event.remove("update", this.onConfigUpdate), this.active.lines = [], this.active.index = [], this.info = new X.Info();
1793
1807
  }
1794
1808
  /**
1795
1809
  * Update the temp offset in ms (the user's temporary adjustment).
@@ -1811,10 +1825,10 @@ class is {
1811
1825
  matchLinesWithTime(e) {
1812
1826
  const t = e + this.currentOffset, n = [], i = [];
1813
1827
  for (let c = 0; c < this.info.lines.length; c++) {
1814
- const l = this.info.lines[c];
1815
- if (l.time.start > t)
1828
+ const o = this.info.lines[c];
1829
+ if (o.time.start > t)
1816
1830
  break;
1817
- this.merger.getMergedTime(c) > t && (n.push(l), i.push(c));
1831
+ this.merger.getMergedTime(c) > t && (n.push(o), i.push(c));
1818
1832
  }
1819
1833
  return this.handleBridgeActive(n, i);
1820
1834
  }
@@ -1872,7 +1886,7 @@ class is {
1872
1886
  }
1873
1887
  }
1874
1888
  export {
1875
- is as BaseLyricPlayer,
1876
- ns as BaseLyricPlayerConfig
1889
+ ls as BaseLyricPlayer,
1890
+ os as BaseLyricPlayerConfig
1877
1891
  };
1878
1892
  //# sourceMappingURL=index.ecma.js.map