@devalok/shilp-sutra-karm 0.20.2 → 0.21.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.
@@ -0,0 +1,3264 @@
1
+ function Be(e) {
2
+ var n, t, r = "";
3
+ if (typeof e == "string" || typeof e == "number") r += e;
4
+ else if (typeof e == "object") if (Array.isArray(e)) {
5
+ var a = e.length;
6
+ for (n = 0; n < a; n++) e[n] && (t = Be(e[n])) && (r && (r += " "), r += t);
7
+ } else for (t in e) e[t] && (r && (r += " "), r += t);
8
+ return r;
9
+ }
10
+ function gn() {
11
+ for (var e, n, t = 0, r = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (n = Be(e)) && (r && (r += " "), r += n);
12
+ return r;
13
+ }
14
+ const he = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, me = gn, Yr = (e, n) => (t) => {
15
+ var r;
16
+ if ((n == null ? void 0 : n.variants) == null) return me(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
17
+ const { variants: a, defaultVariants: o } = n, l = Object.keys(a).map((c) => {
18
+ const d = t == null ? void 0 : t[c], m = o == null ? void 0 : o[c];
19
+ if (d === null) return null;
20
+ const y = he(d) || he(m);
21
+ return a[c][y];
22
+ }), i = t && Object.entries(t).reduce((c, d) => {
23
+ let [m, y] = d;
24
+ return y === void 0 || (c[m] = y), c;
25
+ }, {}), s = n == null || (r = n.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((c, d) => {
26
+ let { class: m, className: y, ...k } = d;
27
+ return Object.entries(k).every((h) => {
28
+ let [f, v] = h;
29
+ return Array.isArray(v) ? v.includes({
30
+ ...o,
31
+ ...i
32
+ }[f]) : {
33
+ ...o,
34
+ ...i
35
+ }[f] === v;
36
+ }) ? [
37
+ ...c,
38
+ m,
39
+ y
40
+ ] : c;
41
+ }, []);
42
+ return me(e, l, s, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
43
+ };
44
+ function Fr() {
45
+ }
46
+ function jr() {
47
+ }
48
+ function Hr(e, n) {
49
+ const t = {};
50
+ return (e[e.length - 1] === "" ? [...e, ""] : e).join(
51
+ (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
52
+ ).trim();
53
+ }
54
+ const yn = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, pn = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, wn = {};
55
+ function Ur(e, n) {
56
+ return (wn.jsx ? pn : yn).test(e);
57
+ }
58
+ class H {
59
+ /**
60
+ * @param {SchemaType['property']} property
61
+ * Property.
62
+ * @param {SchemaType['normal']} normal
63
+ * Normal.
64
+ * @param {Space | undefined} [space]
65
+ * Space.
66
+ * @returns
67
+ * Schema.
68
+ */
69
+ constructor(n, t, r) {
70
+ this.normal = t, this.property = n, r && (this.space = r);
71
+ }
72
+ }
73
+ H.prototype.normal = {};
74
+ H.prototype.property = {};
75
+ H.prototype.space = void 0;
76
+ function ze(e, n) {
77
+ const t = {}, r = {};
78
+ for (const a of e)
79
+ Object.assign(t, a.property), Object.assign(r, a.normal);
80
+ return new H(t, r, n);
81
+ }
82
+ function te(e) {
83
+ return e.toLowerCase();
84
+ }
85
+ class P {
86
+ /**
87
+ * @param {string} property
88
+ * Property.
89
+ * @param {string} attribute
90
+ * Attribute.
91
+ * @returns
92
+ * Info.
93
+ */
94
+ constructor(n, t) {
95
+ this.attribute = t, this.property = n;
96
+ }
97
+ }
98
+ P.prototype.attribute = "";
99
+ P.prototype.booleanish = !1;
100
+ P.prototype.boolean = !1;
101
+ P.prototype.commaOrSpaceSeparated = !1;
102
+ P.prototype.commaSeparated = !1;
103
+ P.prototype.defined = !1;
104
+ P.prototype.mustUseProperty = !1;
105
+ P.prototype.number = !1;
106
+ P.prototype.overloadedBoolean = !1;
107
+ P.prototype.property = "";
108
+ P.prototype.spaceSeparated = !1;
109
+ P.prototype.space = void 0;
110
+ let bn = 0;
111
+ const g = T(), O = T(), re = T(), u = T(), b = T(), L = T(), D = T();
112
+ function T() {
113
+ return 2 ** ++bn;
114
+ }
115
+ const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
116
+ __proto__: null,
117
+ boolean: g,
118
+ booleanish: O,
119
+ commaOrSpaceSeparated: D,
120
+ commaSeparated: L,
121
+ number: u,
122
+ overloadedBoolean: re,
123
+ spaceSeparated: b
124
+ }, Symbol.toStringTag, { value: "Module" })), Z = (
125
+ /** @type {ReadonlyArray<keyof typeof types>} */
126
+ Object.keys(ae)
127
+ );
128
+ class ie extends P {
129
+ /**
130
+ * @constructor
131
+ * @param {string} property
132
+ * Property.
133
+ * @param {string} attribute
134
+ * Attribute.
135
+ * @param {number | null | undefined} [mask]
136
+ * Mask.
137
+ * @param {Space | undefined} [space]
138
+ * Space.
139
+ * @returns
140
+ * Info.
141
+ */
142
+ constructor(n, t, r, a) {
143
+ let o = -1;
144
+ if (super(n, t), ge(this, "space", a), typeof r == "number")
145
+ for (; ++o < Z.length; ) {
146
+ const l = Z[o];
147
+ ge(this, Z[o], (r & ae[l]) === ae[l]);
148
+ }
149
+ }
150
+ }
151
+ ie.prototype.defined = !0;
152
+ function ge(e, n, t) {
153
+ t && (e[n] = t);
154
+ }
155
+ function _(e) {
156
+ const n = {}, t = {};
157
+ for (const [r, a] of Object.entries(e.properties)) {
158
+ const o = new ie(
159
+ r,
160
+ e.transform(e.attributes || {}, r),
161
+ a,
162
+ e.space
163
+ );
164
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), n[r] = o, t[te(r)] = r, t[te(o.attribute)] = r;
165
+ }
166
+ return new H(n, t, e.space);
167
+ }
168
+ const qe = _({
169
+ properties: {
170
+ ariaActiveDescendant: null,
171
+ ariaAtomic: O,
172
+ ariaAutoComplete: null,
173
+ ariaBusy: O,
174
+ ariaChecked: O,
175
+ ariaColCount: u,
176
+ ariaColIndex: u,
177
+ ariaColSpan: u,
178
+ ariaControls: b,
179
+ ariaCurrent: null,
180
+ ariaDescribedBy: b,
181
+ ariaDetails: null,
182
+ ariaDisabled: O,
183
+ ariaDropEffect: b,
184
+ ariaErrorMessage: null,
185
+ ariaExpanded: O,
186
+ ariaFlowTo: b,
187
+ ariaGrabbed: O,
188
+ ariaHasPopup: null,
189
+ ariaHidden: O,
190
+ ariaInvalid: null,
191
+ ariaKeyShortcuts: null,
192
+ ariaLabel: null,
193
+ ariaLabelledBy: b,
194
+ ariaLevel: u,
195
+ ariaLive: null,
196
+ ariaModal: O,
197
+ ariaMultiLine: O,
198
+ ariaMultiSelectable: O,
199
+ ariaOrientation: null,
200
+ ariaOwns: b,
201
+ ariaPlaceholder: null,
202
+ ariaPosInSet: u,
203
+ ariaPressed: O,
204
+ ariaReadOnly: O,
205
+ ariaRelevant: null,
206
+ ariaRequired: O,
207
+ ariaRoleDescription: b,
208
+ ariaRowCount: u,
209
+ ariaRowIndex: u,
210
+ ariaRowSpan: u,
211
+ ariaSelected: O,
212
+ ariaSetSize: u,
213
+ ariaSort: null,
214
+ ariaValueMax: u,
215
+ ariaValueMin: u,
216
+ ariaValueNow: u,
217
+ ariaValueText: null,
218
+ role: null
219
+ },
220
+ transform(e, n) {
221
+ return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
222
+ }
223
+ });
224
+ function Xe(e, n) {
225
+ return n in e ? e[n] : n;
226
+ }
227
+ function Ve(e, n) {
228
+ return Xe(e, n.toLowerCase());
229
+ }
230
+ const vn = _({
231
+ attributes: {
232
+ acceptcharset: "accept-charset",
233
+ classname: "class",
234
+ htmlfor: "for",
235
+ httpequiv: "http-equiv"
236
+ },
237
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
238
+ properties: {
239
+ // Standard Properties.
240
+ abbr: null,
241
+ accept: L,
242
+ acceptCharset: b,
243
+ accessKey: b,
244
+ action: null,
245
+ allow: null,
246
+ allowFullScreen: g,
247
+ allowPaymentRequest: g,
248
+ allowUserMedia: g,
249
+ alt: null,
250
+ as: null,
251
+ async: g,
252
+ autoCapitalize: null,
253
+ autoComplete: b,
254
+ autoFocus: g,
255
+ autoPlay: g,
256
+ blocking: b,
257
+ capture: null,
258
+ charSet: null,
259
+ checked: g,
260
+ cite: null,
261
+ className: b,
262
+ cols: u,
263
+ colSpan: null,
264
+ content: null,
265
+ contentEditable: O,
266
+ controls: g,
267
+ controlsList: b,
268
+ coords: u | L,
269
+ crossOrigin: null,
270
+ data: null,
271
+ dateTime: null,
272
+ decoding: null,
273
+ default: g,
274
+ defer: g,
275
+ dir: null,
276
+ dirName: null,
277
+ disabled: g,
278
+ download: re,
279
+ draggable: O,
280
+ encType: null,
281
+ enterKeyHint: null,
282
+ fetchPriority: null,
283
+ form: null,
284
+ formAction: null,
285
+ formEncType: null,
286
+ formMethod: null,
287
+ formNoValidate: g,
288
+ formTarget: null,
289
+ headers: b,
290
+ height: u,
291
+ hidden: re,
292
+ high: u,
293
+ href: null,
294
+ hrefLang: null,
295
+ htmlFor: b,
296
+ httpEquiv: b,
297
+ id: null,
298
+ imageSizes: null,
299
+ imageSrcSet: null,
300
+ inert: g,
301
+ inputMode: null,
302
+ integrity: null,
303
+ is: null,
304
+ isMap: g,
305
+ itemId: null,
306
+ itemProp: b,
307
+ itemRef: b,
308
+ itemScope: g,
309
+ itemType: b,
310
+ kind: null,
311
+ label: null,
312
+ lang: null,
313
+ language: null,
314
+ list: null,
315
+ loading: null,
316
+ loop: g,
317
+ low: u,
318
+ manifest: null,
319
+ max: null,
320
+ maxLength: u,
321
+ media: null,
322
+ method: null,
323
+ min: null,
324
+ minLength: u,
325
+ multiple: g,
326
+ muted: g,
327
+ name: null,
328
+ nonce: null,
329
+ noModule: g,
330
+ noValidate: g,
331
+ onAbort: null,
332
+ onAfterPrint: null,
333
+ onAuxClick: null,
334
+ onBeforeMatch: null,
335
+ onBeforePrint: null,
336
+ onBeforeToggle: null,
337
+ onBeforeUnload: null,
338
+ onBlur: null,
339
+ onCancel: null,
340
+ onCanPlay: null,
341
+ onCanPlayThrough: null,
342
+ onChange: null,
343
+ onClick: null,
344
+ onClose: null,
345
+ onContextLost: null,
346
+ onContextMenu: null,
347
+ onContextRestored: null,
348
+ onCopy: null,
349
+ onCueChange: null,
350
+ onCut: null,
351
+ onDblClick: null,
352
+ onDrag: null,
353
+ onDragEnd: null,
354
+ onDragEnter: null,
355
+ onDragExit: null,
356
+ onDragLeave: null,
357
+ onDragOver: null,
358
+ onDragStart: null,
359
+ onDrop: null,
360
+ onDurationChange: null,
361
+ onEmptied: null,
362
+ onEnded: null,
363
+ onError: null,
364
+ onFocus: null,
365
+ onFormData: null,
366
+ onHashChange: null,
367
+ onInput: null,
368
+ onInvalid: null,
369
+ onKeyDown: null,
370
+ onKeyPress: null,
371
+ onKeyUp: null,
372
+ onLanguageChange: null,
373
+ onLoad: null,
374
+ onLoadedData: null,
375
+ onLoadedMetadata: null,
376
+ onLoadEnd: null,
377
+ onLoadStart: null,
378
+ onMessage: null,
379
+ onMessageError: null,
380
+ onMouseDown: null,
381
+ onMouseEnter: null,
382
+ onMouseLeave: null,
383
+ onMouseMove: null,
384
+ onMouseOut: null,
385
+ onMouseOver: null,
386
+ onMouseUp: null,
387
+ onOffline: null,
388
+ onOnline: null,
389
+ onPageHide: null,
390
+ onPageShow: null,
391
+ onPaste: null,
392
+ onPause: null,
393
+ onPlay: null,
394
+ onPlaying: null,
395
+ onPopState: null,
396
+ onProgress: null,
397
+ onRateChange: null,
398
+ onRejectionHandled: null,
399
+ onReset: null,
400
+ onResize: null,
401
+ onScroll: null,
402
+ onScrollEnd: null,
403
+ onSecurityPolicyViolation: null,
404
+ onSeeked: null,
405
+ onSeeking: null,
406
+ onSelect: null,
407
+ onSlotChange: null,
408
+ onStalled: null,
409
+ onStorage: null,
410
+ onSubmit: null,
411
+ onSuspend: null,
412
+ onTimeUpdate: null,
413
+ onToggle: null,
414
+ onUnhandledRejection: null,
415
+ onUnload: null,
416
+ onVolumeChange: null,
417
+ onWaiting: null,
418
+ onWheel: null,
419
+ open: g,
420
+ optimum: u,
421
+ pattern: null,
422
+ ping: b,
423
+ placeholder: null,
424
+ playsInline: g,
425
+ popover: null,
426
+ popoverTarget: null,
427
+ popoverTargetAction: null,
428
+ poster: null,
429
+ preload: null,
430
+ readOnly: g,
431
+ referrerPolicy: null,
432
+ rel: b,
433
+ required: g,
434
+ reversed: g,
435
+ rows: u,
436
+ rowSpan: u,
437
+ sandbox: b,
438
+ scope: null,
439
+ scoped: g,
440
+ seamless: g,
441
+ selected: g,
442
+ shadowRootClonable: g,
443
+ shadowRootDelegatesFocus: g,
444
+ shadowRootMode: null,
445
+ shape: null,
446
+ size: u,
447
+ sizes: null,
448
+ slot: null,
449
+ span: u,
450
+ spellCheck: O,
451
+ src: null,
452
+ srcDoc: null,
453
+ srcLang: null,
454
+ srcSet: null,
455
+ start: u,
456
+ step: null,
457
+ style: null,
458
+ tabIndex: u,
459
+ target: null,
460
+ title: null,
461
+ translate: null,
462
+ type: null,
463
+ typeMustMatch: g,
464
+ useMap: null,
465
+ value: O,
466
+ width: u,
467
+ wrap: null,
468
+ writingSuggestions: null,
469
+ // Legacy.
470
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
471
+ align: null,
472
+ // Several. Use CSS `text-align` instead,
473
+ aLink: null,
474
+ // `<body>`. Use CSS `a:active {color}` instead
475
+ archive: b,
476
+ // `<object>`. List of URIs to archives
477
+ axis: null,
478
+ // `<td>` and `<th>`. Use `scope` on `<th>`
479
+ background: null,
480
+ // `<body>`. Use CSS `background-image` instead
481
+ bgColor: null,
482
+ // `<body>` and table elements. Use CSS `background-color` instead
483
+ border: u,
484
+ // `<table>`. Use CSS `border-width` instead,
485
+ borderColor: null,
486
+ // `<table>`. Use CSS `border-color` instead,
487
+ bottomMargin: u,
488
+ // `<body>`
489
+ cellPadding: null,
490
+ // `<table>`
491
+ cellSpacing: null,
492
+ // `<table>`
493
+ char: null,
494
+ // Several table elements. When `align=char`, sets the character to align on
495
+ charOff: null,
496
+ // Several table elements. When `char`, offsets the alignment
497
+ classId: null,
498
+ // `<object>`
499
+ clear: null,
500
+ // `<br>`. Use CSS `clear` instead
501
+ code: null,
502
+ // `<object>`
503
+ codeBase: null,
504
+ // `<object>`
505
+ codeType: null,
506
+ // `<object>`
507
+ color: null,
508
+ // `<font>` and `<hr>`. Use CSS instead
509
+ compact: g,
510
+ // Lists. Use CSS to reduce space between items instead
511
+ declare: g,
512
+ // `<object>`
513
+ event: null,
514
+ // `<script>`
515
+ face: null,
516
+ // `<font>`. Use CSS instead
517
+ frame: null,
518
+ // `<table>`
519
+ frameBorder: null,
520
+ // `<iframe>`. Use CSS `border` instead
521
+ hSpace: u,
522
+ // `<img>` and `<object>`
523
+ leftMargin: u,
524
+ // `<body>`
525
+ link: null,
526
+ // `<body>`. Use CSS `a:link {color: *}` instead
527
+ longDesc: null,
528
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
529
+ lowSrc: null,
530
+ // `<img>`. Use a `<picture>`
531
+ marginHeight: u,
532
+ // `<body>`
533
+ marginWidth: u,
534
+ // `<body>`
535
+ noResize: g,
536
+ // `<frame>`
537
+ noHref: g,
538
+ // `<area>`. Use no href instead of an explicit `nohref`
539
+ noShade: g,
540
+ // `<hr>`. Use background-color and height instead of borders
541
+ noWrap: g,
542
+ // `<td>` and `<th>`
543
+ object: null,
544
+ // `<applet>`
545
+ profile: null,
546
+ // `<head>`
547
+ prompt: null,
548
+ // `<isindex>`
549
+ rev: null,
550
+ // `<link>`
551
+ rightMargin: u,
552
+ // `<body>`
553
+ rules: null,
554
+ // `<table>`
555
+ scheme: null,
556
+ // `<meta>`
557
+ scrolling: O,
558
+ // `<frame>`. Use overflow in the child context
559
+ standby: null,
560
+ // `<object>`
561
+ summary: null,
562
+ // `<table>`
563
+ text: null,
564
+ // `<body>`. Use CSS `color` instead
565
+ topMargin: u,
566
+ // `<body>`
567
+ valueType: null,
568
+ // `<param>`
569
+ version: null,
570
+ // `<html>`. Use a doctype.
571
+ vAlign: null,
572
+ // Several. Use CSS `vertical-align` instead
573
+ vLink: null,
574
+ // `<body>`. Use CSS `a:visited {color}` instead
575
+ vSpace: u,
576
+ // `<img>` and `<object>`
577
+ // Non-standard Properties.
578
+ allowTransparency: null,
579
+ autoCorrect: null,
580
+ autoSave: null,
581
+ disablePictureInPicture: g,
582
+ disableRemotePlayback: g,
583
+ prefix: null,
584
+ property: null,
585
+ results: u,
586
+ security: null,
587
+ unselectable: null
588
+ },
589
+ space: "html",
590
+ transform: Ve
591
+ }), kn = _({
592
+ attributes: {
593
+ accentHeight: "accent-height",
594
+ alignmentBaseline: "alignment-baseline",
595
+ arabicForm: "arabic-form",
596
+ baselineShift: "baseline-shift",
597
+ capHeight: "cap-height",
598
+ className: "class",
599
+ clipPath: "clip-path",
600
+ clipRule: "clip-rule",
601
+ colorInterpolation: "color-interpolation",
602
+ colorInterpolationFilters: "color-interpolation-filters",
603
+ colorProfile: "color-profile",
604
+ colorRendering: "color-rendering",
605
+ crossOrigin: "crossorigin",
606
+ dataType: "datatype",
607
+ dominantBaseline: "dominant-baseline",
608
+ enableBackground: "enable-background",
609
+ fillOpacity: "fill-opacity",
610
+ fillRule: "fill-rule",
611
+ floodColor: "flood-color",
612
+ floodOpacity: "flood-opacity",
613
+ fontFamily: "font-family",
614
+ fontSize: "font-size",
615
+ fontSizeAdjust: "font-size-adjust",
616
+ fontStretch: "font-stretch",
617
+ fontStyle: "font-style",
618
+ fontVariant: "font-variant",
619
+ fontWeight: "font-weight",
620
+ glyphName: "glyph-name",
621
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
622
+ glyphOrientationVertical: "glyph-orientation-vertical",
623
+ hrefLang: "hreflang",
624
+ horizAdvX: "horiz-adv-x",
625
+ horizOriginX: "horiz-origin-x",
626
+ horizOriginY: "horiz-origin-y",
627
+ imageRendering: "image-rendering",
628
+ letterSpacing: "letter-spacing",
629
+ lightingColor: "lighting-color",
630
+ markerEnd: "marker-end",
631
+ markerMid: "marker-mid",
632
+ markerStart: "marker-start",
633
+ navDown: "nav-down",
634
+ navDownLeft: "nav-down-left",
635
+ navDownRight: "nav-down-right",
636
+ navLeft: "nav-left",
637
+ navNext: "nav-next",
638
+ navPrev: "nav-prev",
639
+ navRight: "nav-right",
640
+ navUp: "nav-up",
641
+ navUpLeft: "nav-up-left",
642
+ navUpRight: "nav-up-right",
643
+ onAbort: "onabort",
644
+ onActivate: "onactivate",
645
+ onAfterPrint: "onafterprint",
646
+ onBeforePrint: "onbeforeprint",
647
+ onBegin: "onbegin",
648
+ onCancel: "oncancel",
649
+ onCanPlay: "oncanplay",
650
+ onCanPlayThrough: "oncanplaythrough",
651
+ onChange: "onchange",
652
+ onClick: "onclick",
653
+ onClose: "onclose",
654
+ onCopy: "oncopy",
655
+ onCueChange: "oncuechange",
656
+ onCut: "oncut",
657
+ onDblClick: "ondblclick",
658
+ onDrag: "ondrag",
659
+ onDragEnd: "ondragend",
660
+ onDragEnter: "ondragenter",
661
+ onDragExit: "ondragexit",
662
+ onDragLeave: "ondragleave",
663
+ onDragOver: "ondragover",
664
+ onDragStart: "ondragstart",
665
+ onDrop: "ondrop",
666
+ onDurationChange: "ondurationchange",
667
+ onEmptied: "onemptied",
668
+ onEnd: "onend",
669
+ onEnded: "onended",
670
+ onError: "onerror",
671
+ onFocus: "onfocus",
672
+ onFocusIn: "onfocusin",
673
+ onFocusOut: "onfocusout",
674
+ onHashChange: "onhashchange",
675
+ onInput: "oninput",
676
+ onInvalid: "oninvalid",
677
+ onKeyDown: "onkeydown",
678
+ onKeyPress: "onkeypress",
679
+ onKeyUp: "onkeyup",
680
+ onLoad: "onload",
681
+ onLoadedData: "onloadeddata",
682
+ onLoadedMetadata: "onloadedmetadata",
683
+ onLoadStart: "onloadstart",
684
+ onMessage: "onmessage",
685
+ onMouseDown: "onmousedown",
686
+ onMouseEnter: "onmouseenter",
687
+ onMouseLeave: "onmouseleave",
688
+ onMouseMove: "onmousemove",
689
+ onMouseOut: "onmouseout",
690
+ onMouseOver: "onmouseover",
691
+ onMouseUp: "onmouseup",
692
+ onMouseWheel: "onmousewheel",
693
+ onOffline: "onoffline",
694
+ onOnline: "ononline",
695
+ onPageHide: "onpagehide",
696
+ onPageShow: "onpageshow",
697
+ onPaste: "onpaste",
698
+ onPause: "onpause",
699
+ onPlay: "onplay",
700
+ onPlaying: "onplaying",
701
+ onPopState: "onpopstate",
702
+ onProgress: "onprogress",
703
+ onRateChange: "onratechange",
704
+ onRepeat: "onrepeat",
705
+ onReset: "onreset",
706
+ onResize: "onresize",
707
+ onScroll: "onscroll",
708
+ onSeeked: "onseeked",
709
+ onSeeking: "onseeking",
710
+ onSelect: "onselect",
711
+ onShow: "onshow",
712
+ onStalled: "onstalled",
713
+ onStorage: "onstorage",
714
+ onSubmit: "onsubmit",
715
+ onSuspend: "onsuspend",
716
+ onTimeUpdate: "ontimeupdate",
717
+ onToggle: "ontoggle",
718
+ onUnload: "onunload",
719
+ onVolumeChange: "onvolumechange",
720
+ onWaiting: "onwaiting",
721
+ onZoom: "onzoom",
722
+ overlinePosition: "overline-position",
723
+ overlineThickness: "overline-thickness",
724
+ paintOrder: "paint-order",
725
+ panose1: "panose-1",
726
+ pointerEvents: "pointer-events",
727
+ referrerPolicy: "referrerpolicy",
728
+ renderingIntent: "rendering-intent",
729
+ shapeRendering: "shape-rendering",
730
+ stopColor: "stop-color",
731
+ stopOpacity: "stop-opacity",
732
+ strikethroughPosition: "strikethrough-position",
733
+ strikethroughThickness: "strikethrough-thickness",
734
+ strokeDashArray: "stroke-dasharray",
735
+ strokeDashOffset: "stroke-dashoffset",
736
+ strokeLineCap: "stroke-linecap",
737
+ strokeLineJoin: "stroke-linejoin",
738
+ strokeMiterLimit: "stroke-miterlimit",
739
+ strokeOpacity: "stroke-opacity",
740
+ strokeWidth: "stroke-width",
741
+ tabIndex: "tabindex",
742
+ textAnchor: "text-anchor",
743
+ textDecoration: "text-decoration",
744
+ textRendering: "text-rendering",
745
+ transformOrigin: "transform-origin",
746
+ typeOf: "typeof",
747
+ underlinePosition: "underline-position",
748
+ underlineThickness: "underline-thickness",
749
+ unicodeBidi: "unicode-bidi",
750
+ unicodeRange: "unicode-range",
751
+ unitsPerEm: "units-per-em",
752
+ vAlphabetic: "v-alphabetic",
753
+ vHanging: "v-hanging",
754
+ vIdeographic: "v-ideographic",
755
+ vMathematical: "v-mathematical",
756
+ vectorEffect: "vector-effect",
757
+ vertAdvY: "vert-adv-y",
758
+ vertOriginX: "vert-origin-x",
759
+ vertOriginY: "vert-origin-y",
760
+ wordSpacing: "word-spacing",
761
+ writingMode: "writing-mode",
762
+ xHeight: "x-height",
763
+ // These were camelcased in Tiny. Now lowercased in SVG 2
764
+ playbackOrder: "playbackorder",
765
+ timelineBegin: "timelinebegin"
766
+ },
767
+ properties: {
768
+ about: D,
769
+ accentHeight: u,
770
+ accumulate: null,
771
+ additive: null,
772
+ alignmentBaseline: null,
773
+ alphabetic: u,
774
+ amplitude: u,
775
+ arabicForm: null,
776
+ ascent: u,
777
+ attributeName: null,
778
+ attributeType: null,
779
+ azimuth: u,
780
+ bandwidth: null,
781
+ baselineShift: null,
782
+ baseFrequency: null,
783
+ baseProfile: null,
784
+ bbox: null,
785
+ begin: null,
786
+ bias: u,
787
+ by: null,
788
+ calcMode: null,
789
+ capHeight: u,
790
+ className: b,
791
+ clip: null,
792
+ clipPath: null,
793
+ clipPathUnits: null,
794
+ clipRule: null,
795
+ color: null,
796
+ colorInterpolation: null,
797
+ colorInterpolationFilters: null,
798
+ colorProfile: null,
799
+ colorRendering: null,
800
+ content: null,
801
+ contentScriptType: null,
802
+ contentStyleType: null,
803
+ crossOrigin: null,
804
+ cursor: null,
805
+ cx: null,
806
+ cy: null,
807
+ d: null,
808
+ dataType: null,
809
+ defaultAction: null,
810
+ descent: u,
811
+ diffuseConstant: u,
812
+ direction: null,
813
+ display: null,
814
+ dur: null,
815
+ divisor: u,
816
+ dominantBaseline: null,
817
+ download: g,
818
+ dx: null,
819
+ dy: null,
820
+ edgeMode: null,
821
+ editable: null,
822
+ elevation: u,
823
+ enableBackground: null,
824
+ end: null,
825
+ event: null,
826
+ exponent: u,
827
+ externalResourcesRequired: null,
828
+ fill: null,
829
+ fillOpacity: u,
830
+ fillRule: null,
831
+ filter: null,
832
+ filterRes: null,
833
+ filterUnits: null,
834
+ floodColor: null,
835
+ floodOpacity: null,
836
+ focusable: null,
837
+ focusHighlight: null,
838
+ fontFamily: null,
839
+ fontSize: null,
840
+ fontSizeAdjust: null,
841
+ fontStretch: null,
842
+ fontStyle: null,
843
+ fontVariant: null,
844
+ fontWeight: null,
845
+ format: null,
846
+ fr: null,
847
+ from: null,
848
+ fx: null,
849
+ fy: null,
850
+ g1: L,
851
+ g2: L,
852
+ glyphName: L,
853
+ glyphOrientationHorizontal: null,
854
+ glyphOrientationVertical: null,
855
+ glyphRef: null,
856
+ gradientTransform: null,
857
+ gradientUnits: null,
858
+ handler: null,
859
+ hanging: u,
860
+ hatchContentUnits: null,
861
+ hatchUnits: null,
862
+ height: null,
863
+ href: null,
864
+ hrefLang: null,
865
+ horizAdvX: u,
866
+ horizOriginX: u,
867
+ horizOriginY: u,
868
+ id: null,
869
+ ideographic: u,
870
+ imageRendering: null,
871
+ initialVisibility: null,
872
+ in: null,
873
+ in2: null,
874
+ intercept: u,
875
+ k: u,
876
+ k1: u,
877
+ k2: u,
878
+ k3: u,
879
+ k4: u,
880
+ kernelMatrix: D,
881
+ kernelUnitLength: null,
882
+ keyPoints: null,
883
+ // SEMI_COLON_SEPARATED
884
+ keySplines: null,
885
+ // SEMI_COLON_SEPARATED
886
+ keyTimes: null,
887
+ // SEMI_COLON_SEPARATED
888
+ kerning: null,
889
+ lang: null,
890
+ lengthAdjust: null,
891
+ letterSpacing: null,
892
+ lightingColor: null,
893
+ limitingConeAngle: u,
894
+ local: null,
895
+ markerEnd: null,
896
+ markerMid: null,
897
+ markerStart: null,
898
+ markerHeight: null,
899
+ markerUnits: null,
900
+ markerWidth: null,
901
+ mask: null,
902
+ maskContentUnits: null,
903
+ maskUnits: null,
904
+ mathematical: null,
905
+ max: null,
906
+ media: null,
907
+ mediaCharacterEncoding: null,
908
+ mediaContentEncodings: null,
909
+ mediaSize: u,
910
+ mediaTime: null,
911
+ method: null,
912
+ min: null,
913
+ mode: null,
914
+ name: null,
915
+ navDown: null,
916
+ navDownLeft: null,
917
+ navDownRight: null,
918
+ navLeft: null,
919
+ navNext: null,
920
+ navPrev: null,
921
+ navRight: null,
922
+ navUp: null,
923
+ navUpLeft: null,
924
+ navUpRight: null,
925
+ numOctaves: null,
926
+ observer: null,
927
+ offset: null,
928
+ onAbort: null,
929
+ onActivate: null,
930
+ onAfterPrint: null,
931
+ onBeforePrint: null,
932
+ onBegin: null,
933
+ onCancel: null,
934
+ onCanPlay: null,
935
+ onCanPlayThrough: null,
936
+ onChange: null,
937
+ onClick: null,
938
+ onClose: null,
939
+ onCopy: null,
940
+ onCueChange: null,
941
+ onCut: null,
942
+ onDblClick: null,
943
+ onDrag: null,
944
+ onDragEnd: null,
945
+ onDragEnter: null,
946
+ onDragExit: null,
947
+ onDragLeave: null,
948
+ onDragOver: null,
949
+ onDragStart: null,
950
+ onDrop: null,
951
+ onDurationChange: null,
952
+ onEmptied: null,
953
+ onEnd: null,
954
+ onEnded: null,
955
+ onError: null,
956
+ onFocus: null,
957
+ onFocusIn: null,
958
+ onFocusOut: null,
959
+ onHashChange: null,
960
+ onInput: null,
961
+ onInvalid: null,
962
+ onKeyDown: null,
963
+ onKeyPress: null,
964
+ onKeyUp: null,
965
+ onLoad: null,
966
+ onLoadedData: null,
967
+ onLoadedMetadata: null,
968
+ onLoadStart: null,
969
+ onMessage: null,
970
+ onMouseDown: null,
971
+ onMouseEnter: null,
972
+ onMouseLeave: null,
973
+ onMouseMove: null,
974
+ onMouseOut: null,
975
+ onMouseOver: null,
976
+ onMouseUp: null,
977
+ onMouseWheel: null,
978
+ onOffline: null,
979
+ onOnline: null,
980
+ onPageHide: null,
981
+ onPageShow: null,
982
+ onPaste: null,
983
+ onPause: null,
984
+ onPlay: null,
985
+ onPlaying: null,
986
+ onPopState: null,
987
+ onProgress: null,
988
+ onRateChange: null,
989
+ onRepeat: null,
990
+ onReset: null,
991
+ onResize: null,
992
+ onScroll: null,
993
+ onSeeked: null,
994
+ onSeeking: null,
995
+ onSelect: null,
996
+ onShow: null,
997
+ onStalled: null,
998
+ onStorage: null,
999
+ onSubmit: null,
1000
+ onSuspend: null,
1001
+ onTimeUpdate: null,
1002
+ onToggle: null,
1003
+ onUnload: null,
1004
+ onVolumeChange: null,
1005
+ onWaiting: null,
1006
+ onZoom: null,
1007
+ opacity: null,
1008
+ operator: null,
1009
+ order: null,
1010
+ orient: null,
1011
+ orientation: null,
1012
+ origin: null,
1013
+ overflow: null,
1014
+ overlay: null,
1015
+ overlinePosition: u,
1016
+ overlineThickness: u,
1017
+ paintOrder: null,
1018
+ panose1: null,
1019
+ path: null,
1020
+ pathLength: u,
1021
+ patternContentUnits: null,
1022
+ patternTransform: null,
1023
+ patternUnits: null,
1024
+ phase: null,
1025
+ ping: b,
1026
+ pitch: null,
1027
+ playbackOrder: null,
1028
+ pointerEvents: null,
1029
+ points: null,
1030
+ pointsAtX: u,
1031
+ pointsAtY: u,
1032
+ pointsAtZ: u,
1033
+ preserveAlpha: null,
1034
+ preserveAspectRatio: null,
1035
+ primitiveUnits: null,
1036
+ propagate: null,
1037
+ property: D,
1038
+ r: null,
1039
+ radius: null,
1040
+ referrerPolicy: null,
1041
+ refX: null,
1042
+ refY: null,
1043
+ rel: D,
1044
+ rev: D,
1045
+ renderingIntent: null,
1046
+ repeatCount: null,
1047
+ repeatDur: null,
1048
+ requiredExtensions: D,
1049
+ requiredFeatures: D,
1050
+ requiredFonts: D,
1051
+ requiredFormats: D,
1052
+ resource: null,
1053
+ restart: null,
1054
+ result: null,
1055
+ rotate: null,
1056
+ rx: null,
1057
+ ry: null,
1058
+ scale: null,
1059
+ seed: null,
1060
+ shapeRendering: null,
1061
+ side: null,
1062
+ slope: null,
1063
+ snapshotTime: null,
1064
+ specularConstant: u,
1065
+ specularExponent: u,
1066
+ spreadMethod: null,
1067
+ spacing: null,
1068
+ startOffset: null,
1069
+ stdDeviation: null,
1070
+ stemh: null,
1071
+ stemv: null,
1072
+ stitchTiles: null,
1073
+ stopColor: null,
1074
+ stopOpacity: null,
1075
+ strikethroughPosition: u,
1076
+ strikethroughThickness: u,
1077
+ string: null,
1078
+ stroke: null,
1079
+ strokeDashArray: D,
1080
+ strokeDashOffset: null,
1081
+ strokeLineCap: null,
1082
+ strokeLineJoin: null,
1083
+ strokeMiterLimit: u,
1084
+ strokeOpacity: u,
1085
+ strokeWidth: null,
1086
+ style: null,
1087
+ surfaceScale: u,
1088
+ syncBehavior: null,
1089
+ syncBehaviorDefault: null,
1090
+ syncMaster: null,
1091
+ syncTolerance: null,
1092
+ syncToleranceDefault: null,
1093
+ systemLanguage: D,
1094
+ tabIndex: u,
1095
+ tableValues: null,
1096
+ target: null,
1097
+ targetX: u,
1098
+ targetY: u,
1099
+ textAnchor: null,
1100
+ textDecoration: null,
1101
+ textRendering: null,
1102
+ textLength: null,
1103
+ timelineBegin: null,
1104
+ title: null,
1105
+ transformBehavior: null,
1106
+ type: null,
1107
+ typeOf: D,
1108
+ to: null,
1109
+ transform: null,
1110
+ transformOrigin: null,
1111
+ u1: null,
1112
+ u2: null,
1113
+ underlinePosition: u,
1114
+ underlineThickness: u,
1115
+ unicode: null,
1116
+ unicodeBidi: null,
1117
+ unicodeRange: null,
1118
+ unitsPerEm: u,
1119
+ values: null,
1120
+ vAlphabetic: u,
1121
+ vMathematical: u,
1122
+ vectorEffect: null,
1123
+ vHanging: u,
1124
+ vIdeographic: u,
1125
+ version: null,
1126
+ vertAdvY: u,
1127
+ vertOriginX: u,
1128
+ vertOriginY: u,
1129
+ viewBox: null,
1130
+ viewTarget: null,
1131
+ visibility: null,
1132
+ width: null,
1133
+ widths: null,
1134
+ wordSpacing: null,
1135
+ writingMode: null,
1136
+ x: null,
1137
+ x1: null,
1138
+ x2: null,
1139
+ xChannelSelector: null,
1140
+ xHeight: u,
1141
+ y: null,
1142
+ y1: null,
1143
+ y2: null,
1144
+ yChannelSelector: null,
1145
+ z: null,
1146
+ zoomAndPan: null
1147
+ },
1148
+ space: "svg",
1149
+ transform: Xe
1150
+ }), Ge = _({
1151
+ properties: {
1152
+ xLinkActuate: null,
1153
+ xLinkArcRole: null,
1154
+ xLinkHref: null,
1155
+ xLinkRole: null,
1156
+ xLinkShow: null,
1157
+ xLinkTitle: null,
1158
+ xLinkType: null
1159
+ },
1160
+ space: "xlink",
1161
+ transform(e, n) {
1162
+ return "xlink:" + n.slice(5).toLowerCase();
1163
+ }
1164
+ }), $e = _({
1165
+ attributes: { xmlnsxlink: "xmlns:xlink" },
1166
+ properties: { xmlnsXLink: null, xmlns: null },
1167
+ space: "xmlns",
1168
+ transform: Ve
1169
+ }), Qe = _({
1170
+ properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1171
+ space: "xml",
1172
+ transform(e, n) {
1173
+ return "xml:" + n.slice(3).toLowerCase();
1174
+ }
1175
+ }), Br = {
1176
+ classId: "classID",
1177
+ dataType: "datatype",
1178
+ itemId: "itemID",
1179
+ strokeDashArray: "strokeDasharray",
1180
+ strokeDashOffset: "strokeDashoffset",
1181
+ strokeLineCap: "strokeLinecap",
1182
+ strokeLineJoin: "strokeLinejoin",
1183
+ strokeMiterLimit: "strokeMiterlimit",
1184
+ typeOf: "typeof",
1185
+ xLinkActuate: "xlinkActuate",
1186
+ xLinkArcRole: "xlinkArcrole",
1187
+ xLinkHref: "xlinkHref",
1188
+ xLinkRole: "xlinkRole",
1189
+ xLinkShow: "xlinkShow",
1190
+ xLinkTitle: "xlinkTitle",
1191
+ xLinkType: "xlinkType",
1192
+ xmlnsXLink: "xmlnsXlink"
1193
+ }, On = /[A-Z]/g, ye = /-[a-z]/g, Pn = /^data[-\w.:]+$/i;
1194
+ function zr(e, n) {
1195
+ const t = te(n);
1196
+ let r = n, a = P;
1197
+ if (t in e.normal)
1198
+ return e.property[e.normal[t]];
1199
+ if (t.length > 4 && t.slice(0, 4) === "data" && Pn.test(n)) {
1200
+ if (n.charAt(4) === "-") {
1201
+ const o = n.slice(5).replace(ye, xn);
1202
+ r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
1203
+ } else {
1204
+ const o = n.slice(4);
1205
+ if (!ye.test(o)) {
1206
+ let l = o.replace(On, Dn);
1207
+ l.charAt(0) !== "-" && (l = "-" + l), n = "data" + l;
1208
+ }
1209
+ }
1210
+ a = ie;
1211
+ }
1212
+ return new a(r, n);
1213
+ }
1214
+ function Dn(e) {
1215
+ return "-" + e.toLowerCase();
1216
+ }
1217
+ function xn(e) {
1218
+ return e.charAt(1).toUpperCase();
1219
+ }
1220
+ const qr = ze([qe, vn, Ge, $e, Qe], "html"), Xr = ze([qe, kn, Ge, $e, Qe], "svg");
1221
+ function Vr(e) {
1222
+ return e.join(" ").trim();
1223
+ }
1224
+ var q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1225
+ function Je(e) {
1226
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1227
+ }
1228
+ var ue = {}, pe = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Sn = /\n/g, Mn = /^\s*/, Cn = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, En = /^:\s*/, Tn = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Rn = /^[;\s]*/, An = /^\s+|\s+$/g, Ln = `
1229
+ `, we = "/", be = "*", E = "", _n = "comment", Nn = "declaration";
1230
+ function In(e, n) {
1231
+ if (typeof e != "string")
1232
+ throw new TypeError("First argument must be a string");
1233
+ if (!e) return [];
1234
+ n = n || {};
1235
+ var t = 1, r = 1;
1236
+ function a(h) {
1237
+ var f = h.match(Sn);
1238
+ f && (t += f.length);
1239
+ var v = h.lastIndexOf(Ln);
1240
+ r = ~v ? h.length - v : r + h.length;
1241
+ }
1242
+ function o() {
1243
+ var h = { line: t, column: r };
1244
+ return function(f) {
1245
+ return f.position = new l(h), c(), f;
1246
+ };
1247
+ }
1248
+ function l(h) {
1249
+ this.start = h, this.end = { line: t, column: r }, this.source = n.source;
1250
+ }
1251
+ l.prototype.content = e;
1252
+ function i(h) {
1253
+ var f = new Error(
1254
+ n.source + ":" + t + ":" + r + ": " + h
1255
+ );
1256
+ if (f.reason = h, f.filename = n.source, f.line = t, f.column = r, f.source = e, !n.silent) throw f;
1257
+ }
1258
+ function s(h) {
1259
+ var f = h.exec(e);
1260
+ if (f) {
1261
+ var v = f[0];
1262
+ return a(v), e = e.slice(v.length), f;
1263
+ }
1264
+ }
1265
+ function c() {
1266
+ s(Mn);
1267
+ }
1268
+ function d(h) {
1269
+ var f;
1270
+ for (h = h || []; f = m(); )
1271
+ f !== !1 && h.push(f);
1272
+ return h;
1273
+ }
1274
+ function m() {
1275
+ var h = o();
1276
+ if (!(we != e.charAt(0) || be != e.charAt(1))) {
1277
+ for (var f = 2; E != e.charAt(f) && (be != e.charAt(f) || we != e.charAt(f + 1)); )
1278
+ ++f;
1279
+ if (f += 2, E === e.charAt(f - 1))
1280
+ return i("End of comment missing");
1281
+ var v = e.slice(2, f - 2);
1282
+ return r += 2, a(v), e = e.slice(f), r += 2, h({
1283
+ type: _n,
1284
+ comment: v
1285
+ });
1286
+ }
1287
+ }
1288
+ function y() {
1289
+ var h = o(), f = s(Cn);
1290
+ if (f) {
1291
+ if (m(), !s(En)) return i("property missing ':'");
1292
+ var v = s(Tn), M = h({
1293
+ type: Nn,
1294
+ property: ve(f[0].replace(pe, E)),
1295
+ value: v ? ve(v[0].replace(pe, E)) : E
1296
+ });
1297
+ return s(Rn), M;
1298
+ }
1299
+ }
1300
+ function k() {
1301
+ var h = [];
1302
+ d(h);
1303
+ for (var f; f = y(); )
1304
+ f !== !1 && (h.push(f), d(h));
1305
+ return h;
1306
+ }
1307
+ return c(), k();
1308
+ }
1309
+ function ve(e) {
1310
+ return e ? e.replace(An, E) : E;
1311
+ }
1312
+ var Wn = In, Yn = q && q.__importDefault || function(e) {
1313
+ return e && e.__esModule ? e : { default: e };
1314
+ };
1315
+ Object.defineProperty(ue, "__esModule", { value: !0 });
1316
+ ue.default = jn;
1317
+ const Fn = Yn(Wn);
1318
+ function jn(e, n) {
1319
+ let t = null;
1320
+ if (!e || typeof e != "string")
1321
+ return t;
1322
+ const r = (0, Fn.default)(e), a = typeof n == "function";
1323
+ return r.forEach((o) => {
1324
+ if (o.type !== "declaration")
1325
+ return;
1326
+ const { property: l, value: i } = o;
1327
+ a ? n(l, i, o) : i && (t = t || {}, t[l] = i);
1328
+ }), t;
1329
+ }
1330
+ var $ = {};
1331
+ Object.defineProperty($, "__esModule", { value: !0 });
1332
+ $.camelCase = void 0;
1333
+ var Hn = /^--[a-zA-Z0-9_-]+$/, Un = /-([a-z])/g, Bn = /^[^-]+$/, zn = /^-(webkit|moz|ms|o|khtml)-/, qn = /^-(ms)-/, Xn = function(e) {
1334
+ return !e || Bn.test(e) || Hn.test(e);
1335
+ }, Vn = function(e, n) {
1336
+ return n.toUpperCase();
1337
+ }, ke = function(e, n) {
1338
+ return "".concat(n, "-");
1339
+ }, Gn = function(e, n) {
1340
+ return n === void 0 && (n = {}), Xn(e) ? e : (e = e.toLowerCase(), n.reactCompat ? e = e.replace(qn, ke) : e = e.replace(zn, ke), e.replace(Un, Vn));
1341
+ };
1342
+ $.camelCase = Gn;
1343
+ var $n = q && q.__importDefault || function(e) {
1344
+ return e && e.__esModule ? e : { default: e };
1345
+ }, Qn = $n(ue), Jn = $;
1346
+ function oe(e, n) {
1347
+ var t = {};
1348
+ return !e || typeof e != "string" || (0, Qn.default)(e, function(r, a) {
1349
+ r && a && (t[(0, Jn.camelCase)(r, n)] = a);
1350
+ }), t;
1351
+ }
1352
+ oe.default = oe;
1353
+ var Kn = oe;
1354
+ const Gr = /* @__PURE__ */ Je(Kn), Zn = Ke("end"), et = Ke("start");
1355
+ function Ke(e) {
1356
+ return n;
1357
+ function n(t) {
1358
+ const r = t && t.position && t.position[e] || {};
1359
+ if (typeof r.line == "number" && r.line > 0 && typeof r.column == "number" && r.column > 0)
1360
+ return {
1361
+ line: r.line,
1362
+ column: r.column,
1363
+ offset: typeof r.offset == "number" && r.offset > -1 ? r.offset : void 0
1364
+ };
1365
+ }
1366
+ }
1367
+ function $r(e) {
1368
+ const n = et(e), t = Zn(e);
1369
+ if (n && t)
1370
+ return { start: n, end: t };
1371
+ }
1372
+ function Qr(e) {
1373
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Oe(e.position) : "start" in e || "end" in e ? Oe(e) : "line" in e || "column" in e ? le(e) : "";
1374
+ }
1375
+ function le(e) {
1376
+ return Pe(e && e.line) + ":" + Pe(e && e.column);
1377
+ }
1378
+ function Oe(e) {
1379
+ return le(e && e.start) + "-" + le(e && e.end);
1380
+ }
1381
+ function Pe(e) {
1382
+ return e && typeof e == "number" ? e : 1;
1383
+ }
1384
+ const Jr = {
1385
+ action: ["form"],
1386
+ cite: ["blockquote", "del", "ins", "q"],
1387
+ data: ["object"],
1388
+ formAction: ["button", "input"],
1389
+ href: ["a", "area", "base", "link"],
1390
+ icon: ["menuitem"],
1391
+ itemId: null,
1392
+ manifest: ["html"],
1393
+ ping: ["a", "area"],
1394
+ poster: ["video"],
1395
+ src: [
1396
+ "audio",
1397
+ "embed",
1398
+ "iframe",
1399
+ "img",
1400
+ "input",
1401
+ "script",
1402
+ "source",
1403
+ "track",
1404
+ "video"
1405
+ ]
1406
+ }, De = 9, xe = 32;
1407
+ function Kr(e) {
1408
+ const n = String(e), t = /\r?\n|\r/g;
1409
+ let r = t.exec(n), a = 0;
1410
+ const o = [];
1411
+ for (; r; )
1412
+ o.push(
1413
+ Se(n.slice(a, r.index), a > 0, !0),
1414
+ r[0]
1415
+ ), a = r.index + r[0].length, r = t.exec(n);
1416
+ return o.push(Se(n.slice(a), a > 0, !1)), o.join("");
1417
+ }
1418
+ function Se(e, n, t) {
1419
+ let r = 0, a = e.length;
1420
+ if (n) {
1421
+ let o = e.codePointAt(r);
1422
+ for (; o === De || o === xe; )
1423
+ r++, o = e.codePointAt(r);
1424
+ }
1425
+ if (t) {
1426
+ let o = e.codePointAt(a - 1);
1427
+ for (; o === De || o === xe; )
1428
+ a--, o = e.codePointAt(a - 1);
1429
+ }
1430
+ return a > r ? e.slice(r, a) : "";
1431
+ }
1432
+ const Ze = -1, Q = 0, F = 1, X = 2, se = 3, ce = 4, de = 5, fe = 6, en = 7, nn = 8, Me = typeof self == "object" ? self : globalThis, nt = (e, n) => {
1433
+ const t = (a, o) => (e.set(o, a), a), r = (a) => {
1434
+ if (e.has(a))
1435
+ return e.get(a);
1436
+ const [o, l] = n[a];
1437
+ switch (o) {
1438
+ case Q:
1439
+ case Ze:
1440
+ return t(l, a);
1441
+ case F: {
1442
+ const i = t([], a);
1443
+ for (const s of l)
1444
+ i.push(r(s));
1445
+ return i;
1446
+ }
1447
+ case X: {
1448
+ const i = t({}, a);
1449
+ for (const [s, c] of l)
1450
+ i[r(s)] = r(c);
1451
+ return i;
1452
+ }
1453
+ case se:
1454
+ return t(new Date(l), a);
1455
+ case ce: {
1456
+ const { source: i, flags: s } = l;
1457
+ return t(new RegExp(i, s), a);
1458
+ }
1459
+ case de: {
1460
+ const i = t(/* @__PURE__ */ new Map(), a);
1461
+ for (const [s, c] of l)
1462
+ i.set(r(s), r(c));
1463
+ return i;
1464
+ }
1465
+ case fe: {
1466
+ const i = t(/* @__PURE__ */ new Set(), a);
1467
+ for (const s of l)
1468
+ i.add(r(s));
1469
+ return i;
1470
+ }
1471
+ case en: {
1472
+ const { name: i, message: s } = l;
1473
+ return t(new Me[i](s), a);
1474
+ }
1475
+ case nn:
1476
+ return t(BigInt(l), a);
1477
+ case "BigInt":
1478
+ return t(Object(BigInt(l)), a);
1479
+ case "ArrayBuffer":
1480
+ return t(new Uint8Array(l).buffer, l);
1481
+ case "DataView": {
1482
+ const { buffer: i } = new Uint8Array(l);
1483
+ return t(new DataView(i), l);
1484
+ }
1485
+ }
1486
+ return t(new Me[o](l), a);
1487
+ };
1488
+ return r;
1489
+ }, Ce = (e) => nt(/* @__PURE__ */ new Map(), e)(0), R = "", { toString: tt } = {}, { keys: rt } = Object, N = (e) => {
1490
+ const n = typeof e;
1491
+ if (n !== "object" || !e)
1492
+ return [Q, n];
1493
+ const t = tt.call(e).slice(8, -1);
1494
+ switch (t) {
1495
+ case "Array":
1496
+ return [F, R];
1497
+ case "Object":
1498
+ return [X, R];
1499
+ case "Date":
1500
+ return [se, R];
1501
+ case "RegExp":
1502
+ return [ce, R];
1503
+ case "Map":
1504
+ return [de, R];
1505
+ case "Set":
1506
+ return [fe, R];
1507
+ case "DataView":
1508
+ return [F, t];
1509
+ }
1510
+ return t.includes("Array") ? [F, t] : t.includes("Error") ? [en, t] : [X, t];
1511
+ }, U = ([e, n]) => e === Q && (n === "function" || n === "symbol"), at = (e, n, t, r) => {
1512
+ const a = (l, i) => {
1513
+ const s = r.push(l) - 1;
1514
+ return t.set(i, s), s;
1515
+ }, o = (l) => {
1516
+ if (t.has(l))
1517
+ return t.get(l);
1518
+ let [i, s] = N(l);
1519
+ switch (i) {
1520
+ case Q: {
1521
+ let d = l;
1522
+ switch (s) {
1523
+ case "bigint":
1524
+ i = nn, d = l.toString();
1525
+ break;
1526
+ case "function":
1527
+ case "symbol":
1528
+ if (e)
1529
+ throw new TypeError("unable to serialize " + s);
1530
+ d = null;
1531
+ break;
1532
+ case "undefined":
1533
+ return a([Ze], l);
1534
+ }
1535
+ return a([i, d], l);
1536
+ }
1537
+ case F: {
1538
+ if (s) {
1539
+ let y = l;
1540
+ return s === "DataView" ? y = new Uint8Array(l.buffer) : s === "ArrayBuffer" && (y = new Uint8Array(l)), a([s, [...y]], l);
1541
+ }
1542
+ const d = [], m = a([i, d], l);
1543
+ for (const y of l)
1544
+ d.push(o(y));
1545
+ return m;
1546
+ }
1547
+ case X: {
1548
+ if (s)
1549
+ switch (s) {
1550
+ case "BigInt":
1551
+ return a([s, l.toString()], l);
1552
+ case "Boolean":
1553
+ case "Number":
1554
+ case "String":
1555
+ return a([s, l.valueOf()], l);
1556
+ }
1557
+ if (n && "toJSON" in l)
1558
+ return o(l.toJSON());
1559
+ const d = [], m = a([i, d], l);
1560
+ for (const y of rt(l))
1561
+ (e || !U(N(l[y]))) && d.push([o(y), o(l[y])]);
1562
+ return m;
1563
+ }
1564
+ case se:
1565
+ return a([i, l.toISOString()], l);
1566
+ case ce: {
1567
+ const { source: d, flags: m } = l;
1568
+ return a([i, { source: d, flags: m }], l);
1569
+ }
1570
+ case de: {
1571
+ const d = [], m = a([i, d], l);
1572
+ for (const [y, k] of l)
1573
+ (e || !(U(N(y)) || U(N(k)))) && d.push([o(y), o(k)]);
1574
+ return m;
1575
+ }
1576
+ case fe: {
1577
+ const d = [], m = a([i, d], l);
1578
+ for (const y of l)
1579
+ (e || !U(N(y))) && d.push(o(y));
1580
+ return m;
1581
+ }
1582
+ }
1583
+ const { message: c } = l;
1584
+ return a([i, { name: s, message: c }], l);
1585
+ };
1586
+ return o;
1587
+ }, Ee = (e, { json: n, lossy: t } = {}) => {
1588
+ const r = [];
1589
+ return at(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
1590
+ }, Zr = typeof structuredClone == "function" ? (
1591
+ /* c8 ignore start */
1592
+ (e, n) => n && ("json" in n || "lossy" in n) ? Ce(Ee(e, n)) : structuredClone(e)
1593
+ ) : (e, n) => Ce(Ee(e, n)), tn = (
1594
+ // Note: overloads in JSDoc can’t yet use different `@template`s.
1595
+ /**
1596
+ * @type {(
1597
+ * (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
1598
+ * (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
1599
+ * (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
1600
+ * ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
1601
+ * ((test?: Test) => Check)
1602
+ * )}
1603
+ */
1604
+ /**
1605
+ * @param {Test} [test]
1606
+ * @returns {Check}
1607
+ */
1608
+ function(e) {
1609
+ if (e == null)
1610
+ return ut;
1611
+ if (typeof e == "function")
1612
+ return J(e);
1613
+ if (typeof e == "object")
1614
+ return Array.isArray(e) ? ot(e) : (
1615
+ // Cast because `ReadonlyArray` goes into the above but `isArray`
1616
+ // narrows to `Array`.
1617
+ lt(
1618
+ /** @type {Props} */
1619
+ e
1620
+ )
1621
+ );
1622
+ if (typeof e == "string")
1623
+ return it(e);
1624
+ throw new Error("Expected function, string, or object as test");
1625
+ }
1626
+ );
1627
+ function ot(e) {
1628
+ const n = [];
1629
+ let t = -1;
1630
+ for (; ++t < e.length; )
1631
+ n[t] = tn(e[t]);
1632
+ return J(r);
1633
+ function r(...a) {
1634
+ let o = -1;
1635
+ for (; ++o < n.length; )
1636
+ if (n[o].apply(this, a)) return !0;
1637
+ return !1;
1638
+ }
1639
+ }
1640
+ function lt(e) {
1641
+ const n = (
1642
+ /** @type {Record<string, unknown>} */
1643
+ e
1644
+ );
1645
+ return J(t);
1646
+ function t(r) {
1647
+ const a = (
1648
+ /** @type {Record<string, unknown>} */
1649
+ /** @type {unknown} */
1650
+ r
1651
+ );
1652
+ let o;
1653
+ for (o in e)
1654
+ if (a[o] !== n[o]) return !1;
1655
+ return !0;
1656
+ }
1657
+ }
1658
+ function it(e) {
1659
+ return J(n);
1660
+ function n(t) {
1661
+ return t && t.type === e;
1662
+ }
1663
+ }
1664
+ function J(e) {
1665
+ return n;
1666
+ function n(t, r, a) {
1667
+ return !!(st(t) && e.call(
1668
+ this,
1669
+ t,
1670
+ typeof r == "number" ? r : void 0,
1671
+ a || void 0
1672
+ ));
1673
+ }
1674
+ }
1675
+ function ut() {
1676
+ return !0;
1677
+ }
1678
+ function st(e) {
1679
+ return e !== null && typeof e == "object" && "type" in e;
1680
+ }
1681
+ const rn = [], ct = !0, Te = !1, dt = "skip";
1682
+ function ft(e, n, t, r) {
1683
+ let a;
1684
+ typeof n == "function" && typeof t != "function" ? (r = t, t = n) : a = n;
1685
+ const o = tn(a), l = r ? -1 : 1;
1686
+ i(e, void 0, [])();
1687
+ function i(s, c, d) {
1688
+ const m = (
1689
+ /** @type {Record<string, unknown>} */
1690
+ s && typeof s == "object" ? s : {}
1691
+ );
1692
+ if (typeof m.type == "string") {
1693
+ const k = (
1694
+ // `hast`
1695
+ typeof m.tagName == "string" ? m.tagName : (
1696
+ // `xast`
1697
+ typeof m.name == "string" ? m.name : void 0
1698
+ )
1699
+ );
1700
+ Object.defineProperty(y, "name", {
1701
+ value: "node (" + (s.type + (k ? "<" + k + ">" : "")) + ")"
1702
+ });
1703
+ }
1704
+ return y;
1705
+ function y() {
1706
+ let k = rn, h, f, v;
1707
+ if ((!n || o(s, c, d[d.length - 1] || void 0)) && (k = ht(t(s, d)), k[0] === Te))
1708
+ return k;
1709
+ if ("children" in s && s.children) {
1710
+ const M = (
1711
+ /** @type {UnistParent} */
1712
+ s
1713
+ );
1714
+ if (M.children && k[0] !== dt)
1715
+ for (f = (r ? M.children.length : -1) + l, v = d.concat(M); f > -1 && f < M.children.length; ) {
1716
+ const mn = M.children[f];
1717
+ if (h = i(mn, f, v)(), h[0] === Te)
1718
+ return h;
1719
+ f = typeof h[1] == "number" ? h[1] : f + l;
1720
+ }
1721
+ }
1722
+ return k;
1723
+ }
1724
+ }
1725
+ }
1726
+ function ht(e) {
1727
+ return Array.isArray(e) ? e : typeof e == "number" ? [ct, e] : e == null ? rn : [e];
1728
+ }
1729
+ function ea(e, n, t, r) {
1730
+ let a, o, l;
1731
+ typeof n == "function" && typeof t != "function" ? (o = void 0, l = n, a = t) : (o = n, l = t, a = r), ft(e, o, i, a);
1732
+ function i(s, c) {
1733
+ const d = c[c.length - 1], m = d ? d.children.indexOf(s) : void 0;
1734
+ return l(s, m, d);
1735
+ }
1736
+ }
1737
+ function na(e) {
1738
+ if (e)
1739
+ throw e;
1740
+ }
1741
+ var z = Object.prototype.hasOwnProperty, an = Object.prototype.toString, Re = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, Le = function(n) {
1742
+ return typeof Array.isArray == "function" ? Array.isArray(n) : an.call(n) === "[object Array]";
1743
+ }, _e = function(n) {
1744
+ if (!n || an.call(n) !== "[object Object]")
1745
+ return !1;
1746
+ var t = z.call(n, "constructor"), r = n.constructor && n.constructor.prototype && z.call(n.constructor.prototype, "isPrototypeOf");
1747
+ if (n.constructor && !t && !r)
1748
+ return !1;
1749
+ var a;
1750
+ for (a in n)
1751
+ ;
1752
+ return typeof a > "u" || z.call(n, a);
1753
+ }, Ne = function(n, t) {
1754
+ Re && t.name === "__proto__" ? Re(n, t.name, {
1755
+ enumerable: !0,
1756
+ configurable: !0,
1757
+ value: t.newValue,
1758
+ writable: !0
1759
+ }) : n[t.name] = t.newValue;
1760
+ }, Ie = function(n, t) {
1761
+ if (t === "__proto__")
1762
+ if (z.call(n, t)) {
1763
+ if (Ae)
1764
+ return Ae(n, t).value;
1765
+ } else return;
1766
+ return n[t];
1767
+ }, mt = function e() {
1768
+ var n, t, r, a, o, l, i = arguments[0], s = 1, c = arguments.length, d = !1;
1769
+ for (typeof i == "boolean" && (d = i, i = arguments[1] || {}, s = 2), (i == null || typeof i != "object" && typeof i != "function") && (i = {}); s < c; ++s)
1770
+ if (n = arguments[s], n != null)
1771
+ for (t in n)
1772
+ r = Ie(i, t), a = Ie(n, t), i !== a && (d && a && (_e(a) || (o = Le(a))) ? (o ? (o = !1, l = r && Le(r) ? r : []) : l = r && _e(r) ? r : {}, Ne(i, { name: t, newValue: e(d, l, a) })) : typeof a < "u" && Ne(i, { name: t, newValue: a }));
1773
+ return i;
1774
+ };
1775
+ const ta = /* @__PURE__ */ Je(mt);
1776
+ function ra(e) {
1777
+ if (typeof e != "object" || e === null)
1778
+ return !1;
1779
+ const n = Object.getPrototypeOf(e);
1780
+ return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
1781
+ }
1782
+ function aa() {
1783
+ const e = [], n = { run: t, use: r };
1784
+ return n;
1785
+ function t(...a) {
1786
+ let o = -1;
1787
+ const l = a.pop();
1788
+ if (typeof l != "function")
1789
+ throw new TypeError("Expected function as last argument, not " + l);
1790
+ i(null, ...a);
1791
+ function i(s, ...c) {
1792
+ const d = e[++o];
1793
+ let m = -1;
1794
+ if (s) {
1795
+ l(s);
1796
+ return;
1797
+ }
1798
+ for (; ++m < a.length; )
1799
+ (c[m] === null || c[m] === void 0) && (c[m] = a[m]);
1800
+ a = c, d ? gt(d, i)(...c) : l(null, ...c);
1801
+ }
1802
+ }
1803
+ function r(a) {
1804
+ if (typeof a != "function")
1805
+ throw new TypeError(
1806
+ "Expected `middelware` to be a function, not " + a
1807
+ );
1808
+ return e.push(a), n;
1809
+ }
1810
+ }
1811
+ function gt(e, n) {
1812
+ let t;
1813
+ return r;
1814
+ function r(...l) {
1815
+ const i = e.length > l.length;
1816
+ let s;
1817
+ i && l.push(a);
1818
+ try {
1819
+ s = e.apply(this, l);
1820
+ } catch (c) {
1821
+ const d = (
1822
+ /** @type {Error} */
1823
+ c
1824
+ );
1825
+ if (i && t)
1826
+ throw d;
1827
+ return a(d);
1828
+ }
1829
+ i || (s && s.then && typeof s.then == "function" ? s.then(o, a) : s instanceof Error ? a(s) : o(s));
1830
+ }
1831
+ function a(l, ...i) {
1832
+ t || (t = !0, n(l, ...i));
1833
+ }
1834
+ function o(l) {
1835
+ a(null, l);
1836
+ }
1837
+ }
1838
+ const on = 6048e5, yt = 864e5, ln = 6e4, un = 36e5, We = Symbol.for("constructDateFrom");
1839
+ function x(e, n) {
1840
+ return typeof e == "function" ? e(n) : e && typeof e == "object" && We in e ? e[We](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
1841
+ }
1842
+ function w(e, n) {
1843
+ return x(n || e, e);
1844
+ }
1845
+ function pt(e, n, t) {
1846
+ const r = w(e, t == null ? void 0 : t.in);
1847
+ return isNaN(n) ? x(e, NaN) : (n && r.setDate(r.getDate() + n), r);
1848
+ }
1849
+ function wt(e, n, t) {
1850
+ const r = w(e, t == null ? void 0 : t.in);
1851
+ if (isNaN(n)) return x(e, NaN);
1852
+ if (!n)
1853
+ return r;
1854
+ const a = r.getDate(), o = x(e, r.getTime());
1855
+ o.setMonth(r.getMonth() + n + 1, 0);
1856
+ const l = o.getDate();
1857
+ return a >= l ? o : (r.setFullYear(
1858
+ o.getFullYear(),
1859
+ o.getMonth(),
1860
+ a
1861
+ ), r);
1862
+ }
1863
+ let bt = {};
1864
+ function K() {
1865
+ return bt;
1866
+ }
1867
+ function j(e, n) {
1868
+ var i, s, c, d;
1869
+ const t = K(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((s = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : s.weekStartsOn) ?? t.weekStartsOn ?? ((d = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, a = w(e, n == null ? void 0 : n.in), o = a.getDay(), l = (o < r ? 7 : 0) + o - r;
1870
+ return a.setDate(a.getDate() - l), a.setHours(0, 0, 0, 0), a;
1871
+ }
1872
+ function V(e, n) {
1873
+ return j(e, { ...n, weekStartsOn: 1 });
1874
+ }
1875
+ function sn(e, n) {
1876
+ const t = w(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = x(t, 0);
1877
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
1878
+ const o = V(a), l = x(t, 0);
1879
+ l.setFullYear(r, 0, 4), l.setHours(0, 0, 0, 0);
1880
+ const i = V(l);
1881
+ return t.getTime() >= o.getTime() ? r + 1 : t.getTime() >= i.getTime() ? r : r - 1;
1882
+ }
1883
+ function Ye(e) {
1884
+ const n = w(e), t = new Date(
1885
+ Date.UTC(
1886
+ n.getFullYear(),
1887
+ n.getMonth(),
1888
+ n.getDate(),
1889
+ n.getHours(),
1890
+ n.getMinutes(),
1891
+ n.getSeconds(),
1892
+ n.getMilliseconds()
1893
+ )
1894
+ );
1895
+ return t.setUTCFullYear(n.getFullYear()), +e - +t;
1896
+ }
1897
+ function cn(e, ...n) {
1898
+ const t = x.bind(
1899
+ null,
1900
+ n.find((r) => typeof r == "object")
1901
+ );
1902
+ return n.map(t);
1903
+ }
1904
+ function G(e, n) {
1905
+ const t = w(e, n == null ? void 0 : n.in);
1906
+ return t.setHours(0, 0, 0, 0), t;
1907
+ }
1908
+ function vt(e, n, t) {
1909
+ const [r, a] = cn(
1910
+ t == null ? void 0 : t.in,
1911
+ e,
1912
+ n
1913
+ ), o = G(r), l = G(a), i = +o - Ye(o), s = +l - Ye(l);
1914
+ return Math.round((i - s) / yt);
1915
+ }
1916
+ function kt(e, n) {
1917
+ const t = sn(e, n), r = x(e, 0);
1918
+ return r.setFullYear(t, 0, 4), r.setHours(0, 0, 0, 0), V(r);
1919
+ }
1920
+ function oa(e, n, t) {
1921
+ const [r, a] = cn(
1922
+ t == null ? void 0 : t.in,
1923
+ e,
1924
+ n
1925
+ );
1926
+ return +G(r) == +G(a);
1927
+ }
1928
+ function Ot(e) {
1929
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1930
+ }
1931
+ function Pt(e) {
1932
+ return !(!Ot(e) && typeof e != "number" || isNaN(+w(e)));
1933
+ }
1934
+ function la(e, n) {
1935
+ const t = w(e, n == null ? void 0 : n.in);
1936
+ return t.setHours(23, 59, 59, 999), t;
1937
+ }
1938
+ function ia(e, n) {
1939
+ const t = w(e, n == null ? void 0 : n.in), r = t.getMonth();
1940
+ return t.setFullYear(t.getFullYear(), r + 1, 0), t.setHours(23, 59, 59, 999), t;
1941
+ }
1942
+ function ua(e, n) {
1943
+ const t = w(e, n == null ? void 0 : n.in);
1944
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
1945
+ }
1946
+ function Dt(e, n) {
1947
+ const t = w(e, n == null ? void 0 : n.in);
1948
+ return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
1949
+ }
1950
+ const xt = {
1951
+ lessThanXSeconds: {
1952
+ one: "less than a second",
1953
+ other: "less than {{count}} seconds"
1954
+ },
1955
+ xSeconds: {
1956
+ one: "1 second",
1957
+ other: "{{count}} seconds"
1958
+ },
1959
+ halfAMinute: "half a minute",
1960
+ lessThanXMinutes: {
1961
+ one: "less than a minute",
1962
+ other: "less than {{count}} minutes"
1963
+ },
1964
+ xMinutes: {
1965
+ one: "1 minute",
1966
+ other: "{{count}} minutes"
1967
+ },
1968
+ aboutXHours: {
1969
+ one: "about 1 hour",
1970
+ other: "about {{count}} hours"
1971
+ },
1972
+ xHours: {
1973
+ one: "1 hour",
1974
+ other: "{{count}} hours"
1975
+ },
1976
+ xDays: {
1977
+ one: "1 day",
1978
+ other: "{{count}} days"
1979
+ },
1980
+ aboutXWeeks: {
1981
+ one: "about 1 week",
1982
+ other: "about {{count}} weeks"
1983
+ },
1984
+ xWeeks: {
1985
+ one: "1 week",
1986
+ other: "{{count}} weeks"
1987
+ },
1988
+ aboutXMonths: {
1989
+ one: "about 1 month",
1990
+ other: "about {{count}} months"
1991
+ },
1992
+ xMonths: {
1993
+ one: "1 month",
1994
+ other: "{{count}} months"
1995
+ },
1996
+ aboutXYears: {
1997
+ one: "about 1 year",
1998
+ other: "about {{count}} years"
1999
+ },
2000
+ xYears: {
2001
+ one: "1 year",
2002
+ other: "{{count}} years"
2003
+ },
2004
+ overXYears: {
2005
+ one: "over 1 year",
2006
+ other: "over {{count}} years"
2007
+ },
2008
+ almostXYears: {
2009
+ one: "almost 1 year",
2010
+ other: "almost {{count}} years"
2011
+ }
2012
+ }, St = (e, n, t) => {
2013
+ let r;
2014
+ const a = xt[e];
2015
+ return typeof a == "string" ? r = a : n === 1 ? r = a.one : r = a.other.replace("{{count}}", n.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
2016
+ };
2017
+ function ee(e) {
2018
+ return (n = {}) => {
2019
+ const t = n.width ? String(n.width) : e.defaultWidth;
2020
+ return e.formats[t] || e.formats[e.defaultWidth];
2021
+ };
2022
+ }
2023
+ const Mt = {
2024
+ full: "EEEE, MMMM do, y",
2025
+ long: "MMMM do, y",
2026
+ medium: "MMM d, y",
2027
+ short: "MM/dd/yyyy"
2028
+ }, Ct = {
2029
+ full: "h:mm:ss a zzzz",
2030
+ long: "h:mm:ss a z",
2031
+ medium: "h:mm:ss a",
2032
+ short: "h:mm a"
2033
+ }, Et = {
2034
+ full: "{{date}} 'at' {{time}}",
2035
+ long: "{{date}} 'at' {{time}}",
2036
+ medium: "{{date}}, {{time}}",
2037
+ short: "{{date}}, {{time}}"
2038
+ }, Tt = {
2039
+ date: ee({
2040
+ formats: Mt,
2041
+ defaultWidth: "full"
2042
+ }),
2043
+ time: ee({
2044
+ formats: Ct,
2045
+ defaultWidth: "full"
2046
+ }),
2047
+ dateTime: ee({
2048
+ formats: Et,
2049
+ defaultWidth: "full"
2050
+ })
2051
+ }, Rt = {
2052
+ lastWeek: "'last' eeee 'at' p",
2053
+ yesterday: "'yesterday at' p",
2054
+ today: "'today at' p",
2055
+ tomorrow: "'tomorrow at' p",
2056
+ nextWeek: "eeee 'at' p",
2057
+ other: "P"
2058
+ }, At = (e, n, t, r) => Rt[e];
2059
+ function I(e) {
2060
+ return (n, t) => {
2061
+ const r = t != null && t.context ? String(t.context) : "standalone";
2062
+ let a;
2063
+ if (r === "formatting" && e.formattingValues) {
2064
+ const l = e.defaultFormattingWidth || e.defaultWidth, i = t != null && t.width ? String(t.width) : l;
2065
+ a = e.formattingValues[i] || e.formattingValues[l];
2066
+ } else {
2067
+ const l = e.defaultWidth, i = t != null && t.width ? String(t.width) : e.defaultWidth;
2068
+ a = e.values[i] || e.values[l];
2069
+ }
2070
+ const o = e.argumentCallback ? e.argumentCallback(n) : n;
2071
+ return a[o];
2072
+ };
2073
+ }
2074
+ const Lt = {
2075
+ narrow: ["B", "A"],
2076
+ abbreviated: ["BC", "AD"],
2077
+ wide: ["Before Christ", "Anno Domini"]
2078
+ }, _t = {
2079
+ narrow: ["1", "2", "3", "4"],
2080
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
2081
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
2082
+ }, Nt = {
2083
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
2084
+ abbreviated: [
2085
+ "Jan",
2086
+ "Feb",
2087
+ "Mar",
2088
+ "Apr",
2089
+ "May",
2090
+ "Jun",
2091
+ "Jul",
2092
+ "Aug",
2093
+ "Sep",
2094
+ "Oct",
2095
+ "Nov",
2096
+ "Dec"
2097
+ ],
2098
+ wide: [
2099
+ "January",
2100
+ "February",
2101
+ "March",
2102
+ "April",
2103
+ "May",
2104
+ "June",
2105
+ "July",
2106
+ "August",
2107
+ "September",
2108
+ "October",
2109
+ "November",
2110
+ "December"
2111
+ ]
2112
+ }, It = {
2113
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
2114
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
2115
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
2116
+ wide: [
2117
+ "Sunday",
2118
+ "Monday",
2119
+ "Tuesday",
2120
+ "Wednesday",
2121
+ "Thursday",
2122
+ "Friday",
2123
+ "Saturday"
2124
+ ]
2125
+ }, Wt = {
2126
+ narrow: {
2127
+ am: "a",
2128
+ pm: "p",
2129
+ midnight: "mi",
2130
+ noon: "n",
2131
+ morning: "morning",
2132
+ afternoon: "afternoon",
2133
+ evening: "evening",
2134
+ night: "night"
2135
+ },
2136
+ abbreviated: {
2137
+ am: "AM",
2138
+ pm: "PM",
2139
+ midnight: "midnight",
2140
+ noon: "noon",
2141
+ morning: "morning",
2142
+ afternoon: "afternoon",
2143
+ evening: "evening",
2144
+ night: "night"
2145
+ },
2146
+ wide: {
2147
+ am: "a.m.",
2148
+ pm: "p.m.",
2149
+ midnight: "midnight",
2150
+ noon: "noon",
2151
+ morning: "morning",
2152
+ afternoon: "afternoon",
2153
+ evening: "evening",
2154
+ night: "night"
2155
+ }
2156
+ }, Yt = {
2157
+ narrow: {
2158
+ am: "a",
2159
+ pm: "p",
2160
+ midnight: "mi",
2161
+ noon: "n",
2162
+ morning: "in the morning",
2163
+ afternoon: "in the afternoon",
2164
+ evening: "in the evening",
2165
+ night: "at night"
2166
+ },
2167
+ abbreviated: {
2168
+ am: "AM",
2169
+ pm: "PM",
2170
+ midnight: "midnight",
2171
+ noon: "noon",
2172
+ morning: "in the morning",
2173
+ afternoon: "in the afternoon",
2174
+ evening: "in the evening",
2175
+ night: "at night"
2176
+ },
2177
+ wide: {
2178
+ am: "a.m.",
2179
+ pm: "p.m.",
2180
+ midnight: "midnight",
2181
+ noon: "noon",
2182
+ morning: "in the morning",
2183
+ afternoon: "in the afternoon",
2184
+ evening: "in the evening",
2185
+ night: "at night"
2186
+ }
2187
+ }, Ft = (e, n) => {
2188
+ const t = Number(e), r = t % 100;
2189
+ if (r > 20 || r < 10)
2190
+ switch (r % 10) {
2191
+ case 1:
2192
+ return t + "st";
2193
+ case 2:
2194
+ return t + "nd";
2195
+ case 3:
2196
+ return t + "rd";
2197
+ }
2198
+ return t + "th";
2199
+ }, jt = {
2200
+ ordinalNumber: Ft,
2201
+ era: I({
2202
+ values: Lt,
2203
+ defaultWidth: "wide"
2204
+ }),
2205
+ quarter: I({
2206
+ values: _t,
2207
+ defaultWidth: "wide",
2208
+ argumentCallback: (e) => e - 1
2209
+ }),
2210
+ month: I({
2211
+ values: Nt,
2212
+ defaultWidth: "wide"
2213
+ }),
2214
+ day: I({
2215
+ values: It,
2216
+ defaultWidth: "wide"
2217
+ }),
2218
+ dayPeriod: I({
2219
+ values: Wt,
2220
+ defaultWidth: "wide",
2221
+ formattingValues: Yt,
2222
+ defaultFormattingWidth: "wide"
2223
+ })
2224
+ };
2225
+ function W(e) {
2226
+ return (n, t = {}) => {
2227
+ const r = t.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = n.match(a);
2228
+ if (!o)
2229
+ return null;
2230
+ const l = o[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(i) ? Ut(i, (m) => m.test(l)) : (
2231
+ // [TODO] -- I challenge you to fix the type
2232
+ Ht(i, (m) => m.test(l))
2233
+ );
2234
+ let c;
2235
+ c = e.valueCallback ? e.valueCallback(s) : s, c = t.valueCallback ? (
2236
+ // [TODO] -- I challenge you to fix the type
2237
+ t.valueCallback(c)
2238
+ ) : c;
2239
+ const d = n.slice(l.length);
2240
+ return { value: c, rest: d };
2241
+ };
2242
+ }
2243
+ function Ht(e, n) {
2244
+ for (const t in e)
2245
+ if (Object.prototype.hasOwnProperty.call(e, t) && n(e[t]))
2246
+ return t;
2247
+ }
2248
+ function Ut(e, n) {
2249
+ for (let t = 0; t < e.length; t++)
2250
+ if (n(e[t]))
2251
+ return t;
2252
+ }
2253
+ function Bt(e) {
2254
+ return (n, t = {}) => {
2255
+ const r = n.match(e.matchPattern);
2256
+ if (!r) return null;
2257
+ const a = r[0], o = n.match(e.parsePattern);
2258
+ if (!o) return null;
2259
+ let l = e.valueCallback ? e.valueCallback(o[0]) : o[0];
2260
+ l = t.valueCallback ? t.valueCallback(l) : l;
2261
+ const i = n.slice(a.length);
2262
+ return { value: l, rest: i };
2263
+ };
2264
+ }
2265
+ const zt = /^(\d+)(th|st|nd|rd)?/i, qt = /\d+/i, Xt = {
2266
+ narrow: /^(b|a)/i,
2267
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
2268
+ wide: /^(before christ|before common era|anno domini|common era)/i
2269
+ }, Vt = {
2270
+ any: [/^b/i, /^(a|c)/i]
2271
+ }, Gt = {
2272
+ narrow: /^[1234]/i,
2273
+ abbreviated: /^q[1234]/i,
2274
+ wide: /^[1234](th|st|nd|rd)? quarter/i
2275
+ }, $t = {
2276
+ any: [/1/i, /2/i, /3/i, /4/i]
2277
+ }, Qt = {
2278
+ narrow: /^[jfmasond]/i,
2279
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
2280
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
2281
+ }, Jt = {
2282
+ narrow: [
2283
+ /^j/i,
2284
+ /^f/i,
2285
+ /^m/i,
2286
+ /^a/i,
2287
+ /^m/i,
2288
+ /^j/i,
2289
+ /^j/i,
2290
+ /^a/i,
2291
+ /^s/i,
2292
+ /^o/i,
2293
+ /^n/i,
2294
+ /^d/i
2295
+ ],
2296
+ any: [
2297
+ /^ja/i,
2298
+ /^f/i,
2299
+ /^mar/i,
2300
+ /^ap/i,
2301
+ /^may/i,
2302
+ /^jun/i,
2303
+ /^jul/i,
2304
+ /^au/i,
2305
+ /^s/i,
2306
+ /^o/i,
2307
+ /^n/i,
2308
+ /^d/i
2309
+ ]
2310
+ }, Kt = {
2311
+ narrow: /^[smtwf]/i,
2312
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
2313
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
2314
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
2315
+ }, Zt = {
2316
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
2317
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
2318
+ }, er = {
2319
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
2320
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
2321
+ }, nr = {
2322
+ any: {
2323
+ am: /^a/i,
2324
+ pm: /^p/i,
2325
+ midnight: /^mi/i,
2326
+ noon: /^no/i,
2327
+ morning: /morning/i,
2328
+ afternoon: /afternoon/i,
2329
+ evening: /evening/i,
2330
+ night: /night/i
2331
+ }
2332
+ }, tr = {
2333
+ ordinalNumber: Bt({
2334
+ matchPattern: zt,
2335
+ parsePattern: qt,
2336
+ valueCallback: (e) => parseInt(e, 10)
2337
+ }),
2338
+ era: W({
2339
+ matchPatterns: Xt,
2340
+ defaultMatchWidth: "wide",
2341
+ parsePatterns: Vt,
2342
+ defaultParseWidth: "any"
2343
+ }),
2344
+ quarter: W({
2345
+ matchPatterns: Gt,
2346
+ defaultMatchWidth: "wide",
2347
+ parsePatterns: $t,
2348
+ defaultParseWidth: "any",
2349
+ valueCallback: (e) => e + 1
2350
+ }),
2351
+ month: W({
2352
+ matchPatterns: Qt,
2353
+ defaultMatchWidth: "wide",
2354
+ parsePatterns: Jt,
2355
+ defaultParseWidth: "any"
2356
+ }),
2357
+ day: W({
2358
+ matchPatterns: Kt,
2359
+ defaultMatchWidth: "wide",
2360
+ parsePatterns: Zt,
2361
+ defaultParseWidth: "any"
2362
+ }),
2363
+ dayPeriod: W({
2364
+ matchPatterns: er,
2365
+ defaultMatchWidth: "any",
2366
+ parsePatterns: nr,
2367
+ defaultParseWidth: "any"
2368
+ })
2369
+ }, rr = {
2370
+ code: "en-US",
2371
+ formatDistance: St,
2372
+ formatLong: Tt,
2373
+ formatRelative: At,
2374
+ localize: jt,
2375
+ match: tr,
2376
+ options: {
2377
+ weekStartsOn: 0,
2378
+ firstWeekContainsDate: 1
2379
+ }
2380
+ };
2381
+ function ar(e, n) {
2382
+ const t = w(e, n == null ? void 0 : n.in);
2383
+ return vt(t, Dt(t)) + 1;
2384
+ }
2385
+ function or(e, n) {
2386
+ const t = w(e, n == null ? void 0 : n.in), r = +V(t) - +kt(t);
2387
+ return Math.round(r / on) + 1;
2388
+ }
2389
+ function dn(e, n) {
2390
+ var d, m, y, k;
2391
+ const t = w(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = K(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((k = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = x((n == null ? void 0 : n.in) || e, 0);
2392
+ l.setFullYear(r + 1, 0, o), l.setHours(0, 0, 0, 0);
2393
+ const i = j(l, n), s = x((n == null ? void 0 : n.in) || e, 0);
2394
+ s.setFullYear(r, 0, o), s.setHours(0, 0, 0, 0);
2395
+ const c = j(s, n);
2396
+ return +t >= +i ? r + 1 : +t >= +c ? r : r - 1;
2397
+ }
2398
+ function lr(e, n) {
2399
+ var i, s, c, d;
2400
+ const t = K(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((s = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (c = t.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, a = dn(e, n), o = x((n == null ? void 0 : n.in) || e, 0);
2401
+ return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), j(o, n);
2402
+ }
2403
+ function ir(e, n) {
2404
+ const t = w(e, n == null ? void 0 : n.in), r = +j(t, n) - +lr(t, n);
2405
+ return Math.round(r / on) + 1;
2406
+ }
2407
+ function p(e, n) {
2408
+ const t = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(n, "0");
2409
+ return t + r;
2410
+ }
2411
+ const S = {
2412
+ // Year
2413
+ y(e, n) {
2414
+ const t = e.getFullYear(), r = t > 0 ? t : 1 - t;
2415
+ return p(n === "yy" ? r % 100 : r, n.length);
2416
+ },
2417
+ // Month
2418
+ M(e, n) {
2419
+ const t = e.getMonth();
2420
+ return n === "M" ? String(t + 1) : p(t + 1, 2);
2421
+ },
2422
+ // Day of the month
2423
+ d(e, n) {
2424
+ return p(e.getDate(), n.length);
2425
+ },
2426
+ // AM or PM
2427
+ a(e, n) {
2428
+ const t = e.getHours() / 12 >= 1 ? "pm" : "am";
2429
+ switch (n) {
2430
+ case "a":
2431
+ case "aa":
2432
+ return t.toUpperCase();
2433
+ case "aaa":
2434
+ return t;
2435
+ case "aaaaa":
2436
+ return t[0];
2437
+ case "aaaa":
2438
+ default:
2439
+ return t === "am" ? "a.m." : "p.m.";
2440
+ }
2441
+ },
2442
+ // Hour [1-12]
2443
+ h(e, n) {
2444
+ return p(e.getHours() % 12 || 12, n.length);
2445
+ },
2446
+ // Hour [0-23]
2447
+ H(e, n) {
2448
+ return p(e.getHours(), n.length);
2449
+ },
2450
+ // Minute
2451
+ m(e, n) {
2452
+ return p(e.getMinutes(), n.length);
2453
+ },
2454
+ // Second
2455
+ s(e, n) {
2456
+ return p(e.getSeconds(), n.length);
2457
+ },
2458
+ // Fraction of second
2459
+ S(e, n) {
2460
+ const t = n.length, r = e.getMilliseconds(), a = Math.trunc(
2461
+ r * Math.pow(10, t - 3)
2462
+ );
2463
+ return p(a, n.length);
2464
+ }
2465
+ }, A = {
2466
+ midnight: "midnight",
2467
+ noon: "noon",
2468
+ morning: "morning",
2469
+ afternoon: "afternoon",
2470
+ evening: "evening",
2471
+ night: "night"
2472
+ }, Fe = {
2473
+ // Era
2474
+ G: function(e, n, t) {
2475
+ const r = e.getFullYear() > 0 ? 1 : 0;
2476
+ switch (n) {
2477
+ case "G":
2478
+ case "GG":
2479
+ case "GGG":
2480
+ return t.era(r, { width: "abbreviated" });
2481
+ case "GGGGG":
2482
+ return t.era(r, { width: "narrow" });
2483
+ case "GGGG":
2484
+ default:
2485
+ return t.era(r, { width: "wide" });
2486
+ }
2487
+ },
2488
+ // Year
2489
+ y: function(e, n, t) {
2490
+ if (n === "yo") {
2491
+ const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
2492
+ return t.ordinalNumber(a, { unit: "year" });
2493
+ }
2494
+ return S.y(e, n);
2495
+ },
2496
+ // Local week-numbering year
2497
+ Y: function(e, n, t, r) {
2498
+ const a = dn(e, r), o = a > 0 ? a : 1 - a;
2499
+ if (n === "YY") {
2500
+ const l = o % 100;
2501
+ return p(l, 2);
2502
+ }
2503
+ return n === "Yo" ? t.ordinalNumber(o, { unit: "year" }) : p(o, n.length);
2504
+ },
2505
+ // ISO week-numbering year
2506
+ R: function(e, n) {
2507
+ const t = sn(e);
2508
+ return p(t, n.length);
2509
+ },
2510
+ // Extended year. This is a single number designating the year of this calendar system.
2511
+ // The main difference between `y` and `u` localizers are B.C. years:
2512
+ // | Year | `y` | `u` |
2513
+ // |------|-----|-----|
2514
+ // | AC 1 | 1 | 1 |
2515
+ // | BC 1 | 1 | 0 |
2516
+ // | BC 2 | 2 | -1 |
2517
+ // Also `yy` always returns the last two digits of a year,
2518
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
2519
+ u: function(e, n) {
2520
+ const t = e.getFullYear();
2521
+ return p(t, n.length);
2522
+ },
2523
+ // Quarter
2524
+ Q: function(e, n, t) {
2525
+ const r = Math.ceil((e.getMonth() + 1) / 3);
2526
+ switch (n) {
2527
+ case "Q":
2528
+ return String(r);
2529
+ case "QQ":
2530
+ return p(r, 2);
2531
+ case "Qo":
2532
+ return t.ordinalNumber(r, { unit: "quarter" });
2533
+ case "QQQ":
2534
+ return t.quarter(r, {
2535
+ width: "abbreviated",
2536
+ context: "formatting"
2537
+ });
2538
+ case "QQQQQ":
2539
+ return t.quarter(r, {
2540
+ width: "narrow",
2541
+ context: "formatting"
2542
+ });
2543
+ case "QQQQ":
2544
+ default:
2545
+ return t.quarter(r, {
2546
+ width: "wide",
2547
+ context: "formatting"
2548
+ });
2549
+ }
2550
+ },
2551
+ // Stand-alone quarter
2552
+ q: function(e, n, t) {
2553
+ const r = Math.ceil((e.getMonth() + 1) / 3);
2554
+ switch (n) {
2555
+ case "q":
2556
+ return String(r);
2557
+ case "qq":
2558
+ return p(r, 2);
2559
+ case "qo":
2560
+ return t.ordinalNumber(r, { unit: "quarter" });
2561
+ case "qqq":
2562
+ return t.quarter(r, {
2563
+ width: "abbreviated",
2564
+ context: "standalone"
2565
+ });
2566
+ case "qqqqq":
2567
+ return t.quarter(r, {
2568
+ width: "narrow",
2569
+ context: "standalone"
2570
+ });
2571
+ case "qqqq":
2572
+ default:
2573
+ return t.quarter(r, {
2574
+ width: "wide",
2575
+ context: "standalone"
2576
+ });
2577
+ }
2578
+ },
2579
+ // Month
2580
+ M: function(e, n, t) {
2581
+ const r = e.getMonth();
2582
+ switch (n) {
2583
+ case "M":
2584
+ case "MM":
2585
+ return S.M(e, n);
2586
+ case "Mo":
2587
+ return t.ordinalNumber(r + 1, { unit: "month" });
2588
+ case "MMM":
2589
+ return t.month(r, {
2590
+ width: "abbreviated",
2591
+ context: "formatting"
2592
+ });
2593
+ case "MMMMM":
2594
+ return t.month(r, {
2595
+ width: "narrow",
2596
+ context: "formatting"
2597
+ });
2598
+ case "MMMM":
2599
+ default:
2600
+ return t.month(r, { width: "wide", context: "formatting" });
2601
+ }
2602
+ },
2603
+ // Stand-alone month
2604
+ L: function(e, n, t) {
2605
+ const r = e.getMonth();
2606
+ switch (n) {
2607
+ case "L":
2608
+ return String(r + 1);
2609
+ case "LL":
2610
+ return p(r + 1, 2);
2611
+ case "Lo":
2612
+ return t.ordinalNumber(r + 1, { unit: "month" });
2613
+ case "LLL":
2614
+ return t.month(r, {
2615
+ width: "abbreviated",
2616
+ context: "standalone"
2617
+ });
2618
+ case "LLLLL":
2619
+ return t.month(r, {
2620
+ width: "narrow",
2621
+ context: "standalone"
2622
+ });
2623
+ case "LLLL":
2624
+ default:
2625
+ return t.month(r, { width: "wide", context: "standalone" });
2626
+ }
2627
+ },
2628
+ // Local week of year
2629
+ w: function(e, n, t, r) {
2630
+ const a = ir(e, r);
2631
+ return n === "wo" ? t.ordinalNumber(a, { unit: "week" }) : p(a, n.length);
2632
+ },
2633
+ // ISO week of year
2634
+ I: function(e, n, t) {
2635
+ const r = or(e);
2636
+ return n === "Io" ? t.ordinalNumber(r, { unit: "week" }) : p(r, n.length);
2637
+ },
2638
+ // Day of the month
2639
+ d: function(e, n, t) {
2640
+ return n === "do" ? t.ordinalNumber(e.getDate(), { unit: "date" }) : S.d(e, n);
2641
+ },
2642
+ // Day of year
2643
+ D: function(e, n, t) {
2644
+ const r = ar(e);
2645
+ return n === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : p(r, n.length);
2646
+ },
2647
+ // Day of week
2648
+ E: function(e, n, t) {
2649
+ const r = e.getDay();
2650
+ switch (n) {
2651
+ case "E":
2652
+ case "EE":
2653
+ case "EEE":
2654
+ return t.day(r, {
2655
+ width: "abbreviated",
2656
+ context: "formatting"
2657
+ });
2658
+ case "EEEEE":
2659
+ return t.day(r, {
2660
+ width: "narrow",
2661
+ context: "formatting"
2662
+ });
2663
+ case "EEEEEE":
2664
+ return t.day(r, {
2665
+ width: "short",
2666
+ context: "formatting"
2667
+ });
2668
+ case "EEEE":
2669
+ default:
2670
+ return t.day(r, {
2671
+ width: "wide",
2672
+ context: "formatting"
2673
+ });
2674
+ }
2675
+ },
2676
+ // Local day of week
2677
+ e: function(e, n, t, r) {
2678
+ const a = e.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
2679
+ switch (n) {
2680
+ case "e":
2681
+ return String(o);
2682
+ case "ee":
2683
+ return p(o, 2);
2684
+ case "eo":
2685
+ return t.ordinalNumber(o, { unit: "day" });
2686
+ case "eee":
2687
+ return t.day(a, {
2688
+ width: "abbreviated",
2689
+ context: "formatting"
2690
+ });
2691
+ case "eeeee":
2692
+ return t.day(a, {
2693
+ width: "narrow",
2694
+ context: "formatting"
2695
+ });
2696
+ case "eeeeee":
2697
+ return t.day(a, {
2698
+ width: "short",
2699
+ context: "formatting"
2700
+ });
2701
+ case "eeee":
2702
+ default:
2703
+ return t.day(a, {
2704
+ width: "wide",
2705
+ context: "formatting"
2706
+ });
2707
+ }
2708
+ },
2709
+ // Stand-alone local day of week
2710
+ c: function(e, n, t, r) {
2711
+ const a = e.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
2712
+ switch (n) {
2713
+ case "c":
2714
+ return String(o);
2715
+ case "cc":
2716
+ return p(o, n.length);
2717
+ case "co":
2718
+ return t.ordinalNumber(o, { unit: "day" });
2719
+ case "ccc":
2720
+ return t.day(a, {
2721
+ width: "abbreviated",
2722
+ context: "standalone"
2723
+ });
2724
+ case "ccccc":
2725
+ return t.day(a, {
2726
+ width: "narrow",
2727
+ context: "standalone"
2728
+ });
2729
+ case "cccccc":
2730
+ return t.day(a, {
2731
+ width: "short",
2732
+ context: "standalone"
2733
+ });
2734
+ case "cccc":
2735
+ default:
2736
+ return t.day(a, {
2737
+ width: "wide",
2738
+ context: "standalone"
2739
+ });
2740
+ }
2741
+ },
2742
+ // ISO day of week
2743
+ i: function(e, n, t) {
2744
+ const r = e.getDay(), a = r === 0 ? 7 : r;
2745
+ switch (n) {
2746
+ case "i":
2747
+ return String(a);
2748
+ case "ii":
2749
+ return p(a, n.length);
2750
+ case "io":
2751
+ return t.ordinalNumber(a, { unit: "day" });
2752
+ case "iii":
2753
+ return t.day(r, {
2754
+ width: "abbreviated",
2755
+ context: "formatting"
2756
+ });
2757
+ case "iiiii":
2758
+ return t.day(r, {
2759
+ width: "narrow",
2760
+ context: "formatting"
2761
+ });
2762
+ case "iiiiii":
2763
+ return t.day(r, {
2764
+ width: "short",
2765
+ context: "formatting"
2766
+ });
2767
+ case "iiii":
2768
+ default:
2769
+ return t.day(r, {
2770
+ width: "wide",
2771
+ context: "formatting"
2772
+ });
2773
+ }
2774
+ },
2775
+ // AM or PM
2776
+ a: function(e, n, t) {
2777
+ const a = e.getHours() / 12 >= 1 ? "pm" : "am";
2778
+ switch (n) {
2779
+ case "a":
2780
+ case "aa":
2781
+ return t.dayPeriod(a, {
2782
+ width: "abbreviated",
2783
+ context: "formatting"
2784
+ });
2785
+ case "aaa":
2786
+ return t.dayPeriod(a, {
2787
+ width: "abbreviated",
2788
+ context: "formatting"
2789
+ }).toLowerCase();
2790
+ case "aaaaa":
2791
+ return t.dayPeriod(a, {
2792
+ width: "narrow",
2793
+ context: "formatting"
2794
+ });
2795
+ case "aaaa":
2796
+ default:
2797
+ return t.dayPeriod(a, {
2798
+ width: "wide",
2799
+ context: "formatting"
2800
+ });
2801
+ }
2802
+ },
2803
+ // AM, PM, midnight, noon
2804
+ b: function(e, n, t) {
2805
+ const r = e.getHours();
2806
+ let a;
2807
+ switch (r === 12 ? a = A.noon : r === 0 ? a = A.midnight : a = r / 12 >= 1 ? "pm" : "am", n) {
2808
+ case "b":
2809
+ case "bb":
2810
+ return t.dayPeriod(a, {
2811
+ width: "abbreviated",
2812
+ context: "formatting"
2813
+ });
2814
+ case "bbb":
2815
+ return t.dayPeriod(a, {
2816
+ width: "abbreviated",
2817
+ context: "formatting"
2818
+ }).toLowerCase();
2819
+ case "bbbbb":
2820
+ return t.dayPeriod(a, {
2821
+ width: "narrow",
2822
+ context: "formatting"
2823
+ });
2824
+ case "bbbb":
2825
+ default:
2826
+ return t.dayPeriod(a, {
2827
+ width: "wide",
2828
+ context: "formatting"
2829
+ });
2830
+ }
2831
+ },
2832
+ // in the morning, in the afternoon, in the evening, at night
2833
+ B: function(e, n, t) {
2834
+ const r = e.getHours();
2835
+ let a;
2836
+ switch (r >= 17 ? a = A.evening : r >= 12 ? a = A.afternoon : r >= 4 ? a = A.morning : a = A.night, n) {
2837
+ case "B":
2838
+ case "BB":
2839
+ case "BBB":
2840
+ return t.dayPeriod(a, {
2841
+ width: "abbreviated",
2842
+ context: "formatting"
2843
+ });
2844
+ case "BBBBB":
2845
+ return t.dayPeriod(a, {
2846
+ width: "narrow",
2847
+ context: "formatting"
2848
+ });
2849
+ case "BBBB":
2850
+ default:
2851
+ return t.dayPeriod(a, {
2852
+ width: "wide",
2853
+ context: "formatting"
2854
+ });
2855
+ }
2856
+ },
2857
+ // Hour [1-12]
2858
+ h: function(e, n, t) {
2859
+ if (n === "ho") {
2860
+ let r = e.getHours() % 12;
2861
+ return r === 0 && (r = 12), t.ordinalNumber(r, { unit: "hour" });
2862
+ }
2863
+ return S.h(e, n);
2864
+ },
2865
+ // Hour [0-23]
2866
+ H: function(e, n, t) {
2867
+ return n === "Ho" ? t.ordinalNumber(e.getHours(), { unit: "hour" }) : S.H(e, n);
2868
+ },
2869
+ // Hour [0-11]
2870
+ K: function(e, n, t) {
2871
+ const r = e.getHours() % 12;
2872
+ return n === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : p(r, n.length);
2873
+ },
2874
+ // Hour [1-24]
2875
+ k: function(e, n, t) {
2876
+ let r = e.getHours();
2877
+ return r === 0 && (r = 24), n === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : p(r, n.length);
2878
+ },
2879
+ // Minute
2880
+ m: function(e, n, t) {
2881
+ return n === "mo" ? t.ordinalNumber(e.getMinutes(), { unit: "minute" }) : S.m(e, n);
2882
+ },
2883
+ // Second
2884
+ s: function(e, n, t) {
2885
+ return n === "so" ? t.ordinalNumber(e.getSeconds(), { unit: "second" }) : S.s(e, n);
2886
+ },
2887
+ // Fraction of second
2888
+ S: function(e, n) {
2889
+ return S.S(e, n);
2890
+ },
2891
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2892
+ X: function(e, n, t) {
2893
+ const r = e.getTimezoneOffset();
2894
+ if (r === 0)
2895
+ return "Z";
2896
+ switch (n) {
2897
+ case "X":
2898
+ return He(r);
2899
+ case "XXXX":
2900
+ case "XX":
2901
+ return C(r);
2902
+ case "XXXXX":
2903
+ case "XXX":
2904
+ default:
2905
+ return C(r, ":");
2906
+ }
2907
+ },
2908
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
2909
+ x: function(e, n, t) {
2910
+ const r = e.getTimezoneOffset();
2911
+ switch (n) {
2912
+ case "x":
2913
+ return He(r);
2914
+ case "xxxx":
2915
+ case "xx":
2916
+ return C(r);
2917
+ case "xxxxx":
2918
+ case "xxx":
2919
+ default:
2920
+ return C(r, ":");
2921
+ }
2922
+ },
2923
+ // Timezone (GMT)
2924
+ O: function(e, n, t) {
2925
+ const r = e.getTimezoneOffset();
2926
+ switch (n) {
2927
+ case "O":
2928
+ case "OO":
2929
+ case "OOO":
2930
+ return "GMT" + je(r, ":");
2931
+ case "OOOO":
2932
+ default:
2933
+ return "GMT" + C(r, ":");
2934
+ }
2935
+ },
2936
+ // Timezone (specific non-location)
2937
+ z: function(e, n, t) {
2938
+ const r = e.getTimezoneOffset();
2939
+ switch (n) {
2940
+ case "z":
2941
+ case "zz":
2942
+ case "zzz":
2943
+ return "GMT" + je(r, ":");
2944
+ case "zzzz":
2945
+ default:
2946
+ return "GMT" + C(r, ":");
2947
+ }
2948
+ },
2949
+ // Seconds timestamp
2950
+ t: function(e, n, t) {
2951
+ const r = Math.trunc(+e / 1e3);
2952
+ return p(r, n.length);
2953
+ },
2954
+ // Milliseconds timestamp
2955
+ T: function(e, n, t) {
2956
+ return p(+e, n.length);
2957
+ }
2958
+ };
2959
+ function je(e, n = "") {
2960
+ const t = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), o = r % 60;
2961
+ return o === 0 ? t + String(a) : t + String(a) + n + p(o, 2);
2962
+ }
2963
+ function He(e, n) {
2964
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + p(Math.abs(e) / 60, 2) : C(e, n);
2965
+ }
2966
+ function C(e, n = "") {
2967
+ const t = e > 0 ? "-" : "+", r = Math.abs(e), a = p(Math.trunc(r / 60), 2), o = p(r % 60, 2);
2968
+ return t + a + n + o;
2969
+ }
2970
+ const Ue = (e, n) => {
2971
+ switch (e) {
2972
+ case "P":
2973
+ return n.date({ width: "short" });
2974
+ case "PP":
2975
+ return n.date({ width: "medium" });
2976
+ case "PPP":
2977
+ return n.date({ width: "long" });
2978
+ case "PPPP":
2979
+ default:
2980
+ return n.date({ width: "full" });
2981
+ }
2982
+ }, fn = (e, n) => {
2983
+ switch (e) {
2984
+ case "p":
2985
+ return n.time({ width: "short" });
2986
+ case "pp":
2987
+ return n.time({ width: "medium" });
2988
+ case "ppp":
2989
+ return n.time({ width: "long" });
2990
+ case "pppp":
2991
+ default:
2992
+ return n.time({ width: "full" });
2993
+ }
2994
+ }, ur = (e, n) => {
2995
+ const t = e.match(/(P+)(p+)?/) || [], r = t[1], a = t[2];
2996
+ if (!a)
2997
+ return Ue(e, n);
2998
+ let o;
2999
+ switch (r) {
3000
+ case "P":
3001
+ o = n.dateTime({ width: "short" });
3002
+ break;
3003
+ case "PP":
3004
+ o = n.dateTime({ width: "medium" });
3005
+ break;
3006
+ case "PPP":
3007
+ o = n.dateTime({ width: "long" });
3008
+ break;
3009
+ case "PPPP":
3010
+ default:
3011
+ o = n.dateTime({ width: "full" });
3012
+ break;
3013
+ }
3014
+ return o.replace("{{date}}", Ue(r, n)).replace("{{time}}", fn(a, n));
3015
+ }, sr = {
3016
+ p: fn,
3017
+ P: ur
3018
+ }, cr = /^D+$/, dr = /^Y+$/, fr = ["D", "DD", "YY", "YYYY"];
3019
+ function hr(e) {
3020
+ return cr.test(e);
3021
+ }
3022
+ function mr(e) {
3023
+ return dr.test(e);
3024
+ }
3025
+ function gr(e, n, t) {
3026
+ const r = yr(e, n, t);
3027
+ if (console.warn(r), fr.includes(e)) throw new RangeError(r);
3028
+ }
3029
+ function yr(e, n, t) {
3030
+ const r = e[0] === "Y" ? "years" : "days of the month";
3031
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
3032
+ }
3033
+ const pr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, wr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, br = /^'([^]*?)'?$/, vr = /''/g, kr = /[a-zA-Z]/;
3034
+ function sa(e, n, t) {
3035
+ var d, m, y, k;
3036
+ const r = K(), a = r.locale ?? rr, o = r.firstWeekContainsDate ?? ((m = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, l = r.weekStartsOn ?? ((k = (y = r.locale) == null ? void 0 : y.options) == null ? void 0 : k.weekStartsOn) ?? 0, i = w(e, t == null ? void 0 : t.in);
3037
+ if (!Pt(i))
3038
+ throw new RangeError("Invalid time value");
3039
+ let s = n.match(wr).map((h) => {
3040
+ const f = h[0];
3041
+ if (f === "p" || f === "P") {
3042
+ const v = sr[f];
3043
+ return v(h, a.formatLong);
3044
+ }
3045
+ return h;
3046
+ }).join("").match(pr).map((h) => {
3047
+ if (h === "''")
3048
+ return { isToken: !1, value: "'" };
3049
+ const f = h[0];
3050
+ if (f === "'")
3051
+ return { isToken: !1, value: Or(h) };
3052
+ if (Fe[f])
3053
+ return { isToken: !0, value: h };
3054
+ if (f.match(kr))
3055
+ throw new RangeError(
3056
+ "Format string contains an unescaped latin alphabet character `" + f + "`"
3057
+ );
3058
+ return { isToken: !1, value: h };
3059
+ });
3060
+ a.localize.preprocessor && (s = a.localize.preprocessor(i, s));
3061
+ const c = {
3062
+ firstWeekContainsDate: o,
3063
+ weekStartsOn: l,
3064
+ locale: a
3065
+ };
3066
+ return s.map((h) => {
3067
+ if (!h.isToken) return h.value;
3068
+ const f = h.value;
3069
+ (mr(f) || hr(f)) && gr(f, n, String(e));
3070
+ const v = Fe[f[0]];
3071
+ return v(i, f, a.localize, c);
3072
+ }).join("");
3073
+ }
3074
+ function Or(e) {
3075
+ const n = e.match(br);
3076
+ return n ? n[1].replace(vr, "'") : e;
3077
+ }
3078
+ function ca(e, n) {
3079
+ return w(e, n == null ? void 0 : n.in).getDay();
3080
+ }
3081
+ function da(e, n) {
3082
+ const t = w(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = t.getMonth(), o = x(t, 0);
3083
+ return o.setFullYear(r, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
3084
+ }
3085
+ function fa(e, n) {
3086
+ return +w(e) > +w(n);
3087
+ }
3088
+ function ha(e, n) {
3089
+ return +w(e) < +w(n);
3090
+ }
3091
+ function ma(e, n) {
3092
+ return +w(e) == +w(n);
3093
+ }
3094
+ function ga(e, n, t) {
3095
+ const r = +w(e, t == null ? void 0 : t.in), [a, o] = [
3096
+ +w(n.start, t == null ? void 0 : t.in),
3097
+ +w(n.end, t == null ? void 0 : t.in)
3098
+ ].sort((l, i) => l - i);
3099
+ return r >= a && r <= o;
3100
+ }
3101
+ function ya(e, n, t) {
3102
+ return pt(e, -n, t);
3103
+ }
3104
+ function pa(e, n) {
3105
+ const t = () => x(n == null ? void 0 : n.in, NaN), a = Sr(e);
3106
+ let o;
3107
+ if (a.date) {
3108
+ const c = Mr(a.date, 2);
3109
+ o = Cr(c.restDateString, c.year);
3110
+ }
3111
+ if (!o || isNaN(+o)) return t();
3112
+ const l = +o;
3113
+ let i = 0, s;
3114
+ if (a.time && (i = Er(a.time), isNaN(i)))
3115
+ return t();
3116
+ if (a.timezone) {
3117
+ if (s = Tr(a.timezone), isNaN(s)) return t();
3118
+ } else {
3119
+ const c = new Date(l + i), d = w(0, n == null ? void 0 : n.in);
3120
+ return d.setFullYear(
3121
+ c.getUTCFullYear(),
3122
+ c.getUTCMonth(),
3123
+ c.getUTCDate()
3124
+ ), d.setHours(
3125
+ c.getUTCHours(),
3126
+ c.getUTCMinutes(),
3127
+ c.getUTCSeconds(),
3128
+ c.getUTCMilliseconds()
3129
+ ), d;
3130
+ }
3131
+ return w(l + i + s, n == null ? void 0 : n.in);
3132
+ }
3133
+ const B = {
3134
+ dateTimeDelimiter: /[T ]/,
3135
+ timeZoneDelimiter: /[Z ]/i,
3136
+ timezone: /([Z+-].*)$/
3137
+ }, Pr = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Dr = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, xr = /^([+-])(\d{2})(?::?(\d{2}))?$/;
3138
+ function Sr(e) {
3139
+ const n = {}, t = e.split(B.dateTimeDelimiter);
3140
+ let r;
3141
+ if (t.length > 2)
3142
+ return n;
3143
+ if (/:/.test(t[0]) ? r = t[0] : (n.date = t[0], r = t[1], B.timeZoneDelimiter.test(n.date) && (n.date = e.split(B.timeZoneDelimiter)[0], r = e.substr(
3144
+ n.date.length,
3145
+ e.length
3146
+ ))), r) {
3147
+ const a = B.timezone.exec(r);
3148
+ a ? (n.time = r.replace(a[1], ""), n.timezone = a[1]) : n.time = r;
3149
+ }
3150
+ return n;
3151
+ }
3152
+ function Mr(e, n) {
3153
+ const t = new RegExp(
3154
+ "^(?:(\\d{4}|[+-]\\d{" + (4 + n) + "})|(\\d{2}|[+-]\\d{" + (2 + n) + "})$)"
3155
+ ), r = e.match(t);
3156
+ if (!r) return { year: NaN, restDateString: "" };
3157
+ const a = r[1] ? parseInt(r[1]) : null, o = r[2] ? parseInt(r[2]) : null;
3158
+ return {
3159
+ year: o === null ? a : o * 100,
3160
+ restDateString: e.slice((r[1] || r[2]).length)
3161
+ };
3162
+ }
3163
+ function Cr(e, n) {
3164
+ if (n === null) return /* @__PURE__ */ new Date(NaN);
3165
+ const t = e.match(Pr);
3166
+ if (!t) return /* @__PURE__ */ new Date(NaN);
3167
+ const r = !!t[4], a = Y(t[1]), o = Y(t[2]) - 1, l = Y(t[3]), i = Y(t[4]), s = Y(t[5]) - 1;
3168
+ if (r)
3169
+ return Nr(n, i, s) ? Rr(n, i, s) : /* @__PURE__ */ new Date(NaN);
3170
+ {
3171
+ const c = /* @__PURE__ */ new Date(0);
3172
+ return !Lr(n, o, l) || !_r(n, a) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(n, o, Math.max(a, l)), c);
3173
+ }
3174
+ }
3175
+ function Y(e) {
3176
+ return e ? parseInt(e) : 1;
3177
+ }
3178
+ function Er(e) {
3179
+ const n = e.match(Dr);
3180
+ if (!n) return NaN;
3181
+ const t = ne(n[1]), r = ne(n[2]), a = ne(n[3]);
3182
+ return Ir(t, r, a) ? t * un + r * ln + a * 1e3 : NaN;
3183
+ }
3184
+ function ne(e) {
3185
+ return e && parseFloat(e.replace(",", ".")) || 0;
3186
+ }
3187
+ function Tr(e) {
3188
+ if (e === "Z") return 0;
3189
+ const n = e.match(xr);
3190
+ if (!n) return 0;
3191
+ const t = n[1] === "+" ? -1 : 1, r = parseInt(n[2]), a = n[3] && parseInt(n[3]) || 0;
3192
+ return Wr(r, a) ? t * (r * un + a * ln) : NaN;
3193
+ }
3194
+ function Rr(e, n, t) {
3195
+ const r = /* @__PURE__ */ new Date(0);
3196
+ r.setUTCFullYear(e, 0, 4);
3197
+ const a = r.getUTCDay() || 7, o = (n - 1) * 7 + t + 1 - a;
3198
+ return r.setUTCDate(r.getUTCDate() + o), r;
3199
+ }
3200
+ const Ar = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
3201
+ function hn(e) {
3202
+ return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
3203
+ }
3204
+ function Lr(e, n, t) {
3205
+ return n >= 0 && n <= 11 && t >= 1 && t <= (Ar[n] || (hn(e) ? 29 : 28));
3206
+ }
3207
+ function _r(e, n) {
3208
+ return n >= 1 && n <= (hn(e) ? 366 : 365);
3209
+ }
3210
+ function Nr(e, n, t) {
3211
+ return n >= 1 && n <= 53 && t >= 0 && t <= 6;
3212
+ }
3213
+ function Ir(e, n, t) {
3214
+ return e === 24 ? n === 0 && t === 0 : t >= 0 && t < 60 && n >= 0 && n < 60 && e >= 0 && e < 25;
3215
+ }
3216
+ function Wr(e, n) {
3217
+ return n >= 0 && n <= 59;
3218
+ }
3219
+ function wa(e, n, t) {
3220
+ return wt(e, -1, t);
3221
+ }
3222
+ export {
3223
+ wa as A,
3224
+ oa as B,
3225
+ sa as C,
3226
+ wt as D,
3227
+ G as E,
3228
+ j as F,
3229
+ pt as G,
3230
+ fa as H,
3231
+ ha as I,
3232
+ pa as J,
3233
+ ga as K,
3234
+ ma as L,
3235
+ ia as M,
3236
+ ca as N,
3237
+ ya as O,
3238
+ Xr as a,
3239
+ Hr as b,
3240
+ Vr as c,
3241
+ Br as d,
3242
+ Gr as e,
3243
+ zr as f,
3244
+ Zn as g,
3245
+ qr as h,
3246
+ Zr as i,
3247
+ $r as j,
3248
+ aa as k,
3249
+ ta as l,
3250
+ na as m,
3251
+ Ur as n,
3252
+ Fr as o,
3253
+ et as p,
3254
+ ra as q,
3255
+ Jr as r,
3256
+ Qr as s,
3257
+ Kr as t,
3258
+ jr as u,
3259
+ ea as v,
3260
+ Yr as w,
3261
+ la as x,
3262
+ ua as y,
3263
+ da as z
3264
+ };