prlg-ui 1.8.386 → 1.8.387
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eventBus.util-K9Yq6hZm.cjs +1 -0
- package/dist/eventBus.util-msbJpg6N.js +75 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +86 -87
- package/dist/reka-ui/index.cjs.js +5 -5
- package/dist/reka-ui/index.es.js +3860 -3888
- package/dist/rekaUI.d.ts +185 -13
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +72 -73
- package/package.json +1 -1
- package/dist/eventBus.util-6r7Wsblo.cjs +0 -1
- package/dist/eventBus.util-Ceh2A6vX.js +0 -60
- package/dist/useBodyScroll.util-CmEMTq77.cjs +0 -1
- package/dist/useBodyScroll.util-KSxz4KRl.js +0 -18
package/dist/rekaUI.d.ts
CHANGED
|
@@ -234,8 +234,94 @@ declare const __VLS_component_12: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
234
234
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
235
235
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
236
236
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
content: ({
|
|
238
|
+
$: ComponentInternalInstance;
|
|
239
|
+
$data: {};
|
|
240
|
+
$props: {
|
|
241
|
+
readonly closeButton?: IDrawerCloseProps | undefined;
|
|
242
|
+
readonly width?: number | undefined;
|
|
243
|
+
readonly position?: "right" | "top" | "left" | "bottom" | undefined;
|
|
244
|
+
readonly forceMount?: boolean | undefined;
|
|
245
|
+
readonly asChild?: boolean | undefined;
|
|
246
|
+
readonly as?: (AsTag | Component) | undefined;
|
|
247
|
+
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
248
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
249
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
250
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
251
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
252
|
+
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
253
|
+
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
254
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
255
|
+
$attrs: {
|
|
256
|
+
[x: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
$refs: {
|
|
259
|
+
[x: string]: unknown;
|
|
260
|
+
};
|
|
261
|
+
$slots: Readonly<{
|
|
262
|
+
[name: string]: Slot<any> | undefined;
|
|
263
|
+
}>;
|
|
264
|
+
$root: ComponentPublicInstance | null;
|
|
265
|
+
$parent: ComponentPublicInstance | null;
|
|
266
|
+
$host: Element | null;
|
|
267
|
+
$emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((event: "focusOutside", event: FocusOutsideEvent) => void) & ((event: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
268
|
+
$el: any;
|
|
269
|
+
$options: ComponentOptionsBase<Readonly<IDialogContentProps> & Readonly<{
|
|
270
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
271
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
272
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
273
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
274
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
275
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
276
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
277
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
278
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
279
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
280
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
281
|
+
openAutoFocus: (event: Event) => any;
|
|
282
|
+
closeAutoFocus: (event: Event) => any;
|
|
283
|
+
}, string, {
|
|
284
|
+
width: number;
|
|
285
|
+
position: "right" | "top" | "left" | "bottom";
|
|
286
|
+
closeButton: IDrawerCloseProps;
|
|
287
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
288
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
289
|
+
created?: (() => void) | (() => void)[];
|
|
290
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
291
|
+
mounted?: (() => void) | (() => void)[];
|
|
292
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
293
|
+
updated?: (() => void) | (() => void)[];
|
|
294
|
+
activated?: (() => void) | (() => void)[];
|
|
295
|
+
deactivated?: (() => void) | (() => void)[];
|
|
296
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
297
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
298
|
+
destroyed?: (() => void) | (() => void)[];
|
|
299
|
+
unmounted?: (() => void) | (() => void)[];
|
|
300
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
301
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
302
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
303
|
+
};
|
|
304
|
+
$forceUpdate: () => void;
|
|
305
|
+
$nextTick: typeof nextTick;
|
|
306
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
307
|
+
} & Readonly<{
|
|
308
|
+
width: number;
|
|
309
|
+
position: "right" | "top" | "left" | "bottom";
|
|
310
|
+
closeButton: IDrawerCloseProps;
|
|
311
|
+
}> & Omit<Readonly<IDialogContentProps> & Readonly<{
|
|
312
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
313
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
314
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
315
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
316
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
317
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
318
|
+
}>, "width" | "position" | "closeButton"> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
319
|
+
$slots: {
|
|
320
|
+
header?(_: {}): any;
|
|
321
|
+
default?(_: {}): any;
|
|
322
|
+
actions?(_: {}): any;
|
|
323
|
+
};
|
|
324
|
+
}) | null;
|
|
239
325
|
}, any>;
|
|
240
326
|
|
|
241
327
|
declare const __VLS_component_13: DefineComponent<IButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -343,14 +429,14 @@ declare const __VLS_component_40: DefineComponent<DateRangePickerHeaderProps, {}
|
|
|
343
429
|
|
|
344
430
|
declare const __VLS_component_41: DefineComponent<DateRangePickerTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DateRangePickerTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
345
431
|
|
|
346
|
-
declare const __VLS_component_42: DefineComponent<
|
|
432
|
+
declare const __VLS_component_42: DefineComponent<IDialogContentProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
347
433
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
348
434
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
349
435
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
350
436
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
351
437
|
openAutoFocus: (event: Event) => any;
|
|
352
438
|
closeAutoFocus: (event: Event) => any;
|
|
353
|
-
}, string, PublicProps, Readonly<
|
|
439
|
+
}, string, PublicProps, Readonly<IDialogContentProps_2> & Readonly<{
|
|
354
440
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
355
441
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
356
442
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -423,14 +509,14 @@ declare const __VLS_component_50: DefineComponent<DialogRootProps, {}, {}, {}, {
|
|
|
423
509
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
424
510
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
425
511
|
|
|
426
|
-
declare const __VLS_component_51: DefineComponent<
|
|
512
|
+
declare const __VLS_component_51: DefineComponent<IDialogContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
427
513
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
428
514
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
429
515
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
430
516
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
431
517
|
openAutoFocus: (event: Event) => any;
|
|
432
518
|
closeAutoFocus: (event: Event) => any;
|
|
433
|
-
}, string, PublicProps, Readonly<
|
|
519
|
+
}, string, PublicProps, Readonly<IDialogContentProps> & Readonly<{
|
|
434
520
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
435
521
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
436
522
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -1212,7 +1298,7 @@ declare type __VLS_Props_9 = {
|
|
|
1212
1298
|
};
|
|
1213
1299
|
|
|
1214
1300
|
declare type __VLS_PublicProps = {
|
|
1215
|
-
|
|
1301
|
+
'open'?: boolean;
|
|
1216
1302
|
};
|
|
1217
1303
|
|
|
1218
1304
|
declare type __VLS_PublicProps_2 = {
|
|
@@ -1282,8 +1368,94 @@ declare function __VLS_template_12(): {
|
|
|
1282
1368
|
default?(_: {}): any;
|
|
1283
1369
|
};
|
|
1284
1370
|
refs: {
|
|
1285
|
-
|
|
1286
|
-
|
|
1371
|
+
content: ({
|
|
1372
|
+
$: ComponentInternalInstance;
|
|
1373
|
+
$data: {};
|
|
1374
|
+
$props: {
|
|
1375
|
+
readonly closeButton?: IDrawerCloseProps | undefined;
|
|
1376
|
+
readonly width?: number | undefined;
|
|
1377
|
+
readonly position?: "right" | "top" | "left" | "bottom" | undefined;
|
|
1378
|
+
readonly forceMount?: boolean | undefined;
|
|
1379
|
+
readonly asChild?: boolean | undefined;
|
|
1380
|
+
readonly as?: (AsTag | Component) | undefined;
|
|
1381
|
+
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
1382
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
1383
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
1384
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
1385
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
1386
|
+
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
1387
|
+
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
1388
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1389
|
+
$attrs: {
|
|
1390
|
+
[x: string]: unknown;
|
|
1391
|
+
};
|
|
1392
|
+
$refs: {
|
|
1393
|
+
[x: string]: unknown;
|
|
1394
|
+
};
|
|
1395
|
+
$slots: Readonly<{
|
|
1396
|
+
[name: string]: Slot<any> | undefined;
|
|
1397
|
+
}>;
|
|
1398
|
+
$root: ComponentPublicInstance | null;
|
|
1399
|
+
$parent: ComponentPublicInstance | null;
|
|
1400
|
+
$host: Element | null;
|
|
1401
|
+
$emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((event: "focusOutside", event: FocusOutsideEvent) => void) & ((event: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
1402
|
+
$el: any;
|
|
1403
|
+
$options: ComponentOptionsBase<Readonly<IDialogContentProps> & Readonly<{
|
|
1404
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
1405
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
1406
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
1407
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
1408
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
1409
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
1410
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1411
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
1412
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
1413
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
1414
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
1415
|
+
openAutoFocus: (event: Event) => any;
|
|
1416
|
+
closeAutoFocus: (event: Event) => any;
|
|
1417
|
+
}, string, {
|
|
1418
|
+
width: number;
|
|
1419
|
+
position: "right" | "top" | "left" | "bottom";
|
|
1420
|
+
closeButton: IDrawerCloseProps;
|
|
1421
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1422
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1423
|
+
created?: (() => void) | (() => void)[];
|
|
1424
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1425
|
+
mounted?: (() => void) | (() => void)[];
|
|
1426
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1427
|
+
updated?: (() => void) | (() => void)[];
|
|
1428
|
+
activated?: (() => void) | (() => void)[];
|
|
1429
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1430
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1431
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1432
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1433
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1434
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1435
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1436
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1437
|
+
};
|
|
1438
|
+
$forceUpdate: () => void;
|
|
1439
|
+
$nextTick: typeof nextTick;
|
|
1440
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1441
|
+
} & Readonly<{
|
|
1442
|
+
width: number;
|
|
1443
|
+
position: "right" | "top" | "left" | "bottom";
|
|
1444
|
+
closeButton: IDrawerCloseProps;
|
|
1445
|
+
}> & Omit<Readonly<IDialogContentProps> & Readonly<{
|
|
1446
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
1447
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
1448
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
1449
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
1450
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
1451
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
1452
|
+
}>, "width" | "position" | "closeButton"> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
1453
|
+
$slots: {
|
|
1454
|
+
header?(_: {}): any;
|
|
1455
|
+
default?(_: {}): any;
|
|
1456
|
+
actions?(_: {}): any;
|
|
1457
|
+
};
|
|
1458
|
+
}) | null;
|
|
1287
1459
|
};
|
|
1288
1460
|
rootEl: any;
|
|
1289
1461
|
};
|
|
@@ -3548,15 +3720,15 @@ declare interface IDialogCloseProps extends DialogCloseProps {
|
|
|
3548
3720
|
}
|
|
3549
3721
|
|
|
3550
3722
|
declare interface IDialogContentProps extends DialogContentProps {
|
|
3551
|
-
|
|
3552
|
-
closeButton?: IDialogCloseProps;
|
|
3723
|
+
closeButton?: IDrawerCloseProps;
|
|
3553
3724
|
width?: number;
|
|
3725
|
+
position?: 'right' | 'top' | 'left' | 'bottom';
|
|
3554
3726
|
}
|
|
3555
3727
|
|
|
3556
3728
|
declare interface IDialogContentProps_2 extends DialogContentProps {
|
|
3557
|
-
|
|
3729
|
+
title?: IDialogTitleProps;
|
|
3730
|
+
closeButton?: IDialogCloseProps;
|
|
3558
3731
|
width?: number;
|
|
3559
|
-
position?: 'right' | 'top' | 'left' | 'bottom';
|
|
3560
3732
|
}
|
|
3561
3733
|
|
|
3562
3734
|
declare interface IDialogTitleProps extends DialogTitleProps {
|
package/dist/utils/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../eventBus.util-6r7Wsblo.cjs"),z=require("../dayjs.util-w9plG3H0.cjs"),J=require("../useBodyScroll.util-CmEMTq77.cjs"),Z=require("../uploadFile.util-CCrV2jIp.cjs"),U=require("../parseFileSize.util-D9hMoJaT.cjs"),i=require("../DateFormatter-K5-0YX5v.cjs"),X=6048e5,K=864e5,T=Symbol.for("constructDateFrom");function y(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&T in e?e[T](t):e instanceof Date?new e.constructor(t):new Date(t)}function h(e,t){return y(t||e,e)}let ee={};function W(){return ee}function v(e,t){const n=W(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=h(e,t?.in),o=r.getDay(),s=(o<a?7:0)+o-a;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function D(e,t){return v(e,{...t,weekStartsOn:1})}function B(e,t){const n=h(e,t?.in),a=n.getFullYear(),r=y(n,0);r.setFullYear(a+1,0,4),r.setHours(0,0,0,0);const o=D(r),s=y(n,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);const c=D(s);return n.getTime()>=o.getTime()?a+1:n.getTime()>=c.getTime()?a:a-1}function G(e){const t=h(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function O(e,...t){const n=y.bind(null,e||t.find(a=>typeof a=="object"));return t.map(n)}function Y(e,t){const n=h(e,t?.in);return n.setHours(0,0,0,0),n}function Q(e,t,n){const[a,r]=O(n?.in,e,t),o=Y(a),s=Y(r),c=+o-G(o),f=+s-G(s);return Math.round((c-f)/K)}function te(e,t){const n=B(e,t),a=y(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),D(a)}function ne(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ae(e){return!(!ne(e)&&typeof e!="number"||isNaN(+h(e)))}function re(e,t,n){const[a,r]=O(n?.in,e,t),o=C(a,r),s=Math.abs(Q(a,r));a.setDate(a.getDate()-o*s);const c=+(C(a,r)===-o),f=o*(s-c);return f===0?0:f}function C(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function ie(e,t){const n=h(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const oe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},se=(e,t,n)=>{let a;const r=oe[e];return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function M(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const ue={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},de={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fe={date:M({formats:ue,defaultWidth:"full"}),time:M({formats:ce,defaultWidth:"full"}),dateTime:M({formats:de,defaultWidth:"full"})},le={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},me=(e,t,n,a)=>le[e];function g(e){return(t,n)=>{const a=n?.context?String(n.context):"standalone";let r;if(a==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):s;r=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return r[o]}}const he={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ge={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},be={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},we={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$e=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ve={ordinalNumber:$e,era:g({values:he,defaultWidth:"wide"}),quarter:g({values:ge,defaultWidth:"wide",argumentCallback:e=>e-1}),month:g({values:be,defaultWidth:"wide"}),day:g({values:we,defaultWidth:"wide"}),dayPeriod:g({values:pe,defaultWidth:"wide",formattingValues:ye,defaultFormattingWidth:"wide"})};function b(e){return(t,n={})=>{const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const s=o[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?Me(c,d=>d.test(s)):xe(c,d=>d.test(s));let w;w=e.valueCallback?e.valueCallback(f):f,w=n.valueCallback?n.valueCallback(w):w;const l=t.slice(s.length);return{value:w,rest:l}}}function xe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Me(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function A(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const r=a[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(r.length);return{value:s,rest:c}}}const Pe=/^(\d+)(th|st|nd|rd)?/i,De=/\d+/i,We={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ke={any:[/^b/i,/^(a|c)/i]},Oe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Se={any:[/1/i,/2/i,/3/i,/4/i]},Te={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ce={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ee={ordinalNumber:A({matchPattern:Pe,parsePattern:De,valueCallback:e=>parseInt(e,10)}),era:b({matchPatterns:We,defaultMatchWidth:"wide",parsePatterns:ke,defaultParseWidth:"any"}),quarter:b({matchPatterns:Oe,defaultMatchWidth:"wide",parsePatterns:Se,defaultParseWidth:"any",valueCallback:e=>e+1}),month:b({matchPatterns:Te,defaultMatchWidth:"wide",parsePatterns:Ge,defaultParseWidth:"any"}),day:b({matchPatterns:Ye,defaultMatchWidth:"wide",parsePatterns:Ce,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:Ne,defaultMatchWidth:"any",parsePatterns:Fe,defaultParseWidth:"any"})},qe={code:"en-US",formatDistance:se,formatLong:fe,formatRelative:me,localize:ve,match:Ee,options:{weekStartsOn:0,firstWeekContainsDate:1}};function He(e,t){const n=h(e,t?.in);return Q(n,ie(n))+1}function _e(e,t){const n=h(e,t?.in),a=+D(n)-+te(n);return Math.round(a/X)+1}function V(e,t){const n=h(e,t?.in),a=n.getFullYear(),r=W(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=y(t?.in||e,0);s.setFullYear(a+1,0,o),s.setHours(0,0,0,0);const c=v(s,t),f=y(t?.in||e,0);f.setFullYear(a,0,o),f.setHours(0,0,0,0);const w=v(f,t);return+n>=+c?a+1:+n>=+w?a:a-1}function Le(e,t){const n=W(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=V(e,t),o=y(t?.in||e,0);return o.setFullYear(r,0,a),o.setHours(0,0,0,0),v(o,t)}function Xe(e,t){const n=h(e,t?.in),a=+v(n,t)-+Le(n,t);return Math.round(a/X)+1}function u(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const p={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return u(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):u(n+1,2)},d(e,t){return u(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return u(e.getHours()%12||12,t.length)},H(e,t){return u(e.getHours(),t.length)},m(e,t){return u(e.getMinutes(),t.length)},s(e,t){return u(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),r=Math.trunc(a*Math.pow(10,n-3));return u(r,t.length)}},x={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},N={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,a){const r=V(e,a),o=r>0?r:1-r;if(t==="YY"){const s=o%100;return u(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):u(o,t.length)},R:function(e,t){const n=B(e);return u(n,t.length)},u:function(e,t){const n=e.getFullYear();return u(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return u(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return u(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return u(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=Xe(e,a);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):u(r,t.length)},I:function(e,t,n){const a=_e(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):u(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){const a=He(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):u(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return u(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return u(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=a===0?7:a;switch(t){case"i":return String(r);case"ii":return u(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(a===12?r=x.noon:a===0?r=x.midnight:r=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(a>=17?r=x.evening:a>=12?r=x.afternoon:a>=4?r=x.morning:r=x.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):u(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):u(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return E(a);case"XXXX":case"XX":return $(a);case"XXXXX":case"XXX":default:return $(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return E(a);case"xxxx":case"xx":return $(a);case"xxxxx":case"xxx":default:return $(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+F(a,":");case"OOOO":default:return"GMT"+$(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+F(a,":");case"zzzz":default:return"GMT"+$(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return u(a,t.length)},T:function(e,t,n){return u(+e,t.length)}};function F(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),o=a%60;return o===0?n+String(r):n+String(r)+t+u(o,2)}function E(e,t){return e%60===0?(e>0?"-":"+")+u(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=u(Math.trunc(a/60),2),o=u(a%60,2);return n+r+t+o}const q=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Be=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return q(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",q(a,t)).replace("{{time}}",j(r,t))},Qe={p:j,P:Be},Ae=/^D+$/,Ve=/^Y+$/,je=["D","DD","YY","YYYY"];function Ie(e){return Ae.test(e)}function Re(e){return Ve.test(e)}function ze(e,t,n){const a=Je(e,t,n);if(console.warn(a),je.includes(e))throw new RangeError(a)}function Je(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ke=/^'([^]*?)'?$/,et=/''/g,tt=/[a-zA-Z]/;function I(e,t,n){const a=W(),r=n?.locale??a.locale??qe,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,c=h(e,n?.in);if(!ae(c))throw new RangeError("Invalid time value");let f=t.match(Ue).map(l=>{const d=l[0];if(d==="p"||d==="P"){const k=Qe[d];return k(l,r.formatLong)}return l}).join("").match(Ze).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const d=l[0];if(d==="'")return{isToken:!1,value:nt(l)};if(N[d])return{isToken:!0,value:l};if(d.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:l}});r.localize.preprocessor&&(f=r.localize.preprocessor(c,f));const w={firstWeekContainsDate:o,weekStartsOn:s,locale:r};return f.map(l=>{if(!l.isToken)return l.value;const d=l.value;(!n?.useAdditionalWeekYearTokens&&Re(d)||!n?.useAdditionalDayOfYearTokens&&Ie(d))&&ze(d,t,String(e));const k=N[d[0]];return k(c,d,r.localize,w)}).join("")}function nt(e){const t=e.match(Ke);return t?t[1].replace(et,"'"):e}function at(e,t){return+h(e)>+h(t)}function H(e,t,n){const[a,r]=O(n?.in,e,t);return+v(a,n)==+v(r,n)}function P(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,a=t%100;return n===1&&a!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(a<10||a>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function m(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?P(e.future,t):"через "+P(e.regular,t):e.past?P(e.past,t):P(e.regular,t)+" назад":P(e.regular,t)}const rt={lessThanXSeconds:m({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:m({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t?.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:m({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:m({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:m({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:m({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:m({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:m({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:m({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:m({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:m({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:m({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:m({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:m({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:m({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},it=(e,t,n)=>rt[e](t,n),ot={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},st={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ut={any:"{{date}}, {{time}}"},ct={date:M({formats:ot,defaultWidth:"full"}),time:M({formats:st,defaultWidth:"full"}),dateTime:M({formats:ut,defaultWidth:"any"})},S=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function dt(e){const t=S[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function _(e){const t=S[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function ft(e){const t=S[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const lt={lastWeek:(e,t,n)=>{const a=e.getDay();return H(e,t,n)?_(a):dt(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const a=e.getDay();return H(e,t,n)?_(a):ft(a)},other:"P"},mt=(e,t,n,a)=>{const r=lt[e];return typeof r=="function"?r(t,n,a):r},ht={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},gt={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},bt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},wt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},pt={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},yt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},$t={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},vt=(e,t)=>{const n=Number(e),a=t?.unit;let r;return a==="date"?r="-е":a==="week"||a==="minute"||a==="second"?r="-я":r="-й",n+r},xt={ordinalNumber:vt,era:g({values:ht,defaultWidth:"wide"}),quarter:g({values:gt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:g({values:bt,defaultWidth:"wide",formattingValues:wt,defaultFormattingWidth:"wide"}),day:g({values:pt,defaultWidth:"wide"}),dayPeriod:g({values:yt,defaultWidth:"any",formattingValues:$t,defaultFormattingWidth:"wide"})},Mt=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Pt=/\d+/i,Dt={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Wt={any:[/^д/i,/^н/i]},kt={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Ot={any:[/1/i,/2/i,/3/i,/4/i]},St={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},Tt={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Gt={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Yt={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Ct={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},Nt={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Ft={ordinalNumber:A({matchPattern:Mt,parsePattern:Pt,valueCallback:e=>parseInt(e,10)}),era:b({matchPatterns:Dt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any"}),quarter:b({matchPatterns:kt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any",valueCallback:e=>e+1}),month:b({matchPatterns:St,defaultMatchWidth:"wide",parsePatterns:Tt,defaultParseWidth:"any"}),day:b({matchPatterns:Gt,defaultMatchWidth:"wide",parsePatterns:Yt,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:Ct,defaultMatchWidth:"wide",parsePatterns:Nt,defaultParseWidth:"any"})},R={code:"ru",formatDistance:it,formatLong:ct,formatRelative:mt,localize:xt,match:Ft,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Et(e){return I(new Date(e),"d MMMM yyyy",{locale:R})}function qt(e){return I(new Date(e),"d MMMM, HH:mm",{locale:R})}function Ht(e,t){return re(new Date(t),new Date(e))}function _t(e){return at(new Date,new Date(e))}function Lt(e,t="₽",n=2){return`${e.toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).replace(/,/g," ")} ${t}`}function Xt(e){return e.reduce((t,n)=>t+n,0)}function Bt(e){const t=e.replace(/[^\d.,]/g,"").replace(",",".");return parseFloat(t)||0}exports.EventBus=L.EventBus;exports.Portal=L._sfc_main;exports.onClickOutside=z.onClickOutside;exports.useBodyScroll=J.useBodyScroll;exports.openFileDialog=Z.openFileDialog;exports.dayjs=U.dayjs;exports.BuddhistCalendar=i.$8d73d47422ca7302$export$42d20a78301dee44;exports.CalendarDate=i.$35ea8db9cb2ccb90$export$99faa760c7908e4f;exports.CalendarDateTime=i.$35ea8db9cb2ccb90$export$ca871e8dbb80966f;exports.CopticCalendar=i.$b956b2d7a6cf451f$export$fe6243cbe1a4b7c1;exports.DateFormatter=i.$fb18d541ea1ad717$export$ad991b66133851cf;exports.EthiopicAmeteAlemCalendar=i.$b956b2d7a6cf451f$export$d72e0c37005a4914;exports.EthiopicCalendar=i.$b956b2d7a6cf451f$export$26ba6eab5e20cd7d;exports.GregorianCalendar=i.$3b62074eb05584b2$export$80ee6245ec4f29ec;exports.HebrewCalendar=i.$7c5f6fbf42389787$export$ca405048b8fb5af;exports.IndianCalendar=i.$82c358003bdda0a8$export$39f31c639fa15726;exports.IslamicCivilCalendar=i.$f2f3e0e3a817edbd$export$2066795aadd37bfc;exports.IslamicTabularCalendar=i.$f2f3e0e3a817edbd$export$37f0887f2f9d22f7;exports.IslamicUmalquraCalendar=i.$f2f3e0e3a817edbd$export$5baab4758c231076;exports.JapaneseCalendar=i.$62225008020f0a13$export$b746ab2b60cdffbf;exports.PersianCalendar=i.$f3ed2e4472ae7e25$export$37fccdbfd14c5939;exports.TaiwanCalendar=i.$5f31bd6f0c8940b2$export$65e01080afcb0799;exports.Time=i.$35ea8db9cb2ccb90$export$680ea196effce5f;exports.ZonedDateTime=i.$35ea8db9cb2ccb90$export$d3b7288e7994edea;exports.createCalendar=i.$64244302c3013299$export$dd0bbc9b26defe37;exports.endOfMonth=i.$14e0f24ef4ac5c92$export$a2258d9c4118825c;exports.endOfWeek=i.$14e0f24ef4ac5c92$export$ef8b6d9133084f4e;exports.endOfYear=i.$14e0f24ef4ac5c92$export$8b7aa55c66d5569e;exports.fromAbsolute=i.$11d87f3f76e88657$export$1b96692a1ba042ac;exports.fromDate=i.$11d87f3f76e88657$export$e57ff100d91bd4b9;exports.getDayOfWeek=i.$14e0f24ef4ac5c92$export$2061056d06d7cdf7;exports.getHoursInDay=i.$14e0f24ef4ac5c92$export$126c91c941de7e;exports.getLocalTimeZone=i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2;exports.getMinimumDayInMonth=i.$14e0f24ef4ac5c92$export$b2f4953d301981d5;exports.getMinimumMonthInYear=i.$14e0f24ef4ac5c92$export$5412ac11713b72ad;exports.getWeeksInMonth=i.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654;exports.isEqualCalendar=i.$14e0f24ef4ac5c92$export$dbc69fd56b53d5e;exports.isEqualDay=i.$14e0f24ef4ac5c92$export$91b62ebf2ba703ee;exports.isEqualMonth=i.$14e0f24ef4ac5c92$export$5a8da0c44a3afdf2;exports.isEqualYear=i.$14e0f24ef4ac5c92$export$ea840f5a6dda8147;exports.isSameDay=i.$14e0f24ef4ac5c92$export$ea39ec197993aef0;exports.isSameMonth=i.$14e0f24ef4ac5c92$export$a18c89cbd24170ff;exports.isSameYear=i.$14e0f24ef4ac5c92$export$5841f9eb9773f25f;exports.isToday=i.$14e0f24ef4ac5c92$export$629b0a497aa65267;exports.isWeekday=i.$14e0f24ef4ac5c92$export$ee9d87258e1d19ed;exports.isWeekend=i.$14e0f24ef4ac5c92$export$618d60ea299da42;exports.maxDate=i.$14e0f24ef4ac5c92$export$a75f2bff57811055;exports.minDate=i.$14e0f24ef4ac5c92$export$5c333a116e949cdd;exports.now=i.$14e0f24ef4ac5c92$export$461939dd4422153;exports.parseAbsolute=i.$fae977aafc393c5c$export$5adfdab05168c219;exports.parseAbsoluteToLocal=i.$fae977aafc393c5c$export$8e384432362ed0f0;exports.parseDate=i.$fae977aafc393c5c$export$6b862160d295c8e;exports.parseDateTime=i.$fae977aafc393c5c$export$588937bcd60ade55;exports.parseDuration=i.$fae977aafc393c5c$export$ecae829bb3747ea6;exports.parseTime=i.$fae977aafc393c5c$export$c9698ec7f05a07e1;exports.parseZonedDateTime=i.$fae977aafc393c5c$export$fd7893f06e92a6a4;exports.resetLocalTimeZone=i.$14e0f24ef4ac5c92$export$55753838ffe79333;exports.setLocalTimeZone=i.$14e0f24ef4ac5c92$export$61a9d83ceb59a3dd;exports.startOfMonth=i.$14e0f24ef4ac5c92$export$a5a3b454ada2268e;exports.startOfWeek=i.$14e0f24ef4ac5c92$export$42c81a444fbfb5d4;exports.startOfYear=i.$14e0f24ef4ac5c92$export$f91e89d3d0406102;exports.toCalendar=i.$11d87f3f76e88657$export$b4a036af3fc0b032;exports.toCalendarDate=i.$11d87f3f76e88657$export$93522d1a439f3617;exports.toCalendarDateTime=i.$11d87f3f76e88657$export$b21e0b124e224484;exports.toLocalTimeZone=i.$11d87f3f76e88657$export$d9b67bc93c097491;exports.toTime=i.$11d87f3f76e88657$export$d33f79e3ffc3dc83;exports.toTimeZone=i.$11d87f3f76e88657$export$538b00033cc11c75;exports.toZoned=i.$11d87f3f76e88657$export$84c95a83c799e074;exports.today=i.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3;exports.formatDateReadable=Et;exports.formatDateWithTime=qt;exports.formatPrice=Lt;exports.getDaysBetween=Ht;exports.isExpired=_t;exports.parsePrice=Bt;exports.sumPrices=Xt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../eventBus.util-K9Yq6hZm.cjs"),z=require("../dayjs.util-w9plG3H0.cjs"),J=require("../uploadFile.util-CCrV2jIp.cjs"),Z=require("../parseFileSize.util-D9hMoJaT.cjs"),i=require("../DateFormatter-K5-0YX5v.cjs"),X=6048e5,U=864e5,G=Symbol.for("constructDateFrom");function y(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&G in e?e[G](t):e instanceof Date?new e.constructor(t):new Date(t)}function h(e,t){return y(t||e,e)}let K={};function W(){return K}function v(e,t){const n=W(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=h(e,t?.in),o=r.getDay(),s=(o<a?7:0)+o-a;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function D(e,t){return v(e,{...t,weekStartsOn:1})}function B(e,t){const n=h(e,t?.in),a=n.getFullYear(),r=y(n,0);r.setFullYear(a+1,0,4),r.setHours(0,0,0,0);const o=D(r),s=y(n,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);const c=D(s);return n.getTime()>=o.getTime()?a+1:n.getTime()>=c.getTime()?a:a-1}function Y(e){const t=h(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function S(e,...t){const n=y.bind(null,e||t.find(a=>typeof a=="object"));return t.map(n)}function C(e,t){const n=h(e,t?.in);return n.setHours(0,0,0,0),n}function Q(e,t,n){const[a,r]=S(n?.in,e,t),o=C(a),s=C(r),c=+o-Y(o),f=+s-Y(s);return Math.round((c-f)/U)}function ee(e,t){const n=B(e,t),a=y(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),D(a)}function te(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ne(e){return!(!te(e)&&typeof e!="number"||isNaN(+h(e)))}function ae(e,t,n){const[a,r]=S(n?.in,e,t),o=N(a,r),s=Math.abs(Q(a,r));a.setDate(a.getDate()-o*s);const c=+(N(a,r)===-o),f=o*(s-c);return f===0?0:f}function N(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function re(e,t){const n=h(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ie={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oe=(e,t,n)=>{let a;const r=ie[e];return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function M(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const se={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ue={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ce={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},de={date:M({formats:se,defaultWidth:"full"}),time:M({formats:ue,defaultWidth:"full"}),dateTime:M({formats:ce,defaultWidth:"full"})},fe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},le=(e,t,n,a)=>fe[e];function g(e){return(t,n)=>{const a=n?.context?String(n.context):"standalone";let r;if(a==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):s;r=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return r[o]}}const me={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},he={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ge={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},be={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},we={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ye=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$e={ordinalNumber:ye,era:g({values:me,defaultWidth:"wide"}),quarter:g({values:he,defaultWidth:"wide",argumentCallback:e=>e-1}),month:g({values:ge,defaultWidth:"wide"}),day:g({values:be,defaultWidth:"wide"}),dayPeriod:g({values:we,defaultWidth:"wide",formattingValues:pe,defaultFormattingWidth:"wide"})};function b(e){return(t,n={})=>{const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const s=o[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?xe(c,d=>d.test(s)):ve(c,d=>d.test(s));let w;w=e.valueCallback?e.valueCallback(f):f,w=n.valueCallback?n.valueCallback(w):w;const l=t.slice(s.length);return{value:w,rest:l}}}function ve(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function xe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function A(e){return(t,n={})=>{const a=t.match(e.matchPattern);if(!a)return null;const r=a[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(r.length);return{value:s,rest:c}}}const Me=/^(\d+)(th|st|nd|rd)?/i,Pe=/\d+/i,De={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},We={any:[/^b/i,/^(a|c)/i]},ke={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Oe={any:[/1/i,/2/i,/3/i,/4/i]},Se={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Te={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ge={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ce={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ne={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Fe={ordinalNumber:A({matchPattern:Me,parsePattern:Pe,valueCallback:e=>parseInt(e,10)}),era:b({matchPatterns:De,defaultMatchWidth:"wide",parsePatterns:We,defaultParseWidth:"any"}),quarter:b({matchPatterns:ke,defaultMatchWidth:"wide",parsePatterns:Oe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:b({matchPatterns:Se,defaultMatchWidth:"wide",parsePatterns:Te,defaultParseWidth:"any"}),day:b({matchPatterns:Ge,defaultMatchWidth:"wide",parsePatterns:Ye,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:Ce,defaultMatchWidth:"any",parsePatterns:Ne,defaultParseWidth:"any"})},Ee={code:"en-US",formatDistance:oe,formatLong:de,formatRelative:le,localize:$e,match:Fe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qe(e,t){const n=h(e,t?.in);return Q(n,re(n))+1}function He(e,t){const n=h(e,t?.in),a=+D(n)-+ee(n);return Math.round(a/X)+1}function V(e,t){const n=h(e,t?.in),a=n.getFullYear(),r=W(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=y(t?.in||e,0);s.setFullYear(a+1,0,o),s.setHours(0,0,0,0);const c=v(s,t),f=y(t?.in||e,0);f.setFullYear(a,0,o),f.setHours(0,0,0,0);const w=v(f,t);return+n>=+c?a+1:+n>=+w?a:a-1}function _e(e,t){const n=W(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=V(e,t),o=y(t?.in||e,0);return o.setFullYear(r,0,a),o.setHours(0,0,0,0),v(o,t)}function Le(e,t){const n=h(e,t?.in),a=+v(n,t)-+_e(n,t);return Math.round(a/X)+1}function u(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const p={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return u(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):u(n+1,2)},d(e,t){return u(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return u(e.getHours()%12||12,t.length)},H(e,t){return u(e.getHours(),t.length)},m(e,t){return u(e.getMinutes(),t.length)},s(e,t){return u(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),r=Math.trunc(a*Math.pow(10,n-3));return u(r,t.length)}},x={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},F={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,a){const r=V(e,a),o=r>0?r:1-r;if(t==="YY"){const s=o%100;return u(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):u(o,t.length)},R:function(e,t){const n=B(e);return u(n,t.length)},u:function(e,t){const n=e.getFullYear();return u(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return u(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return u(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return u(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=Le(e,a);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):u(r,t.length)},I:function(e,t,n){const a=He(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):u(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){const a=qe(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):u(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return u(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return u(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=a===0?7:a;switch(t){case"i":return String(r);case"ii":return u(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(a===12?r=x.noon:a===0?r=x.midnight:r=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(a>=17?r=x.evening:a>=12?r=x.afternoon:a>=4?r=x.morning:r=x.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):u(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):u(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return q(a);case"XXXX":case"XX":return $(a);case"XXXXX":case"XXX":default:return $(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return q(a);case"xxxx":case"xx":return $(a);case"xxxxx":case"xxx":default:return $(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+E(a,":");case"OOOO":default:return"GMT"+$(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+E(a,":");case"zzzz":default:return"GMT"+$(a,":")}},t:function(e,t,n){const a=Math.trunc(+e/1e3);return u(a,t.length)},T:function(e,t,n){return u(+e,t.length)}};function E(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),o=a%60;return o===0?n+String(r):n+String(r)+t+u(o,2)}function q(e,t){return e%60===0?(e>0?"-":"+")+u(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=u(Math.trunc(a/60),2),o=u(a%60,2);return n+r+t+o}const H=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Xe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return H(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",H(a,t)).replace("{{time}}",j(r,t))},Be={p:j,P:Xe},Qe=/^D+$/,Ae=/^Y+$/,Ve=["D","DD","YY","YYYY"];function je(e){return Qe.test(e)}function Ie(e){return Ae.test(e)}function Re(e,t,n){const a=ze(e,t,n);if(console.warn(a),Ve.includes(e))throw new RangeError(a)}function ze(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ue=/^'([^]*?)'?$/,Ke=/''/g,et=/[a-zA-Z]/;function I(e,t,n){const a=W(),r=n?.locale??a.locale??Ee,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,c=h(e,n?.in);if(!ne(c))throw new RangeError("Invalid time value");let f=t.match(Ze).map(l=>{const d=l[0];if(d==="p"||d==="P"){const k=Be[d];return k(l,r.formatLong)}return l}).join("").match(Je).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const d=l[0];if(d==="'")return{isToken:!1,value:tt(l)};if(F[d])return{isToken:!0,value:l};if(d.match(et))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:l}});r.localize.preprocessor&&(f=r.localize.preprocessor(c,f));const w={firstWeekContainsDate:o,weekStartsOn:s,locale:r};return f.map(l=>{if(!l.isToken)return l.value;const d=l.value;(!n?.useAdditionalWeekYearTokens&&Ie(d)||!n?.useAdditionalDayOfYearTokens&&je(d))&&Re(d,t,String(e));const k=F[d[0]];return k(c,d,r.localize,w)}).join("")}function tt(e){const t=e.match(Ue);return t?t[1].replace(Ke,"'"):e}function nt(e,t){return+h(e)>+h(t)}function _(e,t,n){const[a,r]=S(n?.in,e,t);return+v(a,n)==+v(r,n)}function P(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,a=t%100;return n===1&&a!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(a<10||a>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function m(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?P(e.future,t):"через "+P(e.regular,t):e.past?P(e.past,t):P(e.regular,t)+" назад":P(e.regular,t)}const at={lessThanXSeconds:m({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:m({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t?.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:m({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:m({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:m({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:m({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:m({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:m({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:m({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:m({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:m({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:m({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:m({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:m({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:m({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},rt=(e,t,n)=>at[e](t,n),it={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},ot={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},st={any:"{{date}}, {{time}}"},ut={date:M({formats:it,defaultWidth:"full"}),time:M({formats:ot,defaultWidth:"full"}),dateTime:M({formats:st,defaultWidth:"any"})},T=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function ct(e){const t=T[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function L(e){const t=T[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function dt(e){const t=T[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const ft={lastWeek:(e,t,n)=>{const a=e.getDay();return _(e,t,n)?L(a):ct(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const a=e.getDay();return _(e,t,n)?L(a):dt(a)},other:"P"},lt=(e,t,n,a)=>{const r=ft[e];return typeof r=="function"?r(t,n,a):r},mt={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},ht={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},gt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},bt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},wt={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},pt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},yt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},$t=(e,t)=>{const n=Number(e),a=t?.unit;let r;return a==="date"?r="-е":a==="week"||a==="minute"||a==="second"?r="-я":r="-й",n+r},vt={ordinalNumber:$t,era:g({values:mt,defaultWidth:"wide"}),quarter:g({values:ht,defaultWidth:"wide",argumentCallback:e=>e-1}),month:g({values:gt,defaultWidth:"wide",formattingValues:bt,defaultFormattingWidth:"wide"}),day:g({values:wt,defaultWidth:"wide"}),dayPeriod:g({values:pt,defaultWidth:"any",formattingValues:yt,defaultFormattingWidth:"wide"})},xt=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Mt=/\d+/i,Pt={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Dt={any:[/^д/i,/^н/i]},Wt={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},kt={any:[/1/i,/2/i,/3/i,/4/i]},Ot={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},St={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Tt={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Gt={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Yt={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},Ct={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Nt={ordinalNumber:A({matchPattern:xt,parsePattern:Mt,valueCallback:e=>parseInt(e,10)}),era:b({matchPatterns:Pt,defaultMatchWidth:"wide",parsePatterns:Dt,defaultParseWidth:"any"}),quarter:b({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:kt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:b({matchPatterns:Ot,defaultMatchWidth:"wide",parsePatterns:St,defaultParseWidth:"any"}),day:b({matchPatterns:Tt,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any"}),dayPeriod:b({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Ct,defaultParseWidth:"any"})},R={code:"ru",formatDistance:rt,formatLong:ut,formatRelative:lt,localize:vt,match:Nt,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Ft(e){return I(new Date(e),"d MMMM yyyy",{locale:R})}function Et(e){return I(new Date(e),"d MMMM, HH:mm",{locale:R})}function qt(e,t){return ae(new Date(t),new Date(e))}function Ht(e){return nt(new Date,new Date(e))}function _t(e,t="₽",n=2){return`${e.toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).replace(/,/g," ")} ${t}`}function Lt(e){return e.reduce((t,n)=>t+n,0)}function Xt(e){const t=e.replace(/[^\d.,]/g,"").replace(",",".");return parseFloat(t)||0}exports.EventBus=O.EventBus;exports.Portal=O._sfc_main;exports.useBodyScroll=O.useBodyScroll;exports.onClickOutside=z.onClickOutside;exports.openFileDialog=J.openFileDialog;exports.dayjs=Z.dayjs;exports.BuddhistCalendar=i.$8d73d47422ca7302$export$42d20a78301dee44;exports.CalendarDate=i.$35ea8db9cb2ccb90$export$99faa760c7908e4f;exports.CalendarDateTime=i.$35ea8db9cb2ccb90$export$ca871e8dbb80966f;exports.CopticCalendar=i.$b956b2d7a6cf451f$export$fe6243cbe1a4b7c1;exports.DateFormatter=i.$fb18d541ea1ad717$export$ad991b66133851cf;exports.EthiopicAmeteAlemCalendar=i.$b956b2d7a6cf451f$export$d72e0c37005a4914;exports.EthiopicCalendar=i.$b956b2d7a6cf451f$export$26ba6eab5e20cd7d;exports.GregorianCalendar=i.$3b62074eb05584b2$export$80ee6245ec4f29ec;exports.HebrewCalendar=i.$7c5f6fbf42389787$export$ca405048b8fb5af;exports.IndianCalendar=i.$82c358003bdda0a8$export$39f31c639fa15726;exports.IslamicCivilCalendar=i.$f2f3e0e3a817edbd$export$2066795aadd37bfc;exports.IslamicTabularCalendar=i.$f2f3e0e3a817edbd$export$37f0887f2f9d22f7;exports.IslamicUmalquraCalendar=i.$f2f3e0e3a817edbd$export$5baab4758c231076;exports.JapaneseCalendar=i.$62225008020f0a13$export$b746ab2b60cdffbf;exports.PersianCalendar=i.$f3ed2e4472ae7e25$export$37fccdbfd14c5939;exports.TaiwanCalendar=i.$5f31bd6f0c8940b2$export$65e01080afcb0799;exports.Time=i.$35ea8db9cb2ccb90$export$680ea196effce5f;exports.ZonedDateTime=i.$35ea8db9cb2ccb90$export$d3b7288e7994edea;exports.createCalendar=i.$64244302c3013299$export$dd0bbc9b26defe37;exports.endOfMonth=i.$14e0f24ef4ac5c92$export$a2258d9c4118825c;exports.endOfWeek=i.$14e0f24ef4ac5c92$export$ef8b6d9133084f4e;exports.endOfYear=i.$14e0f24ef4ac5c92$export$8b7aa55c66d5569e;exports.fromAbsolute=i.$11d87f3f76e88657$export$1b96692a1ba042ac;exports.fromDate=i.$11d87f3f76e88657$export$e57ff100d91bd4b9;exports.getDayOfWeek=i.$14e0f24ef4ac5c92$export$2061056d06d7cdf7;exports.getHoursInDay=i.$14e0f24ef4ac5c92$export$126c91c941de7e;exports.getLocalTimeZone=i.$14e0f24ef4ac5c92$export$aa8b41735afcabd2;exports.getMinimumDayInMonth=i.$14e0f24ef4ac5c92$export$b2f4953d301981d5;exports.getMinimumMonthInYear=i.$14e0f24ef4ac5c92$export$5412ac11713b72ad;exports.getWeeksInMonth=i.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654;exports.isEqualCalendar=i.$14e0f24ef4ac5c92$export$dbc69fd56b53d5e;exports.isEqualDay=i.$14e0f24ef4ac5c92$export$91b62ebf2ba703ee;exports.isEqualMonth=i.$14e0f24ef4ac5c92$export$5a8da0c44a3afdf2;exports.isEqualYear=i.$14e0f24ef4ac5c92$export$ea840f5a6dda8147;exports.isSameDay=i.$14e0f24ef4ac5c92$export$ea39ec197993aef0;exports.isSameMonth=i.$14e0f24ef4ac5c92$export$a18c89cbd24170ff;exports.isSameYear=i.$14e0f24ef4ac5c92$export$5841f9eb9773f25f;exports.isToday=i.$14e0f24ef4ac5c92$export$629b0a497aa65267;exports.isWeekday=i.$14e0f24ef4ac5c92$export$ee9d87258e1d19ed;exports.isWeekend=i.$14e0f24ef4ac5c92$export$618d60ea299da42;exports.maxDate=i.$14e0f24ef4ac5c92$export$a75f2bff57811055;exports.minDate=i.$14e0f24ef4ac5c92$export$5c333a116e949cdd;exports.now=i.$14e0f24ef4ac5c92$export$461939dd4422153;exports.parseAbsolute=i.$fae977aafc393c5c$export$5adfdab05168c219;exports.parseAbsoluteToLocal=i.$fae977aafc393c5c$export$8e384432362ed0f0;exports.parseDate=i.$fae977aafc393c5c$export$6b862160d295c8e;exports.parseDateTime=i.$fae977aafc393c5c$export$588937bcd60ade55;exports.parseDuration=i.$fae977aafc393c5c$export$ecae829bb3747ea6;exports.parseTime=i.$fae977aafc393c5c$export$c9698ec7f05a07e1;exports.parseZonedDateTime=i.$fae977aafc393c5c$export$fd7893f06e92a6a4;exports.resetLocalTimeZone=i.$14e0f24ef4ac5c92$export$55753838ffe79333;exports.setLocalTimeZone=i.$14e0f24ef4ac5c92$export$61a9d83ceb59a3dd;exports.startOfMonth=i.$14e0f24ef4ac5c92$export$a5a3b454ada2268e;exports.startOfWeek=i.$14e0f24ef4ac5c92$export$42c81a444fbfb5d4;exports.startOfYear=i.$14e0f24ef4ac5c92$export$f91e89d3d0406102;exports.toCalendar=i.$11d87f3f76e88657$export$b4a036af3fc0b032;exports.toCalendarDate=i.$11d87f3f76e88657$export$93522d1a439f3617;exports.toCalendarDateTime=i.$11d87f3f76e88657$export$b21e0b124e224484;exports.toLocalTimeZone=i.$11d87f3f76e88657$export$d9b67bc93c097491;exports.toTime=i.$11d87f3f76e88657$export$d33f79e3ffc3dc83;exports.toTimeZone=i.$11d87f3f76e88657$export$538b00033cc11c75;exports.toZoned=i.$11d87f3f76e88657$export$84c95a83c799e074;exports.today=i.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3;exports.formatDateReadable=Ft;exports.formatDateWithTime=Et;exports.formatPrice=_t;exports.getDaysBetween=qt;exports.isExpired=Ht;exports.parsePrice=Xt;exports.sumPrices=Lt;
|