@formatjs/intl-datetimeformat 6.4.0 → 6.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/abstract/FormatDateTime.d.ts +2 -1
- package/lib/src/abstract/FormatDateTime.d.ts.map +1 -1
- package/lib/src/abstract/FormatDateTimePattern.d.ts +3 -3
- package/lib/src/abstract/FormatDateTimePattern.d.ts.map +1 -1
- package/lib/src/abstract/FormatDateTimePattern.js +0 -1
- package/lib/src/abstract/InitializeDateTimeFormat.d.ts +2 -2
- package/lib/src/abstract/InitializeDateTimeFormat.d.ts.map +1 -1
- package/lib/src/abstract/PartitionDateTimePattern.d.ts +2 -2
- package/lib/src/abstract/PartitionDateTimePattern.d.ts.map +1 -1
- package/lib/src/types.d.ts +4 -4
- package/lib/src/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/polyfill.iife.js +536 -89
- package/src/abstract/FormatDateTime.d.ts +2 -1
- package/src/abstract/FormatDateTime.d.ts.map +1 -1
- package/src/abstract/FormatDateTimePattern.d.ts +3 -3
- package/src/abstract/FormatDateTimePattern.d.ts.map +1 -1
- package/src/abstract/FormatDateTimePattern.js +0 -1
- package/src/abstract/InitializeDateTimeFormat.d.ts +2 -2
- package/src/abstract/InitializeDateTimeFormat.d.ts.map +1 -1
- package/src/abstract/PartitionDateTimePattern.d.ts +2 -2
- package/src/abstract/PartitionDateTimePattern.d.ts.map +1 -1
- package/src/types.d.ts +4 -4
- package/src/types.d.ts.map +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { DateTimeFormat } from '@formatjs/ecma402-abstract';
|
|
1
2
|
import { PartitionDateTimePattern } from './PartitionDateTimePattern';
|
|
2
3
|
/**
|
|
3
4
|
* https://tc39.es/ecma402/#sec-formatdatetime
|
|
4
5
|
* @param dtf DateTimeFormat
|
|
5
6
|
* @param x
|
|
6
7
|
*/
|
|
7
|
-
export declare function FormatDateTime(dtf: Intl.DateTimeFormat, x: number, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): string;
|
|
8
|
+
export declare function FormatDateTime(dtf: Intl.DateTimeFormat | DateTimeFormat, x: number, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): string;
|
|
8
9
|
//# sourceMappingURL=FormatDateTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormatDateTime.d.ts","sourceRoot":"","sources":["../../../src/abstract/FormatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,IAAI,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"FormatDateTime.d.ts","sourceRoot":"","sources":["../../../src/abstract/FormatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,UAQ5D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract';
|
|
1
|
+
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart, DateTimeFormat } from '@formatjs/ecma402-abstract';
|
|
2
2
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
3
|
export interface FormatDateTimePatternImplDetails {
|
|
4
|
-
getInternalSlots(dtf: Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
4
|
+
getInternalSlots(dtf: Intl.DateTimeFormat | DateTimeFormat): IntlDateTimeFormatInternal;
|
|
5
5
|
localeData: Record<string, DateTimeFormatLocaleInternalData>;
|
|
6
6
|
getDefaultTimeZone(): string;
|
|
7
7
|
}
|
|
@@ -10,5 +10,5 @@ export interface FormatDateTimePatternImplDetails {
|
|
|
10
10
|
* @param dtf
|
|
11
11
|
* @param x
|
|
12
12
|
*/
|
|
13
|
-
export declare function FormatDateTimePattern(dtf: Intl.DateTimeFormat, patternParts: IntlDateTimeFormatPart[], x: number, { getInternalSlots, localeData, getDefaultTimeZone, tzData, }: FormatDateTimePatternImplDetails & ToLocalTimeImplDetails): IntlDateTimeFormatPart[];
|
|
13
|
+
export declare function FormatDateTimePattern(dtf: Intl.DateTimeFormat | DateTimeFormat, patternParts: IntlDateTimeFormatPart[], x: number, { getInternalSlots, localeData, getDefaultTimeZone, tzData, }: FormatDateTimePatternImplDetails & ToLocalTimeImplDetails): IntlDateTimeFormatPart[];
|
|
14
14
|
//# sourceMappingURL=FormatDateTimePattern.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormatDateTimePattern.d.ts","sourceRoot":"","sources":["../../../src/abstract/FormatDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"FormatDateTimePattern.d.ts","sourceRoot":"","sources":["../../../src/abstract/FormatDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EAEtB,cAAc,EACf,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAc,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAsCjE,MAAM,WAAW,gCAAgC;IAC/C,gBAAgB,CACd,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,GACxC,0BAA0B,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAA;IAC5D,kBAAkB,IAAI,MAAM,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,YAAY,EAAE,sBAAsB,EAAE,EACtC,CAAC,EAAE,MAAM,EACT,EACE,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,MAAM,GACP,EAAE,gCAAgC,GAAG,sBAAsB,GAC3D,sBAAsB,EAAE,CAyJ1B"}
|
|
@@ -74,7 +74,6 @@ export function FormatDateTimePattern(dtf, patternParts, x, _a) {
|
|
|
74
74
|
else if (p === 'fractionalSecondDigits') {
|
|
75
75
|
var v = Math.floor(tm.millisecond * Math.pow(10, ((fractionalSecondDigits || 0) - 3)));
|
|
76
76
|
result.push({
|
|
77
|
-
// @ts-expect-error Spec is not there yet
|
|
78
77
|
type: 'fractionalSecond',
|
|
79
78
|
value: nf3.format(v),
|
|
80
79
|
});
|
|
@@ -5,8 +5,8 @@ import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, DateTimeF
|
|
|
5
5
|
* @param locales locales
|
|
6
6
|
* @param opts options
|
|
7
7
|
*/
|
|
8
|
-
export declare function InitializeDateTimeFormat(dtf: DateTimeFormat, locales: string | string[] | undefined, opts: Intl.DateTimeFormatOptions | undefined, { getInternalSlots, availableLocales, localeData, getDefaultLocale, getDefaultTimeZone, relevantExtensionKeys, tzData, uppercaseLinks, }: {
|
|
9
|
-
getInternalSlots(dtf: DateTimeFormat): IntlDateTimeFormatInternal;
|
|
8
|
+
export declare function InitializeDateTimeFormat(dtf: Intl.DateTimeFormat | DateTimeFormat, locales: string | string[] | undefined, opts: Intl.DateTimeFormatOptions | undefined, { getInternalSlots, availableLocales, localeData, getDefaultLocale, getDefaultTimeZone, relevantExtensionKeys, tzData, uppercaseLinks, }: {
|
|
9
|
+
getInternalSlots(dtf: DateTimeFormat | Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
10
10
|
availableLocales: Set<string>;
|
|
11
11
|
getDefaultLocale(): string;
|
|
12
12
|
getDefaultTimeZone(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitializeDateTimeFormat.d.ts","sourceRoot":"","sources":["../../../src/abstract/InitializeDateTimeFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,gCAAgC,EAOhC,cAAc,IAAI,cAAc,EACjC,MAAM,4BAA4B,CAAA;AAkDnC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"InitializeDateTimeFormat.d.ts","sourceRoot":"","sources":["../../../src/abstract/InitializeDateTimeFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,gCAAgC,EAOhC,cAAc,IAAI,cAAc,EACjC,MAAM,4BAA4B,CAAA;AAkDnC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACtC,IAAI,EAAE,IAAI,CAAC,qBAAqB,GAAG,SAAS,EAC5C,EACE,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,MAAM,EACN,cAAc,GACf,EAAE;IACD,gBAAgB,CACd,GAAG,EAAE,cAAc,GAAG,IAAI,CAAC,cAAc,GACxC,0BAA0B,CAAA;IAC7B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,gBAAgB,IAAI,MAAM,CAAA;IAC1B,kBAAkB,IAAI,MAAM,CAAA;IAC5B,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gCAAgC,GAAG,SAAS,CAAC,CAAA;IACxE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC,GACA,IAAI,CAAC,cAAc,CA2PrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract';
|
|
1
|
+
import { DateTimeFormat, IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract';
|
|
2
2
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
3
|
import { FormatDateTimePatternImplDetails } from './FormatDateTimePattern';
|
|
4
4
|
/**
|
|
@@ -6,5 +6,5 @@ import { FormatDateTimePatternImplDetails } from './FormatDateTimePattern';
|
|
|
6
6
|
* @param dtf
|
|
7
7
|
* @param x
|
|
8
8
|
*/
|
|
9
|
-
export declare function PartitionDateTimePattern(dtf: Intl.DateTimeFormat, x: number, implDetails: ToLocalTimeImplDetails & FormatDateTimePatternImplDetails): IntlDateTimeFormatPart[];
|
|
9
|
+
export declare function PartitionDateTimePattern(dtf: Intl.DateTimeFormat | DateTimeFormat, x: number, implDetails: ToLocalTimeImplDetails & FormatDateTimePatternImplDetails): IntlDateTimeFormatPart[];
|
|
10
10
|
//# sourceMappingURL=PartitionDateTimePattern.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartitionDateTimePattern.d.ts","sourceRoot":"","sources":["../../../src/abstract/PartitionDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAIvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAA;AAEhC;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"PartitionDateTimePattern.d.ts","sourceRoot":"","sources":["../../../src/abstract/PartitionDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,sBAAsB,EAIvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAA;AAEhC;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,sBAAsB,GAAG,gCAAgC,GACrE,sBAAsB,EAAE,CAkB1B"}
|
package/lib/src/types.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ export interface UnpackedData {
|
|
|
12
12
|
*/
|
|
13
13
|
offsets: number[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type ZoneData = [
|
|
16
16
|
number | string,
|
|
17
17
|
number,
|
|
18
18
|
number,
|
|
19
19
|
number
|
|
20
20
|
];
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type RawDateTimeLocaleData = LocaleData<RawDateTimeLocaleInternalData>;
|
|
22
|
+
export type RawDateTimeLocaleInternalData = Omit<DateTimeFormatLocaleInternalData, 'dateFormat' | 'timeFormat' | 'dateTimeFormat' | 'formats' | 'intervalFormats'> & {
|
|
23
23
|
formats: Record<string, Record<string, string>>;
|
|
24
24
|
dateFormat: {
|
|
25
25
|
full: string;
|
|
@@ -41,7 +41,7 @@ export declare type RawDateTimeLocaleInternalData = Omit<DateTimeFormatLocaleInt
|
|
|
41
41
|
short: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type TimeZoneNameData = Record<string, {
|
|
45
45
|
long?: [string, string];
|
|
46
46
|
short?: [string, string];
|
|
47
47
|
}>;
|
package/lib/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gCAAgC,EAChC,mBAAmB,EACpB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gCAAgC,EAChC,mBAAmB,EACpB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,MAAM,QAAQ,GAAG;IAErB,MAAM,GAAG,MAAM;IAEf,MAAM;IAEN,MAAM;IAEN,MAAM;CACP,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,6BAA6B,CAAC,CAAA;AAE7E,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,gCAAgC,EAChC,YAAY,GAAG,YAAY,GAAG,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,CAC/E,GAAG;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC/C,UAAU,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAA;IACvE,UAAU,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAA;IACvE,eAAe,EAAE,mBAAmB,CAAA;IACpC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN;IACE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzB,CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-datetimeformat",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3",
|
|
4
4
|
"description": "Intl.DateTimeFormat polyfill",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/formatjs/formatjs#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@formatjs/ecma402-abstract": "1.14.
|
|
26
|
-
"@formatjs/intl-localematcher": "0.2.
|
|
27
|
-
"tslib": "2.4.0"
|
|
25
|
+
"@formatjs/ecma402-abstract": "1.14.3",
|
|
26
|
+
"@formatjs/intl-localematcher": "0.2.32",
|
|
27
|
+
"tslib": "^2.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@formatjs/intl-getcanonicallocales": "2.0.
|
|
31
|
-
"@formatjs/intl-locale": "3.0.
|
|
30
|
+
"@formatjs/intl-getcanonicallocales": "2.0.5",
|
|
31
|
+
"@formatjs/intl-locale": "3.0.11"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/polyfill.iife.js
CHANGED
|
@@ -1,55 +1,502 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
return extendStatics(d, b);
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
9
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
|
-
if (typeof
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21
|
-
}
|
|
22
|
-
var __assign = function() {
|
|
23
|
-
__assign = Object.assign || function __assign2(t) {
|
|
24
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25
|
-
s = arguments[i];
|
|
26
|
-
for (var p in s)
|
|
27
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
28
|
-
t[p] = s[p];
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
};
|
|
32
|
-
return __assign.apply(this, arguments);
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
33
18
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
19
|
+
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
21
|
+
mod2
|
|
22
|
+
));
|
|
23
|
+
|
|
24
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js
|
|
25
|
+
var require_tslib = __commonJS({
|
|
26
|
+
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.js"(exports, module) {
|
|
27
|
+
var __extends2;
|
|
28
|
+
var __assign2;
|
|
29
|
+
var __rest2;
|
|
30
|
+
var __decorate2;
|
|
31
|
+
var __param2;
|
|
32
|
+
var __metadata2;
|
|
33
|
+
var __awaiter2;
|
|
34
|
+
var __generator2;
|
|
35
|
+
var __exportStar2;
|
|
36
|
+
var __values2;
|
|
37
|
+
var __read2;
|
|
38
|
+
var __spread2;
|
|
39
|
+
var __spreadArrays2;
|
|
40
|
+
var __spreadArray2;
|
|
41
|
+
var __await2;
|
|
42
|
+
var __asyncGenerator2;
|
|
43
|
+
var __asyncDelegator2;
|
|
44
|
+
var __asyncValues2;
|
|
45
|
+
var __makeTemplateObject2;
|
|
46
|
+
var __importStar2;
|
|
47
|
+
var __importDefault2;
|
|
48
|
+
var __classPrivateFieldGet2;
|
|
49
|
+
var __classPrivateFieldSet2;
|
|
50
|
+
var __classPrivateFieldIn2;
|
|
51
|
+
var __createBinding2;
|
|
52
|
+
(function(factory) {
|
|
53
|
+
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
54
|
+
if (typeof define === "function" && define.amd) {
|
|
55
|
+
define("tslib", ["exports"], function(exports2) {
|
|
56
|
+
factory(createExporter(root, createExporter(exports2)));
|
|
57
|
+
});
|
|
58
|
+
} else if (typeof module === "object" && typeof module.exports === "object") {
|
|
59
|
+
factory(createExporter(root, createExporter(module.exports)));
|
|
60
|
+
} else {
|
|
61
|
+
factory(createExporter(root));
|
|
62
|
+
}
|
|
63
|
+
function createExporter(exports2, previous) {
|
|
64
|
+
if (exports2 !== root) {
|
|
65
|
+
if (typeof Object.create === "function") {
|
|
66
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
67
|
+
} else {
|
|
68
|
+
exports2.__esModule = true;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return function(id, v) {
|
|
72
|
+
return exports2[id] = previous ? previous(id, v) : v;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
})(function(exporter) {
|
|
76
|
+
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
77
|
+
d.__proto__ = b;
|
|
78
|
+
} || function(d, b) {
|
|
79
|
+
for (var p in b)
|
|
80
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
81
|
+
d[p] = b[p];
|
|
82
|
+
};
|
|
83
|
+
__extends2 = function(d, b) {
|
|
84
|
+
if (typeof b !== "function" && b !== null)
|
|
85
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
86
|
+
extendStatics(d, b);
|
|
87
|
+
function __() {
|
|
88
|
+
this.constructor = d;
|
|
89
|
+
}
|
|
90
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
91
|
+
};
|
|
92
|
+
__assign2 = Object.assign || function(t) {
|
|
93
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
94
|
+
s = arguments[i];
|
|
95
|
+
for (var p in s)
|
|
96
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
97
|
+
t[p] = s[p];
|
|
98
|
+
}
|
|
99
|
+
return t;
|
|
100
|
+
};
|
|
101
|
+
__rest2 = function(s, e) {
|
|
102
|
+
var t = {};
|
|
103
|
+
for (var p in s)
|
|
104
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
105
|
+
t[p] = s[p];
|
|
106
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
107
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
108
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
109
|
+
t[p[i]] = s[p[i]];
|
|
110
|
+
}
|
|
111
|
+
return t;
|
|
112
|
+
};
|
|
113
|
+
__decorate2 = function(decorators, target, key, desc) {
|
|
114
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
115
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
116
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
117
|
+
else
|
|
118
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
119
|
+
if (d = decorators[i])
|
|
120
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
121
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
122
|
+
};
|
|
123
|
+
__param2 = function(paramIndex, decorator) {
|
|
124
|
+
return function(target, key) {
|
|
125
|
+
decorator(target, key, paramIndex);
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
__metadata2 = function(metadataKey, metadataValue) {
|
|
129
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
130
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
131
|
+
};
|
|
132
|
+
__awaiter2 = function(thisArg, _arguments, P, generator) {
|
|
133
|
+
function adopt(value) {
|
|
134
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
135
|
+
resolve(value);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
139
|
+
function fulfilled(value) {
|
|
140
|
+
try {
|
|
141
|
+
step(generator.next(value));
|
|
142
|
+
} catch (e) {
|
|
143
|
+
reject(e);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function rejected(value) {
|
|
147
|
+
try {
|
|
148
|
+
step(generator["throw"](value));
|
|
149
|
+
} catch (e) {
|
|
150
|
+
reject(e);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function step(result) {
|
|
154
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
155
|
+
}
|
|
156
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
__generator2 = function(thisArg, body) {
|
|
160
|
+
var _ = { label: 0, sent: function() {
|
|
161
|
+
if (t[0] & 1)
|
|
162
|
+
throw t[1];
|
|
163
|
+
return t[1];
|
|
164
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
165
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
166
|
+
return this;
|
|
167
|
+
}), g;
|
|
168
|
+
function verb(n) {
|
|
169
|
+
return function(v) {
|
|
170
|
+
return step([n, v]);
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function step(op) {
|
|
174
|
+
if (f)
|
|
175
|
+
throw new TypeError("Generator is already executing.");
|
|
176
|
+
while (_)
|
|
177
|
+
try {
|
|
178
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
179
|
+
return t;
|
|
180
|
+
if (y = 0, t)
|
|
181
|
+
op = [op[0] & 2, t.value];
|
|
182
|
+
switch (op[0]) {
|
|
183
|
+
case 0:
|
|
184
|
+
case 1:
|
|
185
|
+
t = op;
|
|
186
|
+
break;
|
|
187
|
+
case 4:
|
|
188
|
+
_.label++;
|
|
189
|
+
return { value: op[1], done: false };
|
|
190
|
+
case 5:
|
|
191
|
+
_.label++;
|
|
192
|
+
y = op[1];
|
|
193
|
+
op = [0];
|
|
194
|
+
continue;
|
|
195
|
+
case 7:
|
|
196
|
+
op = _.ops.pop();
|
|
197
|
+
_.trys.pop();
|
|
198
|
+
continue;
|
|
199
|
+
default:
|
|
200
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
201
|
+
_ = 0;
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
205
|
+
_.label = op[1];
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
209
|
+
_.label = t[1];
|
|
210
|
+
t = op;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
if (t && _.label < t[2]) {
|
|
214
|
+
_.label = t[2];
|
|
215
|
+
_.ops.push(op);
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
if (t[2])
|
|
219
|
+
_.ops.pop();
|
|
220
|
+
_.trys.pop();
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
op = body.call(thisArg, _);
|
|
224
|
+
} catch (e) {
|
|
225
|
+
op = [6, e];
|
|
226
|
+
y = 0;
|
|
227
|
+
} finally {
|
|
228
|
+
f = t = 0;
|
|
229
|
+
}
|
|
230
|
+
if (op[0] & 5)
|
|
231
|
+
throw op[1];
|
|
232
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
__exportStar2 = function(m, o) {
|
|
236
|
+
for (var p in m)
|
|
237
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
238
|
+
__createBinding2(o, m, p);
|
|
239
|
+
};
|
|
240
|
+
__createBinding2 = Object.create ? function(o, m, k, k2) {
|
|
241
|
+
if (k2 === void 0)
|
|
242
|
+
k2 = k;
|
|
243
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
244
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
245
|
+
desc = { enumerable: true, get: function() {
|
|
246
|
+
return m[k];
|
|
247
|
+
} };
|
|
248
|
+
}
|
|
249
|
+
Object.defineProperty(o, k2, desc);
|
|
250
|
+
} : function(o, m, k, k2) {
|
|
251
|
+
if (k2 === void 0)
|
|
252
|
+
k2 = k;
|
|
253
|
+
o[k2] = m[k];
|
|
254
|
+
};
|
|
255
|
+
__values2 = function(o) {
|
|
256
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
257
|
+
if (m)
|
|
258
|
+
return m.call(o);
|
|
259
|
+
if (o && typeof o.length === "number")
|
|
260
|
+
return {
|
|
261
|
+
next: function() {
|
|
262
|
+
if (o && i >= o.length)
|
|
263
|
+
o = void 0;
|
|
264
|
+
return { value: o && o[i++], done: !o };
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
268
|
+
};
|
|
269
|
+
__read2 = function(o, n) {
|
|
270
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
271
|
+
if (!m)
|
|
272
|
+
return o;
|
|
273
|
+
var i = m.call(o), r, ar = [], e;
|
|
274
|
+
try {
|
|
275
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
276
|
+
ar.push(r.value);
|
|
277
|
+
} catch (error) {
|
|
278
|
+
e = { error };
|
|
279
|
+
} finally {
|
|
280
|
+
try {
|
|
281
|
+
if (r && !r.done && (m = i["return"]))
|
|
282
|
+
m.call(i);
|
|
283
|
+
} finally {
|
|
284
|
+
if (e)
|
|
285
|
+
throw e.error;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return ar;
|
|
289
|
+
};
|
|
290
|
+
__spread2 = function() {
|
|
291
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
292
|
+
ar = ar.concat(__read2(arguments[i]));
|
|
293
|
+
return ar;
|
|
294
|
+
};
|
|
295
|
+
__spreadArrays2 = function() {
|
|
296
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
297
|
+
s += arguments[i].length;
|
|
298
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
299
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
300
|
+
r[k] = a[j];
|
|
301
|
+
return r;
|
|
302
|
+
};
|
|
303
|
+
__spreadArray2 = function(to, from, pack) {
|
|
304
|
+
if (pack || arguments.length === 2)
|
|
305
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
306
|
+
if (ar || !(i in from)) {
|
|
307
|
+
if (!ar)
|
|
308
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
309
|
+
ar[i] = from[i];
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
313
|
+
};
|
|
314
|
+
__await2 = function(v) {
|
|
315
|
+
return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
|
|
316
|
+
};
|
|
317
|
+
__asyncGenerator2 = function(thisArg, _arguments, generator) {
|
|
318
|
+
if (!Symbol.asyncIterator)
|
|
319
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
320
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
321
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
322
|
+
return this;
|
|
323
|
+
}, i;
|
|
324
|
+
function verb(n) {
|
|
325
|
+
if (g[n])
|
|
326
|
+
i[n] = function(v) {
|
|
327
|
+
return new Promise(function(a, b) {
|
|
328
|
+
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
329
|
+
});
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
function resume(n, v) {
|
|
333
|
+
try {
|
|
334
|
+
step(g[n](v));
|
|
335
|
+
} catch (e) {
|
|
336
|
+
settle(q[0][3], e);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
function step(r) {
|
|
340
|
+
r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
341
|
+
}
|
|
342
|
+
function fulfill(value) {
|
|
343
|
+
resume("next", value);
|
|
344
|
+
}
|
|
345
|
+
function reject(value) {
|
|
346
|
+
resume("throw", value);
|
|
347
|
+
}
|
|
348
|
+
function settle(f, v) {
|
|
349
|
+
if (f(v), q.shift(), q.length)
|
|
350
|
+
resume(q[0][0], q[0][1]);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
__asyncDelegator2 = function(o) {
|
|
354
|
+
var i, p;
|
|
355
|
+
return i = {}, verb("next"), verb("throw", function(e) {
|
|
356
|
+
throw e;
|
|
357
|
+
}), verb("return"), i[Symbol.iterator] = function() {
|
|
358
|
+
return this;
|
|
359
|
+
}, i;
|
|
360
|
+
function verb(n, f) {
|
|
361
|
+
i[n] = o[n] ? function(v) {
|
|
362
|
+
return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v;
|
|
363
|
+
} : f;
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
__asyncValues2 = function(o) {
|
|
367
|
+
if (!Symbol.asyncIterator)
|
|
368
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
369
|
+
var m = o[Symbol.asyncIterator], i;
|
|
370
|
+
return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
371
|
+
return this;
|
|
372
|
+
}, i);
|
|
373
|
+
function verb(n) {
|
|
374
|
+
i[n] = o[n] && function(v) {
|
|
375
|
+
return new Promise(function(resolve, reject) {
|
|
376
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function settle(resolve, reject, d, v) {
|
|
381
|
+
Promise.resolve(v).then(function(v2) {
|
|
382
|
+
resolve({ value: v2, done: d });
|
|
383
|
+
}, reject);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
__makeTemplateObject2 = function(cooked, raw) {
|
|
387
|
+
if (Object.defineProperty) {
|
|
388
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
389
|
+
} else {
|
|
390
|
+
cooked.raw = raw;
|
|
391
|
+
}
|
|
392
|
+
return cooked;
|
|
393
|
+
};
|
|
394
|
+
var __setModuleDefault = Object.create ? function(o, v) {
|
|
395
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
396
|
+
} : function(o, v) {
|
|
397
|
+
o["default"] = v;
|
|
398
|
+
};
|
|
399
|
+
__importStar2 = function(mod2) {
|
|
400
|
+
if (mod2 && mod2.__esModule)
|
|
401
|
+
return mod2;
|
|
402
|
+
var result = {};
|
|
403
|
+
if (mod2 != null) {
|
|
404
|
+
for (var k in mod2)
|
|
405
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k))
|
|
406
|
+
__createBinding2(result, mod2, k);
|
|
407
|
+
}
|
|
408
|
+
__setModuleDefault(result, mod2);
|
|
409
|
+
return result;
|
|
410
|
+
};
|
|
411
|
+
__importDefault2 = function(mod2) {
|
|
412
|
+
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
413
|
+
};
|
|
414
|
+
__classPrivateFieldGet2 = function(receiver, state, kind, f) {
|
|
415
|
+
if (kind === "a" && !f)
|
|
416
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
417
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
418
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
419
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
420
|
+
};
|
|
421
|
+
__classPrivateFieldSet2 = function(receiver, state, value, kind, f) {
|
|
422
|
+
if (kind === "m")
|
|
423
|
+
throw new TypeError("Private method is not writable");
|
|
424
|
+
if (kind === "a" && !f)
|
|
425
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
426
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
427
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
428
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
429
|
+
};
|
|
430
|
+
__classPrivateFieldIn2 = function(state, receiver) {
|
|
431
|
+
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
432
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
433
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
434
|
+
};
|
|
435
|
+
exporter("__extends", __extends2);
|
|
436
|
+
exporter("__assign", __assign2);
|
|
437
|
+
exporter("__rest", __rest2);
|
|
438
|
+
exporter("__decorate", __decorate2);
|
|
439
|
+
exporter("__param", __param2);
|
|
440
|
+
exporter("__metadata", __metadata2);
|
|
441
|
+
exporter("__awaiter", __awaiter2);
|
|
442
|
+
exporter("__generator", __generator2);
|
|
443
|
+
exporter("__exportStar", __exportStar2);
|
|
444
|
+
exporter("__createBinding", __createBinding2);
|
|
445
|
+
exporter("__values", __values2);
|
|
446
|
+
exporter("__read", __read2);
|
|
447
|
+
exporter("__spread", __spread2);
|
|
448
|
+
exporter("__spreadArrays", __spreadArrays2);
|
|
449
|
+
exporter("__spreadArray", __spreadArray2);
|
|
450
|
+
exporter("__await", __await2);
|
|
451
|
+
exporter("__asyncGenerator", __asyncGenerator2);
|
|
452
|
+
exporter("__asyncDelegator", __asyncDelegator2);
|
|
453
|
+
exporter("__asyncValues", __asyncValues2);
|
|
454
|
+
exporter("__makeTemplateObject", __makeTemplateObject2);
|
|
455
|
+
exporter("__importStar", __importStar2);
|
|
456
|
+
exporter("__importDefault", __importDefault2);
|
|
457
|
+
exporter("__classPrivateFieldGet", __classPrivateFieldGet2);
|
|
458
|
+
exporter("__classPrivateFieldSet", __classPrivateFieldSet2);
|
|
459
|
+
exporter("__classPrivateFieldIn", __classPrivateFieldIn2);
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/modules/index.js
|
|
465
|
+
var import_tslib = __toESM(require_tslib(), 1);
|
|
466
|
+
var {
|
|
467
|
+
__extends,
|
|
468
|
+
__assign,
|
|
469
|
+
__rest,
|
|
470
|
+
__decorate,
|
|
471
|
+
__param,
|
|
472
|
+
__metadata,
|
|
473
|
+
__awaiter,
|
|
474
|
+
__generator,
|
|
475
|
+
__exportStar,
|
|
476
|
+
__createBinding,
|
|
477
|
+
__values,
|
|
478
|
+
__read,
|
|
479
|
+
__spread,
|
|
480
|
+
__spreadArrays,
|
|
481
|
+
__spreadArray,
|
|
482
|
+
__await,
|
|
483
|
+
__asyncGenerator,
|
|
484
|
+
__asyncDelegator,
|
|
485
|
+
__asyncValues,
|
|
486
|
+
__makeTemplateObject,
|
|
487
|
+
__importStar,
|
|
488
|
+
__importDefault,
|
|
489
|
+
__classPrivateFieldGet,
|
|
490
|
+
__classPrivateFieldSet,
|
|
491
|
+
__classPrivateFieldIn
|
|
492
|
+
} = import_tslib.default;
|
|
46
493
|
|
|
47
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
494
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
|
|
48
495
|
function CanonicalizeLocaleList(locales) {
|
|
49
496
|
return Intl.getCanonicalLocales(locales);
|
|
50
497
|
}
|
|
51
498
|
|
|
52
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
499
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeTimeZoneName.js
|
|
53
500
|
function CanonicalizeTimeZoneName(tz, _a) {
|
|
54
501
|
var tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
|
|
55
502
|
var uppercasedTz = tz.toUpperCase();
|
|
@@ -64,7 +511,7 @@
|
|
|
64
511
|
return ianaTimeZone;
|
|
65
512
|
}
|
|
66
513
|
|
|
67
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
514
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
68
515
|
function ToString(o) {
|
|
69
516
|
if (typeof o === "symbol") {
|
|
70
517
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
@@ -315,7 +762,7 @@
|
|
|
315
762
|
return mod(t, MS_PER_SECOND);
|
|
316
763
|
}
|
|
317
764
|
|
|
318
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
765
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
|
|
319
766
|
function DefaultNumberOption(val, min, max, fallback) {
|
|
320
767
|
if (val !== void 0) {
|
|
321
768
|
val = Number(val);
|
|
@@ -327,13 +774,13 @@
|
|
|
327
774
|
return fallback;
|
|
328
775
|
}
|
|
329
776
|
|
|
330
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
777
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
|
|
331
778
|
function GetNumberOption(options, property, minimum, maximum, fallback) {
|
|
332
779
|
var val = options[property];
|
|
333
780
|
return DefaultNumberOption(val, minimum, maximum, fallback);
|
|
334
781
|
}
|
|
335
782
|
|
|
336
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
783
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
|
|
337
784
|
function GetOption(opts, prop, type, values, fallback) {
|
|
338
785
|
if (typeof opts !== "object") {
|
|
339
786
|
throw new TypeError("Options must be an object");
|
|
@@ -359,7 +806,7 @@
|
|
|
359
806
|
return fallback;
|
|
360
807
|
}
|
|
361
808
|
|
|
362
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
809
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
363
810
|
var SANCTIONED_UNITS = [
|
|
364
811
|
"angle-degree",
|
|
365
812
|
"area-acre",
|
|
@@ -410,7 +857,7 @@
|
|
|
410
857
|
}
|
|
411
858
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
412
859
|
|
|
413
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
860
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsValidTimeZoneName.js
|
|
414
861
|
function IsValidTimeZoneName(tz, _a) {
|
|
415
862
|
var tzData = _a.tzData, uppercaseLinks = _a.uppercaseLinks;
|
|
416
863
|
var uppercasedTz = tz.toUpperCase();
|
|
@@ -428,7 +875,7 @@
|
|
|
428
875
|
return zoneNames.has(uppercasedTz) || linkNames.has(uppercasedTz);
|
|
429
876
|
}
|
|
430
877
|
|
|
431
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
878
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
432
879
|
function defineProperty(target, name, _a) {
|
|
433
880
|
var value = _a.value;
|
|
434
881
|
Object.defineProperty(target, name, {
|
|
@@ -447,19 +894,19 @@
|
|
|
447
894
|
}
|
|
448
895
|
}
|
|
449
896
|
|
|
450
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
897
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
451
898
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
452
899
|
|
|
453
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
900
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
454
901
|
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
455
902
|
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
456
903
|
|
|
457
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
904
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
|
|
458
905
|
function CanonicalizeLocaleList2(locales) {
|
|
459
906
|
return Intl.getCanonicalLocales(locales);
|
|
460
907
|
}
|
|
461
908
|
|
|
462
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
909
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
|
|
463
910
|
var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
464
911
|
function invariant2(condition, message, Err) {
|
|
465
912
|
if (Err === void 0) {
|
|
@@ -470,7 +917,7 @@
|
|
|
470
917
|
}
|
|
471
918
|
}
|
|
472
919
|
|
|
473
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
920
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
|
|
474
921
|
function BestAvailableLocale(availableLocales, locale) {
|
|
475
922
|
var candidate = locale;
|
|
476
923
|
while (true) {
|
|
@@ -488,7 +935,7 @@
|
|
|
488
935
|
}
|
|
489
936
|
}
|
|
490
937
|
|
|
491
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
938
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
|
|
492
939
|
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
493
940
|
var result = { locale: "" };
|
|
494
941
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -507,7 +954,7 @@
|
|
|
507
954
|
return result;
|
|
508
955
|
}
|
|
509
956
|
|
|
510
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
957
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
|
|
511
958
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
512
959
|
var minimizedAvailableLocaleMap = {};
|
|
513
960
|
var availableLocaleMap = {};
|
|
@@ -555,7 +1002,7 @@
|
|
|
555
1002
|
};
|
|
556
1003
|
}
|
|
557
1004
|
|
|
558
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1005
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
|
|
559
1006
|
function UnicodeExtensionValue(extension, key) {
|
|
560
1007
|
invariant2(key.length === 2, "key must have 2 elements");
|
|
561
1008
|
var size = extension.length;
|
|
@@ -594,7 +1041,7 @@
|
|
|
594
1041
|
return void 0;
|
|
595
1042
|
}
|
|
596
1043
|
|
|
597
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1044
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
|
|
598
1045
|
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
599
1046
|
var matcher = options.localeMatcher;
|
|
600
1047
|
var r;
|
|
@@ -658,7 +1105,7 @@
|
|
|
658
1105
|
return result;
|
|
659
1106
|
}
|
|
660
1107
|
|
|
661
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1108
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
|
|
662
1109
|
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
663
1110
|
var subset = [];
|
|
664
1111
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -672,7 +1119,7 @@
|
|
|
672
1119
|
return subset;
|
|
673
1120
|
}
|
|
674
1121
|
|
|
675
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1122
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
|
|
676
1123
|
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
677
1124
|
var locales = availableLocales.reduce(function(all, l) {
|
|
678
1125
|
all.add(l);
|
|
@@ -685,7 +1132,7 @@
|
|
|
685
1132
|
}).locale;
|
|
686
1133
|
}
|
|
687
1134
|
|
|
688
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1135
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/PartitionPattern.js
|
|
689
1136
|
function PartitionPattern(pattern) {
|
|
690
1137
|
var result = [];
|
|
691
1138
|
var beginIndex = pattern.indexOf("{");
|
|
@@ -717,7 +1164,7 @@
|
|
|
717
1164
|
return result;
|
|
718
1165
|
}
|
|
719
1166
|
|
|
720
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1167
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
|
|
721
1168
|
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
722
1169
|
var matcher = "best fit";
|
|
723
1170
|
if (options !== void 0) {
|
|
@@ -730,7 +1177,7 @@
|
|
|
730
1177
|
return LookupSupportedLocales(availableLocales, requestedLocales);
|
|
731
1178
|
}
|
|
732
1179
|
|
|
733
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1180
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
734
1181
|
var MissingLocaleDataError = function(_super) {
|
|
735
1182
|
__extends(MissingLocaleDataError2, _super);
|
|
736
1183
|
function MissingLocaleDataError2() {
|
|
@@ -741,7 +1188,7 @@
|
|
|
741
1188
|
return MissingLocaleDataError2;
|
|
742
1189
|
}(Error);
|
|
743
1190
|
|
|
744
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1191
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
745
1192
|
var RangePatternType;
|
|
746
1193
|
(function(RangePatternType2) {
|
|
747
1194
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -749,7 +1196,7 @@
|
|
|
749
1196
|
RangePatternType2["endRange"] = "endRange";
|
|
750
1197
|
})(RangePatternType || (RangePatternType = {}));
|
|
751
1198
|
|
|
752
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1199
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/get_internal_slots.js
|
|
753
1200
|
var internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
754
1201
|
function getInternalSlots(x) {
|
|
755
1202
|
var internalSlots = internalSlotMap.get(x);
|
|
@@ -760,7 +1207,7 @@
|
|
|
760
1207
|
return internalSlots;
|
|
761
1208
|
}
|
|
762
1209
|
|
|
763
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1210
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/data/links.js
|
|
764
1211
|
var links_default = {
|
|
765
1212
|
"Australia/ACT": "Australia/Sydney",
|
|
766
1213
|
"Australia/LHI": "Australia/Lord_Howe",
|
|
@@ -1007,7 +1454,7 @@
|
|
|
1007
1454
|
"Pacific/Truk": "Pacific/Port_Moresby"
|
|
1008
1455
|
};
|
|
1009
1456
|
|
|
1010
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1457
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/packer.js
|
|
1011
1458
|
function unpack(data) {
|
|
1012
1459
|
var abbrvs = data.abbrvs.split("|");
|
|
1013
1460
|
var offsets = data.offsets.split("|").map(function(n) {
|
|
@@ -1033,7 +1480,7 @@
|
|
|
1033
1480
|
return zones;
|
|
1034
1481
|
}
|
|
1035
1482
|
|
|
1036
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1483
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/utils.js
|
|
1037
1484
|
var DATE_TIME_PROPS = [
|
|
1038
1485
|
"weekday",
|
|
1039
1486
|
"era",
|
|
@@ -1056,7 +1503,7 @@
|
|
|
1056
1503
|
var shortMorePenalty = 3;
|
|
1057
1504
|
var offsetPenalty = 1;
|
|
1058
1505
|
|
|
1059
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1506
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/ToLocalTime.js
|
|
1060
1507
|
function getApplicableZoneData(t, timeZone, tzData) {
|
|
1061
1508
|
var _a;
|
|
1062
1509
|
var zoneData = tzData[timeZone];
|
|
@@ -1099,7 +1546,7 @@
|
|
|
1099
1546
|
};
|
|
1100
1547
|
}
|
|
1101
1548
|
|
|
1102
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1549
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimePattern.js
|
|
1103
1550
|
function pad(n) {
|
|
1104
1551
|
if (n < 10) {
|
|
1105
1552
|
return "0".concat(n);
|
|
@@ -1255,7 +1702,7 @@
|
|
|
1255
1702
|
return result;
|
|
1256
1703
|
}
|
|
1257
1704
|
|
|
1258
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1705
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimePattern.js
|
|
1259
1706
|
function PartitionDateTimePattern(dtf, x, implDetails) {
|
|
1260
1707
|
x = TimeClip(x);
|
|
1261
1708
|
if (isNaN(x)) {
|
|
@@ -1267,7 +1714,7 @@
|
|
|
1267
1714
|
return FormatDateTimePattern(dtf, PartitionPattern(pattern), x, implDetails);
|
|
1268
1715
|
}
|
|
1269
1716
|
|
|
1270
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1717
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTime.js
|
|
1271
1718
|
function FormatDateTime(dtf, x, implDetails) {
|
|
1272
1719
|
var parts = PartitionDateTimePattern(dtf, x, implDetails);
|
|
1273
1720
|
var result = "";
|
|
@@ -1278,7 +1725,7 @@
|
|
|
1278
1725
|
return result;
|
|
1279
1726
|
}
|
|
1280
1727
|
|
|
1281
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1728
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/BasicFormatMatcher.js
|
|
1282
1729
|
function BasicFormatMatcher(options, formats) {
|
|
1283
1730
|
var bestScore = -Infinity;
|
|
1284
1731
|
var bestFormat = formats[0];
|
|
@@ -1355,7 +1802,7 @@
|
|
|
1355
1802
|
return __assign({}, bestFormat);
|
|
1356
1803
|
}
|
|
1357
1804
|
|
|
1358
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
1805
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/skeleton.js
|
|
1359
1806
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1360
1807
|
var expPatternTrimmer = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
|
|
1361
1808
|
function matchSkeletonPattern(match2, result) {
|
|
@@ -1608,7 +2055,7 @@
|
|
|
1608
2055
|
];
|
|
1609
2056
|
}
|
|
1610
2057
|
|
|
1611
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2058
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/BestFitFormatMatcher.js
|
|
1612
2059
|
function isNumericType(t) {
|
|
1613
2060
|
return t === "numeric" || t === "2-digit";
|
|
1614
2061
|
}
|
|
@@ -1690,7 +2137,7 @@
|
|
|
1690
2137
|
return patternFormat;
|
|
1691
2138
|
}
|
|
1692
2139
|
|
|
1693
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2140
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/DateTimeStyleFormat.js
|
|
1694
2141
|
function DateTimeStyleFormat(dateStyle, timeStyle, dataLocaleData) {
|
|
1695
2142
|
var dateFormat, timeFormat;
|
|
1696
2143
|
if (timeStyle !== void 0) {
|
|
@@ -1729,7 +2176,7 @@
|
|
|
1729
2176
|
return dateFormat;
|
|
1730
2177
|
}
|
|
1731
2178
|
|
|
1732
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2179
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/ToDateTimeOptions.js
|
|
1733
2180
|
function ToDateTimeOptions(options, required, defaults) {
|
|
1734
2181
|
if (options === void 0) {
|
|
1735
2182
|
options = null;
|
|
@@ -1786,7 +2233,7 @@
|
|
|
1786
2233
|
return options;
|
|
1787
2234
|
}
|
|
1788
2235
|
|
|
1789
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2236
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/InitializeDateTimeFormat.js
|
|
1790
2237
|
function isTimeRelated(opt) {
|
|
1791
2238
|
for (var _i = 0, _a = ["hour", "minute", "second"]; _i < _a.length; _i++) {
|
|
1792
2239
|
var prop = _a[_i];
|
|
@@ -1948,7 +2395,7 @@
|
|
|
1948
2395
|
return dtf;
|
|
1949
2396
|
}
|
|
1950
2397
|
|
|
1951
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2398
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeToParts.js
|
|
1952
2399
|
function FormatDateTimeToParts(dtf, x, implDetails) {
|
|
1953
2400
|
var parts = PartitionDateTimePattern(dtf, x, implDetails);
|
|
1954
2401
|
var result = ArrayCreate(0);
|
|
@@ -1962,7 +2409,7 @@
|
|
|
1962
2409
|
return result;
|
|
1963
2410
|
}
|
|
1964
2411
|
|
|
1965
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2412
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/PartitionDateTimeRangePattern.js
|
|
1966
2413
|
var TABLE_2_FIELDS = [
|
|
1967
2414
|
"era",
|
|
1968
2415
|
"year",
|
|
@@ -2075,7 +2522,7 @@
|
|
|
2075
2522
|
return result;
|
|
2076
2523
|
}
|
|
2077
2524
|
|
|
2078
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2525
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeRangeToParts.js
|
|
2079
2526
|
function FormatDateTimeRangeToParts(dtf, x, y, implDetails) {
|
|
2080
2527
|
var parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
|
|
2081
2528
|
var result = new Array(0);
|
|
@@ -2090,7 +2537,7 @@
|
|
|
2090
2537
|
return result;
|
|
2091
2538
|
}
|
|
2092
2539
|
|
|
2093
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2540
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/abstract/FormatDateTimeRange.js
|
|
2094
2541
|
function FormatDateTimeRange(dtf, x, y, implDetails) {
|
|
2095
2542
|
var parts = PartitionDateTimeRangePattern(dtf, x, y, implDetails);
|
|
2096
2543
|
var result = "";
|
|
@@ -2101,7 +2548,7 @@
|
|
|
2101
2548
|
return result;
|
|
2102
2549
|
}
|
|
2103
2550
|
|
|
2104
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2551
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/core.js
|
|
2105
2552
|
var UPPERCASED_LINKS = Object.keys(links_default).reduce(function(all, l) {
|
|
2106
2553
|
all[l.toUpperCase()] = links_default[l];
|
|
2107
2554
|
return all;
|
|
@@ -2375,10 +2822,10 @@
|
|
|
2375
2822
|
} catch (e) {
|
|
2376
2823
|
}
|
|
2377
2824
|
|
|
2378
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2825
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/supported-locales.generated.js
|
|
2379
2826
|
var supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
|
|
2380
2827
|
|
|
2381
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2828
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/should-polyfill.js
|
|
2382
2829
|
function supportsDateStyle() {
|
|
2383
2830
|
try {
|
|
2384
2831
|
return !!new Intl.DateTimeFormat(void 0, {
|
|
@@ -2424,7 +2871,7 @@
|
|
|
2424
2871
|
}
|
|
2425
2872
|
}
|
|
2426
2873
|
|
|
2427
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2874
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/src/to_locale_string.js
|
|
2428
2875
|
function toLocaleString(x, locales, options) {
|
|
2429
2876
|
var dtf = new DateTimeFormat(locales, options);
|
|
2430
2877
|
return dtf.format(x);
|
|
@@ -2438,7 +2885,7 @@
|
|
|
2438
2885
|
return dtf.format(x);
|
|
2439
2886
|
}
|
|
2440
2887
|
|
|
2441
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/
|
|
2888
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-datetimeformat/lib/polyfill.js
|
|
2442
2889
|
if (shouldPolyfill()) {
|
|
2443
2890
|
defineProperty(Intl, "DateTimeFormat", { value: DateTimeFormat });
|
|
2444
2891
|
defineProperty(Date.prototype, "toLocaleString", {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { DateTimeFormat } from '@formatjs/ecma402-abstract';
|
|
1
2
|
import { PartitionDateTimePattern } from './PartitionDateTimePattern';
|
|
2
3
|
/**
|
|
3
4
|
* https://tc39.es/ecma402/#sec-formatdatetime
|
|
4
5
|
* @param dtf DateTimeFormat
|
|
5
6
|
* @param x
|
|
6
7
|
*/
|
|
7
|
-
export declare function FormatDateTime(dtf: Intl.DateTimeFormat, x: number, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): string;
|
|
8
|
+
export declare function FormatDateTime(dtf: Intl.DateTimeFormat | DateTimeFormat, x: number, implDetails: Parameters<typeof PartitionDateTimePattern>[2]): string;
|
|
8
9
|
//# sourceMappingURL=FormatDateTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormatDateTime.d.ts","sourceRoot":"","sources":["FormatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,IAAI,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"FormatDateTime.d.ts","sourceRoot":"","sources":["FormatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,UAQ5D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract';
|
|
1
|
+
import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, IntlDateTimeFormatPart, DateTimeFormat } from '@formatjs/ecma402-abstract';
|
|
2
2
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
3
|
export interface FormatDateTimePatternImplDetails {
|
|
4
|
-
getInternalSlots(dtf: Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
4
|
+
getInternalSlots(dtf: Intl.DateTimeFormat | DateTimeFormat): IntlDateTimeFormatInternal;
|
|
5
5
|
localeData: Record<string, DateTimeFormatLocaleInternalData>;
|
|
6
6
|
getDefaultTimeZone(): string;
|
|
7
7
|
}
|
|
@@ -10,5 +10,5 @@ export interface FormatDateTimePatternImplDetails {
|
|
|
10
10
|
* @param dtf
|
|
11
11
|
* @param x
|
|
12
12
|
*/
|
|
13
|
-
export declare function FormatDateTimePattern(dtf: Intl.DateTimeFormat, patternParts: IntlDateTimeFormatPart[], x: number, { getInternalSlots, localeData, getDefaultTimeZone, tzData, }: FormatDateTimePatternImplDetails & ToLocalTimeImplDetails): IntlDateTimeFormatPart[];
|
|
13
|
+
export declare function FormatDateTimePattern(dtf: Intl.DateTimeFormat | DateTimeFormat, patternParts: IntlDateTimeFormatPart[], x: number, { getInternalSlots, localeData, getDefaultTimeZone, tzData, }: FormatDateTimePatternImplDetails & ToLocalTimeImplDetails): IntlDateTimeFormatPart[];
|
|
14
14
|
//# sourceMappingURL=FormatDateTimePattern.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormatDateTimePattern.d.ts","sourceRoot":"","sources":["FormatDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"FormatDateTimePattern.d.ts","sourceRoot":"","sources":["FormatDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EAEtB,cAAc,EACf,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAc,sBAAsB,EAAC,MAAM,eAAe,CAAA;AAsCjE,MAAM,WAAW,gCAAgC;IAC/C,gBAAgB,CACd,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,GACxC,0BAA0B,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAA;IAC5D,kBAAkB,IAAI,MAAM,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,YAAY,EAAE,sBAAsB,EAAE,EACtC,CAAC,EAAE,MAAM,EACT,EACE,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,MAAM,GACP,EAAE,gCAAgC,GAAG,sBAAsB,GAC3D,sBAAsB,EAAE,CAyJ1B"}
|
|
@@ -77,7 +77,6 @@ function FormatDateTimePattern(dtf, patternParts, x, _a) {
|
|
|
77
77
|
else if (p === 'fractionalSecondDigits') {
|
|
78
78
|
var v = Math.floor(tm.millisecond * Math.pow(10, ((fractionalSecondDigits || 0) - 3)));
|
|
79
79
|
result.push({
|
|
80
|
-
// @ts-expect-error Spec is not there yet
|
|
81
80
|
type: 'fractionalSecond',
|
|
82
81
|
value: nf3.format(v),
|
|
83
82
|
});
|
|
@@ -5,8 +5,8 @@ import { IntlDateTimeFormatInternal, DateTimeFormatLocaleInternalData, DateTimeF
|
|
|
5
5
|
* @param locales locales
|
|
6
6
|
* @param opts options
|
|
7
7
|
*/
|
|
8
|
-
export declare function InitializeDateTimeFormat(dtf: DateTimeFormat, locales: string | string[] | undefined, opts: Intl.DateTimeFormatOptions | undefined, { getInternalSlots, availableLocales, localeData, getDefaultLocale, getDefaultTimeZone, relevantExtensionKeys, tzData, uppercaseLinks, }: {
|
|
9
|
-
getInternalSlots(dtf: DateTimeFormat): IntlDateTimeFormatInternal;
|
|
8
|
+
export declare function InitializeDateTimeFormat(dtf: Intl.DateTimeFormat | DateTimeFormat, locales: string | string[] | undefined, opts: Intl.DateTimeFormatOptions | undefined, { getInternalSlots, availableLocales, localeData, getDefaultLocale, getDefaultTimeZone, relevantExtensionKeys, tzData, uppercaseLinks, }: {
|
|
9
|
+
getInternalSlots(dtf: DateTimeFormat | Intl.DateTimeFormat): IntlDateTimeFormatInternal;
|
|
10
10
|
availableLocales: Set<string>;
|
|
11
11
|
getDefaultLocale(): string;
|
|
12
12
|
getDefaultTimeZone(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitializeDateTimeFormat.d.ts","sourceRoot":"","sources":["InitializeDateTimeFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,gCAAgC,EAOhC,cAAc,IAAI,cAAc,EACjC,MAAM,4BAA4B,CAAA;AAkDnC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"InitializeDateTimeFormat.d.ts","sourceRoot":"","sources":["InitializeDateTimeFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,gCAAgC,EAOhC,cAAc,IAAI,cAAc,EACjC,MAAM,4BAA4B,CAAA;AAkDnC;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACtC,IAAI,EAAE,IAAI,CAAC,qBAAqB,GAAG,SAAS,EAC5C,EACE,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,MAAM,EACN,cAAc,GACf,EAAE;IACD,gBAAgB,CACd,GAAG,EAAE,cAAc,GAAG,IAAI,CAAC,cAAc,GACxC,0BAA0B,CAAA;IAC7B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,gBAAgB,IAAI,MAAM,CAAA;IAC1B,kBAAkB,IAAI,MAAM,CAAA;IAC5B,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gCAAgC,GAAG,SAAS,CAAC,CAAA;IACxE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC,GACA,IAAI,CAAC,cAAc,CA2PrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract';
|
|
1
|
+
import { DateTimeFormat, IntlDateTimeFormatPart } from '@formatjs/ecma402-abstract';
|
|
2
2
|
import { ToLocalTimeImplDetails } from './ToLocalTime';
|
|
3
3
|
import { FormatDateTimePatternImplDetails } from './FormatDateTimePattern';
|
|
4
4
|
/**
|
|
@@ -6,5 +6,5 @@ import { FormatDateTimePatternImplDetails } from './FormatDateTimePattern';
|
|
|
6
6
|
* @param dtf
|
|
7
7
|
* @param x
|
|
8
8
|
*/
|
|
9
|
-
export declare function PartitionDateTimePattern(dtf: Intl.DateTimeFormat, x: number, implDetails: ToLocalTimeImplDetails & FormatDateTimePatternImplDetails): IntlDateTimeFormatPart[];
|
|
9
|
+
export declare function PartitionDateTimePattern(dtf: Intl.DateTimeFormat | DateTimeFormat, x: number, implDetails: ToLocalTimeImplDetails & FormatDateTimePatternImplDetails): IntlDateTimeFormatPart[];
|
|
10
10
|
//# sourceMappingURL=PartitionDateTimePattern.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartitionDateTimePattern.d.ts","sourceRoot":"","sources":["PartitionDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAIvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAA;AAEhC;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"PartitionDateTimePattern.d.ts","sourceRoot":"","sources":["PartitionDateTimePattern.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,sBAAsB,EAIvB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAA;AAEhC;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,IAAI,CAAC,cAAc,GAAG,cAAc,EACzC,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,sBAAsB,GAAG,gCAAgC,GACrE,sBAAsB,EAAE,CAkB1B"}
|
package/src/types.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ export interface UnpackedData {
|
|
|
12
12
|
*/
|
|
13
13
|
offsets: number[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type ZoneData = [
|
|
16
16
|
number | string,
|
|
17
17
|
number,
|
|
18
18
|
number,
|
|
19
19
|
number
|
|
20
20
|
];
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type RawDateTimeLocaleData = LocaleData<RawDateTimeLocaleInternalData>;
|
|
22
|
+
export type RawDateTimeLocaleInternalData = Omit<DateTimeFormatLocaleInternalData, 'dateFormat' | 'timeFormat' | 'dateTimeFormat' | 'formats' | 'intervalFormats'> & {
|
|
23
23
|
formats: Record<string, Record<string, string>>;
|
|
24
24
|
dateFormat: {
|
|
25
25
|
full: string;
|
|
@@ -41,7 +41,7 @@ export declare type RawDateTimeLocaleInternalData = Omit<DateTimeFormatLocaleInt
|
|
|
41
41
|
short: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type TimeZoneNameData = Record<string, {
|
|
45
45
|
long?: [string, string];
|
|
46
46
|
short?: [string, string];
|
|
47
47
|
}>;
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gCAAgC,EAChC,mBAAmB,EACpB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gCAAgC,EAChC,mBAAmB,EACpB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,MAAM,QAAQ,GAAG;IAErB,MAAM,GAAG,MAAM;IAEf,MAAM;IAEN,MAAM;IAEN,MAAM;CACP,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,6BAA6B,CAAC,CAAA;AAE7E,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,gCAAgC,EAChC,YAAY,GAAG,YAAY,GAAG,gBAAgB,GAAG,SAAS,GAAG,iBAAiB,CAC/E,GAAG;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC/C,UAAU,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAA;IACvE,UAAU,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAA;IACvE,eAAe,EAAE,mBAAmB,CAAA;IACpC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN;IACE,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzB,CACF,CAAA"}
|