@formatjs/intl-relativetimeformat 12.3.2 → 12.3.4
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/package.json +5 -5
- package/polyfill.iife.js +6 -579
- package/polyfill.js +1 -1
- package/polyfill.js.map +1 -1
- package/should-polyfill.js +1 -1
- package/should-polyfill.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-relativetimeformat",
|
|
3
3
|
"description": "Formats JavaScript dates to relative time strings.",
|
|
4
|
-
"version": "12.3.
|
|
4
|
+
"version": "12.3.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Long Ho <holevietlong@gmail.com>",
|
|
7
7
|
"type": "module",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"./locale-data": "./locale-data"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@formatjs/intl-localematcher": "0.8.
|
|
18
|
+
"@formatjs/intl-localematcher": "0.8.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@formatjs/intl-
|
|
22
|
-
"@formatjs/intl-pluralrules": "6.3.
|
|
23
|
-
"@formatjs/intl-
|
|
21
|
+
"@formatjs/intl-getcanonicallocales": "3.2.5",
|
|
22
|
+
"@formatjs/intl-pluralrules": "6.3.4",
|
|
23
|
+
"@formatjs/intl-locale": "5.3.4"
|
|
24
24
|
},
|
|
25
25
|
"bugs": "https://github.com/formatjs/formatjs/issues",
|
|
26
26
|
"gitHead": "a7842673d8ad205171ad7c8cb8bb2f318b427c0c",
|
package/polyfill.iife.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { supportedLocales } from "@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js";
|
|
1
2
|
//#region packages/ecma262-abstract/ToString.js
|
|
2
3
|
/**
|
|
3
4
|
* https://tc39.es/ecma262/#sec-tostring
|
|
@@ -3012,7 +3013,7 @@ const regions = {
|
|
|
3012
3013
|
"VG",
|
|
3013
3014
|
"VI"
|
|
3014
3015
|
],
|
|
3015
|
-
EU: [
|
|
3016
|
+
"EU": [
|
|
3016
3017
|
"AT",
|
|
3017
3018
|
"BE",
|
|
3018
3019
|
"BG",
|
|
@@ -3042,7 +3043,7 @@ const regions = {
|
|
|
3042
3043
|
"SI",
|
|
3043
3044
|
"SK"
|
|
3044
3045
|
],
|
|
3045
|
-
EZ: [
|
|
3046
|
+
"EZ": [
|
|
3046
3047
|
"AT",
|
|
3047
3048
|
"BE",
|
|
3048
3049
|
"CY",
|
|
@@ -3064,7 +3065,7 @@ const regions = {
|
|
|
3064
3065
|
"SI",
|
|
3065
3066
|
"SK"
|
|
3066
3067
|
],
|
|
3067
|
-
QO: [
|
|
3068
|
+
"QO": [
|
|
3068
3069
|
"AC",
|
|
3069
3070
|
"AQ",
|
|
3070
3071
|
"CP",
|
|
@@ -3072,7 +3073,7 @@ const regions = {
|
|
|
3072
3073
|
"QO",
|
|
3073
3074
|
"TA"
|
|
3074
3075
|
],
|
|
3075
|
-
UN: [
|
|
3076
|
+
"UN": [
|
|
3076
3077
|
"AD",
|
|
3077
3078
|
"AE",
|
|
3078
3079
|
"AF",
|
|
@@ -3538,6 +3539,7 @@ function findBestMatch(requestedLocales, supportedLocales, threshold = DEFAULT_M
|
|
|
3538
3539
|
} catch {}
|
|
3539
3540
|
}
|
|
3540
3541
|
if (result.matchedSupportedLocale && lowestDistance === 0) return result;
|
|
3542
|
+
lowestDistance = Infinity;
|
|
3541
3543
|
requestedLocales.forEach((desired, i) => {
|
|
3542
3544
|
if (!result.distances[desired]) result.distances[desired] = {};
|
|
3543
3545
|
canonicalizedSupportedLocales.forEach((canonicalLocale, supportedIndex) => {
|
|
@@ -4098,581 +4100,6 @@ try {
|
|
|
4098
4100
|
});
|
|
4099
4101
|
} catch {}
|
|
4100
4102
|
//#endregion
|
|
4101
|
-
//#region packages/intl-relativetimeformat/supported-locales.generated.ts
|
|
4102
|
-
const supportedLocales = [
|
|
4103
|
-
"af",
|
|
4104
|
-
"af-NA",
|
|
4105
|
-
"agq",
|
|
4106
|
-
"ak",
|
|
4107
|
-
"am",
|
|
4108
|
-
"ar",
|
|
4109
|
-
"ar-AE",
|
|
4110
|
-
"ar-BH",
|
|
4111
|
-
"ar-DJ",
|
|
4112
|
-
"ar-DZ",
|
|
4113
|
-
"ar-EG",
|
|
4114
|
-
"ar-EH",
|
|
4115
|
-
"ar-ER",
|
|
4116
|
-
"ar-IL",
|
|
4117
|
-
"ar-IQ",
|
|
4118
|
-
"ar-JO",
|
|
4119
|
-
"ar-KM",
|
|
4120
|
-
"ar-KW",
|
|
4121
|
-
"ar-LB",
|
|
4122
|
-
"ar-LY",
|
|
4123
|
-
"ar-MA",
|
|
4124
|
-
"ar-MR",
|
|
4125
|
-
"ar-OM",
|
|
4126
|
-
"ar-PS",
|
|
4127
|
-
"ar-QA",
|
|
4128
|
-
"ar-SA",
|
|
4129
|
-
"ar-SD",
|
|
4130
|
-
"ar-SO",
|
|
4131
|
-
"ar-SS",
|
|
4132
|
-
"ar-SY",
|
|
4133
|
-
"ar-TD",
|
|
4134
|
-
"ar-TN",
|
|
4135
|
-
"ar-YE",
|
|
4136
|
-
"as",
|
|
4137
|
-
"asa",
|
|
4138
|
-
"ast",
|
|
4139
|
-
"az",
|
|
4140
|
-
"az-Cyrl",
|
|
4141
|
-
"az-Latn",
|
|
4142
|
-
"bas",
|
|
4143
|
-
"be",
|
|
4144
|
-
"be-tarask",
|
|
4145
|
-
"bem",
|
|
4146
|
-
"bez",
|
|
4147
|
-
"bg",
|
|
4148
|
-
"bm",
|
|
4149
|
-
"bn",
|
|
4150
|
-
"bn-IN",
|
|
4151
|
-
"bo",
|
|
4152
|
-
"bo-IN",
|
|
4153
|
-
"br",
|
|
4154
|
-
"brx",
|
|
4155
|
-
"bs",
|
|
4156
|
-
"bs-Cyrl",
|
|
4157
|
-
"bs-Latn",
|
|
4158
|
-
"ca",
|
|
4159
|
-
"ca-AD",
|
|
4160
|
-
"ca-ES-valencia",
|
|
4161
|
-
"ca-FR",
|
|
4162
|
-
"ca-IT",
|
|
4163
|
-
"ccp",
|
|
4164
|
-
"ccp-IN",
|
|
4165
|
-
"ce",
|
|
4166
|
-
"ceb",
|
|
4167
|
-
"cgg",
|
|
4168
|
-
"chr",
|
|
4169
|
-
"ckb",
|
|
4170
|
-
"ckb-IR",
|
|
4171
|
-
"cs",
|
|
4172
|
-
"cy",
|
|
4173
|
-
"da",
|
|
4174
|
-
"da-GL",
|
|
4175
|
-
"dav",
|
|
4176
|
-
"de",
|
|
4177
|
-
"de-AT",
|
|
4178
|
-
"de-BE",
|
|
4179
|
-
"de-CH",
|
|
4180
|
-
"de-IT",
|
|
4181
|
-
"de-LI",
|
|
4182
|
-
"de-LU",
|
|
4183
|
-
"dje",
|
|
4184
|
-
"doi",
|
|
4185
|
-
"dsb",
|
|
4186
|
-
"dua",
|
|
4187
|
-
"dyo",
|
|
4188
|
-
"dz",
|
|
4189
|
-
"ebu",
|
|
4190
|
-
"ee",
|
|
4191
|
-
"ee-TG",
|
|
4192
|
-
"el",
|
|
4193
|
-
"el-CY",
|
|
4194
|
-
"en",
|
|
4195
|
-
"en-001",
|
|
4196
|
-
"en-150",
|
|
4197
|
-
"en-AE",
|
|
4198
|
-
"en-AG",
|
|
4199
|
-
"en-AI",
|
|
4200
|
-
"en-AS",
|
|
4201
|
-
"en-AT",
|
|
4202
|
-
"en-AU",
|
|
4203
|
-
"en-BB",
|
|
4204
|
-
"en-BE",
|
|
4205
|
-
"en-BI",
|
|
4206
|
-
"en-BM",
|
|
4207
|
-
"en-BS",
|
|
4208
|
-
"en-BW",
|
|
4209
|
-
"en-BZ",
|
|
4210
|
-
"en-CA",
|
|
4211
|
-
"en-CC",
|
|
4212
|
-
"en-CH",
|
|
4213
|
-
"en-CK",
|
|
4214
|
-
"en-CM",
|
|
4215
|
-
"en-CX",
|
|
4216
|
-
"en-CY",
|
|
4217
|
-
"en-DE",
|
|
4218
|
-
"en-DG",
|
|
4219
|
-
"en-DK",
|
|
4220
|
-
"en-DM",
|
|
4221
|
-
"en-ER",
|
|
4222
|
-
"en-FI",
|
|
4223
|
-
"en-FJ",
|
|
4224
|
-
"en-FK",
|
|
4225
|
-
"en-FM",
|
|
4226
|
-
"en-GB",
|
|
4227
|
-
"en-GD",
|
|
4228
|
-
"en-GG",
|
|
4229
|
-
"en-GH",
|
|
4230
|
-
"en-GI",
|
|
4231
|
-
"en-GM",
|
|
4232
|
-
"en-GU",
|
|
4233
|
-
"en-GY",
|
|
4234
|
-
"en-HK",
|
|
4235
|
-
"en-IE",
|
|
4236
|
-
"en-IL",
|
|
4237
|
-
"en-IM",
|
|
4238
|
-
"en-IN",
|
|
4239
|
-
"en-IO",
|
|
4240
|
-
"en-JE",
|
|
4241
|
-
"en-JM",
|
|
4242
|
-
"en-KE",
|
|
4243
|
-
"en-KI",
|
|
4244
|
-
"en-KN",
|
|
4245
|
-
"en-KY",
|
|
4246
|
-
"en-LC",
|
|
4247
|
-
"en-LR",
|
|
4248
|
-
"en-LS",
|
|
4249
|
-
"en-MG",
|
|
4250
|
-
"en-MH",
|
|
4251
|
-
"en-MO",
|
|
4252
|
-
"en-MP",
|
|
4253
|
-
"en-MS",
|
|
4254
|
-
"en-MT",
|
|
4255
|
-
"en-MU",
|
|
4256
|
-
"en-MW",
|
|
4257
|
-
"en-MY",
|
|
4258
|
-
"en-NA",
|
|
4259
|
-
"en-NF",
|
|
4260
|
-
"en-NG",
|
|
4261
|
-
"en-NL",
|
|
4262
|
-
"en-NR",
|
|
4263
|
-
"en-NU",
|
|
4264
|
-
"en-NZ",
|
|
4265
|
-
"en-PG",
|
|
4266
|
-
"en-PH",
|
|
4267
|
-
"en-PK",
|
|
4268
|
-
"en-PN",
|
|
4269
|
-
"en-PR",
|
|
4270
|
-
"en-PW",
|
|
4271
|
-
"en-RW",
|
|
4272
|
-
"en-SB",
|
|
4273
|
-
"en-SC",
|
|
4274
|
-
"en-SD",
|
|
4275
|
-
"en-SE",
|
|
4276
|
-
"en-SG",
|
|
4277
|
-
"en-SH",
|
|
4278
|
-
"en-SI",
|
|
4279
|
-
"en-SL",
|
|
4280
|
-
"en-SS",
|
|
4281
|
-
"en-SX",
|
|
4282
|
-
"en-SZ",
|
|
4283
|
-
"en-TC",
|
|
4284
|
-
"en-TK",
|
|
4285
|
-
"en-TO",
|
|
4286
|
-
"en-TT",
|
|
4287
|
-
"en-TV",
|
|
4288
|
-
"en-TZ",
|
|
4289
|
-
"en-UG",
|
|
4290
|
-
"en-UM",
|
|
4291
|
-
"en-VC",
|
|
4292
|
-
"en-VG",
|
|
4293
|
-
"en-VI",
|
|
4294
|
-
"en-VU",
|
|
4295
|
-
"en-WS",
|
|
4296
|
-
"en-ZA",
|
|
4297
|
-
"en-ZM",
|
|
4298
|
-
"en-ZW",
|
|
4299
|
-
"eo",
|
|
4300
|
-
"es",
|
|
4301
|
-
"es-419",
|
|
4302
|
-
"es-AR",
|
|
4303
|
-
"es-BO",
|
|
4304
|
-
"es-BR",
|
|
4305
|
-
"es-BZ",
|
|
4306
|
-
"es-CL",
|
|
4307
|
-
"es-CO",
|
|
4308
|
-
"es-CR",
|
|
4309
|
-
"es-CU",
|
|
4310
|
-
"es-DO",
|
|
4311
|
-
"es-EA",
|
|
4312
|
-
"es-EC",
|
|
4313
|
-
"es-GQ",
|
|
4314
|
-
"es-GT",
|
|
4315
|
-
"es-HN",
|
|
4316
|
-
"es-IC",
|
|
4317
|
-
"es-MX",
|
|
4318
|
-
"es-NI",
|
|
4319
|
-
"es-PA",
|
|
4320
|
-
"es-PE",
|
|
4321
|
-
"es-PH",
|
|
4322
|
-
"es-PR",
|
|
4323
|
-
"es-PY",
|
|
4324
|
-
"es-SV",
|
|
4325
|
-
"es-US",
|
|
4326
|
-
"es-UY",
|
|
4327
|
-
"es-VE",
|
|
4328
|
-
"et",
|
|
4329
|
-
"eu",
|
|
4330
|
-
"ewo",
|
|
4331
|
-
"fa",
|
|
4332
|
-
"fa-AF",
|
|
4333
|
-
"ff",
|
|
4334
|
-
"ff-Adlm",
|
|
4335
|
-
"ff-Adlm-BF",
|
|
4336
|
-
"ff-Adlm-CM",
|
|
4337
|
-
"ff-Adlm-GH",
|
|
4338
|
-
"ff-Adlm-GM",
|
|
4339
|
-
"ff-Adlm-GW",
|
|
4340
|
-
"ff-Adlm-LR",
|
|
4341
|
-
"ff-Adlm-MR",
|
|
4342
|
-
"ff-Adlm-NE",
|
|
4343
|
-
"ff-Adlm-NG",
|
|
4344
|
-
"ff-Adlm-SL",
|
|
4345
|
-
"ff-Adlm-SN",
|
|
4346
|
-
"ff-Latn",
|
|
4347
|
-
"ff-Latn-BF",
|
|
4348
|
-
"ff-Latn-CM",
|
|
4349
|
-
"ff-Latn-GH",
|
|
4350
|
-
"ff-Latn-GM",
|
|
4351
|
-
"ff-Latn-GN",
|
|
4352
|
-
"ff-Latn-GW",
|
|
4353
|
-
"ff-Latn-LR",
|
|
4354
|
-
"ff-Latn-MR",
|
|
4355
|
-
"ff-Latn-NE",
|
|
4356
|
-
"ff-Latn-NG",
|
|
4357
|
-
"ff-Latn-SL",
|
|
4358
|
-
"fi",
|
|
4359
|
-
"fil",
|
|
4360
|
-
"fo",
|
|
4361
|
-
"fo-DK",
|
|
4362
|
-
"fr",
|
|
4363
|
-
"fr-BE",
|
|
4364
|
-
"fr-BF",
|
|
4365
|
-
"fr-BI",
|
|
4366
|
-
"fr-BJ",
|
|
4367
|
-
"fr-BL",
|
|
4368
|
-
"fr-CA",
|
|
4369
|
-
"fr-CD",
|
|
4370
|
-
"fr-CF",
|
|
4371
|
-
"fr-CG",
|
|
4372
|
-
"fr-CH",
|
|
4373
|
-
"fr-CI",
|
|
4374
|
-
"fr-CM",
|
|
4375
|
-
"fr-DJ",
|
|
4376
|
-
"fr-DZ",
|
|
4377
|
-
"fr-GA",
|
|
4378
|
-
"fr-GF",
|
|
4379
|
-
"fr-GN",
|
|
4380
|
-
"fr-GP",
|
|
4381
|
-
"fr-GQ",
|
|
4382
|
-
"fr-HT",
|
|
4383
|
-
"fr-KM",
|
|
4384
|
-
"fr-LU",
|
|
4385
|
-
"fr-MA",
|
|
4386
|
-
"fr-MC",
|
|
4387
|
-
"fr-MF",
|
|
4388
|
-
"fr-MG",
|
|
4389
|
-
"fr-ML",
|
|
4390
|
-
"fr-MQ",
|
|
4391
|
-
"fr-MR",
|
|
4392
|
-
"fr-MU",
|
|
4393
|
-
"fr-NC",
|
|
4394
|
-
"fr-NE",
|
|
4395
|
-
"fr-PF",
|
|
4396
|
-
"fr-PM",
|
|
4397
|
-
"fr-RE",
|
|
4398
|
-
"fr-RW",
|
|
4399
|
-
"fr-SC",
|
|
4400
|
-
"fr-SN",
|
|
4401
|
-
"fr-SY",
|
|
4402
|
-
"fr-TD",
|
|
4403
|
-
"fr-TG",
|
|
4404
|
-
"fr-TN",
|
|
4405
|
-
"fr-VU",
|
|
4406
|
-
"fr-WF",
|
|
4407
|
-
"fr-YT",
|
|
4408
|
-
"fur",
|
|
4409
|
-
"fy",
|
|
4410
|
-
"ga",
|
|
4411
|
-
"ga-GB",
|
|
4412
|
-
"gd",
|
|
4413
|
-
"gl",
|
|
4414
|
-
"gsw",
|
|
4415
|
-
"gsw-FR",
|
|
4416
|
-
"gsw-LI",
|
|
4417
|
-
"gu",
|
|
4418
|
-
"guz",
|
|
4419
|
-
"gv",
|
|
4420
|
-
"ha",
|
|
4421
|
-
"ha-GH",
|
|
4422
|
-
"ha-NE",
|
|
4423
|
-
"haw",
|
|
4424
|
-
"he",
|
|
4425
|
-
"hi",
|
|
4426
|
-
"hr",
|
|
4427
|
-
"hr-BA",
|
|
4428
|
-
"hsb",
|
|
4429
|
-
"hu",
|
|
4430
|
-
"hy",
|
|
4431
|
-
"ia",
|
|
4432
|
-
"id",
|
|
4433
|
-
"ig",
|
|
4434
|
-
"ii",
|
|
4435
|
-
"is",
|
|
4436
|
-
"it",
|
|
4437
|
-
"it-CH",
|
|
4438
|
-
"it-SM",
|
|
4439
|
-
"it-VA",
|
|
4440
|
-
"ja",
|
|
4441
|
-
"jgo",
|
|
4442
|
-
"jmc",
|
|
4443
|
-
"jv",
|
|
4444
|
-
"ka",
|
|
4445
|
-
"kab",
|
|
4446
|
-
"kam",
|
|
4447
|
-
"kde",
|
|
4448
|
-
"kea",
|
|
4449
|
-
"kgp",
|
|
4450
|
-
"khq",
|
|
4451
|
-
"ki",
|
|
4452
|
-
"kk",
|
|
4453
|
-
"kkj",
|
|
4454
|
-
"kl",
|
|
4455
|
-
"kln",
|
|
4456
|
-
"km",
|
|
4457
|
-
"kn",
|
|
4458
|
-
"ko",
|
|
4459
|
-
"ko-KP",
|
|
4460
|
-
"kok",
|
|
4461
|
-
"ks",
|
|
4462
|
-
"ks-Arab",
|
|
4463
|
-
"ksb",
|
|
4464
|
-
"ksf",
|
|
4465
|
-
"ksh",
|
|
4466
|
-
"ku",
|
|
4467
|
-
"kw",
|
|
4468
|
-
"ky",
|
|
4469
|
-
"lag",
|
|
4470
|
-
"lb",
|
|
4471
|
-
"lg",
|
|
4472
|
-
"lkt",
|
|
4473
|
-
"ln",
|
|
4474
|
-
"ln-AO",
|
|
4475
|
-
"ln-CF",
|
|
4476
|
-
"ln-CG",
|
|
4477
|
-
"lo",
|
|
4478
|
-
"lrc",
|
|
4479
|
-
"lrc-IQ",
|
|
4480
|
-
"lt",
|
|
4481
|
-
"lu",
|
|
4482
|
-
"luo",
|
|
4483
|
-
"luy",
|
|
4484
|
-
"lv",
|
|
4485
|
-
"mai",
|
|
4486
|
-
"mas",
|
|
4487
|
-
"mas-TZ",
|
|
4488
|
-
"mer",
|
|
4489
|
-
"mfe",
|
|
4490
|
-
"mg",
|
|
4491
|
-
"mgh",
|
|
4492
|
-
"mgo",
|
|
4493
|
-
"mi",
|
|
4494
|
-
"mk",
|
|
4495
|
-
"ml",
|
|
4496
|
-
"mn",
|
|
4497
|
-
"mni",
|
|
4498
|
-
"mni-Beng",
|
|
4499
|
-
"mr",
|
|
4500
|
-
"ms",
|
|
4501
|
-
"ms-BN",
|
|
4502
|
-
"ms-ID",
|
|
4503
|
-
"ms-SG",
|
|
4504
|
-
"mt",
|
|
4505
|
-
"mua",
|
|
4506
|
-
"my",
|
|
4507
|
-
"mzn",
|
|
4508
|
-
"naq",
|
|
4509
|
-
"nb",
|
|
4510
|
-
"nb-SJ",
|
|
4511
|
-
"nd",
|
|
4512
|
-
"nds",
|
|
4513
|
-
"nds-NL",
|
|
4514
|
-
"ne",
|
|
4515
|
-
"ne-IN",
|
|
4516
|
-
"nl",
|
|
4517
|
-
"nl-AW",
|
|
4518
|
-
"nl-BE",
|
|
4519
|
-
"nl-BQ",
|
|
4520
|
-
"nl-CW",
|
|
4521
|
-
"nl-SR",
|
|
4522
|
-
"nl-SX",
|
|
4523
|
-
"nmg",
|
|
4524
|
-
"nn",
|
|
4525
|
-
"nnh",
|
|
4526
|
-
"no",
|
|
4527
|
-
"nus",
|
|
4528
|
-
"nyn",
|
|
4529
|
-
"om",
|
|
4530
|
-
"om-KE",
|
|
4531
|
-
"or",
|
|
4532
|
-
"os",
|
|
4533
|
-
"os-RU",
|
|
4534
|
-
"pa",
|
|
4535
|
-
"pa-Arab",
|
|
4536
|
-
"pa-Guru",
|
|
4537
|
-
"pcm",
|
|
4538
|
-
"pl",
|
|
4539
|
-
"ps",
|
|
4540
|
-
"ps-PK",
|
|
4541
|
-
"pt",
|
|
4542
|
-
"pt-AO",
|
|
4543
|
-
"pt-CH",
|
|
4544
|
-
"pt-CV",
|
|
4545
|
-
"pt-GQ",
|
|
4546
|
-
"pt-GW",
|
|
4547
|
-
"pt-LU",
|
|
4548
|
-
"pt-MO",
|
|
4549
|
-
"pt-MZ",
|
|
4550
|
-
"pt-PT",
|
|
4551
|
-
"pt-ST",
|
|
4552
|
-
"pt-TL",
|
|
4553
|
-
"qu",
|
|
4554
|
-
"qu-BO",
|
|
4555
|
-
"qu-EC",
|
|
4556
|
-
"rm",
|
|
4557
|
-
"rn",
|
|
4558
|
-
"ro",
|
|
4559
|
-
"ro-MD",
|
|
4560
|
-
"rof",
|
|
4561
|
-
"ru",
|
|
4562
|
-
"ru-BY",
|
|
4563
|
-
"ru-KG",
|
|
4564
|
-
"ru-KZ",
|
|
4565
|
-
"ru-MD",
|
|
4566
|
-
"ru-UA",
|
|
4567
|
-
"rw",
|
|
4568
|
-
"rwk",
|
|
4569
|
-
"sa",
|
|
4570
|
-
"sah",
|
|
4571
|
-
"saq",
|
|
4572
|
-
"sat",
|
|
4573
|
-
"sat-Olck",
|
|
4574
|
-
"sbp",
|
|
4575
|
-
"sc",
|
|
4576
|
-
"sd",
|
|
4577
|
-
"sd-Arab",
|
|
4578
|
-
"sd-Deva",
|
|
4579
|
-
"se",
|
|
4580
|
-
"se-FI",
|
|
4581
|
-
"se-SE",
|
|
4582
|
-
"seh",
|
|
4583
|
-
"ses",
|
|
4584
|
-
"sg",
|
|
4585
|
-
"shi",
|
|
4586
|
-
"shi-Latn",
|
|
4587
|
-
"shi-Tfng",
|
|
4588
|
-
"si",
|
|
4589
|
-
"sk",
|
|
4590
|
-
"sl",
|
|
4591
|
-
"smn",
|
|
4592
|
-
"sn",
|
|
4593
|
-
"so",
|
|
4594
|
-
"so-DJ",
|
|
4595
|
-
"so-ET",
|
|
4596
|
-
"so-KE",
|
|
4597
|
-
"sq",
|
|
4598
|
-
"sq-MK",
|
|
4599
|
-
"sq-XK",
|
|
4600
|
-
"sr",
|
|
4601
|
-
"sr-Cyrl",
|
|
4602
|
-
"sr-Cyrl-BA",
|
|
4603
|
-
"sr-Cyrl-ME",
|
|
4604
|
-
"sr-Cyrl-XK",
|
|
4605
|
-
"sr-Latn",
|
|
4606
|
-
"sr-Latn-BA",
|
|
4607
|
-
"sr-Latn-ME",
|
|
4608
|
-
"sr-Latn-XK",
|
|
4609
|
-
"su",
|
|
4610
|
-
"su-Latn",
|
|
4611
|
-
"sv",
|
|
4612
|
-
"sv-AX",
|
|
4613
|
-
"sv-FI",
|
|
4614
|
-
"sw",
|
|
4615
|
-
"sw-CD",
|
|
4616
|
-
"sw-KE",
|
|
4617
|
-
"sw-UG",
|
|
4618
|
-
"ta",
|
|
4619
|
-
"ta-LK",
|
|
4620
|
-
"ta-MY",
|
|
4621
|
-
"ta-SG",
|
|
4622
|
-
"te",
|
|
4623
|
-
"teo",
|
|
4624
|
-
"teo-KE",
|
|
4625
|
-
"tg",
|
|
4626
|
-
"th",
|
|
4627
|
-
"ti",
|
|
4628
|
-
"ti-ER",
|
|
4629
|
-
"tk",
|
|
4630
|
-
"to",
|
|
4631
|
-
"tr",
|
|
4632
|
-
"tr-CY",
|
|
4633
|
-
"tt",
|
|
4634
|
-
"twq",
|
|
4635
|
-
"tzm",
|
|
4636
|
-
"ug",
|
|
4637
|
-
"uk",
|
|
4638
|
-
"und",
|
|
4639
|
-
"ur",
|
|
4640
|
-
"ur-IN",
|
|
4641
|
-
"uz",
|
|
4642
|
-
"uz-Arab",
|
|
4643
|
-
"uz-Cyrl",
|
|
4644
|
-
"uz-Latn",
|
|
4645
|
-
"vai",
|
|
4646
|
-
"vai-Latn",
|
|
4647
|
-
"vai-Vaii",
|
|
4648
|
-
"vi",
|
|
4649
|
-
"vun",
|
|
4650
|
-
"wae",
|
|
4651
|
-
"wo",
|
|
4652
|
-
"xh",
|
|
4653
|
-
"xog",
|
|
4654
|
-
"yav",
|
|
4655
|
-
"yi",
|
|
4656
|
-
"yo",
|
|
4657
|
-
"yo-BJ",
|
|
4658
|
-
"yrl",
|
|
4659
|
-
"yrl-CO",
|
|
4660
|
-
"yrl-VE",
|
|
4661
|
-
"yue",
|
|
4662
|
-
"yue-Hans",
|
|
4663
|
-
"yue-Hant",
|
|
4664
|
-
"zgh",
|
|
4665
|
-
"zh",
|
|
4666
|
-
"zh-Hans",
|
|
4667
|
-
"zh-Hans-HK",
|
|
4668
|
-
"zh-Hans-MO",
|
|
4669
|
-
"zh-Hans-SG",
|
|
4670
|
-
"zh-Hant",
|
|
4671
|
-
"zh-Hant-HK",
|
|
4672
|
-
"zh-Hant-MO",
|
|
4673
|
-
"zu"
|
|
4674
|
-
];
|
|
4675
|
-
//#endregion
|
|
4676
4103
|
//#region packages/intl-relativetimeformat/should-polyfill.ts
|
|
4677
4104
|
function supportedLocalesOf(locale) {
|
|
4678
4105
|
if (!locale) return true;
|
package/polyfill.js
CHANGED
|
@@ -405,7 +405,7 @@ try {
|
|
|
405
405
|
});
|
|
406
406
|
} catch {}
|
|
407
407
|
//#endregion
|
|
408
|
-
//#region
|
|
408
|
+
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js
|
|
409
409
|
const supportedLocales = [
|
|
410
410
|
"af",
|
|
411
411
|
"af-NA",
|
package/polyfill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma262-abstract/ToString.js","../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/SupportedLocales.js","../../ecma402-abstract/CoerceOptionsToObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/RelativeTimeFormat/InitializeRelativeTimeFormat.js","../../ecma262-abstract/SameValue.js","../../ecma262-abstract/Type.js","../../ecma402-abstract/RelativeTimeFormat/SingularRelativeTimeUnit.js","../../ecma402-abstract/PartitionPattern.js","../../ecma402-abstract/RelativeTimeFormat/MakePartsList.js","../../ecma402-abstract/RelativeTimeFormat/PartitionRelativeTimePattern.js","../get_internal_slots.ts","../index.ts","../supported-locales.generated.ts","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\n/**\n* https://tc39.es/ecma402/#sec-coerceoptionstoobject\n* @param options\n* @returns\n*/\nexport function CoerceOptionsToObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\treturn ToObject(options);\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { CanonicalizeLocaleList } from \"#packages/ecma402-abstract/CanonicalizeLocaleList.js\";\nimport { CoerceOptionsToObject } from \"#packages/ecma402-abstract/CoerceOptionsToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\nimport \"#packages/ecma402-abstract/types/relative-time.js\";\nimport { createMemoizedNumberFormat, createMemoizedPluralRules, invariant } from \"#packages/ecma402-abstract/utils.js\";\nimport { ResolveLocale } from \"@formatjs/intl-localematcher\";\nconst NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;\nexport function InitializeRelativeTimeFormat(rtf, locales, options, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale }) {\n\tconst internalSlots = getInternalSlots(rtf);\n\tinternalSlots.initializedRelativeTimeFormat = true;\n\tconst requestedLocales = CanonicalizeLocaleList(locales);\n\tconst opt = Object.create(null);\n\tconst opts = CoerceOptionsToObject(options);\n\tconst matcher = GetOption(opts, \"localeMatcher\", \"string\", [\"best fit\", \"lookup\"], \"best fit\");\n\topt.localeMatcher = matcher;\n\tconst numberingSystem = GetOption(\n\t\topts,\n\t\t// @ts-expect-error TS option is wack\n\t\t\"numberingSystem\",\n\t\t\"string\",\n\t\tundefined,\n\t\tundefined\n\t);\n\tif (numberingSystem !== undefined) {\n\t\tif (!NUMBERING_SYSTEM_REGEX.test(numberingSystem)) {\n\t\t\tthrow new RangeError(`Invalid numbering system ${numberingSystem}`);\n\t\t}\n\t}\n\topt.nu = numberingSystem;\n\tconst r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);\n\tconst { locale, nu } = r;\n\tinternalSlots.locale = locale;\n\tinternalSlots.style = GetOption(opts, \"style\", \"string\", [\n\t\t\"long\",\n\t\t\"narrow\",\n\t\t\"short\"\n\t], \"long\");\n\tinternalSlots.numeric = GetOption(opts, \"numeric\", \"string\", [\"always\", \"auto\"], \"always\");\n\tconst fields = localeData[r.dataLocale];\n\tinvariant(!!fields, `Missing locale data for ${r.dataLocale}`);\n\tinternalSlots.fields = fields;\n\tinternalSlots.numberFormat = createMemoizedNumberFormat(locales);\n\tinternalSlots.pluralRules = createMemoizedPluralRules(locales);\n\tinternalSlots.numberingSystem = nu;\n\treturn rtf;\n}\n","/**\n* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-samevalue\n*/\nexport function SameValue(x, y) {\n\tif (Object.is) {\n\t\treturn Object.is(x, y);\n\t}\n\tif (x === y) {\n\t\treturn x !== 0 || 1 / x === 1 / y;\n\t}\n\treturn x !== x && y !== y;\n}\n","/**\n* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type\n*/\nexport function Type(x) {\n\tif (x === null) {\n\t\treturn \"Null\";\n\t}\n\tif (typeof x === \"undefined\") {\n\t\treturn \"Undefined\";\n\t}\n\tif (typeof x === \"function\" || typeof x === \"object\") {\n\t\treturn \"Object\";\n\t}\n\tif (typeof x === \"number\") {\n\t\treturn \"Number\";\n\t}\n\tif (typeof x === \"boolean\") {\n\t\treturn \"Boolean\";\n\t}\n\tif (typeof x === \"string\") {\n\t\treturn \"String\";\n\t}\n\tif (typeof x === \"symbol\") {\n\t\treturn \"Symbol\";\n\t}\n\tif (typeof x === \"bigint\") {\n\t\treturn \"BigInt\";\n\t}\n}\n","import { Type } from \"#packages/ecma262-abstract/Type.js\";\nimport \"#packages/ecma402-abstract/types/relative-time.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit\n* @param unit\n*/\nexport function SingularRelativeTimeUnit(unit) {\n\tinvariant(Type(unit) === \"String\", \"unit must be a string\");\n\tif (unit === \"seconds\") return \"second\";\n\tif (unit === \"minutes\") return \"minute\";\n\tif (unit === \"hours\") return \"hour\";\n\tif (unit === \"days\") return \"day\";\n\tif (unit === \"weeks\") return \"week\";\n\tif (unit === \"months\") return \"month\";\n\tif (unit === \"quarters\") return \"quarter\";\n\tif (unit === \"years\") return \"year\";\n\tif (unit !== \"second\" && unit !== \"minute\" && unit !== \"hour\" && unit !== \"day\" && unit !== \"week\" && unit !== \"month\" && unit !== \"quarter\" && unit !== \"year\") {\n\t\tthrow new RangeError(\"invalid unit\");\n\t}\n\treturn unit;\n}\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","import { PartitionPattern } from \"#packages/ecma402-abstract/PartitionPattern.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\nexport function MakePartsList(pattern, unit, parts) {\n\tconst patternParts = PartitionPattern(pattern);\n\tconst result = [];\n\tfor (const patternPart of patternParts) {\n\t\tif (patternPart.type === \"literal\") {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: patternPart.value\n\t\t\t});\n\t\t} else {\n\t\t\tinvariant(patternPart.type === \"0\", `Malformed pattern ${pattern}`);\n\t\t\tfor (const part of parts) {\n\t\t\t\tresult.push({\n\t\t\t\t\ttype: part.type,\n\t\t\t\t\tvalue: part.value,\n\t\t\t\t\tunit\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}\n","import { SameValue } from \"#packages/ecma262-abstract/SameValue.js\";\nimport { ToString } from \"#packages/ecma262-abstract/ToString.js\";\nimport { Type } from \"#packages/ecma262-abstract/Type.js\";\nimport \"#packages/ecma402-abstract/types/plural-rules.js\";\nimport \"#packages/ecma402-abstract/types/relative-time.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\nimport { SingularRelativeTimeUnit } from \"#packages/ecma402-abstract/RelativeTimeFormat/SingularRelativeTimeUnit.js\";\nimport { MakePartsList } from \"#packages/ecma402-abstract/RelativeTimeFormat/MakePartsList.js\";\nexport function PartitionRelativeTimePattern(rtf, value, unit, { getInternalSlots }) {\n\tinvariant(Type(value) === \"Number\", `value must be number, instead got ${typeof value}`, TypeError);\n\tinvariant(Type(unit) === \"String\", `unit must be number, instead got ${typeof value}`, TypeError);\n\tif (isNaN(value) || !isFinite(value)) {\n\t\tthrow new RangeError(`Invalid value ${value}`);\n\t}\n\tconst resolvedUnit = SingularRelativeTimeUnit(unit);\n\tconst { fields, style, numeric, pluralRules, numberFormat } = getInternalSlots(rtf);\n\tlet entry = resolvedUnit;\n\tif (style === \"short\") {\n\t\tentry = `${resolvedUnit}-short`;\n\t} else if (style === \"narrow\") {\n\t\tentry = `${resolvedUnit}-narrow`;\n\t}\n\tif (!(entry in fields)) {\n\t\tentry = resolvedUnit;\n\t}\n\tconst patterns = fields[entry];\n\tif (numeric === \"auto\") {\n\t\tif (ToString(value) in patterns) {\n\t\t\treturn [{\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: patterns[ToString(value)]\n\t\t\t}];\n\t\t}\n\t}\n\tlet tl = \"future\";\n\tif (SameValue(value, -0) || value < 0) {\n\t\ttl = \"past\";\n\t}\n\tconst po = patterns[tl];\n\tconst fv = typeof numberFormat.formatToParts === \"function\" ? numberFormat.formatToParts(Math.abs(value)) : \n\t// number is a part\n[{\n\t\ttype: \"literal\",\n\t\tvalue: numberFormat.format(Math.abs(value)),\n\t\tunit\n\t}];\n\tconst pr = pluralRules.select(value);\n\tconst pattern = po[pr];\n\treturn MakePartsList(pattern, resolvedUnit, fv);\n}\n","// Type-only circular import\n// eslint-disable-next-line import/no-cycle\n\nimport {type RelativeTimeFormatInternal} from '#packages/ecma402-abstract/types/relative-time.js'\n\nconst internalSlotMap = new WeakMap<\n Intl.RelativeTimeFormat,\n RelativeTimeFormatInternal\n>()\n\nexport default function getInternalSlots(\n x: Intl.RelativeTimeFormat\n): RelativeTimeFormatInternal {\n let internalSlots = internalSlotMap.get(x)\n if (!internalSlots) {\n internalSlots = Object.create(null) as RelativeTimeFormatInternal\n internalSlotMap.set(x, internalSlots)\n }\n return internalSlots\n}\n","import {ToString} from '#packages/ecma262-abstract/ToString.js'\nimport {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type LocaleFieldsData,\n type RelativeTimeLocaleData,\n} from '#packages/ecma402-abstract/types/relative-time.js'\nimport {InitializeRelativeTimeFormat} from '#packages/ecma402-abstract/RelativeTimeFormat/InitializeRelativeTimeFormat.js'\nimport {PartitionRelativeTimePattern} from '#packages/ecma402-abstract/RelativeTimeFormat/PartitionRelativeTimePattern.js'\nimport getInternalSlots from '#packages/intl-relativetimeformat/get_internal_slots.js'\n\nexport default class RelativeTimeFormat {\n constructor(\n locales?: string | string[],\n options?: Intl.RelativeTimeFormatOptions\n ) {\n // test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof RelativeTimeFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.RelativeTimeFormat must be called with 'new'\")\n }\n return InitializeRelativeTimeFormat(this, locales, options, {\n getInternalSlots,\n availableLocales: RelativeTimeFormat.availableLocales,\n relevantExtensionKeys: RelativeTimeFormat.relevantExtensionKeys,\n localeData: RelativeTimeFormat.localeData,\n getDefaultLocale: RelativeTimeFormat.getDefaultLocale,\n })\n }\n format(value: number, unit: Intl.RelativeTimeFormatUnit): string {\n if (typeof this !== 'object') {\n throw new TypeError('format was called on a non-object')\n }\n const internalSlots = getInternalSlots(this)\n if (!internalSlots.initializedRelativeTimeFormat) {\n throw new TypeError('format was called on a invalid context')\n }\n return PartitionRelativeTimePattern(\n this,\n Number(value),\n ToString(unit) as Intl.RelativeTimeFormatUnit,\n {\n getInternalSlots,\n }\n )\n .map(el => el.value)\n .join('')\n }\n formatToParts(\n value: number,\n unit: Intl.RelativeTimeFormatUnit\n ): Intl.RelativeTimeFormatPart[] {\n if (typeof this !== 'object') {\n throw new TypeError('formatToParts was called on a non-object')\n }\n const internalSlots = getInternalSlots(this)\n if (!internalSlots.initializedRelativeTimeFormat) {\n throw new TypeError('formatToParts was called on a invalid context')\n }\n return PartitionRelativeTimePattern(\n this,\n Number(value),\n ToString(unit) as Intl.RelativeTimeFormatUnit,\n {getInternalSlots}\n )\n }\n\n resolvedOptions(): Intl.ResolvedRelativeTimeFormatOptions {\n if (typeof this !== 'object') {\n throw new TypeError('resolvedOptions was called on a non-object')\n }\n const internalSlots = getInternalSlots(this)\n if (!internalSlots.initializedRelativeTimeFormat) {\n throw new TypeError('resolvedOptions was called on a invalid context')\n }\n\n // test262/test/intl402/RelativeTimeFormat/prototype/resolvedOptions/type.js\n return {\n locale: internalSlots.locale,\n style: internalSlots.style,\n numeric: internalSlots.numeric,\n numberingSystem: internalSlots.numberingSystem,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<Intl.RelativeTimeFormatOptions, 'localeMatcher'>\n ): string[] {\n return SupportedLocales(\n RelativeTimeFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: RelativeTimeLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n RelativeTimeFormat.localeData[locale] = RelativeTimeFormat.localeData[\n minimizedLocale\n ] = d\n RelativeTimeFormat.availableLocales.add(minimizedLocale)\n RelativeTimeFormat.availableLocales.add(locale)\n if (!RelativeTimeFormat.__defaultLocale) {\n RelativeTimeFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, LocaleFieldsData> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return RelativeTimeFormat.__defaultLocale\n }\n private static relevantExtensionKeys = ['nu']\n public static polyfilled = true\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(RelativeTimeFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.RelativeTimeFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/length.js\n Object.defineProperty(RelativeTimeFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(RelativeTimeFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n","export const supportedLocales: string[] = [\n 'af',\n 'af-NA',\n 'agq',\n 'ak',\n 'am',\n 'ar',\n 'ar-AE',\n 'ar-BH',\n 'ar-DJ',\n 'ar-DZ',\n 'ar-EG',\n 'ar-EH',\n 'ar-ER',\n 'ar-IL',\n 'ar-IQ',\n 'ar-JO',\n 'ar-KM',\n 'ar-KW',\n 'ar-LB',\n 'ar-LY',\n 'ar-MA',\n 'ar-MR',\n 'ar-OM',\n 'ar-PS',\n 'ar-QA',\n 'ar-SA',\n 'ar-SD',\n 'ar-SO',\n 'ar-SS',\n 'ar-SY',\n 'ar-TD',\n 'ar-TN',\n 'ar-YE',\n 'as',\n 'asa',\n 'ast',\n 'az',\n 'az-Cyrl',\n 'az-Latn',\n 'bas',\n 'be',\n 'be-tarask',\n 'bem',\n 'bez',\n 'bg',\n 'bm',\n 'bn',\n 'bn-IN',\n 'bo',\n 'bo-IN',\n 'br',\n 'brx',\n 'bs',\n 'bs-Cyrl',\n 'bs-Latn',\n 'ca',\n 'ca-AD',\n 'ca-ES-valencia',\n 'ca-FR',\n 'ca-IT',\n 'ccp',\n 'ccp-IN',\n 'ce',\n 'ceb',\n 'cgg',\n 'chr',\n 'ckb',\n 'ckb-IR',\n 'cs',\n 'cy',\n 'da',\n 'da-GL',\n 'dav',\n 'de',\n 'de-AT',\n 'de-BE',\n 'de-CH',\n 'de-IT',\n 'de-LI',\n 'de-LU',\n 'dje',\n 'doi',\n 'dsb',\n 'dua',\n 'dyo',\n 'dz',\n 'ebu',\n 'ee',\n 'ee-TG',\n 'el',\n 'el-CY',\n 'en',\n 'en-001',\n 'en-150',\n 'en-AE',\n 'en-AG',\n 'en-AI',\n 'en-AS',\n 'en-AT',\n 'en-AU',\n 'en-BB',\n 'en-BE',\n 'en-BI',\n 'en-BM',\n 'en-BS',\n 'en-BW',\n 'en-BZ',\n 'en-CA',\n 'en-CC',\n 'en-CH',\n 'en-CK',\n 'en-CM',\n 'en-CX',\n 'en-CY',\n 'en-DE',\n 'en-DG',\n 'en-DK',\n 'en-DM',\n 'en-ER',\n 'en-FI',\n 'en-FJ',\n 'en-FK',\n 'en-FM',\n 'en-GB',\n 'en-GD',\n 'en-GG',\n 'en-GH',\n 'en-GI',\n 'en-GM',\n 'en-GU',\n 'en-GY',\n 'en-HK',\n 'en-IE',\n 'en-IL',\n 'en-IM',\n 'en-IN',\n 'en-IO',\n 'en-JE',\n 'en-JM',\n 'en-KE',\n 'en-KI',\n 'en-KN',\n 'en-KY',\n 'en-LC',\n 'en-LR',\n 'en-LS',\n 'en-MG',\n 'en-MH',\n 'en-MO',\n 'en-MP',\n 'en-MS',\n 'en-MT',\n 'en-MU',\n 'en-MW',\n 'en-MY',\n 'en-NA',\n 'en-NF',\n 'en-NG',\n 'en-NL',\n 'en-NR',\n 'en-NU',\n 'en-NZ',\n 'en-PG',\n 'en-PH',\n 'en-PK',\n 'en-PN',\n 'en-PR',\n 'en-PW',\n 'en-RW',\n 'en-SB',\n 'en-SC',\n 'en-SD',\n 'en-SE',\n 'en-SG',\n 'en-SH',\n 'en-SI',\n 'en-SL',\n 'en-SS',\n 'en-SX',\n 'en-SZ',\n 'en-TC',\n 'en-TK',\n 'en-TO',\n 'en-TT',\n 'en-TV',\n 'en-TZ',\n 'en-UG',\n 'en-UM',\n 'en-VC',\n 'en-VG',\n 'en-VI',\n 'en-VU',\n 'en-WS',\n 'en-ZA',\n 'en-ZM',\n 'en-ZW',\n 'eo',\n 'es',\n 'es-419',\n 'es-AR',\n 'es-BO',\n 'es-BR',\n 'es-BZ',\n 'es-CL',\n 'es-CO',\n 'es-CR',\n 'es-CU',\n 'es-DO',\n 'es-EA',\n 'es-EC',\n 'es-GQ',\n 'es-GT',\n 'es-HN',\n 'es-IC',\n 'es-MX',\n 'es-NI',\n 'es-PA',\n 'es-PE',\n 'es-PH',\n 'es-PR',\n 'es-PY',\n 'es-SV',\n 'es-US',\n 'es-UY',\n 'es-VE',\n 'et',\n 'eu',\n 'ewo',\n 'fa',\n 'fa-AF',\n 'ff',\n 'ff-Adlm',\n 'ff-Adlm-BF',\n 'ff-Adlm-CM',\n 'ff-Adlm-GH',\n 'ff-Adlm-GM',\n 'ff-Adlm-GW',\n 'ff-Adlm-LR',\n 'ff-Adlm-MR',\n 'ff-Adlm-NE',\n 'ff-Adlm-NG',\n 'ff-Adlm-SL',\n 'ff-Adlm-SN',\n 'ff-Latn',\n 'ff-Latn-BF',\n 'ff-Latn-CM',\n 'ff-Latn-GH',\n 'ff-Latn-GM',\n 'ff-Latn-GN',\n 'ff-Latn-GW',\n 'ff-Latn-LR',\n 'ff-Latn-MR',\n 'ff-Latn-NE',\n 'ff-Latn-NG',\n 'ff-Latn-SL',\n 'fi',\n 'fil',\n 'fo',\n 'fo-DK',\n 'fr',\n 'fr-BE',\n 'fr-BF',\n 'fr-BI',\n 'fr-BJ',\n 'fr-BL',\n 'fr-CA',\n 'fr-CD',\n 'fr-CF',\n 'fr-CG',\n 'fr-CH',\n 'fr-CI',\n 'fr-CM',\n 'fr-DJ',\n 'fr-DZ',\n 'fr-GA',\n 'fr-GF',\n 'fr-GN',\n 'fr-GP',\n 'fr-GQ',\n 'fr-HT',\n 'fr-KM',\n 'fr-LU',\n 'fr-MA',\n 'fr-MC',\n 'fr-MF',\n 'fr-MG',\n 'fr-ML',\n 'fr-MQ',\n 'fr-MR',\n 'fr-MU',\n 'fr-NC',\n 'fr-NE',\n 'fr-PF',\n 'fr-PM',\n 'fr-RE',\n 'fr-RW',\n 'fr-SC',\n 'fr-SN',\n 'fr-SY',\n 'fr-TD',\n 'fr-TG',\n 'fr-TN',\n 'fr-VU',\n 'fr-WF',\n 'fr-YT',\n 'fur',\n 'fy',\n 'ga',\n 'ga-GB',\n 'gd',\n 'gl',\n 'gsw',\n 'gsw-FR',\n 'gsw-LI',\n 'gu',\n 'guz',\n 'gv',\n 'ha',\n 'ha-GH',\n 'ha-NE',\n 'haw',\n 'he',\n 'hi',\n 'hr',\n 'hr-BA',\n 'hsb',\n 'hu',\n 'hy',\n 'ia',\n 'id',\n 'ig',\n 'ii',\n 'is',\n 'it',\n 'it-CH',\n 'it-SM',\n 'it-VA',\n 'ja',\n 'jgo',\n 'jmc',\n 'jv',\n 'ka',\n 'kab',\n 'kam',\n 'kde',\n 'kea',\n 'kgp',\n 'khq',\n 'ki',\n 'kk',\n 'kkj',\n 'kl',\n 'kln',\n 'km',\n 'kn',\n 'ko',\n 'ko-KP',\n 'kok',\n 'ks',\n 'ks-Arab',\n 'ksb',\n 'ksf',\n 'ksh',\n 'ku',\n 'kw',\n 'ky',\n 'lag',\n 'lb',\n 'lg',\n 'lkt',\n 'ln',\n 'ln-AO',\n 'ln-CF',\n 'ln-CG',\n 'lo',\n 'lrc',\n 'lrc-IQ',\n 'lt',\n 'lu',\n 'luo',\n 'luy',\n 'lv',\n 'mai',\n 'mas',\n 'mas-TZ',\n 'mer',\n 'mfe',\n 'mg',\n 'mgh',\n 'mgo',\n 'mi',\n 'mk',\n 'ml',\n 'mn',\n 'mni',\n 'mni-Beng',\n 'mr',\n 'ms',\n 'ms-BN',\n 'ms-ID',\n 'ms-SG',\n 'mt',\n 'mua',\n 'my',\n 'mzn',\n 'naq',\n 'nb',\n 'nb-SJ',\n 'nd',\n 'nds',\n 'nds-NL',\n 'ne',\n 'ne-IN',\n 'nl',\n 'nl-AW',\n 'nl-BE',\n 'nl-BQ',\n 'nl-CW',\n 'nl-SR',\n 'nl-SX',\n 'nmg',\n 'nn',\n 'nnh',\n 'no',\n 'nus',\n 'nyn',\n 'om',\n 'om-KE',\n 'or',\n 'os',\n 'os-RU',\n 'pa',\n 'pa-Arab',\n 'pa-Guru',\n 'pcm',\n 'pl',\n 'ps',\n 'ps-PK',\n 'pt',\n 'pt-AO',\n 'pt-CH',\n 'pt-CV',\n 'pt-GQ',\n 'pt-GW',\n 'pt-LU',\n 'pt-MO',\n 'pt-MZ',\n 'pt-PT',\n 'pt-ST',\n 'pt-TL',\n 'qu',\n 'qu-BO',\n 'qu-EC',\n 'rm',\n 'rn',\n 'ro',\n 'ro-MD',\n 'rof',\n 'ru',\n 'ru-BY',\n 'ru-KG',\n 'ru-KZ',\n 'ru-MD',\n 'ru-UA',\n 'rw',\n 'rwk',\n 'sa',\n 'sah',\n 'saq',\n 'sat',\n 'sat-Olck',\n 'sbp',\n 'sc',\n 'sd',\n 'sd-Arab',\n 'sd-Deva',\n 'se',\n 'se-FI',\n 'se-SE',\n 'seh',\n 'ses',\n 'sg',\n 'shi',\n 'shi-Latn',\n 'shi-Tfng',\n 'si',\n 'sk',\n 'sl',\n 'smn',\n 'sn',\n 'so',\n 'so-DJ',\n 'so-ET',\n 'so-KE',\n 'sq',\n 'sq-MK',\n 'sq-XK',\n 'sr',\n 'sr-Cyrl',\n 'sr-Cyrl-BA',\n 'sr-Cyrl-ME',\n 'sr-Cyrl-XK',\n 'sr-Latn',\n 'sr-Latn-BA',\n 'sr-Latn-ME',\n 'sr-Latn-XK',\n 'su',\n 'su-Latn',\n 'sv',\n 'sv-AX',\n 'sv-FI',\n 'sw',\n 'sw-CD',\n 'sw-KE',\n 'sw-UG',\n 'ta',\n 'ta-LK',\n 'ta-MY',\n 'ta-SG',\n 'te',\n 'teo',\n 'teo-KE',\n 'tg',\n 'th',\n 'ti',\n 'ti-ER',\n 'tk',\n 'to',\n 'tr',\n 'tr-CY',\n 'tt',\n 'twq',\n 'tzm',\n 'ug',\n 'uk',\n 'und',\n 'ur',\n 'ur-IN',\n 'uz',\n 'uz-Arab',\n 'uz-Cyrl',\n 'uz-Latn',\n 'vai',\n 'vai-Latn',\n 'vai-Vaii',\n 'vi',\n 'vun',\n 'wae',\n 'wo',\n 'xh',\n 'xog',\n 'yav',\n 'yi',\n 'yo',\n 'yo-BJ',\n 'yrl',\n 'yrl-CO',\n 'yrl-VE',\n 'yue',\n 'yue-Hans',\n 'yue-Hant',\n 'zgh',\n 'zh',\n 'zh-Hans',\n 'zh-Hans-HK',\n 'zh-Hans-MO',\n 'zh-Hans-SG',\n 'zh-Hant',\n 'zh-Hant-HK',\n 'zh-Hant-MO',\n 'zu',\n]\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '#packages/intl-relativetimeformat/supported-locales.generated.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n Intl.RelativeTimeFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nfunction hasResolvedOptionsNumberingSystem(locale?: string | string[]) {\n try {\n return (\n 'numberingSystem' in\n new Intl.RelativeTimeFormat(locale || 'en', {\n numeric: 'auto',\n }).resolvedOptions()\n )\n } catch {\n return false\n }\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (\n !('RelativeTimeFormat' in Intl) ||\n !supportedLocalesOf(locale) ||\n !hasResolvedOptionsNumberingSystem(locale)\n ) {\n return match([locale], supportedLocales, 'en')\n }\n}\n","import RelativeTimeFormat from '#packages/intl-relativetimeformat/index.js'\nimport {shouldPolyfill} from '#packages/intl-relativetimeformat/should-polyfill.js'\nif (shouldPolyfill()) {\n Object.defineProperty(Intl, 'RelativeTimeFormat', {\n value: RelativeTimeFormat,\n writable: true,\n enumerable: false,\n configurable: true,\n })\n\n // Drain any locale data that was buffered before polyfill loaded\n const buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_RELATIVETIMEFORMAT_DATA__ as\n | Parameters<(typeof RelativeTimeFormat)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) RelativeTimeFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>)\n .__FORMATJS_RELATIVETIMEFORMAT_DATA__\n }\n}\n"],"x_google_ignoreList":[6],"mappings":";;;;;AAGA,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;ACHjB,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,KAAK;AAC7B,KAAI,OAAO,KACV,OAAM,IAAI,UAAU,+CAA+C;AAEpE,QAAO,OAAO,IAAI;;;;;;;;;;;;ACEnB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;AACjB,KAAI,UAAU,KAAA,GAAW;AACxB,MAAI,SAAS,aAAa,SAAS,SAClC,OAAM,IAAI,UAAU,eAAe;AAEpC,MAAI,SAAS,UACZ,SAAQ,QAAQ,MAAM;AAEvB,MAAI,SAAS,SACZ,SAAQ,SAAS,MAAM;AAExB,MAAI,WAAW,KAAA,KAAa,CAAC,OAAO,QAAQ,QAAQ,OAAO,MAAM,CAAC,OACjE,OAAM,IAAI,WAAW,GAAG,MAAM,iBAAiB,OAAO,KAAK,KAAK,GAAG;AAEpE,SAAO;;AAER,QAAO;;;;;;;;;;ACpBR,SAAgB,iBAAiB,kBAAkB,kBAAkB,SAAS;CAC7E,IAAI,UAAU;AACd,KAAI,YAAY,KAAA,GAAW;AAC1B,YAAU,SAAS,QAAQ;AAC3B,YAAU,UAAU,SAAS,iBAAiB,UAAU,CAAC,UAAU,WAAW,EAAE,WAAW;;AAE5F,KAAI,YAAY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;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;ACzjBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACE,KAAK,mBAAmB,mBAAmB,QAAQ,CAAC,WACpD,QAAQ;;AAIZ,SAAS,kCAAkC,QAA4B;AACrE,KAAI;AACF,SACE,qBACA,IAAI,KAAK,mBAAmB,UAAU,MAAM,EAC1C,SAAS,QACV,CAAC,CAAC,iBAAiB;SAEhB;AACN,SAAO;;;AAIX,SAAgB,eAAe,SAAS,MAA0B;AAChE,KACE,EAAE,wBAAwB,SAC1B,CAAC,mBAAmB,OAAO,IAC3B,CAAC,kCAAkC,OAAO,CAE1C,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK;;;;AC/BlD,IAAI,gBAAgB,EAAE;AACpB,QAAO,eAAe,MAAM,sBAAsB;EAChD,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAGF,MAAM,MAAO,WACV;AAGH,KAAI,KAAK;AACP,OAAK,MAAM,KAAK,IAAK,oBAAmB,gBAAgB,EAAE;AAC1D,SAAQ,WACL"}
|
|
1
|
+
{"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma262-abstract/ToString.js","../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/SupportedLocales.js","../../ecma402-abstract/CoerceOptionsToObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/RelativeTimeFormat/InitializeRelativeTimeFormat.js","../../ecma262-abstract/SameValue.js","../../ecma262-abstract/Type.js","../../ecma402-abstract/RelativeTimeFormat/SingularRelativeTimeUnit.js","../../ecma402-abstract/PartitionPattern.js","../../ecma402-abstract/RelativeTimeFormat/MakePartsList.js","../../ecma402-abstract/RelativeTimeFormat/PartitionRelativeTimePattern.js","../get_internal_slots.ts","../index.ts","../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\n/**\n* https://tc39.es/ecma402/#sec-coerceoptionstoobject\n* @param options\n* @returns\n*/\nexport function CoerceOptionsToObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\treturn ToObject(options);\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { CanonicalizeLocaleList } from \"#packages/ecma402-abstract/CanonicalizeLocaleList.js\";\nimport { CoerceOptionsToObject } from \"#packages/ecma402-abstract/CoerceOptionsToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\nimport \"#packages/ecma402-abstract/types/relative-time.js\";\nimport { createMemoizedNumberFormat, createMemoizedPluralRules, invariant } from \"#packages/ecma402-abstract/utils.js\";\nimport { ResolveLocale } from \"@formatjs/intl-localematcher\";\nconst NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;\nexport function InitializeRelativeTimeFormat(rtf, locales, options, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale }) {\n\tconst internalSlots = getInternalSlots(rtf);\n\tinternalSlots.initializedRelativeTimeFormat = true;\n\tconst requestedLocales = CanonicalizeLocaleList(locales);\n\tconst opt = Object.create(null);\n\tconst opts = CoerceOptionsToObject(options);\n\tconst matcher = GetOption(opts, \"localeMatcher\", \"string\", [\"best fit\", \"lookup\"], \"best fit\");\n\topt.localeMatcher = matcher;\n\tconst numberingSystem = GetOption(\n\t\topts,\n\t\t// @ts-expect-error TS option is wack\n\t\t\"numberingSystem\",\n\t\t\"string\",\n\t\tundefined,\n\t\tundefined\n\t);\n\tif (numberingSystem !== undefined) {\n\t\tif (!NUMBERING_SYSTEM_REGEX.test(numberingSystem)) {\n\t\t\tthrow new RangeError(`Invalid numbering system ${numberingSystem}`);\n\t\t}\n\t}\n\topt.nu = numberingSystem;\n\tconst r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);\n\tconst { locale, nu } = r;\n\tinternalSlots.locale = locale;\n\tinternalSlots.style = GetOption(opts, \"style\", \"string\", [\n\t\t\"long\",\n\t\t\"narrow\",\n\t\t\"short\"\n\t], \"long\");\n\tinternalSlots.numeric = GetOption(opts, \"numeric\", \"string\", [\"always\", \"auto\"], \"always\");\n\tconst fields = localeData[r.dataLocale];\n\tinvariant(!!fields, `Missing locale data for ${r.dataLocale}`);\n\tinternalSlots.fields = fields;\n\tinternalSlots.numberFormat = createMemoizedNumberFormat(locales);\n\tinternalSlots.pluralRules = createMemoizedPluralRules(locales);\n\tinternalSlots.numberingSystem = nu;\n\treturn rtf;\n}\n","/**\n* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-samevalue\n*/\nexport function SameValue(x, y) {\n\tif (Object.is) {\n\t\treturn Object.is(x, y);\n\t}\n\tif (x === y) {\n\t\treturn x !== 0 || 1 / x === 1 / y;\n\t}\n\treturn x !== x && y !== y;\n}\n","/**\n* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type\n*/\nexport function Type(x) {\n\tif (x === null) {\n\t\treturn \"Null\";\n\t}\n\tif (typeof x === \"undefined\") {\n\t\treturn \"Undefined\";\n\t}\n\tif (typeof x === \"function\" || typeof x === \"object\") {\n\t\treturn \"Object\";\n\t}\n\tif (typeof x === \"number\") {\n\t\treturn \"Number\";\n\t}\n\tif (typeof x === \"boolean\") {\n\t\treturn \"Boolean\";\n\t}\n\tif (typeof x === \"string\") {\n\t\treturn \"String\";\n\t}\n\tif (typeof x === \"symbol\") {\n\t\treturn \"Symbol\";\n\t}\n\tif (typeof x === \"bigint\") {\n\t\treturn \"BigInt\";\n\t}\n}\n","import { Type } from \"#packages/ecma262-abstract/Type.js\";\nimport \"#packages/ecma402-abstract/types/relative-time.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit\n* @param unit\n*/\nexport function SingularRelativeTimeUnit(unit) {\n\tinvariant(Type(unit) === \"String\", \"unit must be a string\");\n\tif (unit === \"seconds\") return \"second\";\n\tif (unit === \"minutes\") return \"minute\";\n\tif (unit === \"hours\") return \"hour\";\n\tif (unit === \"days\") return \"day\";\n\tif (unit === \"weeks\") return \"week\";\n\tif (unit === \"months\") return \"month\";\n\tif (unit === \"quarters\") return \"quarter\";\n\tif (unit === \"years\") return \"year\";\n\tif (unit !== \"second\" && unit !== \"minute\" && unit !== \"hour\" && unit !== \"day\" && unit !== \"week\" && unit !== \"month\" && unit !== \"quarter\" && unit !== \"year\") {\n\t\tthrow new RangeError(\"invalid unit\");\n\t}\n\treturn unit;\n}\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","import { PartitionPattern } from \"#packages/ecma402-abstract/PartitionPattern.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\nexport function MakePartsList(pattern, unit, parts) {\n\tconst patternParts = PartitionPattern(pattern);\n\tconst result = [];\n\tfor (const patternPart of patternParts) {\n\t\tif (patternPart.type === \"literal\") {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: patternPart.value\n\t\t\t});\n\t\t} else {\n\t\t\tinvariant(patternPart.type === \"0\", `Malformed pattern ${pattern}`);\n\t\t\tfor (const part of parts) {\n\t\t\t\tresult.push({\n\t\t\t\t\ttype: part.type,\n\t\t\t\t\tvalue: part.value,\n\t\t\t\t\tunit\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}\n","import { SameValue } from \"#packages/ecma262-abstract/SameValue.js\";\nimport { ToString } from \"#packages/ecma262-abstract/ToString.js\";\nimport { Type } from \"#packages/ecma262-abstract/Type.js\";\nimport \"#packages/ecma402-abstract/types/plural-rules.js\";\nimport \"#packages/ecma402-abstract/types/relative-time.js\";\nimport { invariant } from \"#packages/ecma402-abstract/utils.js\";\nimport { SingularRelativeTimeUnit } from \"#packages/ecma402-abstract/RelativeTimeFormat/SingularRelativeTimeUnit.js\";\nimport { MakePartsList } from \"#packages/ecma402-abstract/RelativeTimeFormat/MakePartsList.js\";\nexport function PartitionRelativeTimePattern(rtf, value, unit, { getInternalSlots }) {\n\tinvariant(Type(value) === \"Number\", `value must be number, instead got ${typeof value}`, TypeError);\n\tinvariant(Type(unit) === \"String\", `unit must be number, instead got ${typeof value}`, TypeError);\n\tif (isNaN(value) || !isFinite(value)) {\n\t\tthrow new RangeError(`Invalid value ${value}`);\n\t}\n\tconst resolvedUnit = SingularRelativeTimeUnit(unit);\n\tconst { fields, style, numeric, pluralRules, numberFormat } = getInternalSlots(rtf);\n\tlet entry = resolvedUnit;\n\tif (style === \"short\") {\n\t\tentry = `${resolvedUnit}-short`;\n\t} else if (style === \"narrow\") {\n\t\tentry = `${resolvedUnit}-narrow`;\n\t}\n\tif (!(entry in fields)) {\n\t\tentry = resolvedUnit;\n\t}\n\tconst patterns = fields[entry];\n\tif (numeric === \"auto\") {\n\t\tif (ToString(value) in patterns) {\n\t\t\treturn [{\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: patterns[ToString(value)]\n\t\t\t}];\n\t\t}\n\t}\n\tlet tl = \"future\";\n\tif (SameValue(value, -0) || value < 0) {\n\t\ttl = \"past\";\n\t}\n\tconst po = patterns[tl];\n\tconst fv = typeof numberFormat.formatToParts === \"function\" ? numberFormat.formatToParts(Math.abs(value)) : \n\t// number is a part\n[{\n\t\ttype: \"literal\",\n\t\tvalue: numberFormat.format(Math.abs(value)),\n\t\tunit\n\t}];\n\tconst pr = pluralRules.select(value);\n\tconst pattern = po[pr];\n\treturn MakePartsList(pattern, resolvedUnit, fv);\n}\n","// Type-only circular import\n// eslint-disable-next-line import/no-cycle\n\nimport {type RelativeTimeFormatInternal} from '#packages/ecma402-abstract/types/relative-time.js'\n\nconst internalSlotMap = new WeakMap<\n Intl.RelativeTimeFormat,\n RelativeTimeFormatInternal\n>()\n\nexport default function getInternalSlots(\n x: Intl.RelativeTimeFormat\n): RelativeTimeFormatInternal {\n let internalSlots = internalSlotMap.get(x)\n if (!internalSlots) {\n internalSlots = Object.create(null) as RelativeTimeFormatInternal\n internalSlotMap.set(x, internalSlots)\n }\n return internalSlots\n}\n","import {ToString} from '#packages/ecma262-abstract/ToString.js'\nimport {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type LocaleFieldsData,\n type RelativeTimeLocaleData,\n} from '#packages/ecma402-abstract/types/relative-time.js'\nimport {InitializeRelativeTimeFormat} from '#packages/ecma402-abstract/RelativeTimeFormat/InitializeRelativeTimeFormat.js'\nimport {PartitionRelativeTimePattern} from '#packages/ecma402-abstract/RelativeTimeFormat/PartitionRelativeTimePattern.js'\nimport getInternalSlots from '#packages/intl-relativetimeformat/get_internal_slots.js'\n\nexport default class RelativeTimeFormat {\n constructor(\n locales?: string | string[],\n options?: Intl.RelativeTimeFormatOptions\n ) {\n // test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof RelativeTimeFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.RelativeTimeFormat must be called with 'new'\")\n }\n return InitializeRelativeTimeFormat(this, locales, options, {\n getInternalSlots,\n availableLocales: RelativeTimeFormat.availableLocales,\n relevantExtensionKeys: RelativeTimeFormat.relevantExtensionKeys,\n localeData: RelativeTimeFormat.localeData,\n getDefaultLocale: RelativeTimeFormat.getDefaultLocale,\n })\n }\n format(value: number, unit: Intl.RelativeTimeFormatUnit): string {\n if (typeof this !== 'object') {\n throw new TypeError('format was called on a non-object')\n }\n const internalSlots = getInternalSlots(this)\n if (!internalSlots.initializedRelativeTimeFormat) {\n throw new TypeError('format was called on a invalid context')\n }\n return PartitionRelativeTimePattern(\n this,\n Number(value),\n ToString(unit) as Intl.RelativeTimeFormatUnit,\n {\n getInternalSlots,\n }\n )\n .map(el => el.value)\n .join('')\n }\n formatToParts(\n value: number,\n unit: Intl.RelativeTimeFormatUnit\n ): Intl.RelativeTimeFormatPart[] {\n if (typeof this !== 'object') {\n throw new TypeError('formatToParts was called on a non-object')\n }\n const internalSlots = getInternalSlots(this)\n if (!internalSlots.initializedRelativeTimeFormat) {\n throw new TypeError('formatToParts was called on a invalid context')\n }\n return PartitionRelativeTimePattern(\n this,\n Number(value),\n ToString(unit) as Intl.RelativeTimeFormatUnit,\n {getInternalSlots}\n )\n }\n\n resolvedOptions(): Intl.ResolvedRelativeTimeFormatOptions {\n if (typeof this !== 'object') {\n throw new TypeError('resolvedOptions was called on a non-object')\n }\n const internalSlots = getInternalSlots(this)\n if (!internalSlots.initializedRelativeTimeFormat) {\n throw new TypeError('resolvedOptions was called on a invalid context')\n }\n\n // test262/test/intl402/RelativeTimeFormat/prototype/resolvedOptions/type.js\n return {\n locale: internalSlots.locale,\n style: internalSlots.style,\n numeric: internalSlots.numeric,\n numberingSystem: internalSlots.numberingSystem,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<Intl.RelativeTimeFormatOptions, 'localeMatcher'>\n ): string[] {\n return SupportedLocales(\n RelativeTimeFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: RelativeTimeLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n RelativeTimeFormat.localeData[locale] = RelativeTimeFormat.localeData[\n minimizedLocale\n ] = d\n RelativeTimeFormat.availableLocales.add(minimizedLocale)\n RelativeTimeFormat.availableLocales.add(locale)\n if (!RelativeTimeFormat.__defaultLocale) {\n RelativeTimeFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, LocaleFieldsData> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return RelativeTimeFormat.__defaultLocale\n }\n private static relevantExtensionKeys = ['nu']\n public static polyfilled = true\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(RelativeTimeFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.RelativeTimeFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/length.js\n Object.defineProperty(RelativeTimeFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/RelativeTimeFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(RelativeTimeFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n","export const supportedLocales = [\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bez\",\n\t\"bg\",\n\t\"bm\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"chr\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"cs\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-ER\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PW\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n\t\"eu\",\n\t\"ewo\",\n\t\"fa\",\n\t\"fa-AF\",\n\t\"ff\",\n\t\"ff-Adlm\",\n\t\"ff-Adlm-BF\",\n\t\"ff-Adlm-CM\",\n\t\"ff-Adlm-GH\",\n\t\"ff-Adlm-GM\",\n\t\"ff-Adlm-GW\",\n\t\"ff-Adlm-LR\",\n\t\"ff-Adlm-MR\",\n\t\"ff-Adlm-NE\",\n\t\"ff-Adlm-NG\",\n\t\"ff-Adlm-SL\",\n\t\"ff-Adlm-SN\",\n\t\"ff-Latn\",\n\t\"ff-Latn-BF\",\n\t\"ff-Latn-CM\",\n\t\"ff-Latn-GH\",\n\t\"ff-Latn-GM\",\n\t\"ff-Latn-GN\",\n\t\"ff-Latn-GW\",\n\t\"ff-Latn-LR\",\n\t\"ff-Latn-MR\",\n\t\"ff-Latn-NE\",\n\t\"ff-Latn-NG\",\n\t\"ff-Latn-SL\",\n\t\"fi\",\n\t\"fil\",\n\t\"fo\",\n\t\"fo-DK\",\n\t\"fr\",\n\t\"fr-BE\",\n\t\"fr-BF\",\n\t\"fr-BI\",\n\t\"fr-BJ\",\n\t\"fr-BL\",\n\t\"fr-CA\",\n\t\"fr-CD\",\n\t\"fr-CF\",\n\t\"fr-CG\",\n\t\"fr-CH\",\n\t\"fr-CI\",\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Arab\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"kw\",\n\t\"ky\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lkt\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mi\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"my\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nus\",\n\t\"nyn\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pcm\",\n\t\"pl\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"si\",\n\t\"sk\",\n\t\"sl\",\n\t\"smn\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tk\",\n\t\"to\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"tt\",\n\t\"twq\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"vi\",\n\t\"vun\",\n\t\"wae\",\n\t\"wo\",\n\t\"xh\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n Intl.RelativeTimeFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nfunction hasResolvedOptionsNumberingSystem(locale?: string | string[]) {\n try {\n return (\n 'numberingSystem' in\n new Intl.RelativeTimeFormat(locale || 'en', {\n numeric: 'auto',\n }).resolvedOptions()\n )\n } catch {\n return false\n }\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (\n !('RelativeTimeFormat' in Intl) ||\n !supportedLocalesOf(locale) ||\n !hasResolvedOptionsNumberingSystem(locale)\n ) {\n return match([locale], supportedLocales, 'en')\n }\n}\n","import RelativeTimeFormat from '#packages/intl-relativetimeformat/index.js'\nimport {shouldPolyfill} from '#packages/intl-relativetimeformat/should-polyfill.js'\nif (shouldPolyfill()) {\n Object.defineProperty(Intl, 'RelativeTimeFormat', {\n value: RelativeTimeFormat,\n writable: true,\n enumerable: false,\n configurable: true,\n })\n\n // Drain any locale data that was buffered before polyfill loaded\n const buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_RELATIVETIMEFORMAT_DATA__ as\n | Parameters<(typeof RelativeTimeFormat)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) RelativeTimeFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>)\n .__FORMATJS_RELATIVETIMEFORMAT_DATA__\n }\n}\n"],"x_google_ignoreList":[6,17],"mappings":";;;;;AAGA,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;ACHjB,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,KAAK;AAC7B,KAAI,OAAO,KACV,OAAM,IAAI,UAAU,+CAA+C;AAEpE,QAAO,OAAO,IAAI;;;;;;;;;;;;ACEnB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;AACjB,KAAI,UAAU,KAAA,GAAW;AACxB,MAAI,SAAS,aAAa,SAAS,SAClC,OAAM,IAAI,UAAU,eAAe;AAEpC,MAAI,SAAS,UACZ,SAAQ,QAAQ,MAAM;AAEvB,MAAI,SAAS,SACZ,SAAQ,SAAS,MAAM;AAExB,MAAI,WAAW,KAAA,KAAa,CAAC,OAAO,QAAQ,QAAQ,OAAO,MAAM,CAAC,OACjE,OAAM,IAAI,WAAW,GAAG,MAAM,iBAAiB,OAAO,KAAK,KAAK,GAAG;AAEpE,SAAO;;AAER,QAAO;;;;;;;;;;ACpBR,SAAgB,iBAAiB,kBAAkB,kBAAkB,SAAS;CAC7E,IAAI,UAAU;AACd,KAAI,YAAY,KAAA,GAAW;AAC1B,YAAU,SAAS,QAAQ;AAC3B,YAAU,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mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;ACzjBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACE,KAAK,mBAAmB,mBAAmB,QAAQ,CAAC,WACpD,QAAQ;;AAIZ,SAAS,kCAAkC,QAA4B;AACrE,KAAI;AACF,SACE,qBACA,IAAI,KAAK,mBAAmB,UAAU,MAAM,EAC1C,SAAS,QACV,CAAC,CAAC,iBAAiB;SAEhB;AACN,SAAO;;;AAIX,SAAgB,eAAe,SAAS,MAA0B;AAChE,KACE,EAAE,wBAAwB,SAC1B,CAAC,mBAAmB,OAAO,IAC3B,CAAC,kCAAkC,OAAO,CAE1C,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK;;;;AC/BlD,IAAI,gBAAgB,EAAE;AACpB,QAAO,eAAe,MAAM,sBAAsB;EAChD,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAGF,MAAM,MAAO,WACV;AAGH,KAAI,KAAK;AACP,OAAK,MAAM,KAAK,IAAK,oBAAmB,gBAAgB,EAAE;AAC1D,SAAQ,WACL"}
|
package/should-polyfill.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { match } from "@formatjs/intl-localematcher";
|
|
2
|
-
//#region
|
|
2
|
+
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js
|
|
3
3
|
const supportedLocales = [
|
|
4
4
|
"af",
|
|
5
5
|
"af-NA",
|
package/should-polyfill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-polyfill.js","names":[],"sources":["../supported-locales.generated.ts","../should-polyfill.ts"],"sourcesContent":["export const supportedLocales: string[] = [\n 'af',\n 'af-NA',\n 'agq',\n 'ak',\n 'am',\n 'ar',\n 'ar-AE',\n 'ar-BH',\n 'ar-DJ',\n 'ar-DZ',\n 'ar-EG',\n 'ar-EH',\n 'ar-ER',\n 'ar-IL',\n 'ar-IQ',\n 'ar-JO',\n 'ar-KM',\n 'ar-KW',\n 'ar-LB',\n 'ar-LY',\n 'ar-MA',\n 'ar-MR',\n 'ar-OM',\n 'ar-PS',\n 'ar-QA',\n 'ar-SA',\n 'ar-SD',\n 'ar-SO',\n 'ar-SS',\n 'ar-SY',\n 'ar-TD',\n 'ar-TN',\n 'ar-YE',\n 'as',\n 'asa',\n 'ast',\n 'az',\n 'az-Cyrl',\n 'az-Latn',\n 'bas',\n 'be',\n 'be-tarask',\n 'bem',\n 'bez',\n 'bg',\n 'bm',\n 'bn',\n 'bn-IN',\n 'bo',\n 'bo-IN',\n 'br',\n 'brx',\n 'bs',\n 'bs-Cyrl',\n 'bs-Latn',\n 'ca',\n 'ca-AD',\n 'ca-ES-valencia',\n 'ca-FR',\n 'ca-IT',\n 'ccp',\n 'ccp-IN',\n 'ce',\n 'ceb',\n 'cgg',\n 'chr',\n 'ckb',\n 'ckb-IR',\n 'cs',\n 'cy',\n 'da',\n 'da-GL',\n 'dav',\n 'de',\n 'de-AT',\n 'de-BE',\n 'de-CH',\n 'de-IT',\n 'de-LI',\n 'de-LU',\n 'dje',\n 'doi',\n 'dsb',\n 'dua',\n 'dyo',\n 'dz',\n 'ebu',\n 'ee',\n 'ee-TG',\n 'el',\n 'el-CY',\n 'en',\n 'en-001',\n 'en-150',\n 'en-AE',\n 'en-AG',\n 'en-AI',\n 'en-AS',\n 'en-AT',\n 'en-AU',\n 'en-BB',\n 'en-BE',\n 'en-BI',\n 'en-BM',\n 'en-BS',\n 'en-BW',\n 'en-BZ',\n 'en-CA',\n 'en-CC',\n 'en-CH',\n 'en-CK',\n 'en-CM',\n 'en-CX',\n 'en-CY',\n 'en-DE',\n 'en-DG',\n 'en-DK',\n 'en-DM',\n 'en-ER',\n 'en-FI',\n 'en-FJ',\n 'en-FK',\n 'en-FM',\n 'en-GB',\n 'en-GD',\n 'en-GG',\n 'en-GH',\n 'en-GI',\n 'en-GM',\n 'en-GU',\n 'en-GY',\n 'en-HK',\n 'en-IE',\n 'en-IL',\n 'en-IM',\n 'en-IN',\n 'en-IO',\n 'en-JE',\n 'en-JM',\n 'en-KE',\n 'en-KI',\n 'en-KN',\n 'en-KY',\n 'en-LC',\n 'en-LR',\n 'en-LS',\n 'en-MG',\n 'en-MH',\n 'en-MO',\n 'en-MP',\n 'en-MS',\n 'en-MT',\n 'en-MU',\n 'en-MW',\n 'en-MY',\n 'en-NA',\n 'en-NF',\n 'en-NG',\n 'en-NL',\n 'en-NR',\n 'en-NU',\n 'en-NZ',\n 'en-PG',\n 'en-PH',\n 'en-PK',\n 'en-PN',\n 'en-PR',\n 'en-PW',\n 'en-RW',\n 'en-SB',\n 'en-SC',\n 'en-SD',\n 'en-SE',\n 'en-SG',\n 'en-SH',\n 'en-SI',\n 'en-SL',\n 'en-SS',\n 'en-SX',\n 'en-SZ',\n 'en-TC',\n 'en-TK',\n 'en-TO',\n 'en-TT',\n 'en-TV',\n 'en-TZ',\n 'en-UG',\n 'en-UM',\n 'en-VC',\n 'en-VG',\n 'en-VI',\n 'en-VU',\n 'en-WS',\n 'en-ZA',\n 'en-ZM',\n 'en-ZW',\n 'eo',\n 'es',\n 'es-419',\n 'es-AR',\n 'es-BO',\n 'es-BR',\n 'es-BZ',\n 'es-CL',\n 'es-CO',\n 'es-CR',\n 'es-CU',\n 'es-DO',\n 'es-EA',\n 'es-EC',\n 'es-GQ',\n 'es-GT',\n 'es-HN',\n 'es-IC',\n 'es-MX',\n 'es-NI',\n 'es-PA',\n 'es-PE',\n 'es-PH',\n 'es-PR',\n 'es-PY',\n 'es-SV',\n 'es-US',\n 'es-UY',\n 'es-VE',\n 'et',\n 'eu',\n 'ewo',\n 'fa',\n 'fa-AF',\n 'ff',\n 'ff-Adlm',\n 'ff-Adlm-BF',\n 'ff-Adlm-CM',\n 'ff-Adlm-GH',\n 'ff-Adlm-GM',\n 'ff-Adlm-GW',\n 'ff-Adlm-LR',\n 'ff-Adlm-MR',\n 'ff-Adlm-NE',\n 'ff-Adlm-NG',\n 'ff-Adlm-SL',\n 'ff-Adlm-SN',\n 'ff-Latn',\n 'ff-Latn-BF',\n 'ff-Latn-CM',\n 'ff-Latn-GH',\n 'ff-Latn-GM',\n 'ff-Latn-GN',\n 'ff-Latn-GW',\n 'ff-Latn-LR',\n 'ff-Latn-MR',\n 'ff-Latn-NE',\n 'ff-Latn-NG',\n 'ff-Latn-SL',\n 'fi',\n 'fil',\n 'fo',\n 'fo-DK',\n 'fr',\n 'fr-BE',\n 'fr-BF',\n 'fr-BI',\n 'fr-BJ',\n 'fr-BL',\n 'fr-CA',\n 'fr-CD',\n 'fr-CF',\n 'fr-CG',\n 'fr-CH',\n 'fr-CI',\n 'fr-CM',\n 'fr-DJ',\n 'fr-DZ',\n 'fr-GA',\n 'fr-GF',\n 'fr-GN',\n 'fr-GP',\n 'fr-GQ',\n 'fr-HT',\n 'fr-KM',\n 'fr-LU',\n 'fr-MA',\n 'fr-MC',\n 'fr-MF',\n 'fr-MG',\n 'fr-ML',\n 'fr-MQ',\n 'fr-MR',\n 'fr-MU',\n 'fr-NC',\n 'fr-NE',\n 'fr-PF',\n 'fr-PM',\n 'fr-RE',\n 'fr-RW',\n 'fr-SC',\n 'fr-SN',\n 'fr-SY',\n 'fr-TD',\n 'fr-TG',\n 'fr-TN',\n 'fr-VU',\n 'fr-WF',\n 'fr-YT',\n 'fur',\n 'fy',\n 'ga',\n 'ga-GB',\n 'gd',\n 'gl',\n 'gsw',\n 'gsw-FR',\n 'gsw-LI',\n 'gu',\n 'guz',\n 'gv',\n 'ha',\n 'ha-GH',\n 'ha-NE',\n 'haw',\n 'he',\n 'hi',\n 'hr',\n 'hr-BA',\n 'hsb',\n 'hu',\n 'hy',\n 'ia',\n 'id',\n 'ig',\n 'ii',\n 'is',\n 'it',\n 'it-CH',\n 'it-SM',\n 'it-VA',\n 'ja',\n 'jgo',\n 'jmc',\n 'jv',\n 'ka',\n 'kab',\n 'kam',\n 'kde',\n 'kea',\n 'kgp',\n 'khq',\n 'ki',\n 'kk',\n 'kkj',\n 'kl',\n 'kln',\n 'km',\n 'kn',\n 'ko',\n 'ko-KP',\n 'kok',\n 'ks',\n 'ks-Arab',\n 'ksb',\n 'ksf',\n 'ksh',\n 'ku',\n 'kw',\n 'ky',\n 'lag',\n 'lb',\n 'lg',\n 'lkt',\n 'ln',\n 'ln-AO',\n 'ln-CF',\n 'ln-CG',\n 'lo',\n 'lrc',\n 'lrc-IQ',\n 'lt',\n 'lu',\n 'luo',\n 'luy',\n 'lv',\n 'mai',\n 'mas',\n 'mas-TZ',\n 'mer',\n 'mfe',\n 'mg',\n 'mgh',\n 'mgo',\n 'mi',\n 'mk',\n 'ml',\n 'mn',\n 'mni',\n 'mni-Beng',\n 'mr',\n 'ms',\n 'ms-BN',\n 'ms-ID',\n 'ms-SG',\n 'mt',\n 'mua',\n 'my',\n 'mzn',\n 'naq',\n 'nb',\n 'nb-SJ',\n 'nd',\n 'nds',\n 'nds-NL',\n 'ne',\n 'ne-IN',\n 'nl',\n 'nl-AW',\n 'nl-BE',\n 'nl-BQ',\n 'nl-CW',\n 'nl-SR',\n 'nl-SX',\n 'nmg',\n 'nn',\n 'nnh',\n 'no',\n 'nus',\n 'nyn',\n 'om',\n 'om-KE',\n 'or',\n 'os',\n 'os-RU',\n 'pa',\n 'pa-Arab',\n 'pa-Guru',\n 'pcm',\n 'pl',\n 'ps',\n 'ps-PK',\n 'pt',\n 'pt-AO',\n 'pt-CH',\n 'pt-CV',\n 'pt-GQ',\n 'pt-GW',\n 'pt-LU',\n 'pt-MO',\n 'pt-MZ',\n 'pt-PT',\n 'pt-ST',\n 'pt-TL',\n 'qu',\n 'qu-BO',\n 'qu-EC',\n 'rm',\n 'rn',\n 'ro',\n 'ro-MD',\n 'rof',\n 'ru',\n 'ru-BY',\n 'ru-KG',\n 'ru-KZ',\n 'ru-MD',\n 'ru-UA',\n 'rw',\n 'rwk',\n 'sa',\n 'sah',\n 'saq',\n 'sat',\n 'sat-Olck',\n 'sbp',\n 'sc',\n 'sd',\n 'sd-Arab',\n 'sd-Deva',\n 'se',\n 'se-FI',\n 'se-SE',\n 'seh',\n 'ses',\n 'sg',\n 'shi',\n 'shi-Latn',\n 'shi-Tfng',\n 'si',\n 'sk',\n 'sl',\n 'smn',\n 'sn',\n 'so',\n 'so-DJ',\n 'so-ET',\n 'so-KE',\n 'sq',\n 'sq-MK',\n 'sq-XK',\n 'sr',\n 'sr-Cyrl',\n 'sr-Cyrl-BA',\n 'sr-Cyrl-ME',\n 'sr-Cyrl-XK',\n 'sr-Latn',\n 'sr-Latn-BA',\n 'sr-Latn-ME',\n 'sr-Latn-XK',\n 'su',\n 'su-Latn',\n 'sv',\n 'sv-AX',\n 'sv-FI',\n 'sw',\n 'sw-CD',\n 'sw-KE',\n 'sw-UG',\n 'ta',\n 'ta-LK',\n 'ta-MY',\n 'ta-SG',\n 'te',\n 'teo',\n 'teo-KE',\n 'tg',\n 'th',\n 'ti',\n 'ti-ER',\n 'tk',\n 'to',\n 'tr',\n 'tr-CY',\n 'tt',\n 'twq',\n 'tzm',\n 'ug',\n 'uk',\n 'und',\n 'ur',\n 'ur-IN',\n 'uz',\n 'uz-Arab',\n 'uz-Cyrl',\n 'uz-Latn',\n 'vai',\n 'vai-Latn',\n 'vai-Vaii',\n 'vi',\n 'vun',\n 'wae',\n 'wo',\n 'xh',\n 'xog',\n 'yav',\n 'yi',\n 'yo',\n 'yo-BJ',\n 'yrl',\n 'yrl-CO',\n 'yrl-VE',\n 'yue',\n 'yue-Hans',\n 'yue-Hant',\n 'zgh',\n 'zh',\n 'zh-Hans',\n 'zh-Hans-HK',\n 'zh-Hans-MO',\n 'zh-Hans-SG',\n 'zh-Hant',\n 'zh-Hant-HK',\n 'zh-Hant-MO',\n 'zu',\n]\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '#packages/intl-relativetimeformat/supported-locales.generated.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n Intl.RelativeTimeFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nfunction hasResolvedOptionsNumberingSystem(locale?: string | string[]) {\n try {\n return (\n 'numberingSystem' in\n new Intl.RelativeTimeFormat(locale || 'en', {\n numeric: 'auto',\n }).resolvedOptions()\n )\n } catch {\n return false\n }\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (\n !('RelativeTimeFormat' in Intl) ||\n !supportedLocalesOf(locale) ||\n !hasResolvedOptionsNumberingSystem(locale)\n ) {\n return match([locale], supportedLocales, 'en')\n }\n}\n"],"mappings":";;AAAA,MAAa,mBAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;ACzjBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACE,KAAK,mBAAmB,mBAAmB,QAAQ,CAAC,WACpD,QAAQ;;AAIZ,SAAS,kCAAkC,QAA4B;AACrE,KAAI;AACF,SACE,qBACA,IAAI,KAAK,mBAAmB,UAAU,MAAM,EAC1C,SAAS,QACV,CAAC,CAAC,iBAAiB;SAEhB;AACN,SAAO;;;AAIX,SAAgB,eAAe,SAAS,MAA0B;AAChE,KACE,EAAE,wBAAwB,SAC1B,CAAC,mBAAmB,OAAO,IAC3B,CAAC,kCAAkC,OAAO,CAE1C,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK"}
|
|
1
|
+
{"version":3,"file":"should-polyfill.js","names":[],"sources":["../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js","../should-polyfill.ts"],"sourcesContent":["export const supportedLocales = [\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bez\",\n\t\"bg\",\n\t\"bm\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"chr\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"cs\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-ER\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PW\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",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",\n\t\"fr-RW\",\n\t\"fr-SC\",\n\t\"fr-SN\",\n\t\"fr-SY\",\n\t\"fr-TD\",\n\t\"fr-TG\",\n\t\"fr-TN\",\n\t\"fr-VU\",\n\t\"fr-WF\",\n\t\"fr-YT\",\n\t\"fur\",\n\t\"fy\",\n\t\"ga\",\n\t\"ga-GB\",\n\t\"gd\",\n\t\"gl\",\n\t\"gsw\",\n\t\"gsw-FR\",\n\t\"gsw-LI\",\n\t\"gu\",\n\t\"guz\",\n\t\"gv\",\n\t\"ha\",\n\t\"ha-GH\",\n\t\"ha-NE\",\n\t\"haw\",\n\t\"he\",\n\t\"hi\",\n\t\"hr\",\n\t\"hr-BA\",\n\t\"hsb\",\n\t\"hu\",\n\t\"hy\",\n\t\"ia\",\n\t\"id\",\n\t\"ig\",\n\t\"ii\",\n\t\"is\",\n\t\"it\",\n\t\"it-CH\",\n\t\"it-SM\",\n\t\"it-VA\",\n\t\"ja\",\n\t\"jgo\",\n\t\"jmc\",\n\t\"jv\",\n\t\"ka\",\n\t\"kab\",\n\t\"kam\",\n\t\"kde\",\n\t\"kea\",\n\t\"kgp\",\n\t\"khq\",\n\t\"ki\",\n\t\"kk\",\n\t\"kkj\",\n\t\"kl\",\n\t\"kln\",\n\t\"km\",\n\t\"kn\",\n\t\"ko\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"kw\",\n\t\"ky\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lkt\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mi\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"my\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nus\",\n\t\"nyn\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pcm\",\n\t\"pl\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"si\",\n\t\"sk\",\n\t\"sl\",\n\t\"smn\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tk\",\n\t\"to\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"tt\",\n\t\"twq\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"vi\",\n\t\"vun\",\n\t\"wae\",\n\t\"wo\",\n\t\"xh\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-relativetimeformat.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n Intl.RelativeTimeFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nfunction hasResolvedOptionsNumberingSystem(locale?: string | string[]) {\n try {\n return (\n 'numberingSystem' in\n new Intl.RelativeTimeFormat(locale || 'en', {\n numeric: 'auto',\n }).resolvedOptions()\n )\n } catch {\n return false\n }\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (\n !('RelativeTimeFormat' in Intl) ||\n !supportedLocalesOf(locale) ||\n !hasResolvedOptionsNumberingSystem(locale)\n ) {\n return match([locale], supportedLocales, 'en')\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;ACzjBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACE,KAAK,mBAAmB,mBAAmB,QAAQ,CAAC,WACpD,QAAQ;;AAIZ,SAAS,kCAAkC,QAA4B;AACrE,KAAI;AACF,SACE,qBACA,IAAI,KAAK,mBAAmB,UAAU,MAAM,EAC1C,SAAS,QACV,CAAC,CAAC,iBAAiB;SAEhB;AACN,SAAO;;;AAIX,SAAgB,eAAe,SAAS,MAA0B;AAChE,KACE,EAAE,wBAAwB,SAC1B,CAAC,mBAAmB,OAAO,IAC3B,CAAC,kCAAkC,OAAO,CAE1C,QAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK"}
|