react-intl 6.7.1 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/lib/src/components/injectIntl.js +4 -2
- package/lib/src/components/provider.d.ts +1 -1
- package/lib/src/types.d.ts +1 -1
- package/package.json +11 -11
- package/react-intl.iife.js +448 -328
- package/src/components/createFormattedComponent.js +3 -3
- package/src/components/injectIntl.js +5 -3
- package/src/components/provider.d.ts +1 -1
- package/src/components/useIntl.js +1 -1
- package/src/types.d.ts +1 -1
- package/src/utils.js +4 -4
package/react-intl.iife.js
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
1
1
|
var ReactIntl = (() => {
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
8
25
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
26
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
27
|
}) : x)(function(x) {
|
|
11
28
|
if (typeof require !== "undefined")
|
|
12
29
|
return require.apply(this, arguments);
|
|
13
|
-
throw
|
|
30
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
31
|
});
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
15
44
|
var __commonJS = (cb, mod) => function __require2() {
|
|
16
45
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
46
|
};
|
|
@@ -36,10 +65,14 @@ var ReactIntl = (() => {
|
|
|
36
65
|
mod
|
|
37
66
|
));
|
|
38
67
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
68
|
+
var __publicField = (obj, key, value) => {
|
|
69
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
70
|
+
return value;
|
|
71
|
+
};
|
|
39
72
|
|
|
40
|
-
//
|
|
73
|
+
// node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
41
74
|
var require_react_is_development = __commonJS({
|
|
42
|
-
"
|
|
75
|
+
"node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
43
76
|
"use strict";
|
|
44
77
|
if (true) {
|
|
45
78
|
(function() {
|
|
@@ -192,9 +225,9 @@ var ReactIntl = (() => {
|
|
|
192
225
|
}
|
|
193
226
|
});
|
|
194
227
|
|
|
195
|
-
//
|
|
228
|
+
// node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js
|
|
196
229
|
var require_react_is = __commonJS({
|
|
197
|
-
"
|
|
230
|
+
"node_modules/.aspect_rules_js/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
|
198
231
|
"use strict";
|
|
199
232
|
if (false) {
|
|
200
233
|
module.exports = null;
|
|
@@ -204,9 +237,9 @@ var ReactIntl = (() => {
|
|
|
204
237
|
}
|
|
205
238
|
});
|
|
206
239
|
|
|
207
|
-
//
|
|
240
|
+
// node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
208
241
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
209
|
-
"
|
|
242
|
+
"node_modules/.aspect_rules_js/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
210
243
|
"use strict";
|
|
211
244
|
var reactIs = require_react_is();
|
|
212
245
|
var REACT_STATICS = {
|
|
@@ -292,9 +325,9 @@ var ReactIntl = (() => {
|
|
|
292
325
|
}
|
|
293
326
|
});
|
|
294
327
|
|
|
295
|
-
//
|
|
296
|
-
var
|
|
297
|
-
__export(
|
|
328
|
+
// packages/react-intl/index.ts
|
|
329
|
+
var react_intl_exports = {};
|
|
330
|
+
__export(react_intl_exports, {
|
|
298
331
|
FormattedDate: () => FormattedDate,
|
|
299
332
|
FormattedDateParts: () => FormattedDateParts,
|
|
300
333
|
FormattedDateTimeRange: () => dateTimeRange_default,
|
|
@@ -309,7 +342,7 @@ var ReactIntl = (() => {
|
|
|
309
342
|
FormattedTime: () => FormattedTime,
|
|
310
343
|
FormattedTimeParts: () => FormattedTimeParts,
|
|
311
344
|
IntlContext: () => Context,
|
|
312
|
-
IntlProvider: () =>
|
|
345
|
+
IntlProvider: () => IntlProvider2,
|
|
313
346
|
InvalidConfigError: () => InvalidConfigError,
|
|
314
347
|
MessageFormatError: () => MessageFormatError,
|
|
315
348
|
MissingDataError: () => MissingDataError,
|
|
@@ -326,79 +359,23 @@ var ReactIntl = (() => {
|
|
|
326
359
|
useIntl: () => useIntl
|
|
327
360
|
});
|
|
328
361
|
|
|
329
|
-
//
|
|
330
|
-
var extendStatics = function(d, b) {
|
|
331
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
332
|
-
d2.__proto__ = b2;
|
|
333
|
-
} || function(d2, b2) {
|
|
334
|
-
for (var p in b2)
|
|
335
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
336
|
-
d2[p] = b2[p];
|
|
337
|
-
};
|
|
338
|
-
return extendStatics(d, b);
|
|
339
|
-
};
|
|
340
|
-
function __extends(d, b) {
|
|
341
|
-
if (typeof b !== "function" && b !== null)
|
|
342
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
343
|
-
extendStatics(d, b);
|
|
344
|
-
function __() {
|
|
345
|
-
this.constructor = d;
|
|
346
|
-
}
|
|
347
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
348
|
-
}
|
|
349
|
-
var __assign = function() {
|
|
350
|
-
__assign = Object.assign || function __assign2(t) {
|
|
351
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
352
|
-
s = arguments[i];
|
|
353
|
-
for (var p in s)
|
|
354
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
355
|
-
t[p] = s[p];
|
|
356
|
-
}
|
|
357
|
-
return t;
|
|
358
|
-
};
|
|
359
|
-
return __assign.apply(this, arguments);
|
|
360
|
-
};
|
|
361
|
-
function __rest(s, e) {
|
|
362
|
-
var t = {};
|
|
363
|
-
for (var p in s)
|
|
364
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
365
|
-
t[p] = s[p];
|
|
366
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
367
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
368
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
369
|
-
t[p[i]] = s[p[i]];
|
|
370
|
-
}
|
|
371
|
-
return t;
|
|
372
|
-
}
|
|
373
|
-
function __spreadArray(to, from, pack) {
|
|
374
|
-
if (pack || arguments.length === 2)
|
|
375
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
376
|
-
if (ar || !(i in from)) {
|
|
377
|
-
if (!ar)
|
|
378
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
379
|
-
ar[i] = from[i];
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
|
|
362
|
+
// packages/react-intl/src/components/createFormattedComponent.tsx
|
|
386
363
|
var React4 = __toESM(window.React);
|
|
387
364
|
|
|
388
|
-
//
|
|
365
|
+
// packages/react-intl/src/components/useIntl.ts
|
|
389
366
|
var React3 = __toESM(window.React);
|
|
390
367
|
|
|
391
|
-
//
|
|
368
|
+
// packages/react-intl/src/utils.ts
|
|
392
369
|
var React = __toESM(window.React);
|
|
393
370
|
|
|
394
|
-
//
|
|
371
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
395
372
|
var MINUTES_PER_HOUR = 60;
|
|
396
373
|
var SECONDS_PER_MINUTE = 60;
|
|
397
374
|
var MS_PER_SECOND = 1e3;
|
|
398
375
|
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
399
376
|
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
400
377
|
|
|
401
|
-
//
|
|
378
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
402
379
|
var SANCTIONED_UNITS = [
|
|
403
380
|
"angle-degree",
|
|
404
381
|
"area-acre",
|
|
@@ -449,7 +426,130 @@ var ReactIntl = (() => {
|
|
|
449
426
|
}
|
|
450
427
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
451
428
|
|
|
452
|
-
//
|
|
429
|
+
// node_modules/.aspect_rules_js/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
|
|
430
|
+
var extendStatics = function(d, b) {
|
|
431
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
432
|
+
d2.__proto__ = b2;
|
|
433
|
+
} || function(d2, b2) {
|
|
434
|
+
for (var p in b2)
|
|
435
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
436
|
+
d2[p] = b2[p];
|
|
437
|
+
};
|
|
438
|
+
return extendStatics(d, b);
|
|
439
|
+
};
|
|
440
|
+
function __extends(d, b) {
|
|
441
|
+
if (typeof b !== "function" && b !== null)
|
|
442
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
443
|
+
extendStatics(d, b);
|
|
444
|
+
function __() {
|
|
445
|
+
this.constructor = d;
|
|
446
|
+
}
|
|
447
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
448
|
+
}
|
|
449
|
+
var __assign = function() {
|
|
450
|
+
__assign = Object.assign || function __assign2(t) {
|
|
451
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
452
|
+
s = arguments[i];
|
|
453
|
+
for (var p in s)
|
|
454
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
455
|
+
t[p] = s[p];
|
|
456
|
+
}
|
|
457
|
+
return t;
|
|
458
|
+
};
|
|
459
|
+
return __assign.apply(this, arguments);
|
|
460
|
+
};
|
|
461
|
+
function __rest(s, e) {
|
|
462
|
+
var t = {};
|
|
463
|
+
for (var p in s)
|
|
464
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
465
|
+
t[p] = s[p];
|
|
466
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
467
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
468
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
469
|
+
t[p[i]] = s[p[i]];
|
|
470
|
+
}
|
|
471
|
+
return t;
|
|
472
|
+
}
|
|
473
|
+
function __spreadArray(to, from, pack) {
|
|
474
|
+
if (pack || arguments.length === 2)
|
|
475
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
476
|
+
if (ar || !(i in from)) {
|
|
477
|
+
if (!ar)
|
|
478
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
479
|
+
ar[i] = from[i];
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
486
|
+
function memoize(fn, options) {
|
|
487
|
+
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
488
|
+
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
489
|
+
var strategy = options && options.strategy ? options.strategy : strategyDefault;
|
|
490
|
+
return strategy(fn, {
|
|
491
|
+
cache,
|
|
492
|
+
serializer
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
function isPrimitive(value) {
|
|
496
|
+
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
497
|
+
}
|
|
498
|
+
function monadic(fn, cache, serializer, arg) {
|
|
499
|
+
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
500
|
+
var computedValue = cache.get(cacheKey);
|
|
501
|
+
if (typeof computedValue === "undefined") {
|
|
502
|
+
computedValue = fn.call(this, arg);
|
|
503
|
+
cache.set(cacheKey, computedValue);
|
|
504
|
+
}
|
|
505
|
+
return computedValue;
|
|
506
|
+
}
|
|
507
|
+
function variadic(fn, cache, serializer) {
|
|
508
|
+
var args = Array.prototype.slice.call(arguments, 3);
|
|
509
|
+
var cacheKey = serializer(args);
|
|
510
|
+
var computedValue = cache.get(cacheKey);
|
|
511
|
+
if (typeof computedValue === "undefined") {
|
|
512
|
+
computedValue = fn.apply(this, args);
|
|
513
|
+
cache.set(cacheKey, computedValue);
|
|
514
|
+
}
|
|
515
|
+
return computedValue;
|
|
516
|
+
}
|
|
517
|
+
function assemble(fn, context, strategy, cache, serialize) {
|
|
518
|
+
return strategy.bind(context, fn, cache, serialize);
|
|
519
|
+
}
|
|
520
|
+
function strategyDefault(fn, options) {
|
|
521
|
+
var strategy = fn.length === 1 ? monadic : variadic;
|
|
522
|
+
return assemble(fn, this, strategy, options.cache.create(), options.serializer);
|
|
523
|
+
}
|
|
524
|
+
function strategyVariadic(fn, options) {
|
|
525
|
+
return assemble(fn, this, variadic, options.cache.create(), options.serializer);
|
|
526
|
+
}
|
|
527
|
+
function strategyMonadic(fn, options) {
|
|
528
|
+
return assemble(fn, this, monadic, options.cache.create(), options.serializer);
|
|
529
|
+
}
|
|
530
|
+
var serializerDefault = function() {
|
|
531
|
+
return JSON.stringify(arguments);
|
|
532
|
+
};
|
|
533
|
+
function ObjectWithoutPrototypeCache() {
|
|
534
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
535
|
+
}
|
|
536
|
+
ObjectWithoutPrototypeCache.prototype.get = function(key) {
|
|
537
|
+
return this.cache[key];
|
|
538
|
+
};
|
|
539
|
+
ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
540
|
+
this.cache[key] = value;
|
|
541
|
+
};
|
|
542
|
+
var cacheDefault = {
|
|
543
|
+
create: function create() {
|
|
544
|
+
return new ObjectWithoutPrototypeCache();
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
var strategies = {
|
|
548
|
+
variadic: strategyVariadic,
|
|
549
|
+
monadic: strategyMonadic
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
453
553
|
function invariant(condition, message, Err) {
|
|
454
554
|
if (Err === void 0) {
|
|
455
555
|
Err = Error;
|
|
@@ -458,15 +558,65 @@ var ReactIntl = (() => {
|
|
|
458
558
|
throw new Err(message);
|
|
459
559
|
}
|
|
460
560
|
}
|
|
561
|
+
var createMemoizedNumberFormat = memoize(function() {
|
|
562
|
+
var _a2;
|
|
563
|
+
var args = [];
|
|
564
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
565
|
+
args[_i] = arguments[_i];
|
|
566
|
+
}
|
|
567
|
+
return new ((_a2 = Intl.NumberFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
|
|
568
|
+
}, {
|
|
569
|
+
strategy: strategies.variadic
|
|
570
|
+
});
|
|
571
|
+
var createMemoizedDateTimeFormat = memoize(function() {
|
|
572
|
+
var _a2;
|
|
573
|
+
var args = [];
|
|
574
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
575
|
+
args[_i] = arguments[_i];
|
|
576
|
+
}
|
|
577
|
+
return new ((_a2 = Intl.DateTimeFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
|
|
578
|
+
}, {
|
|
579
|
+
strategy: strategies.variadic
|
|
580
|
+
});
|
|
581
|
+
var createMemoizedPluralRules = memoize(function() {
|
|
582
|
+
var _a2;
|
|
583
|
+
var args = [];
|
|
584
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
585
|
+
args[_i] = arguments[_i];
|
|
586
|
+
}
|
|
587
|
+
return new ((_a2 = Intl.PluralRules).bind.apply(_a2, __spreadArray([void 0], args, false)))();
|
|
588
|
+
}, {
|
|
589
|
+
strategy: strategies.variadic
|
|
590
|
+
});
|
|
591
|
+
var createMemoizedLocale = memoize(function() {
|
|
592
|
+
var _a2;
|
|
593
|
+
var args = [];
|
|
594
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
595
|
+
args[_i] = arguments[_i];
|
|
596
|
+
}
|
|
597
|
+
return new ((_a2 = Intl.Locale).bind.apply(_a2, __spreadArray([void 0], args, false)))();
|
|
598
|
+
}, {
|
|
599
|
+
strategy: strategies.variadic
|
|
600
|
+
});
|
|
601
|
+
var createMemoizedListFormat = memoize(function() {
|
|
602
|
+
var _a2;
|
|
603
|
+
var args = [];
|
|
604
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
605
|
+
args[_i] = arguments[_i];
|
|
606
|
+
}
|
|
607
|
+
return new ((_a2 = Intl.ListFormat).bind.apply(_a2, __spreadArray([void 0], args, false)))();
|
|
608
|
+
}, {
|
|
609
|
+
strategy: strategies.variadic
|
|
610
|
+
});
|
|
461
611
|
|
|
462
|
-
//
|
|
612
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
463
613
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
464
614
|
|
|
465
|
-
//
|
|
615
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
466
616
|
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
467
617
|
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
468
618
|
|
|
469
|
-
//
|
|
619
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
470
620
|
var MissingLocaleDataError = (
|
|
471
621
|
/** @class */
|
|
472
622
|
function(_super) {
|
|
@@ -480,7 +630,7 @@ var ReactIntl = (() => {
|
|
|
480
630
|
}(Error)
|
|
481
631
|
);
|
|
482
632
|
|
|
483
|
-
//
|
|
633
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
484
634
|
var RangePatternType;
|
|
485
635
|
(function(RangePatternType2) {
|
|
486
636
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -488,7 +638,7 @@ var ReactIntl = (() => {
|
|
|
488
638
|
RangePatternType2["endRange"] = "endRange";
|
|
489
639
|
})(RangePatternType || (RangePatternType = {}));
|
|
490
640
|
|
|
491
|
-
//
|
|
641
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/error.js
|
|
492
642
|
var ErrorKind;
|
|
493
643
|
(function(ErrorKind2) {
|
|
494
644
|
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
@@ -519,7 +669,7 @@ var ReactIntl = (() => {
|
|
|
519
669
|
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
520
670
|
})(ErrorKind || (ErrorKind = {}));
|
|
521
671
|
|
|
522
|
-
//
|
|
672
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/types.js
|
|
523
673
|
var TYPE;
|
|
524
674
|
(function(TYPE2) {
|
|
525
675
|
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
@@ -571,10 +721,10 @@ var ReactIntl = (() => {
|
|
|
571
721
|
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
572
722
|
}
|
|
573
723
|
|
|
574
|
-
//
|
|
724
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js
|
|
575
725
|
var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
576
726
|
|
|
577
|
-
//
|
|
727
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js
|
|
578
728
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
579
729
|
function parseDateTimeSkeleton(skeleton) {
|
|
580
730
|
var result = {};
|
|
@@ -675,10 +825,10 @@ var ReactIntl = (() => {
|
|
|
675
825
|
return result;
|
|
676
826
|
}
|
|
677
827
|
|
|
678
|
-
//
|
|
828
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js
|
|
679
829
|
var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
680
830
|
|
|
681
|
-
//
|
|
831
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-skeleton-parser@0.0.0/node_modules/@formatjs/icu-skeleton-parser/lib/number.js
|
|
682
832
|
function parseNumberSkeletonFromString(skeleton) {
|
|
683
833
|
if (skeleton.length === 0) {
|
|
684
834
|
throw new Error("Number skeleton cannot be empty");
|
|
@@ -965,7 +1115,7 @@ var ReactIntl = (() => {
|
|
|
965
1115
|
return result;
|
|
966
1116
|
}
|
|
967
1117
|
|
|
968
|
-
//
|
|
1118
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js
|
|
969
1119
|
var timeData = {
|
|
970
1120
|
"001": [
|
|
971
1121
|
"H",
|
|
@@ -2376,7 +2526,7 @@ var ReactIntl = (() => {
|
|
|
2376
2526
|
]
|
|
2377
2527
|
};
|
|
2378
2528
|
|
|
2379
|
-
//
|
|
2529
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js
|
|
2380
2530
|
function getBestPattern(skeleton, locale) {
|
|
2381
2531
|
var skeletonCopy = "";
|
|
2382
2532
|
for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
|
|
@@ -2438,7 +2588,7 @@ var ReactIntl = (() => {
|
|
|
2438
2588
|
return hourCycles[0];
|
|
2439
2589
|
}
|
|
2440
2590
|
|
|
2441
|
-
//
|
|
2591
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js
|
|
2442
2592
|
var _a;
|
|
2443
2593
|
var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*"));
|
|
2444
2594
|
var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$"));
|
|
@@ -3243,7 +3393,7 @@ var ReactIntl = (() => {
|
|
|
3243
3393
|
return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 && c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <= 10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 && c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 && c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
|
|
3244
3394
|
}
|
|
3245
3395
|
|
|
3246
|
-
//
|
|
3396
|
+
// node_modules/.aspect_rules_js/@formatjs+icu-messageformat-parser@0.0.0/node_modules/@formatjs/icu-messageformat-parser/lib/index.js
|
|
3247
3397
|
function pruneLocation(els) {
|
|
3248
3398
|
els.forEach(function(el) {
|
|
3249
3399
|
delete el.location;
|
|
@@ -3279,74 +3429,7 @@ var ReactIntl = (() => {
|
|
|
3279
3429
|
return result.val;
|
|
3280
3430
|
}
|
|
3281
3431
|
|
|
3282
|
-
//
|
|
3283
|
-
function memoize(fn, options) {
|
|
3284
|
-
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
3285
|
-
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
3286
|
-
var strategy = options && options.strategy ? options.strategy : strategyDefault;
|
|
3287
|
-
return strategy(fn, {
|
|
3288
|
-
cache,
|
|
3289
|
-
serializer
|
|
3290
|
-
});
|
|
3291
|
-
}
|
|
3292
|
-
function isPrimitive(value) {
|
|
3293
|
-
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
3294
|
-
}
|
|
3295
|
-
function monadic(fn, cache, serializer, arg) {
|
|
3296
|
-
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
3297
|
-
var computedValue = cache.get(cacheKey);
|
|
3298
|
-
if (typeof computedValue === "undefined") {
|
|
3299
|
-
computedValue = fn.call(this, arg);
|
|
3300
|
-
cache.set(cacheKey, computedValue);
|
|
3301
|
-
}
|
|
3302
|
-
return computedValue;
|
|
3303
|
-
}
|
|
3304
|
-
function variadic(fn, cache, serializer) {
|
|
3305
|
-
var args = Array.prototype.slice.call(arguments, 3);
|
|
3306
|
-
var cacheKey = serializer(args);
|
|
3307
|
-
var computedValue = cache.get(cacheKey);
|
|
3308
|
-
if (typeof computedValue === "undefined") {
|
|
3309
|
-
computedValue = fn.apply(this, args);
|
|
3310
|
-
cache.set(cacheKey, computedValue);
|
|
3311
|
-
}
|
|
3312
|
-
return computedValue;
|
|
3313
|
-
}
|
|
3314
|
-
function assemble(fn, context, strategy, cache, serialize) {
|
|
3315
|
-
return strategy.bind(context, fn, cache, serialize);
|
|
3316
|
-
}
|
|
3317
|
-
function strategyDefault(fn, options) {
|
|
3318
|
-
var strategy = fn.length === 1 ? monadic : variadic;
|
|
3319
|
-
return assemble(fn, this, strategy, options.cache.create(), options.serializer);
|
|
3320
|
-
}
|
|
3321
|
-
function strategyVariadic(fn, options) {
|
|
3322
|
-
return assemble(fn, this, variadic, options.cache.create(), options.serializer);
|
|
3323
|
-
}
|
|
3324
|
-
function strategyMonadic(fn, options) {
|
|
3325
|
-
return assemble(fn, this, monadic, options.cache.create(), options.serializer);
|
|
3326
|
-
}
|
|
3327
|
-
var serializerDefault = function() {
|
|
3328
|
-
return JSON.stringify(arguments);
|
|
3329
|
-
};
|
|
3330
|
-
function ObjectWithoutPrototypeCache() {
|
|
3331
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
3332
|
-
}
|
|
3333
|
-
ObjectWithoutPrototypeCache.prototype.get = function(key) {
|
|
3334
|
-
return this.cache[key];
|
|
3335
|
-
};
|
|
3336
|
-
ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
3337
|
-
this.cache[key] = value;
|
|
3338
|
-
};
|
|
3339
|
-
var cacheDefault = {
|
|
3340
|
-
create: function create() {
|
|
3341
|
-
return new ObjectWithoutPrototypeCache();
|
|
3342
|
-
}
|
|
3343
|
-
};
|
|
3344
|
-
var strategies = {
|
|
3345
|
-
variadic: strategyVariadic,
|
|
3346
|
-
monadic: strategyMonadic
|
|
3347
|
-
};
|
|
3348
|
-
|
|
3349
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/error.js
|
|
3432
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/error.js
|
|
3350
3433
|
var ErrorCode;
|
|
3351
3434
|
(function(ErrorCode2) {
|
|
3352
3435
|
ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
|
|
@@ -3400,7 +3483,7 @@ var ReactIntl = (() => {
|
|
|
3400
3483
|
}(FormatError)
|
|
3401
3484
|
);
|
|
3402
3485
|
|
|
3403
|
-
//
|
|
3486
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/formatters.js
|
|
3404
3487
|
var PART_TYPE;
|
|
3405
3488
|
(function(PART_TYPE2) {
|
|
3406
3489
|
PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
|
|
@@ -3540,7 +3623,7 @@ var ReactIntl = (() => {
|
|
|
3540
3623
|
return mergeLiteral(result);
|
|
3541
3624
|
}
|
|
3542
3625
|
|
|
3543
|
-
//
|
|
3626
|
+
// node_modules/.aspect_rules_js/intl-messageformat@0.0.0/node_modules/intl-messageformat/lib/src/core.js
|
|
3544
3627
|
function mergeConfig(c1, c2) {
|
|
3545
3628
|
if (!c2) {
|
|
3546
3629
|
return c1;
|
|
@@ -3621,10 +3704,10 @@ var ReactIntl = (() => {
|
|
|
3621
3704
|
/** @class */
|
|
3622
3705
|
function() {
|
|
3623
3706
|
function IntlMessageFormat2(message, locales, overrideFormats, opts) {
|
|
3624
|
-
var _this = this;
|
|
3625
3707
|
if (locales === void 0) {
|
|
3626
3708
|
locales = IntlMessageFormat2.defaultLocale;
|
|
3627
3709
|
}
|
|
3710
|
+
var _this = this;
|
|
3628
3711
|
this.formatterCache = {
|
|
3629
3712
|
number: {},
|
|
3630
3713
|
dateTime: {},
|
|
@@ -3763,7 +3846,7 @@ var ReactIntl = (() => {
|
|
|
3763
3846
|
}()
|
|
3764
3847
|
);
|
|
3765
3848
|
|
|
3766
|
-
//
|
|
3849
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/error.js
|
|
3767
3850
|
var IntlErrorCode;
|
|
3768
3851
|
(function(IntlErrorCode2) {
|
|
3769
3852
|
IntlErrorCode2["FORMAT_ERROR"] = "FORMAT_ERROR";
|
|
@@ -3860,7 +3943,7 @@ var ReactIntl = (() => {
|
|
|
3860
3943
|
}(IntlError)
|
|
3861
3944
|
);
|
|
3862
3945
|
|
|
3863
|
-
//
|
|
3946
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/utils.js
|
|
3864
3947
|
function filterProps(props, allowlist, defaults) {
|
|
3865
3948
|
if (defaults === void 0) {
|
|
3866
3949
|
defaults = {};
|
|
@@ -4017,7 +4100,7 @@ var ReactIntl = (() => {
|
|
|
4017
4100
|
onError(new UnsupportedFormatterError("No ".concat(type, " format named: ").concat(name)));
|
|
4018
4101
|
}
|
|
4019
4102
|
|
|
4020
|
-
//
|
|
4103
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/message.js
|
|
4021
4104
|
function setTimeZoneInOptions(opts, timeZone) {
|
|
4022
4105
|
return Object.keys(opts).reduce(function(all, k) {
|
|
4023
4106
|
all[k] = __assign({ timeZone }, opts[k]);
|
|
@@ -4102,7 +4185,7 @@ var ReactIntl = (() => {
|
|
|
4102
4185
|
return id;
|
|
4103
4186
|
};
|
|
4104
4187
|
|
|
4105
|
-
//
|
|
4188
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/dateTime.js
|
|
4106
4189
|
var DATE_TIME_FORMAT_OPTIONS = [
|
|
4107
4190
|
"formatMatcher",
|
|
4108
4191
|
"timeZone",
|
|
@@ -4209,7 +4292,7 @@ var ReactIntl = (() => {
|
|
|
4209
4292
|
return [];
|
|
4210
4293
|
}
|
|
4211
4294
|
|
|
4212
|
-
//
|
|
4295
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/displayName.js
|
|
4213
4296
|
var DISPLAY_NAMES_OPTONS = [
|
|
4214
4297
|
"style",
|
|
4215
4298
|
"type",
|
|
@@ -4230,7 +4313,7 @@ var ReactIntl = (() => {
|
|
|
4230
4313
|
}
|
|
4231
4314
|
}
|
|
4232
4315
|
|
|
4233
|
-
//
|
|
4316
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/list.js
|
|
4234
4317
|
var LIST_FORMAT_OPTIONS = [
|
|
4235
4318
|
"type",
|
|
4236
4319
|
"style"
|
|
@@ -4285,7 +4368,7 @@ var ReactIntl = (() => {
|
|
|
4285
4368
|
return values;
|
|
4286
4369
|
}
|
|
4287
4370
|
|
|
4288
|
-
//
|
|
4371
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/plural.js
|
|
4289
4372
|
var PLURAL_FORMAT_OPTIONS = ["type"];
|
|
4290
4373
|
function formatPlural(_a2, getPluralRules, value, options) {
|
|
4291
4374
|
var locale = _a2.locale, onError = _a2.onError;
|
|
@@ -4304,7 +4387,7 @@ var ReactIntl = (() => {
|
|
|
4304
4387
|
return "other";
|
|
4305
4388
|
}
|
|
4306
4389
|
|
|
4307
|
-
//
|
|
4390
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/relativeTime.js
|
|
4308
4391
|
var RELATIVE_TIME_FORMAT_OPTIONS = ["numeric", "style"];
|
|
4309
4392
|
function getFormatter2(_a2, getRelativeTimeFormat, options) {
|
|
4310
4393
|
var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;
|
|
@@ -4335,7 +4418,7 @@ var ReactIntl = (() => {
|
|
|
4335
4418
|
return String(value);
|
|
4336
4419
|
}
|
|
4337
4420
|
|
|
4338
|
-
//
|
|
4421
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/number.js
|
|
4339
4422
|
var NUMBER_FORMAT_OPTIONS = [
|
|
4340
4423
|
"style",
|
|
4341
4424
|
"currency",
|
|
@@ -4395,7 +4478,7 @@ var ReactIntl = (() => {
|
|
|
4395
4478
|
return [];
|
|
4396
4479
|
}
|
|
4397
4480
|
|
|
4398
|
-
//
|
|
4481
|
+
// node_modules/.aspect_rules_js/@formatjs+intl@0.0.0/node_modules/@formatjs/intl/lib/src/create-intl.js
|
|
4399
4482
|
function messagesContainString(messages) {
|
|
4400
4483
|
var firstMessage = messages ? messages[Object.keys(messages)[0]] : void 0;
|
|
4401
4484
|
return typeof firstMessage === "string";
|
|
@@ -4441,11 +4524,16 @@ var ReactIntl = (() => {
|
|
|
4441
4524
|
});
|
|
4442
4525
|
}
|
|
4443
4526
|
|
|
4444
|
-
//
|
|
4527
|
+
// packages/react-intl/src/utils.ts
|
|
4445
4528
|
function invariantIntlContext(intl) {
|
|
4446
|
-
invariant(
|
|
4529
|
+
invariant(
|
|
4530
|
+
intl,
|
|
4531
|
+
"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry."
|
|
4532
|
+
);
|
|
4447
4533
|
}
|
|
4448
|
-
var DEFAULT_INTL_CONFIG2 =
|
|
4534
|
+
var DEFAULT_INTL_CONFIG2 = __spreadProps(__spreadValues({}, DEFAULT_INTL_CONFIG), {
|
|
4535
|
+
textComponent: React.Fragment
|
|
4536
|
+
});
|
|
4449
4537
|
function assignUniqueKeysToParts(formatXMLElementFn) {
|
|
4450
4538
|
return function(parts) {
|
|
4451
4539
|
return formatXMLElementFn(React.Children.toArray(parts));
|
|
@@ -4473,140 +4561,150 @@ var ReactIntl = (() => {
|
|
|
4473
4561
|
return true;
|
|
4474
4562
|
}
|
|
4475
4563
|
|
|
4476
|
-
//
|
|
4477
|
-
var React2 = __toESM(window.React);
|
|
4564
|
+
// packages/react-intl/src/components/injectIntl.tsx
|
|
4478
4565
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
4566
|
+
var React2 = __toESM(window.React);
|
|
4479
4567
|
function getDisplayName(Component) {
|
|
4480
4568
|
return Component.displayName || Component.name || "Component";
|
|
4481
4569
|
}
|
|
4482
|
-
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(
|
|
4483
|
-
|
|
4484
|
-
|
|
4570
|
+
var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React2.createContext(
|
|
4571
|
+
null
|
|
4572
|
+
)) : React2.createContext(null);
|
|
4573
|
+
var { Consumer: IntlConsumer, Provider: IntlProvider } = IntlContext;
|
|
4485
4574
|
var Provider = IntlProvider;
|
|
4486
4575
|
var Context = IntlContext;
|
|
4487
4576
|
function injectIntl(WrappedComponent, options) {
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
}
|
|
4498
|
-
|
|
4499
|
-
|
|
4577
|
+
const {
|
|
4578
|
+
intlPropName = "intl",
|
|
4579
|
+
forwardRef: forwardRef2 = false,
|
|
4580
|
+
enforceContext = true
|
|
4581
|
+
} = options || {};
|
|
4582
|
+
const WithIntl = (props) => React2.createElement(IntlConsumer, null, (intl) => {
|
|
4583
|
+
if (enforceContext) {
|
|
4584
|
+
invariantIntlContext(intl);
|
|
4585
|
+
}
|
|
4586
|
+
const intlProp = { [intlPropName]: intl };
|
|
4587
|
+
return React2.createElement(
|
|
4588
|
+
WrappedComponent,
|
|
4589
|
+
__spreadProps(__spreadValues(__spreadValues({}, props), intlProp), {
|
|
4590
|
+
ref: forwardRef2 ? props.forwardedRef : null
|
|
4591
|
+
})
|
|
4592
|
+
);
|
|
4593
|
+
});
|
|
4594
|
+
WithIntl.displayName = `injectIntl(${getDisplayName(WrappedComponent)})`;
|
|
4500
4595
|
WithIntl.WrappedComponent = WrappedComponent;
|
|
4501
4596
|
if (forwardRef2) {
|
|
4502
|
-
return (0, import_hoist_non_react_statics.default)(
|
|
4503
|
-
|
|
4504
|
-
|
|
4597
|
+
return (0, import_hoist_non_react_statics.default)(
|
|
4598
|
+
// @ts-expect-error
|
|
4599
|
+
React2.forwardRef((props, ref) => React2.createElement(WithIntl, __spreadProps(__spreadValues({}, props), { forwardedRef: ref }))),
|
|
4600
|
+
WrappedComponent
|
|
4601
|
+
);
|
|
4505
4602
|
}
|
|
4506
4603
|
return (0, import_hoist_non_react_statics.default)(WithIntl, WrappedComponent);
|
|
4507
4604
|
}
|
|
4508
4605
|
|
|
4509
|
-
//
|
|
4606
|
+
// packages/react-intl/src/components/useIntl.ts
|
|
4510
4607
|
function useIntl() {
|
|
4511
|
-
|
|
4608
|
+
const intl = React3.useContext(Context);
|
|
4512
4609
|
invariantIntlContext(intl);
|
|
4513
4610
|
return intl;
|
|
4514
4611
|
}
|
|
4515
4612
|
|
|
4516
|
-
//
|
|
4517
|
-
var DisplayName
|
|
4518
|
-
(function(DisplayName2) {
|
|
4613
|
+
// packages/react-intl/src/components/createFormattedComponent.tsx
|
|
4614
|
+
var DisplayName = /* @__PURE__ */ ((DisplayName2) => {
|
|
4519
4615
|
DisplayName2["formatDate"] = "FormattedDate";
|
|
4520
4616
|
DisplayName2["formatTime"] = "FormattedTime";
|
|
4521
4617
|
DisplayName2["formatNumber"] = "FormattedNumber";
|
|
4522
4618
|
DisplayName2["formatList"] = "FormattedList";
|
|
4523
4619
|
DisplayName2["formatDisplayName"] = "FormattedDisplayName";
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
(
|
|
4620
|
+
return DisplayName2;
|
|
4621
|
+
})(DisplayName || {});
|
|
4622
|
+
var DisplayNameParts = /* @__PURE__ */ ((DisplayNameParts2) => {
|
|
4527
4623
|
DisplayNameParts2["formatDate"] = "FormattedDateParts";
|
|
4528
4624
|
DisplayNameParts2["formatTime"] = "FormattedTimeParts";
|
|
4529
4625
|
DisplayNameParts2["formatNumber"] = "FormattedNumberParts";
|
|
4530
4626
|
DisplayNameParts2["formatList"] = "FormattedListParts";
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4627
|
+
return DisplayNameParts2;
|
|
4628
|
+
})(DisplayNameParts || {});
|
|
4629
|
+
var FormattedNumberParts = (props) => {
|
|
4630
|
+
const intl = useIntl();
|
|
4631
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4535
4632
|
return children(intl.formatNumberToParts(value, formatProps));
|
|
4536
4633
|
};
|
|
4537
4634
|
FormattedNumberParts.displayName = "FormattedNumberParts";
|
|
4538
|
-
var FormattedListParts =
|
|
4539
|
-
|
|
4540
|
-
|
|
4635
|
+
var FormattedListParts = (props) => {
|
|
4636
|
+
const intl = useIntl();
|
|
4637
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4541
4638
|
return children(intl.formatListToParts(value, formatProps));
|
|
4542
4639
|
};
|
|
4543
4640
|
FormattedNumberParts.displayName = "FormattedNumberParts";
|
|
4544
4641
|
function createFormattedDateTimePartsComponent(name) {
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4642
|
+
const ComponentParts = (props) => {
|
|
4643
|
+
const intl = useIntl();
|
|
4644
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4645
|
+
const date = typeof value === "string" ? new Date(value || 0) : value;
|
|
4646
|
+
const formattedParts = name === "formatDate" ? intl.formatDateToParts(date, formatProps) : intl.formatTimeToParts(date, formatProps);
|
|
4550
4647
|
return children(formattedParts);
|
|
4551
4648
|
};
|
|
4552
4649
|
ComponentParts.displayName = DisplayNameParts[name];
|
|
4553
4650
|
return ComponentParts;
|
|
4554
4651
|
}
|
|
4555
4652
|
function createFormattedComponent(name) {
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
["value", "children"]
|
|
4561
|
-
);
|
|
4562
|
-
var formattedValue = intl[name](value, formatProps);
|
|
4653
|
+
const Component = (props) => {
|
|
4654
|
+
const intl = useIntl();
|
|
4655
|
+
const _a2 = props, { value, children } = _a2, formatProps = __objRest(_a2, ["value", "children"]);
|
|
4656
|
+
const formattedValue = intl[name](value, formatProps);
|
|
4563
4657
|
if (typeof children === "function") {
|
|
4564
4658
|
return children(formattedValue);
|
|
4565
4659
|
}
|
|
4566
|
-
|
|
4660
|
+
const Text = intl.textComponent || React4.Fragment;
|
|
4567
4661
|
return React4.createElement(Text, null, formattedValue);
|
|
4568
4662
|
};
|
|
4569
4663
|
Component.displayName = DisplayName[name];
|
|
4570
4664
|
return Component;
|
|
4571
4665
|
}
|
|
4572
4666
|
|
|
4573
|
-
//
|
|
4667
|
+
// packages/react-intl/src/components/provider.tsx
|
|
4574
4668
|
var React6 = __toESM(window.React);
|
|
4575
4669
|
|
|
4576
|
-
//
|
|
4670
|
+
// packages/react-intl/src/components/createIntl.ts
|
|
4577
4671
|
var React5 = __toESM(window.React);
|
|
4578
4672
|
function assignUniqueKeysToFormatXMLElementFnArgument(values) {
|
|
4579
4673
|
if (!values) {
|
|
4580
4674
|
return values;
|
|
4581
4675
|
}
|
|
4582
|
-
return Object.keys(values).reduce(
|
|
4583
|
-
|
|
4676
|
+
return Object.keys(values).reduce((acc, k) => {
|
|
4677
|
+
const v = values[k];
|
|
4584
4678
|
acc[k] = isFormatXMLElementFn(v) ? assignUniqueKeysToParts(v) : v;
|
|
4585
4679
|
return acc;
|
|
4586
4680
|
}, {});
|
|
4587
4681
|
}
|
|
4588
|
-
var formatMessage2 =
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
rest[_i - 4] = arguments[_i];
|
|
4592
|
-
}
|
|
4593
|
-
var values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
4594
|
-
var chunks = formatMessage.apply(void 0, __spreadArray([
|
|
4682
|
+
var formatMessage2 = (config, formatters, descriptor, rawValues, ...rest) => {
|
|
4683
|
+
const values = assignUniqueKeysToFormatXMLElementFnArgument(rawValues);
|
|
4684
|
+
const chunks = formatMessage(
|
|
4595
4685
|
config,
|
|
4596
4686
|
formatters,
|
|
4597
4687
|
descriptor,
|
|
4598
|
-
values
|
|
4599
|
-
|
|
4688
|
+
values,
|
|
4689
|
+
...rest
|
|
4690
|
+
);
|
|
4600
4691
|
if (Array.isArray(chunks)) {
|
|
4601
4692
|
return React5.Children.toArray(chunks);
|
|
4602
4693
|
}
|
|
4603
4694
|
return chunks;
|
|
4604
4695
|
};
|
|
4605
|
-
var createIntl2 =
|
|
4606
|
-
var
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4696
|
+
var createIntl2 = (_a2, cache) => {
|
|
4697
|
+
var _b = _a2, { defaultRichTextElements: rawDefaultRichTextElements } = _b, config = __objRest(_b, ["defaultRichTextElements"]);
|
|
4698
|
+
const defaultRichTextElements = assignUniqueKeysToFormatXMLElementFnArgument(
|
|
4699
|
+
rawDefaultRichTextElements
|
|
4700
|
+
);
|
|
4701
|
+
const coreIntl = createIntl(
|
|
4702
|
+
__spreadProps(__spreadValues(__spreadValues({}, DEFAULT_INTL_CONFIG2), config), {
|
|
4703
|
+
defaultRichTextElements
|
|
4704
|
+
}),
|
|
4705
|
+
cache
|
|
4706
|
+
);
|
|
4707
|
+
const resolvedConfig = {
|
|
4610
4708
|
locale: coreIntl.locale,
|
|
4611
4709
|
timeZone: coreIntl.timeZone,
|
|
4612
4710
|
fallbackOnEmptyString: coreIntl.fallbackOnEmptyString,
|
|
@@ -4617,7 +4715,7 @@ var ReactIntl = (() => {
|
|
|
4617
4715
|
onError: coreIntl.onError,
|
|
4618
4716
|
defaultRichTextElements
|
|
4619
4717
|
};
|
|
4620
|
-
return
|
|
4718
|
+
return __spreadProps(__spreadValues({}, coreIntl), {
|
|
4621
4719
|
formatMessage: formatMessage2.bind(
|
|
4622
4720
|
null,
|
|
4623
4721
|
resolvedConfig,
|
|
@@ -4629,7 +4727,7 @@ var ReactIntl = (() => {
|
|
|
4629
4727
|
});
|
|
4630
4728
|
};
|
|
4631
4729
|
|
|
4632
|
-
//
|
|
4730
|
+
// packages/react-intl/src/components/provider.tsx
|
|
4633
4731
|
function processIntlConfig(config) {
|
|
4634
4732
|
return {
|
|
4635
4733
|
locale: config.locale,
|
|
@@ -4646,49 +4744,41 @@ var ReactIntl = (() => {
|
|
|
4646
4744
|
defaultRichTextElements: config.defaultRichTextElements
|
|
4647
4745
|
};
|
|
4648
4746
|
}
|
|
4649
|
-
var IntlProvider2 =
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4747
|
+
var IntlProvider2 = class extends React6.PureComponent {
|
|
4748
|
+
constructor() {
|
|
4749
|
+
super(...arguments);
|
|
4750
|
+
__publicField(this, "cache", createIntlCache());
|
|
4751
|
+
__publicField(this, "state", {
|
|
4752
|
+
cache: this.cache,
|
|
4753
|
+
intl: createIntl2(processIntlConfig(this.props), this.cache),
|
|
4754
|
+
prevConfig: processIntlConfig(this.props)
|
|
4755
|
+
});
|
|
4756
|
+
}
|
|
4757
|
+
static getDerivedStateFromProps(props, { prevConfig, cache }) {
|
|
4758
|
+
const config = processIntlConfig(props);
|
|
4759
|
+
if (!shallowEqual(prevConfig, config)) {
|
|
4760
|
+
return {
|
|
4761
|
+
intl: createIntl2(config, cache),
|
|
4762
|
+
prevConfig: config
|
|
4660
4763
|
};
|
|
4661
|
-
return _this;
|
|
4662
4764
|
}
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
return null;
|
|
4673
|
-
};
|
|
4674
|
-
IntlProvider3.prototype.render = function() {
|
|
4675
|
-
invariantIntlContext(this.state.intl);
|
|
4676
|
-
return React6.createElement(Provider, { value: this.state.intl }, this.props.children);
|
|
4677
|
-
};
|
|
4678
|
-
IntlProvider3.displayName = "IntlProvider";
|
|
4679
|
-
IntlProvider3.defaultProps = DEFAULT_INTL_CONFIG2;
|
|
4680
|
-
return IntlProvider3;
|
|
4681
|
-
}(React6.PureComponent)
|
|
4682
|
-
);
|
|
4683
|
-
var provider_default = IntlProvider2;
|
|
4765
|
+
return null;
|
|
4766
|
+
}
|
|
4767
|
+
render() {
|
|
4768
|
+
invariantIntlContext(this.state.intl);
|
|
4769
|
+
return React6.createElement(Provider, { value: this.state.intl }, this.props.children);
|
|
4770
|
+
}
|
|
4771
|
+
};
|
|
4772
|
+
__publicField(IntlProvider2, "displayName", "IntlProvider");
|
|
4773
|
+
__publicField(IntlProvider2, "defaultProps", DEFAULT_INTL_CONFIG2);
|
|
4684
4774
|
|
|
4685
|
-
//
|
|
4775
|
+
// packages/react-intl/src/components/relative.tsx
|
|
4686
4776
|
var React7 = __toESM(window.React);
|
|
4687
4777
|
var MINUTE = 60;
|
|
4688
4778
|
var HOUR = 60 * 60;
|
|
4689
4779
|
var DAY = 60 * 60 * 24;
|
|
4690
4780
|
function selectUnit(seconds) {
|
|
4691
|
-
|
|
4781
|
+
const absValue = Math.abs(seconds);
|
|
4692
4782
|
if (absValue < MINUTE) {
|
|
4693
4783
|
return "second";
|
|
4694
4784
|
}
|
|
@@ -4730,16 +4820,13 @@ var ReactIntl = (() => {
|
|
|
4730
4820
|
"minute",
|
|
4731
4821
|
"hour"
|
|
4732
4822
|
];
|
|
4733
|
-
function canIncrement(unit) {
|
|
4734
|
-
if (unit === void 0) {
|
|
4735
|
-
unit = "second";
|
|
4736
|
-
}
|
|
4823
|
+
function canIncrement(unit = "second") {
|
|
4737
4824
|
return INCREMENTABLE_UNITS.indexOf(unit) > -1;
|
|
4738
4825
|
}
|
|
4739
|
-
var SimpleFormattedRelativeTime =
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4826
|
+
var SimpleFormattedRelativeTime = (props) => {
|
|
4827
|
+
const { formatRelativeTime: formatRelativeTime2, textComponent: Text } = useIntl();
|
|
4828
|
+
const _a2 = props, { children, value, unit } = _a2, otherProps = __objRest(_a2, ["children", "value", "unit"]);
|
|
4829
|
+
const formattedRelativeTime = formatRelativeTime2(value || 0, unit, otherProps);
|
|
4743
4830
|
if (typeof children === "function") {
|
|
4744
4831
|
return children(formattedRelativeTime);
|
|
4745
4832
|
}
|
|
@@ -4748,19 +4835,32 @@ var ReactIntl = (() => {
|
|
|
4748
4835
|
}
|
|
4749
4836
|
return React7.createElement(React7.Fragment, null, formattedRelativeTime);
|
|
4750
4837
|
};
|
|
4751
|
-
var FormattedRelativeTime =
|
|
4752
|
-
var _b = _a2
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4838
|
+
var FormattedRelativeTime = (_a2) => {
|
|
4839
|
+
var _b = _a2, {
|
|
4840
|
+
value = 0,
|
|
4841
|
+
unit = "second",
|
|
4842
|
+
updateIntervalInSeconds
|
|
4843
|
+
} = _b, otherProps = __objRest(_b, [
|
|
4844
|
+
"value",
|
|
4845
|
+
"unit",
|
|
4846
|
+
"updateIntervalInSeconds"
|
|
4847
|
+
]);
|
|
4848
|
+
invariant(
|
|
4849
|
+
!updateIntervalInSeconds || !!(updateIntervalInSeconds && canIncrement(unit)),
|
|
4850
|
+
"Cannot schedule update with unit longer than hour"
|
|
4851
|
+
);
|
|
4852
|
+
const [prevUnit, setPrevUnit] = React7.useState();
|
|
4853
|
+
const [prevValue, setPrevValue] = React7.useState(0);
|
|
4854
|
+
const [currentValueInSeconds, setCurrentValueInSeconds] = React7.useState(0);
|
|
4855
|
+
let updateTimer;
|
|
4758
4856
|
if (unit !== prevUnit || value !== prevValue) {
|
|
4759
4857
|
setPrevValue(value || 0);
|
|
4760
4858
|
setPrevUnit(unit);
|
|
4761
|
-
setCurrentValueInSeconds(
|
|
4859
|
+
setCurrentValueInSeconds(
|
|
4860
|
+
canIncrement(unit) ? valueToSeconds(value, unit) : 0
|
|
4861
|
+
);
|
|
4762
4862
|
}
|
|
4763
|
-
React7.useEffect(
|
|
4863
|
+
React7.useEffect(() => {
|
|
4764
4864
|
function clearUpdateTimer() {
|
|
4765
4865
|
clearTimeout(updateTimer);
|
|
4766
4866
|
}
|
|
@@ -4768,42 +4868,51 @@ var ReactIntl = (() => {
|
|
|
4768
4868
|
if (!updateIntervalInSeconds || !canIncrement(unit)) {
|
|
4769
4869
|
return clearUpdateTimer;
|
|
4770
4870
|
}
|
|
4771
|
-
|
|
4772
|
-
|
|
4871
|
+
const nextValueInSeconds = currentValueInSeconds - updateIntervalInSeconds;
|
|
4872
|
+
const nextUnit = selectUnit(nextValueInSeconds);
|
|
4773
4873
|
if (nextUnit === "day") {
|
|
4774
4874
|
return clearUpdateTimer;
|
|
4775
4875
|
}
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4876
|
+
const unitDuration = getDurationInSeconds(nextUnit);
|
|
4877
|
+
const remainder = nextValueInSeconds % unitDuration;
|
|
4878
|
+
const prevInterestingValueInSeconds = nextValueInSeconds - remainder;
|
|
4879
|
+
const nextInterestingValueInSeconds = prevInterestingValueInSeconds >= currentValueInSeconds ? prevInterestingValueInSeconds - unitDuration : prevInterestingValueInSeconds;
|
|
4880
|
+
const delayInSeconds = Math.abs(
|
|
4881
|
+
nextInterestingValueInSeconds - currentValueInSeconds
|
|
4882
|
+
);
|
|
4781
4883
|
if (currentValueInSeconds !== nextInterestingValueInSeconds) {
|
|
4782
|
-
updateTimer = setTimeout(
|
|
4783
|
-
|
|
4784
|
-
|
|
4884
|
+
updateTimer = setTimeout(
|
|
4885
|
+
() => setCurrentValueInSeconds(nextInterestingValueInSeconds),
|
|
4886
|
+
delayInSeconds * 1e3
|
|
4887
|
+
);
|
|
4785
4888
|
}
|
|
4786
4889
|
return clearUpdateTimer;
|
|
4787
4890
|
}, [currentValueInSeconds, updateIntervalInSeconds, unit]);
|
|
4788
|
-
|
|
4789
|
-
|
|
4891
|
+
let currentValue = value || 0;
|
|
4892
|
+
let currentUnit = unit;
|
|
4790
4893
|
if (canIncrement(unit) && typeof currentValueInSeconds === "number" && updateIntervalInSeconds) {
|
|
4791
4894
|
currentUnit = selectUnit(currentValueInSeconds);
|
|
4792
|
-
|
|
4895
|
+
const unitDuration = getDurationInSeconds(currentUnit);
|
|
4793
4896
|
currentValue = Math.round(currentValueInSeconds / unitDuration);
|
|
4794
4897
|
}
|
|
4795
|
-
return React7.createElement(
|
|
4898
|
+
return React7.createElement(
|
|
4899
|
+
SimpleFormattedRelativeTime,
|
|
4900
|
+
__spreadValues({
|
|
4901
|
+
value: currentValue,
|
|
4902
|
+
unit: currentUnit
|
|
4903
|
+
}, otherProps)
|
|
4904
|
+
);
|
|
4796
4905
|
};
|
|
4797
4906
|
FormattedRelativeTime.displayName = "FormattedRelativeTime";
|
|
4798
4907
|
var relative_default = FormattedRelativeTime;
|
|
4799
4908
|
|
|
4800
|
-
//
|
|
4909
|
+
// packages/react-intl/src/components/plural.tsx
|
|
4801
4910
|
var React8 = __toESM(window.React);
|
|
4802
|
-
var FormattedPlural =
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4911
|
+
var FormattedPlural = (props) => {
|
|
4912
|
+
const { formatPlural: formatPlural2, textComponent: Text } = useIntl();
|
|
4913
|
+
const { value, other, children } = props;
|
|
4914
|
+
const pluralCategory = formatPlural2(value, props);
|
|
4915
|
+
const formattedPlural = props[pluralCategory] || other;
|
|
4807
4916
|
if (typeof children === "function") {
|
|
4808
4917
|
return children(formattedPlural);
|
|
4809
4918
|
}
|
|
@@ -4815,19 +4924,27 @@ var ReactIntl = (() => {
|
|
|
4815
4924
|
FormattedPlural.displayName = "FormattedPlural";
|
|
4816
4925
|
var plural_default = FormattedPlural;
|
|
4817
4926
|
|
|
4818
|
-
//
|
|
4927
|
+
// packages/react-intl/src/components/message.tsx
|
|
4819
4928
|
var React9 = __toESM(window.React);
|
|
4820
4929
|
function areEqual(prevProps, nextProps) {
|
|
4821
|
-
|
|
4822
|
-
|
|
4930
|
+
const _a2 = prevProps, { values } = _a2, otherProps = __objRest(_a2, ["values"]);
|
|
4931
|
+
const _b = nextProps, { values: nextValues } = _b, nextOtherProps = __objRest(_b, ["values"]);
|
|
4823
4932
|
return shallowEqual(nextValues, values) && shallowEqual(otherProps, nextOtherProps);
|
|
4824
4933
|
}
|
|
4825
4934
|
function FormattedMessage(props) {
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4935
|
+
const intl = useIntl();
|
|
4936
|
+
const { formatMessage: formatMessage3, textComponent: Text = React9.Fragment } = intl;
|
|
4937
|
+
const {
|
|
4938
|
+
id,
|
|
4939
|
+
description,
|
|
4940
|
+
defaultMessage,
|
|
4941
|
+
values,
|
|
4942
|
+
children,
|
|
4943
|
+
tagName: Component = Text,
|
|
4944
|
+
ignoreTag
|
|
4945
|
+
} = props;
|
|
4946
|
+
const descriptor = { id, description, defaultMessage };
|
|
4947
|
+
let nodes = formatMessage3(descriptor, values, {
|
|
4831
4948
|
ignoreTag
|
|
4832
4949
|
});
|
|
4833
4950
|
if (typeof children === "function") {
|
|
@@ -4839,26 +4956,29 @@ var ReactIntl = (() => {
|
|
|
4839
4956
|
return React9.createElement(React9.Fragment, null, nodes);
|
|
4840
4957
|
}
|
|
4841
4958
|
FormattedMessage.displayName = "FormattedMessage";
|
|
4842
|
-
var MemoizedFormattedMessage = React9.memo(
|
|
4959
|
+
var MemoizedFormattedMessage = React9.memo(
|
|
4960
|
+
FormattedMessage,
|
|
4961
|
+
areEqual
|
|
4962
|
+
);
|
|
4843
4963
|
MemoizedFormattedMessage.displayName = "MemoizedFormattedMessage";
|
|
4844
4964
|
var message_default = MemoizedFormattedMessage;
|
|
4845
4965
|
|
|
4846
|
-
//
|
|
4966
|
+
// packages/react-intl/src/components/dateTimeRange.tsx
|
|
4847
4967
|
var React10 = __toESM(window.React);
|
|
4848
|
-
var FormattedDateTimeRange =
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4968
|
+
var FormattedDateTimeRange = (props) => {
|
|
4969
|
+
const intl = useIntl();
|
|
4970
|
+
const _a2 = props, { from, to, children } = _a2, formatProps = __objRest(_a2, ["from", "to", "children"]);
|
|
4971
|
+
const formattedValue = intl.formatDateTimeRange(from, to, formatProps);
|
|
4852
4972
|
if (typeof children === "function") {
|
|
4853
4973
|
return children(formattedValue);
|
|
4854
4974
|
}
|
|
4855
|
-
|
|
4975
|
+
const Text = intl.textComponent || React10.Fragment;
|
|
4856
4976
|
return React10.createElement(Text, null, formattedValue);
|
|
4857
4977
|
};
|
|
4858
4978
|
FormattedDateTimeRange.displayName = "FormattedDateTimeRange";
|
|
4859
4979
|
var dateTimeRange_default = FormattedDateTimeRange;
|
|
4860
4980
|
|
|
4861
|
-
//
|
|
4981
|
+
// packages/react-intl/index.ts
|
|
4862
4982
|
function defineMessages(msgs) {
|
|
4863
4983
|
return msgs;
|
|
4864
4984
|
}
|
|
@@ -4872,7 +4992,7 @@ var ReactIntl = (() => {
|
|
|
4872
4992
|
var FormattedDisplayName = createFormattedComponent("formatDisplayName");
|
|
4873
4993
|
var FormattedDateParts = createFormattedDateTimePartsComponent("formatDate");
|
|
4874
4994
|
var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
|
|
4875
|
-
return __toCommonJS(
|
|
4995
|
+
return __toCommonJS(react_intl_exports);
|
|
4876
4996
|
})();
|
|
4877
4997
|
/*! Bundled license information:
|
|
4878
4998
|
|