react-intl 5.12.2 → 5.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intl",
3
- "version": "5.12.2",
3
+ "version": "5.12.3",
4
4
  "description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
5
5
  "keywords": [
6
6
  "intl",
@@ -129,15 +129,15 @@
129
129
  "sideEffects": false,
130
130
  "dependencies": {
131
131
  "@formatjs/ecma402-abstract": "1.5.2",
132
- "@formatjs/intl": "1.6.7",
132
+ "@formatjs/intl": "1.6.8",
133
133
  "@formatjs/intl-displaynames": "4.0.5",
134
134
  "@formatjs/intl-listformat": "5.0.5",
135
135
  "@formatjs/intl-relativetimeformat": "8.0.4",
136
136
  "@types/hoist-non-react-statics": "^3.3.1",
137
137
  "fast-memoize": "^2.5.2",
138
138
  "hoist-non-react-statics": "^3.3.2",
139
- "intl-messageformat": "9.4.6",
140
- "intl-messageformat-parser": "6.3.1",
139
+ "intl-messageformat": "9.4.7",
140
+ "intl-messageformat-parser": "6.3.2",
141
141
  "shallow-equal": "^1.2.1",
142
142
  "tslib": "^2.0.1"
143
143
  },
@@ -1049,6 +1049,7 @@
1049
1049
  return IntlMessageFormat;
1050
1050
  }());
1051
1051
 
1052
+ exports.ReactIntlErrorCode = void 0;
1052
1053
  (function (IntlErrorCode) {
1053
1054
  IntlErrorCode["FORMAT_ERROR"] = "FORMAT_ERROR";
1054
1055
  IntlErrorCode["UNSUPPORTED_FORMATTER"] = "UNSUPPORTED_FORMATTER";
@@ -1071,28 +1072,28 @@
1071
1072
  var UnsupportedFormatterError = /** @class */ (function (_super) {
1072
1073
  __extends(UnsupportedFormatterError, _super);
1073
1074
  function UnsupportedFormatterError(message, exception) {
1074
- return _super.call(this, "UNSUPPORTED_FORMATTER" /* UNSUPPORTED_FORMATTER */, message, exception) || this;
1075
+ return _super.call(this, exports.ReactIntlErrorCode.UNSUPPORTED_FORMATTER, message, exception) || this;
1075
1076
  }
1076
1077
  return UnsupportedFormatterError;
1077
1078
  }(IntlError));
1078
1079
  var InvalidConfigError = /** @class */ (function (_super) {
1079
1080
  __extends(InvalidConfigError, _super);
1080
1081
  function InvalidConfigError(message, exception) {
1081
- return _super.call(this, "INVALID_CONFIG" /* INVALID_CONFIG */, message, exception) || this;
1082
+ return _super.call(this, exports.ReactIntlErrorCode.INVALID_CONFIG, message, exception) || this;
1082
1083
  }
1083
1084
  return InvalidConfigError;
1084
1085
  }(IntlError));
1085
1086
  var MissingDataError = /** @class */ (function (_super) {
1086
1087
  __extends(MissingDataError, _super);
1087
1088
  function MissingDataError(message, exception) {
1088
- return _super.call(this, "MISSING_DATA" /* MISSING_DATA */, message, exception) || this;
1089
+ return _super.call(this, exports.ReactIntlErrorCode.MISSING_DATA, message, exception) || this;
1089
1090
  }
1090
1091
  return MissingDataError;
1091
1092
  }(IntlError));
1092
1093
  var MessageFormatError = /** @class */ (function (_super) {
1093
1094
  __extends(MessageFormatError, _super);
1094
1095
  function MessageFormatError(message, locale, descriptor, exception) {
1095
- var _this = _super.call(this, "FORMAT_ERROR" /* FORMAT_ERROR */, message + " \nLocale: " + locale + "\nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", exception) || this;
1096
+ var _this = _super.call(this, exports.ReactIntlErrorCode.FORMAT_ERROR, message + " \nLocale: " + locale + "\nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", exception) || this;
1096
1097
  _this.descriptor = descriptor;
1097
1098
  return _this;
1098
1099
  }
@@ -1101,7 +1102,7 @@
1101
1102
  var MissingTranslationError = /** @class */ (function (_super) {
1102
1103
  __extends(MissingTranslationError, _super);
1103
1104
  function MissingTranslationError(descriptor, locale) {
1104
- var _this = _super.call(this, "MISSING_TRANSLATION" /* MISSING_TRANSLATION */, "Missing message: \"" + descriptor.id + "\" for locale \"" + locale + "\", using " + (descriptor.defaultMessage ? 'default message' : 'id') + " as fallback.") || this;
1105
+ var _this = _super.call(this, exports.ReactIntlErrorCode.MISSING_TRANSLATION, "Missing message: \"" + descriptor.id + "\" for locale \"" + locale + "\", using " + (descriptor.defaultMessage ? 'default message' : 'id') + " as fallback.") || this;
1105
1106
  _this.descriptor = descriptor;
1106
1107
  return _this;
1107
1108
  }
@@ -1407,7 +1408,7 @@
1407
1408
  return getFormatter(config, 'date', getDateTimeFormat, options).format(date);
1408
1409
  }
1409
1410
  catch (e) {
1410
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting date.', e));
1411
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting date.', e));
1411
1412
  }
1412
1413
  return String(date);
1413
1414
  }
@@ -1422,7 +1423,7 @@
1422
1423
  return getFormatter(config, 'time', getDateTimeFormat, options).format(date);
1423
1424
  }
1424
1425
  catch (e) {
1425
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting time.', e));
1426
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting time.', e));
1426
1427
  }
1427
1428
  return String(date);
1428
1429
  }
@@ -1438,7 +1439,7 @@
1438
1439
  return getDateTimeFormat(locale, filteredOptions).formatRange(from, to);
1439
1440
  }
1440
1441
  catch (e) {
1441
- onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting date time range.', e));
1442
+ onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting date time range.', e));
1442
1443
  }
1443
1444
  return String(from);
1444
1445
  }
@@ -1453,7 +1454,7 @@
1453
1454
  return getFormatter(config, 'date', getDateTimeFormat, options).formatToParts(date);
1454
1455
  }
1455
1456
  catch (e) {
1456
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting date.', e));
1457
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting date.', e));
1457
1458
  }
1458
1459
  return [];
1459
1460
  }
@@ -1468,7 +1469,7 @@
1468
1469
  return getFormatter(config, 'time', getDateTimeFormat, options).formatToParts(date);
1469
1470
  }
1470
1471
  catch (e) {
1471
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting time.', e));
1472
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting time.', e));
1472
1473
  }
1473
1474
  return [];
1474
1475
  }
@@ -1490,7 +1491,7 @@
1490
1491
  return getDisplayNames(locale, filteredOptions).of(value);
1491
1492
  }
1492
1493
  catch (e) {
1493
- onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting display name.', e));
1494
+ onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting display name.', e));
1494
1495
  }
1495
1496
  }
1496
1497
 
@@ -1540,7 +1541,7 @@
1540
1541
  }, []);
1541
1542
  }
1542
1543
  catch (e) {
1543
- onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting list.', e));
1544
+ onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting list.', e));
1544
1545
  }
1545
1546
  // @ts-ignore
1546
1547
  return values;
@@ -1631,7 +1632,7 @@
1631
1632
  return getFormatter$2(config, getNumberFormat, options).format(value);
1632
1633
  }
1633
1634
  catch (e) {
1634
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting number.', e));
1635
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting number.', e));
1635
1636
  }
1636
1637
  return String(value);
1637
1638
  }
@@ -1641,7 +1642,7 @@
1641
1642
  return getFormatter$2(config, getNumberFormat, options).formatToParts(value);
1642
1643
  }
1643
1644
  catch (e) {
1644
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting number.', e));
1645
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting number.', e));
1645
1646
  }
1646
1647
  return [];
1647
1648
  }
@@ -12,7 +12,7 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function e(t){for(var r,n=1,o=arguments.length;n<o;n++)for(var a in r=arguments[n])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t}).apply(this,arguments)};function u(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var l=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function f(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n}function m(e){return this instanceof m?(this.v=e,this):new m(e)}var p=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},d=Object.freeze({__proto__:null,__extends:a,get __assign(){return i},__rest:u,__decorate:function y(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},__param:function v(e,t){return function(r,n){t(r,n,e)}},__metadata:function g(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function h(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function u(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){e.done?o(e.value):function t(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(i,u)}l((n=n.apply(e,t||[])).next())}))},__generator:function b(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function l(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},__createBinding:l,__exportStar:function T(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||l(t,e,r)},__values:s,__read:c,__spread:function E(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e},__spreadArrays:f,__spreadArray:function _(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},__await:m,__asyncGenerator:function w(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{!function r(e){e.value instanceof m?Promise.resolve(e.value.v).then(l,s):c(a[0][2],e)}(o[e](t))}catch(e){c(a[0][3],e)}}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[0][1])}},__asyncDelegator:function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:o?o(t):t}:o}},__asyncValues:function I(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=s(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function a(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return p(t,e),t},__importDefault:function R(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function N(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function F(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}});function D(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function j(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function M(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var A=j((function(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.createNumberElement=t.createLiteralElement=t.isDateTimeSkeleton=t.isNumberSkeleton=t.isTagElement=t.isPoundElement=t.isPluralElement=t.isSelectElement=t.isTimeElement=t.isDateElement=t.isNumberElement=t.isArgumentElement=t.isLiteralElement=t.SKELETON_TYPE=t.TYPE=void 0,function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(r=t.TYPE||(t.TYPE={})),(n=t.SKELETON_TYPE||(t.SKELETON_TYPE={}))[n.number=0]="number",n[n.dateTime=1]="dateTime",t.isLiteralElement=function o(e){return e.type===r.literal},t.isArgumentElement=function a(e){return e.type===r.argument},t.isNumberElement=function i(e){return e.type===r.number},t.isDateElement=function u(e){return e.type===r.date},t.isTimeElement=function l(e){return e.type===r.time},t.isSelectElement=function s(e){return e.type===r.select},t.isPluralElement=function c(e){return e.type===r.plural},t.isPoundElement=function f(e){return e.type===r.pound},t.isTagElement=function m(e){return e.type===r.tag},t.isNumberSkeleton=function p(e){return!(!e||"object"!=typeof e||0!==e.type)},t.isDateTimeSkeleton=function d(e){return!(!e||"object"!=typeof e||1!==e.type)},t.createLiteralElement=function y(e){return{type:r.literal,value:e}},t.createNumberElement=function v(e,t){return{type:r.number,value:e,style:t}}})),L=M(d),x=j((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,L.__exportStar(A,t),t.parse=function r(){throw new Error("You're trying to format an uncompiled message with react-intl without parser, please import from 'react-int' instead")}}));function C(e,t,r,n){var o=function a(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function k(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return void 0===a&&(a=e.apply(this,n),t.set(o,a)),a}function $(e,t,r,n,o){return r.bind(t,e,n,o)}function U(e,t){return $(e,this,1===e.length?C:k,t.cache.create(),t.serializer)}function V(){return JSON.stringify(arguments)}function G(){this.cache=Object.create(null)}G.prototype.has=function(e){return e in this.cache},G.prototype.get=function(e){return this.cache[e]},G.prototype.set=function(e,t){this.cache[e]=t};var z={create:function e(){return new G}},Z=function Y(e,t){return(t&&t.strategy?t.strategy:U)(e,{cache:t&&t.cache?t.cache:z,serializer:t&&t.serializer?t.serializer:V})},q={variadic:function K(e,t){return $(e,this,k,t.cache.create(),t.serializer)},monadic:function W(e,t){return $(e,this,C,t.cache.create(),t.serializer)}};Z.strategies=q;var B,H=Object.freeze(Object.assign(Object.create(null),Z,{default:Z,strategies:q}));!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(B||(B={}));var J,Q=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return a(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),X=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",o)||this}return a(t,e),t}(Q),ee=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return a(t,e),t}(Q),te=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return a(t,e),t}(Q);function re(e){return"function"==typeof e}function ne(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(J||(J={}));var oe,ae=Z||H,ie=function(){function e(t,r,n,o){var a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,o,a,i,u){if(1===t.length&&x.isLiteralElement(t[0]))return[{type:0,value:t[0].value}];for(var l=[],s=0,c=t;s<c.length;s++){var f=c[s];if(x.isLiteralElement(f))l.push({type:0,value:f.value});else if(x.isPoundElement(f))"number"==typeof i&&l.push({type:0,value:n.getNumberFormat(r).format(i)});else{var m=f.value;if(!a||!(m in a))throw new te(m,u);var p=a[m];if(x.isArgumentElement(f))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),l.push({type:"string"==typeof p?0:1,value:p});else if(x.isDateElement(f)){var d="string"==typeof f.style?o.date[f.style]:x.isDateTimeSkeleton(f.style)?f.style.parsedOptions:void 0;l.push({type:0,value:n.getDateTimeFormat(r,d).format(p)})}else if(x.isTimeElement(f))d="string"==typeof f.style?o.time[f.style]:x.isDateTimeSkeleton(f.style)?f.style.parsedOptions:void 0,l.push({type:0,value:n.getDateTimeFormat(r,d).format(p)});else if(x.isNumberElement(f))(d="string"==typeof f.style?o.number[f.style]:x.isNumberSkeleton(f.style)?f.style.parsedOptions:void 0)&&d.scale&&(p*=d.scale||1),l.push({type:0,value:n.getNumberFormat(r,d).format(p)});else{if(x.isTagElement(f)){var y=f.children,v=f.value,g=a[v];if(!re(g))throw new ee(v,"function",u);var h=g(e(y,r,n,o,a,i).map((function(e){return e.value})));Array.isArray(h)||(h=[h]),l.push.apply(l,h.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(x.isSelectElement(f)){if(!(b=f.options[p]||f.options.other))throw new X(f.value,p,Object.keys(f.options),u);l.push.apply(l,e(b.value,r,n,o,a))}else if(x.isPluralElement(f)){var b;if(!(b=f.options["="+p])){if(!Intl.PluralRules)throw new Q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",u);var T=n.getPluralRules(r,{type:f.pluralType}).select(p-(f.offset||0));b=f.options[T]||f.options.other}if(!b)throw new X(f.value,p,Object.keys(f.options),u);l.push.apply(l,e(b.value,r,n,o,a,p-(f.offset||0)))}}}}return function E(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(l)}(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function u(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function o(e,t){return t?i(i(i({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=i(i({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),i({},e)):e}(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||function l(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ae((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,f([void 0],t)))}),{cache:ne(e.number),strategy:ae.strategies.variadic}),getDateTimeFormat:ae((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,f([void 0],t)))}),{cache:ne(e.dateTime),strategy:ae.strategies.variadic}),getPluralRules:ae((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,f([void 0],t)))}),{cache:ne(e.pluralRules),strategy:ae.strategies.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=x.parse,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();(oe=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",oe.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",oe.INVALID_CONFIG="INVALID_CONFIG",oe.MISSING_DATA="MISSING_DATA",oe.MISSING_TRANSLATION="MISSING_TRANSLATION";var ue=function(e){function t(r,n,o){var a=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(o?"\n"+o.message+"\n"+o.stack:""))||this;return a.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return a(t,e),t}(Error),le=function(e){function t(t,r){return e.call(this,"UNSUPPORTED_FORMATTER",t,r)||this}return a(t,e),t}(ue),se=function(e){function t(t,r){return e.call(this,"INVALID_CONFIG",t,r)||this}return a(t,e),t}(ue),ce=function(e){function t(t,r){return e.call(this,"MISSING_DATA",t,r)||this}return a(t,e),t}(ue),fe=function(e){function t(t,r,n,o){var a=e.call(this,"FORMAT_ERROR",t+" \nLocale: "+r+"\nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",o)||this;return a.descriptor=n,a}return a(t,e),t}(ue),me=function(e){function t(t,r){var n=e.call(this,"MISSING_TRANSLATION",'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return a(t,e),t}(ue);function pe(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var de={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function ye(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var ve=Z||H;function ge(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new le("No "+t+" format named: "+r))}function he(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=i({timeZone:t},e[n]),r}),{})}function be(e,t){return Object.keys(i(i({},e),t)).reduce((function(r,n){return r[n]=i(i({},e[n]||{}),t[n]||{}),r}),{})}function Te(e,t){if(!t)return e;var r=ie.formats;return i(i(i({},r),e),{date:be(he(r.date,t),he(e.date||{},t)),time:be(he(r.time,t),he(e.time||{},t))})}function Ee(e,t,r,n,o){var a=e.locale,u=e.formats,l=e.messages,s=e.defaultLocale,c=e.defaultFormats,f=e.onError,m=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,y=r.defaultMessage;D(!!d,"[@formatjs/intl] An `id` must be provided to format a message.");var v=String(d),g=l&&Object.prototype.hasOwnProperty.call(l,v)&&l[v];if(Array.isArray(g)&&1===g.length&&g[0].type===x.TYPE.literal)return g[0].value;if(!n&&g&&"string"==typeof g&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=i(i({},p),n||{}),u=Te(u,m),c=Te(c,m),!g){if((!y||a&&a.toLowerCase()!==s.toLowerCase())&&f(new me(r,a)),y)try{return t.getMessageFormat(y,s,c,o).format(n)}catch(e){return f(new fe('Error formatting default message for: "'+v+'", rendering default message verbatim',a,r,e)),"string"==typeof y?y:v}return v}try{return t.getMessageFormat(g,a,u,i({formatters:t},o||{})).format(n)}catch(e){f(new fe('Error formatting message: "'+v+'", using '+(y?"default message":"id")+" as fallback.",a,r,e))}if(y)try{return t.getMessageFormat(y,s,c,o).format(n)}catch(e){f(new fe('Error formatting the default message for: "'+v+'", rendering message verbatim',a,r,e))}return"string"==typeof g?g:"string"==typeof y?y:v}var _e=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function we(e,t,r,n){var o=e.locale,a=e.formats,u=e.onError,l=e.timeZone;void 0===n&&(n={});var s=n.format,c=i(i({},l&&{timeZone:l}),s&&ge(a,t,s,u)),f=pe(n,_e,c);return"time"!==t||f.hour||f.minute||f.second||f.timeStyle||f.dateStyle||(f=i(i({},f),{hour:"numeric",minute:"numeric"})),r(o,f)}function Se(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,u="string"==typeof o?new Date(o||0):o;try{return we(e,"date",t,i).format(u)}catch(t){e.onError(new ue("FORMAT_ERROR","Error formatting date.",t))}return String(u)}function Ie(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,u="string"==typeof o?new Date(o||0):o;try{return we(e,"time",t,i).format(u)}catch(t){e.onError(new ue("FORMAT_ERROR","Error formatting time.",t))}return String(u)}function Oe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=r[2],u=void 0===i?{}:i,l=e.timeZone,s=e.locale,c=e.onError,f=pe(u,_e,l?{timeZone:l}:{});try{return t(s,f).formatRange(o,a)}catch(e){c(new ue("FORMAT_ERROR","Error formatting date time range.",e))}return String(o)}function Pe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,u="string"==typeof o?new Date(o||0):o;try{return we(e,"date",t,i).formatToParts(u)}catch(t){e.onError(new ue("FORMAT_ERROR","Error formatting date.",t))}return[]}function Re(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,u="string"==typeof o?new Date(o||0):o;try{return we(e,"time",t,i).formatToParts(u)}catch(t){e.onError(new ue("FORMAT_ERROR","Error formatting time.",t))}return[]}var Ne=["localeMatcher","style","type","fallback"];function Fe(e,t,r,n){var o=e.locale,a=e.onError;Intl.DisplayNames||a(new Q('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=pe(n,Ne);try{return t(o,i).of(r)}catch(e){a(new ue("FORMAT_ERROR","Error formatting display name.",e))}}var De=["localeMatcher","type","style"],je=Date.now();function Me(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new Q('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=pe(n,De);try{var u={},l=r.map((function(e,t){if("object"==typeof e){var r=function n(e){return je+"_"+e+"_"+je}(t);return u[r]=e,r}return String(e)}));return Object.keys(u).length?t(o,i).formatToParts(l).reduce((function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):t(o,i).format(l)}catch(e){a(new ue("FORMAT_ERROR","Error formatting list.",e))}return r}var Ae=["localeMatcher","type"];function Le(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new Q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=pe(n,Ae);try{return t(o,i).select(r)}catch(e){a(new fe("Error formatting plural.",e))}return"other"}var xe=["numeric","style"];function Ce(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Q('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function a(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=!!o&&ge(e.formats,"relative",o,e.onError)||{};return t(n,pe(r,xe,a))}(e,t,o).format(r,n)}catch(t){e.onError(new fe("Error formatting relative time.",t))}return String(r)}var ke=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function $e(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=o&&ge(e.formats,"number",o,e.onError)||{};return t(n,pe(r,ke,a))}function Ue(e,t,r,n){void 0===n&&(n={});try{return $e(e,t,n).format(r)}catch(t){e.onError(new ue("FORMAT_ERROR","Error formatting number.",t))}return String(r)}function Ve(e,t,r,n){void 0===n&&(n={});try{return $e(e,t,n).formatToParts(r)}catch(t){e.onError(new ue("FORMAT_ERROR","Error formatting number.",t))}return[]}function Ge(e){var t=e?e[Object.keys(e)[0]]:void 0;return"object"==typeof t&&!!t}function ze(e){D(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Ze=i(i({},de),{textComponent:t.Fragment}),Ye="function"==typeof Symbol&&Symbol.for,qe=Ye?Symbol.for("react.element"):60103,Ke=Ye?Symbol.for("react.portal"):60106,We=Ye?Symbol.for("react.fragment"):60107,Be=Ye?Symbol.for("react.strict_mode"):60108,He=Ye?Symbol.for("react.profiler"):60114,Je=Ye?Symbol.for("react.provider"):60109,Qe=Ye?Symbol.for("react.context"):60110,Xe=Ye?Symbol.for("react.async_mode"):60111,et=Ye?Symbol.for("react.concurrent_mode"):60111,tt=Ye?Symbol.for("react.forward_ref"):60112,rt=Ye?Symbol.for("react.suspense"):60113,nt=Ye?Symbol.for("react.suspense_list"):60120,ot=Ye?Symbol.for("react.memo"):60115,at=Ye?Symbol.for("react.lazy"):60116,it=Ye?Symbol.for("react.block"):60121,ut=Ye?Symbol.for("react.fundamental"):60117,lt=Ye?Symbol.for("react.responder"):60118,st=Ye?Symbol.for("react.scope"):60119;function ct(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qe:switch(e=e.type){case Xe:case et:case We:case He:case Be:case rt:return e;default:switch(e=e&&e.$$typeof){case Qe:case tt:case at:case ot:case Je:return e;default:return t}}case Ke:return t}}}function ft(e){return ct(e)===et}var mt={AsyncMode:Xe,ConcurrentMode:et,ContextConsumer:Qe,ContextProvider:Je,Element:qe,ForwardRef:tt,Fragment:We,Lazy:at,Memo:ot,Portal:Ke,Profiler:He,StrictMode:Be,Suspense:rt,isAsyncMode:function(e){return ft(e)||ct(e)===Xe},isConcurrentMode:ft,isContextConsumer:function(e){return ct(e)===Qe},isContextProvider:function(e){return ct(e)===Je},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qe},isForwardRef:function(e){return ct(e)===tt},isFragment:function(e){return ct(e)===We},isLazy:function(e){return ct(e)===at},isMemo:function(e){return ct(e)===ot},isPortal:function(e){return ct(e)===Ke},isProfiler:function(e){return ct(e)===He},isStrictMode:function(e){return ct(e)===Be},isSuspense:function(e){return ct(e)===rt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===We||e===et||e===He||e===Be||e===rt||e===nt||"object"==typeof e&&null!==e&&(e.$$typeof===at||e.$$typeof===ot||e.$$typeof===Je||e.$$typeof===Qe||e.$$typeof===tt||e.$$typeof===ut||e.$$typeof===lt||e.$$typeof===st||e.$$typeof===it)},typeOf:ct},pt=j((function(e){e.exports=mt})),dt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gt={};function ht(e){return pt.isMemo(e)?vt:gt[e.$$typeof]||dt}gt[pt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt[pt.Memo]=vt;var bt,Tt,Et=Object.defineProperty,_t=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,St=Object.getOwnPropertyDescriptor,It=Object.getPrototypeOf,Ot=Object.prototype,Pt=function e(t,r,n){if("string"!=typeof r){if(Ot){var o=It(r);o&&o!==Ot&&e(t,o,n)}var a=_t(r);wt&&(a=a.concat(wt(r)));for(var i=ht(t),u=ht(r),l=0;l<a.length;++l){var s=a[l];if(!(yt[s]||n&&n[s]||u&&u[s]||i&&i[s])){var c=St(r,s);try{Et(t,s,c)}catch(e){}}}}return t},Rt=Pt.default||Pt,Nt=t.createContext(null),Ft=Nt.Consumer,Dt=Nt.Provider,jt=Nt;function Mt(e,r){var n=r||{},o=n.intlPropName,a=void 0===o?"intl":o,u=n.forwardRef,l=void 0!==u&&u,s=n.enforceContext,c=void 0===s||s,f=function(r){return t.createElement(Ft,null,(function(n){var o;c&&ze(n);var u=((o={})[a]=n,o);return t.createElement(e,i({},r,u,{ref:l?r.forwardedRef:null}))}))};return f.displayName="injectIntl("+function m(e){return e.displayName||e.name||"Component"}(e)+")",f.WrappedComponent=e,Rt(l?t.forwardRef((function(e,r){return t.createElement(f,i({},e,{forwardedRef:r}))})):f,e)}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(bt||(bt={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Tt||(Tt={}));var At=function(e){return t.createElement(jt.Consumer,null,(function(t){ze(t);var r=e.value,n=e.children,o=u(e,["value","children"]);return n(t.formatNumberToParts(r,o))}))};function Lt(e){var r=function(r){return t.createElement(jt.Consumer,null,(function(t){ze(t);var n=r.value,o=r.children,a=u(r,["value","children"]),i="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?t.formatDateToParts(i,a):t.formatTimeToParts(i,a))}))};return r.displayName=Tt[e],r}function xt(e){var r=function(r){return t.createElement(jt.Consumer,null,(function(n){ze(n);var o=r.value,a=r.children,i=u(r,["value","children"]),l=n[e](o,i);return"function"==typeof a?a(l):t.createElement(n.textComponent||t.Fragment,null,l)}))};return r.displayName=bt[e],r}At.displayName="FormattedNumberParts";var Ct=function kt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0},$t=Object.freeze(Object.assign(Object.create(null),Ct,{default:Ct})),Ut=Ct||$t;function Vt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Gt(e){return e?Object.keys(e).reduce((function(r,n){var o=e[n];return r[n]=re(o)?function a(e){return function(r){return e(t.Children.toArray(r))}}
15
+ ***************************************************************************** */function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function e(t){for(var r,n=1,o=arguments.length;n<o;n++)for(var a in r=arguments[n])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t}).apply(this,arguments)};function u(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var l=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function f(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,u=a.length;i<u;i++,o++)n[o]=a[i];return n}function m(e){return this instanceof m?(this.v=e,this):new m(e)}var p=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},d=Object.freeze({__proto__:null,__extends:a,get __assign(){return i},__rest:u,__decorate:function y(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i},__param:function v(e,t){return function(r,n){t(r,n,e)}},__metadata:function g(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function h(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function u(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){e.done?o(e.value):function t(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(i,u)}l((n=n.apply(e,t||[])).next())}))},__generator:function b(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function l(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},__createBinding:l,__exportStar:function E(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||l(t,e,r)},__values:s,__read:c,__spread:function T(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e},__spreadArrays:f,__spreadArray:function I(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},__await:m,__asyncGenerator:function _(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{!function r(e){e.value instanceof m?Promise.resolve(e.value.v).then(l,s):c(a[0][2],e)}(o[e](t))}catch(e){c(a[0][3],e)}}function l(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[0][1])}},__asyncDelegator:function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:o?o(t):t}:o}},__asyncValues:function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=s(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function a(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function R(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return p(t,e),t},__importDefault:function P(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function N(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function F(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}});function D(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function j(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function M(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var A=j((function(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.createNumberElement=t.createLiteralElement=t.isDateTimeSkeleton=t.isNumberSkeleton=t.isTagElement=t.isPoundElement=t.isPluralElement=t.isSelectElement=t.isTimeElement=t.isDateElement=t.isNumberElement=t.isArgumentElement=t.isLiteralElement=t.SKELETON_TYPE=t.TYPE=void 0,function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(r=t.TYPE||(t.TYPE={})),(n=t.SKELETON_TYPE||(t.SKELETON_TYPE={}))[n.number=0]="number",n[n.dateTime=1]="dateTime",t.isLiteralElement=function o(e){return e.type===r.literal},t.isArgumentElement=function a(e){return e.type===r.argument},t.isNumberElement=function i(e){return e.type===r.number},t.isDateElement=function u(e){return e.type===r.date},t.isTimeElement=function l(e){return e.type===r.time},t.isSelectElement=function s(e){return e.type===r.select},t.isPluralElement=function c(e){return e.type===r.plural},t.isPoundElement=function f(e){return e.type===r.pound},t.isTagElement=function m(e){return e.type===r.tag},t.isNumberSkeleton=function p(e){return!(!e||"object"!=typeof e||0!==e.type)},t.isDateTimeSkeleton=function d(e){return!(!e||"object"!=typeof e||1!==e.type)},t.createLiteralElement=function y(e){return{type:r.literal,value:e}},t.createNumberElement=function v(e,t){return{type:r.number,value:e,style:t}}})),C=M(d),L=j((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,C.__exportStar(A,t),t.parse=function r(){throw new Error("You're trying to format an uncompiled message with react-intl without parser, please import from 'react-int' instead")}}));function x(e,t,r,n){var o=function a(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function k(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return void 0===a&&(a=e.apply(this,n),t.set(o,a)),a}function $(e,t,r,n,o){return r.bind(t,e,n,o)}function U(e,t){return $(e,this,1===e.length?x:k,t.cache.create(),t.serializer)}function V(){return JSON.stringify(arguments)}function G(){this.cache=Object.create(null)}G.prototype.has=function(e){return e in this.cache},G.prototype.get=function(e){return this.cache[e]},G.prototype.set=function(e,t){this.cache[e]=t};var z={create:function e(){return new G}},Z=function Y(e,t){return(t&&t.strategy?t.strategy:U)(e,{cache:t&&t.cache?t.cache:z,serializer:t&&t.serializer?t.serializer:V})},q={variadic:function K(e,t){return $(e,this,k,t.cache.create(),t.serializer)},monadic:function W(e,t){return $(e,this,x,t.cache.create(),t.serializer)}};Z.strategies=q;var B,H=Object.freeze(Object.assign(Object.create(null),Z,{default:Z,strategies:q}));!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(B||(B={}));var J,Q=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return a(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),X=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",o)||this}return a(t,e),t}(Q),ee=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return a(t,e),t}(Q),te=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return a(t,e),t}(Q);function re(e){return"function"==typeof e}function ne(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(J||(J={}));var oe,ae=Z||H,ie=function(){function e(t,r,n,o){var a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,o,a,i,u){if(1===t.length&&L.isLiteralElement(t[0]))return[{type:0,value:t[0].value}];for(var l=[],s=0,c=t;s<c.length;s++){var f=c[s];if(L.isLiteralElement(f))l.push({type:0,value:f.value});else if(L.isPoundElement(f))"number"==typeof i&&l.push({type:0,value:n.getNumberFormat(r).format(i)});else{var m=f.value;if(!a||!(m in a))throw new te(m,u);var p=a[m];if(L.isArgumentElement(f))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),l.push({type:"string"==typeof p?0:1,value:p});else if(L.isDateElement(f)){var d="string"==typeof f.style?o.date[f.style]:L.isDateTimeSkeleton(f.style)?f.style.parsedOptions:void 0;l.push({type:0,value:n.getDateTimeFormat(r,d).format(p)})}else if(L.isTimeElement(f))d="string"==typeof f.style?o.time[f.style]:L.isDateTimeSkeleton(f.style)?f.style.parsedOptions:void 0,l.push({type:0,value:n.getDateTimeFormat(r,d).format(p)});else if(L.isNumberElement(f))(d="string"==typeof f.style?o.number[f.style]:L.isNumberSkeleton(f.style)?f.style.parsedOptions:void 0)&&d.scale&&(p*=d.scale||1),l.push({type:0,value:n.getNumberFormat(r,d).format(p)});else{if(L.isTagElement(f)){var y=f.children,v=f.value,g=a[v];if(!re(g))throw new ee(v,"function",u);var h=g(e(y,r,n,o,a,i).map((function(e){return e.value})));Array.isArray(h)||(h=[h]),l.push.apply(l,h.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(L.isSelectElement(f)){if(!(b=f.options[p]||f.options.other))throw new X(f.value,p,Object.keys(f.options),u);l.push.apply(l,e(b.value,r,n,o,a))}else if(L.isPluralElement(f)){var b;if(!(b=f.options["="+p])){if(!Intl.PluralRules)throw new Q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",u);var E=n.getPluralRules(r,{type:f.pluralType}).select(p-(f.offset||0));b=f.options[E]||f.options.other}if(!b)throw new X(f.value,p,Object.keys(f.options),u);l.push.apply(l,e(b.value,r,n,o,a,p-(f.offset||0)))}}}}return function T(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(l)}(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function u(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function o(e,t){return t?i(i(i({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=i(i({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),i({},e)):e}(e.formats,n),this.locales=r,this.formatters=o&&o.formatters||function l(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ae((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,f([void 0],t)))}),{cache:ne(e.number),strategy:ae.strategies.variadic}),getDateTimeFormat:ae((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,f([void 0],t)))}),{cache:ne(e.dateTime),strategy:ae.strategies.variadic}),getPluralRules:ae((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,f([void 0],t)))}),{cache:ne(e.pluralRules),strategy:ae.strategies.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=L.parse,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();e.ReactIntlErrorCode=void 0,(oe=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",oe.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",oe.INVALID_CONFIG="INVALID_CONFIG",oe.MISSING_DATA="MISSING_DATA",oe.MISSING_TRANSLATION="MISSING_TRANSLATION";var ue=function(e){function t(r,n,o){var a=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(o?"\n"+o.message+"\n"+o.stack:""))||this;return a.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return a(t,e),t}(Error),le=function(t){function r(r,n){return t.call(this,e.ReactIntlErrorCode.UNSUPPORTED_FORMATTER,r,n)||this}return a(r,t),r}(ue),se=function(t){function r(r,n){return t.call(this,e.ReactIntlErrorCode.INVALID_CONFIG,r,n)||this}return a(r,t),r}(ue),ce=function(t){function r(r,n){return t.call(this,e.ReactIntlErrorCode.MISSING_DATA,r,n)||this}return a(r,t),r}(ue),fe=function(t){function r(r,n,o,a){var i=t.call(this,e.ReactIntlErrorCode.FORMAT_ERROR,r+" \nLocale: "+n+"\nMessageID: "+(null==o?void 0:o.id)+"\nDefault Message: "+(null==o?void 0:o.defaultMessage)+"\nDescription: "+(null==o?void 0:o.description)+" \n",a)||this;return i.descriptor=o,i}return a(r,t),r}(ue),me=function(t){function r(r,n){var o=t.call(this,e.ReactIntlErrorCode.MISSING_TRANSLATION,'Missing message: "'+r.id+'" for locale "'+n+'", using '+(r.defaultMessage?"default message":"id")+" as fallback.")||this;return o.descriptor=r,o}return a(r,t),r}(ue);function pe(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var de={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function ye(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var ve=Z||H;function ge(e,t,r,n){var o,a=e&&e[t];if(a&&(o=a[r]),o)return o;n(new le("No "+t+" format named: "+r))}function he(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=i({timeZone:t},e[n]),r}),{})}function be(e,t){return Object.keys(i(i({},e),t)).reduce((function(r,n){return r[n]=i(i({},e[n]||{}),t[n]||{}),r}),{})}function Ee(e,t){if(!t)return e;var r=ie.formats;return i(i(i({},r),e),{date:be(he(r.date,t),he(e.date||{},t)),time:be(he(r.time,t),he(e.time||{},t))})}function Te(e,t,r,n,o){var a=e.locale,u=e.formats,l=e.messages,s=e.defaultLocale,c=e.defaultFormats,f=e.onError,m=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,y=r.defaultMessage;D(!!d,"[@formatjs/intl] An `id` must be provided to format a message.");var v=String(d),g=l&&Object.prototype.hasOwnProperty.call(l,v)&&l[v];if(Array.isArray(g)&&1===g.length&&g[0].type===L.TYPE.literal)return g[0].value;if(!n&&g&&"string"==typeof g&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=i(i({},p),n||{}),u=Ee(u,m),c=Ee(c,m),!g){if((!y||a&&a.toLowerCase()!==s.toLowerCase())&&f(new me(r,a)),y)try{return t.getMessageFormat(y,s,c,o).format(n)}catch(e){return f(new fe('Error formatting default message for: "'+v+'", rendering default message verbatim',a,r,e)),"string"==typeof y?y:v}return v}try{return t.getMessageFormat(g,a,u,i({formatters:t},o||{})).format(n)}catch(e){f(new fe('Error formatting message: "'+v+'", using '+(y?"default message":"id")+" as fallback.",a,r,e))}if(y)try{return t.getMessageFormat(y,s,c,o).format(n)}catch(e){f(new fe('Error formatting the default message for: "'+v+'", rendering message verbatim',a,r,e))}return"string"==typeof g?g:"string"==typeof y?y:v}var Ie=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function _e(e,t,r,n){var o=e.locale,a=e.formats,u=e.onError,l=e.timeZone;void 0===n&&(n={});var s=n.format,c=i(i({},l&&{timeZone:l}),s&&ge(a,t,s,u)),f=pe(n,Ie,c);return"time"!==t||f.hour||f.minute||f.second||f.timeStyle||f.dateStyle||(f=i(i({},f),{hour:"numeric",minute:"numeric"})),r(o,f)}function we(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=n[0],i=n[1],u=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return _e(t,"date",r,u).format(l)}catch(r){t.onError(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting date.",r))}return String(l)}function Se(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=n[0],i=n[1],u=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return _e(t,"time",r,u).format(l)}catch(r){t.onError(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting time.",r))}return String(l)}function Re(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=n[0],i=n[1],u=n[2],l=void 0===u?{}:u,s=t.timeZone,c=t.locale,f=t.onError,m=pe(l,Ie,s?{timeZone:s}:{});try{return r(c,m).formatRange(a,i)}catch(t){f(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting date time range.",t))}return String(a)}function Oe(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=n[0],i=n[1],u=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return _e(t,"date",r,u).formatToParts(l)}catch(r){t.onError(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting date.",r))}return[]}function Pe(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=n[0],i=n[1],u=void 0===i?{}:i,l="string"==typeof a?new Date(a||0):a;try{return _e(t,"time",r,u).formatToParts(l)}catch(r){t.onError(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting time.",r))}return[]}var Ne=["localeMatcher","style","type","fallback"];function Fe(t,r,n,o){var a=t.locale,i=t.onError;Intl.DisplayNames||i(new Q('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var u=pe(o,Ne);try{return r(a,u).of(n)}catch(t){i(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting display name.",t))}}var De=["localeMatcher","type","style"],je=Date.now();function Me(t,r,n,o){var a=t.locale,i=t.onError;void 0===o&&(o={}),Intl.ListFormat||i(new Q('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var u=pe(o,De);try{var l={},s=n.map((function(e,t){if("object"==typeof e){var r=function n(e){return je+"_"+e+"_"+je}(t);return l[r]=e,r}return String(e)}));return Object.keys(l).length?r(a,u).formatToParts(s).reduce((function(e,t){var r=t.value;return l[r]?e.push(l[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):r(a,u).format(s)}catch(t){i(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting list.",t))}return n}var Ae=["localeMatcher","type"];function Ce(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new Q('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=pe(n,Ae);try{return t(o,i).select(r)}catch(e){a(new fe("Error formatting plural.",e))}return"other"}var Le=["numeric","style"];function xe(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Q('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function a(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=!!o&&ge(e.formats,"relative",o,e.onError)||{};return t(n,pe(r,Le,a))}(e,t,o).format(r,n)}catch(t){e.onError(new fe("Error formatting relative time.",t))}return String(r)}var ke=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function $e(e,t,r){var n=e.locale;void 0===r&&(r={});var o=r.format,a=o&&ge(e.formats,"number",o,e.onError)||{};return t(n,pe(r,ke,a))}function Ue(t,r,n,o){void 0===o&&(o={});try{return $e(t,r,o).format(n)}catch(r){t.onError(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting number.",r))}return String(n)}function Ve(t,r,n,o){void 0===o&&(o={});try{return $e(t,r,o).formatToParts(n)}catch(r){t.onError(new ue(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting number.",r))}return[]}function Ge(e){var t=e?e[Object.keys(e)[0]]:void 0;return"object"==typeof t&&!!t}function ze(e){D(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Ze=i(i({},de),{textComponent:t.Fragment}),Ye="function"==typeof Symbol&&Symbol.for,qe=Ye?Symbol.for("react.element"):60103,Ke=Ye?Symbol.for("react.portal"):60106,We=Ye?Symbol.for("react.fragment"):60107,Be=Ye?Symbol.for("react.strict_mode"):60108,He=Ye?Symbol.for("react.profiler"):60114,Je=Ye?Symbol.for("react.provider"):60109,Qe=Ye?Symbol.for("react.context"):60110,Xe=Ye?Symbol.for("react.async_mode"):60111,et=Ye?Symbol.for("react.concurrent_mode"):60111,tt=Ye?Symbol.for("react.forward_ref"):60112,rt=Ye?Symbol.for("react.suspense"):60113,nt=Ye?Symbol.for("react.suspense_list"):60120,ot=Ye?Symbol.for("react.memo"):60115,at=Ye?Symbol.for("react.lazy"):60116,it=Ye?Symbol.for("react.block"):60121,ut=Ye?Symbol.for("react.fundamental"):60117,lt=Ye?Symbol.for("react.responder"):60118,st=Ye?Symbol.for("react.scope"):60119;function ct(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qe:switch(e=e.type){case Xe:case et:case We:case He:case Be:case rt:return e;default:switch(e=e&&e.$$typeof){case Qe:case tt:case at:case ot:case Je:return e;default:return t}}case Ke:return t}}}function ft(e){return ct(e)===et}var mt={AsyncMode:Xe,ConcurrentMode:et,ContextConsumer:Qe,ContextProvider:Je,Element:qe,ForwardRef:tt,Fragment:We,Lazy:at,Memo:ot,Portal:Ke,Profiler:He,StrictMode:Be,Suspense:rt,isAsyncMode:function(e){return ft(e)||ct(e)===Xe},isConcurrentMode:ft,isContextConsumer:function(e){return ct(e)===Qe},isContextProvider:function(e){return ct(e)===Je},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qe},isForwardRef:function(e){return ct(e)===tt},isFragment:function(e){return ct(e)===We},isLazy:function(e){return ct(e)===at},isMemo:function(e){return ct(e)===ot},isPortal:function(e){return ct(e)===Ke},isProfiler:function(e){return ct(e)===He},isStrictMode:function(e){return ct(e)===Be},isSuspense:function(e){return ct(e)===rt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===We||e===et||e===He||e===Be||e===rt||e===nt||"object"==typeof e&&null!==e&&(e.$$typeof===at||e.$$typeof===ot||e.$$typeof===Je||e.$$typeof===Qe||e.$$typeof===tt||e.$$typeof===ut||e.$$typeof===lt||e.$$typeof===st||e.$$typeof===it)},typeOf:ct},pt=j((function(e){e.exports=mt})),dt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gt={};function ht(e){return pt.isMemo(e)?vt:gt[e.$$typeof]||dt}gt[pt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gt[pt.Memo]=vt;var bt,Et,Tt=Object.defineProperty,It=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,wt=Object.getOwnPropertyDescriptor,St=Object.getPrototypeOf,Rt=Object.prototype,Ot=function e(t,r,n){if("string"!=typeof r){if(Rt){var o=St(r);o&&o!==Rt&&e(t,o,n)}var a=It(r);_t&&(a=a.concat(_t(r)));for(var i=ht(t),u=ht(r),l=0;l<a.length;++l){var s=a[l];if(!(yt[s]||n&&n[s]||u&&u[s]||i&&i[s])){var c=wt(r,s);try{Tt(t,s,c)}catch(e){}}}}return t},Pt=Ot.default||Ot,Nt=t.createContext(null),Ft=Nt.Consumer,Dt=Nt.Provider,jt=Nt;function Mt(e,r){var n=r||{},o=n.intlPropName,a=void 0===o?"intl":o,u=n.forwardRef,l=void 0!==u&&u,s=n.enforceContext,c=void 0===s||s,f=function(r){return t.createElement(Ft,null,(function(n){var o;c&&ze(n);var u=((o={})[a]=n,o);return t.createElement(e,i({},r,u,{ref:l?r.forwardedRef:null}))}))};return f.displayName="injectIntl("+function m(e){return e.displayName||e.name||"Component"}(e)+")",f.WrappedComponent=e,Pt(l?t.forwardRef((function(e,r){return t.createElement(f,i({},e,{forwardedRef:r}))})):f,e)}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(bt||(bt={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Et||(Et={}));var At=function(e){return t.createElement(jt.Consumer,null,(function(t){ze(t);var r=e.value,n=e.children,o=u(e,["value","children"]);return n(t.formatNumberToParts(r,o))}))};function Ct(e){var r=function(r){return t.createElement(jt.Consumer,null,(function(t){ze(t);var n=r.value,o=r.children,a=u(r,["value","children"]),i="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?t.formatDateToParts(i,a):t.formatTimeToParts(i,a))}))};return r.displayName=Et[e],r}function Lt(e){var r=function(r){return t.createElement(jt.Consumer,null,(function(n){ze(n);var o=r.value,a=r.children,i=u(r,["value","children"]),l=n[e](o,i);return"function"==typeof a?a(l):t.createElement(n.textComponent||t.Fragment,null,l)}))};return r.displayName=bt[e],r}At.displayName="FormattedNumberParts";var xt=function kt(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var i=r[a];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0},$t=Object.freeze(Object.assign(Object.create(null),xt,{default:xt})),Ut=xt||$t;function Vt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Gt(e){return e?Object.keys(e).reduce((function(r,n){var o=e[n];return r[n]=re(o)?function a(e){return function(r){return e(t.Children.toArray(r))}}
16
16
  /** @license React v16.13.1
17
17
  * react-is.production.min.js
18
18
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */(o):o,r}),{}):e}var zt=function(e,r,n,o){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var u=Gt(o),l=Ee.apply(void 0,f([e,r,n,u],a));return Array.isArray(l)?t.Children.toArray(l):l},Zt=function(e,t){var r=e.defaultRichTextElements,n=u(e,["defaultRichTextElements"]),o=Gt(r),a=function l(e,t){var r=function n(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=ve((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,f([void 0],t)))}),{cache:ye(e.dateTime),strategy:ve.strategies.variadic}),a=ve((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,f([void 0],t)))}),{cache:ye(e.number),strategy:ve.strategies.variadic}),u=ve((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,f([void 0],t)))}),{cache:ye(e.pluralRules),strategy:ve.strategies.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:ve((function(e,t,r,n){return new ie(e,t,r,i({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:u}},n||{}))}),{cache:ye(e.message),strategy:ve.strategies.variadic}),getRelativeTimeFormat:ve((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,f([void 0],e)))}),{cache:ye(e.relativeTime),strategy:ve.strategies.variadic}),getPluralRules:u,getListFormat:ve((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,f([void 0],e)))}),{cache:ye(e.list),strategy:ve.strategies.variadic}),getDisplayNames:ve((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,f([void 0],e)))}),{cache:ye(e.displayNames),strategy:ve.strategies.variadic})}}(t),o=i(i({},de),e),a=o.locale,u=o.defaultLocale,l=o.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&l?l(new ce('Missing locale data for locale: "'+a+'" in Intl.NumberFormat. Using default locale: "'+u+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&l&&l(new ce('Missing locale data for locale: "'+a+'" in Intl.DateTimeFormat. Using default locale: "'+u+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(l&&l(new se('"locale" was not configured, using "'+u+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),o.locale=o.defaultLocale||"en"),function s(e){e.defaultRichTextElements&&!Ge(e.messages||{})&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(o),i(i({},o),{formatters:r,formatNumber:Ue.bind(null,o,r.getNumberFormat),formatNumberToParts:Ve.bind(null,o,r.getNumberFormat),formatRelativeTime:Ce.bind(null,o,r.getRelativeTimeFormat),formatDate:Se.bind(null,o,r.getDateTimeFormat),formatDateToParts:Pe.bind(null,o,r.getDateTimeFormat),formatTime:Ie.bind(null,o,r.getDateTimeFormat),formatDateTimeRange:Oe.bind(null,o,r.getDateTimeFormat),formatTimeToParts:Re.bind(null,o,r.getDateTimeFormat),formatPlural:Le.bind(null,o,r.getPluralRules),formatMessage:Ee.bind(null,o,r),formatList:Me.bind(null,o,r.getListFormat),formatDisplayName:Fe.bind(null,o,r.getDisplayNames),__addMessages:function(t){var r=Ge(o.messages),n=Ge(t);e.onError&&(r&&!n||!r&&n)&&e.onError(new se("Cannot mix AST & non-AST messages for locale "+o.locale)),Object.keys(t).forEach((function(e){o.messages[e]=t[e]}))}})}(i(i(i({},Ze),n),{defaultRichTextElements:o}),t);return i(i({},a),{formatMessage:zt.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},Yt=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Zt(Vt(t.props),t.cache),prevConfig:Vt(t.props)},t}return a(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Vt(e);return Ut(r,o)?null:{intl:Zt(o,n),prevConfig:o}},r.prototype.render=function(){return ze(this.state.intl),t.createElement(Dt,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Ze,r}(t.PureComponent);function qt(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Kt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function Wt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Bt=["second","minute","hour"];function Ht(e){return void 0===e&&(e="second"),Bt.includes(e)}var Jt=function(e){function r(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:Ht(r.props.unit)?Wt(r.props.value,r.props.unit):0},D(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!Ht(t.unit)),"Cannot schedule update with unit longer than hour"),r}return a(r,e),r.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,a=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&Ht(o)){var i=a-n,u=qt(i);if("day"!==u){var l=Kt(u),s=i-i%l,c=s>=a?s-l:s,f=Math.abs(c-a);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:c})}),1e3*f)}}},r.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},r.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:Ht(e.unit)?Wt(e.value,e.unit):0}:null},r.prototype.render=function(){var e=this;return t.createElement(jt.Consumer,null,(function(r){ze(r);var n=r.formatRelativeTime,o=r.textComponent,a=e.props,u=a.children,l=a.unit,s=a.updateIntervalInSeconds,c=e.state.currentValueInSeconds,f=a.value||0,m=l;if(Ht(l)&&"number"==typeof c&&s){var p=Kt(m=qt(c));f=Math.round(c/p)}var d=n(f,m,i({},e.props));return"function"==typeof u?u(d):o?t.createElement(o,null,d):d}))},r.displayName="FormattedRelativeTime",r.defaultProps={value:0,unit:"second"},r}(t.PureComponent),Qt=function(e){var r=e.other,n=e.children,o=e.intl,a=o.textComponent,i=e[(0,o.formatPlural)(e.value,e)]||r;return"function"==typeof n?n(i):a?t.createElement(a,null,i):i};Qt.defaultProps={type:"cardinal"},Qt.displayName="FormattedPlural";var Xt=Mt(Qt),er=Ct||$t,tr=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=u(t,["values"]),o=e.values,a=u(e,["values"]);return!er(o,r)||!er(n,a)},r.prototype.render=function(){var e=this;return t.createElement(jt.Consumer,null,(function(r){ze(r);var o=r.textComponent,a=e.props,i=a.children,u=a.tagName,l=void 0===u?void 0===o?t.Fragment:o:u,s=(0,r.formatMessage)({id:a.id,description:a.description,defaultMessage:a.defaultMessage},a.values,{ignoreTag:a.ignoreTag});return Array.isArray(s)||(s=[s]),"function"==typeof i?i(s):l?t.createElement.apply(n,f([l,null],s)):s}))},r.displayName="FormattedMessage",r}(t.Component),rr=function(e){return t.createElement(jt.Consumer,null,(function(r){ze(r);var n=e.from,o=e.to,a=e.children,i=u(e,["from","to","children"]),l=r.formatDateTimeRange(n,o,i);return"function"==typeof a?a(l):t.createElement(r.textComponent||t.Fragment,null,l)}))};rr.displayName="FormattedDateTimeRange";var nr=xt("formatDate"),or=xt("formatTime"),ar=xt("formatNumber"),ir=xt("formatList"),ur=xt("formatDisplayName"),lr=Lt("formatDate"),sr=Lt("formatTime");e.FormattedDate=nr,e.FormattedDateParts=lr,e.FormattedDateTimeRange=rr,e.FormattedDisplayName=ur,e.FormattedList=ir,e.FormattedMessage=tr,e.FormattedNumber=ar,e.FormattedNumberParts=At,e.FormattedPlural=Xt,e.FormattedRelativeTime=Jt,e.FormattedTime=or,e.FormattedTimeParts=sr,e.IntlContext=jt,e.IntlProvider=Yt,e.InvalidConfigError=se,e.MessageFormatError=fe,e.MissingDataError=ce,e.MissingTranslationError=me,e.RawIntlProvider=Dt,e.ReactIntlError=ue,e.UnsupportedFormatterError=le,e.createIntl=Zt,e.createIntlCache=function cr(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function fr(e){return e},e.defineMessages=function mr(e){return e},e.injectIntl=Mt,e.useIntl=function pr(){var e=t.useContext(jt);return ze(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));
23
+ */(o):o,r}),{}):e}var zt=function(e,r,n,o){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var u=Gt(o),l=Te.apply(void 0,f([e,r,n,u],a));return Array.isArray(l)?t.Children.toArray(l):l},Zt=function(e,t){var r=e.defaultRichTextElements,n=u(e,["defaultRichTextElements"]),o=Gt(r),a=function l(e,t){var r=function n(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=ve((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,f([void 0],t)))}),{cache:ye(e.dateTime),strategy:ve.strategies.variadic}),a=ve((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,f([void 0],t)))}),{cache:ye(e.number),strategy:ve.strategies.variadic}),u=ve((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,f([void 0],t)))}),{cache:ye(e.pluralRules),strategy:ve.strategies.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:ve((function(e,t,r,n){return new ie(e,t,r,i({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:u}},n||{}))}),{cache:ye(e.message),strategy:ve.strategies.variadic}),getRelativeTimeFormat:ve((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,f([void 0],e)))}),{cache:ye(e.relativeTime),strategy:ve.strategies.variadic}),getPluralRules:u,getListFormat:ve((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,f([void 0],e)))}),{cache:ye(e.list),strategy:ve.strategies.variadic}),getDisplayNames:ve((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,f([void 0],e)))}),{cache:ye(e.displayNames),strategy:ve.strategies.variadic})}}(t),o=i(i({},de),e),a=o.locale,u=o.defaultLocale,l=o.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&l?l(new ce('Missing locale data for locale: "'+a+'" in Intl.NumberFormat. Using default locale: "'+u+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&l&&l(new ce('Missing locale data for locale: "'+a+'" in Intl.DateTimeFormat. Using default locale: "'+u+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(l&&l(new se('"locale" was not configured, using "'+u+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),o.locale=o.defaultLocale||"en"),function s(e){e.defaultRichTextElements&&!Ge(e.messages||{})&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(o),i(i({},o),{formatters:r,formatNumber:Ue.bind(null,o,r.getNumberFormat),formatNumberToParts:Ve.bind(null,o,r.getNumberFormat),formatRelativeTime:xe.bind(null,o,r.getRelativeTimeFormat),formatDate:we.bind(null,o,r.getDateTimeFormat),formatDateToParts:Oe.bind(null,o,r.getDateTimeFormat),formatTime:Se.bind(null,o,r.getDateTimeFormat),formatDateTimeRange:Re.bind(null,o,r.getDateTimeFormat),formatTimeToParts:Pe.bind(null,o,r.getDateTimeFormat),formatPlural:Ce.bind(null,o,r.getPluralRules),formatMessage:Te.bind(null,o,r),formatList:Me.bind(null,o,r.getListFormat),formatDisplayName:Fe.bind(null,o,r.getDisplayNames),__addMessages:function(t){var r=Ge(o.messages),n=Ge(t);e.onError&&(r&&!n||!r&&n)&&e.onError(new se("Cannot mix AST & non-AST messages for locale "+o.locale)),Object.keys(t).forEach((function(e){o.messages[e]=t[e]}))}})}(i(i(i({},Ze),n),{defaultRichTextElements:o}),t);return i(i({},a),{formatMessage:zt.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},Yt=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Zt(Vt(t.props),t.cache),prevConfig:Vt(t.props)},t}return a(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Vt(e);return Ut(r,o)?null:{intl:Zt(o,n),prevConfig:o}},r.prototype.render=function(){return ze(this.state.intl),t.createElement(Dt,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Ze,r}(t.PureComponent);function qt(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Kt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function Wt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Bt=["second","minute","hour"];function Ht(e){return void 0===e&&(e="second"),Bt.includes(e)}var Jt=function(e){function r(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:Ht(r.props.unit)?Wt(r.props.value,r.props.unit):0},D(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!Ht(t.unit)),"Cannot schedule update with unit longer than hour"),r}return a(r,e),r.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,o=e.unit,a=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&Ht(o)){var i=a-n,u=qt(i);if("day"!==u){var l=Kt(u),s=i-i%l,c=s>=a?s-l:s,f=Math.abs(c-a);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:c})}),1e3*f)}}},r.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},r.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:Ht(e.unit)?Wt(e.value,e.unit):0}:null},r.prototype.render=function(){var e=this;return t.createElement(jt.Consumer,null,(function(r){ze(r);var n=r.formatRelativeTime,o=r.textComponent,a=e.props,u=a.children,l=a.unit,s=a.updateIntervalInSeconds,c=e.state.currentValueInSeconds,f=a.value||0,m=l;if(Ht(l)&&"number"==typeof c&&s){var p=Kt(m=qt(c));f=Math.round(c/p)}var d=n(f,m,i({},e.props));return"function"==typeof u?u(d):o?t.createElement(o,null,d):d}))},r.displayName="FormattedRelativeTime",r.defaultProps={value:0,unit:"second"},r}(t.PureComponent),Qt=function(e){var r=e.other,n=e.children,o=e.intl,a=o.textComponent,i=e[(0,o.formatPlural)(e.value,e)]||r;return"function"==typeof n?n(i):a?t.createElement(a,null,i):i};Qt.defaultProps={type:"cardinal"},Qt.displayName="FormattedPlural";var Xt=Mt(Qt),er=xt||$t,tr=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return a(r,e),r.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=u(t,["values"]),o=e.values,a=u(e,["values"]);return!er(o,r)||!er(n,a)},r.prototype.render=function(){var e=this;return t.createElement(jt.Consumer,null,(function(r){ze(r);var o=r.textComponent,a=e.props,i=a.children,u=a.tagName,l=void 0===u?void 0===o?t.Fragment:o:u,s=(0,r.formatMessage)({id:a.id,description:a.description,defaultMessage:a.defaultMessage},a.values,{ignoreTag:a.ignoreTag});return Array.isArray(s)||(s=[s]),"function"==typeof i?i(s):l?t.createElement.apply(n,f([l,null],s)):s}))},r.displayName="FormattedMessage",r}(t.Component),rr=function(e){return t.createElement(jt.Consumer,null,(function(r){ze(r);var n=e.from,o=e.to,a=e.children,i=u(e,["from","to","children"]),l=r.formatDateTimeRange(n,o,i);return"function"==typeof a?a(l):t.createElement(r.textComponent||t.Fragment,null,l)}))};rr.displayName="FormattedDateTimeRange";var nr=Lt("formatDate"),or=Lt("formatTime"),ar=Lt("formatNumber"),ir=Lt("formatList"),ur=Lt("formatDisplayName"),lr=Ct("formatDate"),sr=Ct("formatTime");e.FormattedDate=nr,e.FormattedDateParts=lr,e.FormattedDateTimeRange=rr,e.FormattedDisplayName=ur,e.FormattedList=ir,e.FormattedMessage=tr,e.FormattedNumber=ar,e.FormattedNumberParts=At,e.FormattedPlural=Xt,e.FormattedRelativeTime=Jt,e.FormattedTime=or,e.FormattedTimeParts=sr,e.IntlContext=jt,e.IntlProvider=Yt,e.InvalidConfigError=se,e.MessageFormatError=fe,e.MissingDataError=ce,e.MissingTranslationError=me,e.RawIntlProvider=Dt,e.ReactIntlError=ue,e.UnsupportedFormatterError=le,e.createIntl=Zt,e.createIntlCache=function cr(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function fr(e){return e},e.defineMessages=function mr(e){return e},e.injectIntl=Mt,e.useIntl=function pr(){var e=t.useContext(jt);return ze(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));
package/react-intl.umd.js CHANGED
@@ -4278,6 +4278,7 @@
4278
4278
  return IntlMessageFormat;
4279
4279
  }());
4280
4280
 
4281
+ exports.ReactIntlErrorCode = void 0;
4281
4282
  (function (IntlErrorCode) {
4282
4283
  IntlErrorCode["FORMAT_ERROR"] = "FORMAT_ERROR";
4283
4284
  IntlErrorCode["UNSUPPORTED_FORMATTER"] = "UNSUPPORTED_FORMATTER";
@@ -4300,28 +4301,28 @@
4300
4301
  var UnsupportedFormatterError = /** @class */ (function (_super) {
4301
4302
  __extends(UnsupportedFormatterError, _super);
4302
4303
  function UnsupportedFormatterError(message, exception) {
4303
- return _super.call(this, "UNSUPPORTED_FORMATTER" /* UNSUPPORTED_FORMATTER */, message, exception) || this;
4304
+ return _super.call(this, exports.ReactIntlErrorCode.UNSUPPORTED_FORMATTER, message, exception) || this;
4304
4305
  }
4305
4306
  return UnsupportedFormatterError;
4306
4307
  }(IntlError));
4307
4308
  var InvalidConfigError = /** @class */ (function (_super) {
4308
4309
  __extends(InvalidConfigError, _super);
4309
4310
  function InvalidConfigError(message, exception) {
4310
- return _super.call(this, "INVALID_CONFIG" /* INVALID_CONFIG */, message, exception) || this;
4311
+ return _super.call(this, exports.ReactIntlErrorCode.INVALID_CONFIG, message, exception) || this;
4311
4312
  }
4312
4313
  return InvalidConfigError;
4313
4314
  }(IntlError));
4314
4315
  var MissingDataError = /** @class */ (function (_super) {
4315
4316
  __extends(MissingDataError, _super);
4316
4317
  function MissingDataError(message, exception) {
4317
- return _super.call(this, "MISSING_DATA" /* MISSING_DATA */, message, exception) || this;
4318
+ return _super.call(this, exports.ReactIntlErrorCode.MISSING_DATA, message, exception) || this;
4318
4319
  }
4319
4320
  return MissingDataError;
4320
4321
  }(IntlError));
4321
4322
  var MessageFormatError = /** @class */ (function (_super) {
4322
4323
  __extends(MessageFormatError, _super);
4323
4324
  function MessageFormatError(message, locale, descriptor, exception) {
4324
- var _this = _super.call(this, "FORMAT_ERROR" /* FORMAT_ERROR */, message + " \nLocale: " + locale + "\nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", exception) || this;
4325
+ var _this = _super.call(this, exports.ReactIntlErrorCode.FORMAT_ERROR, message + " \nLocale: " + locale + "\nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", exception) || this;
4325
4326
  _this.descriptor = descriptor;
4326
4327
  return _this;
4327
4328
  }
@@ -4330,7 +4331,7 @@
4330
4331
  var MissingTranslationError = /** @class */ (function (_super) {
4331
4332
  __extends(MissingTranslationError, _super);
4332
4333
  function MissingTranslationError(descriptor, locale) {
4333
- var _this = _super.call(this, "MISSING_TRANSLATION" /* MISSING_TRANSLATION */, "Missing message: \"" + descriptor.id + "\" for locale \"" + locale + "\", using " + (descriptor.defaultMessage ? 'default message' : 'id') + " as fallback.") || this;
4334
+ var _this = _super.call(this, exports.ReactIntlErrorCode.MISSING_TRANSLATION, "Missing message: \"" + descriptor.id + "\" for locale \"" + locale + "\", using " + (descriptor.defaultMessage ? 'default message' : 'id') + " as fallback.") || this;
4334
4335
  _this.descriptor = descriptor;
4335
4336
  return _this;
4336
4337
  }
@@ -4636,7 +4637,7 @@
4636
4637
  return getFormatter(config, 'date', getDateTimeFormat, options).format(date);
4637
4638
  }
4638
4639
  catch (e) {
4639
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting date.', e));
4640
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting date.', e));
4640
4641
  }
4641
4642
  return String(date);
4642
4643
  }
@@ -4651,7 +4652,7 @@
4651
4652
  return getFormatter(config, 'time', getDateTimeFormat, options).format(date);
4652
4653
  }
4653
4654
  catch (e) {
4654
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting time.', e));
4655
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting time.', e));
4655
4656
  }
4656
4657
  return String(date);
4657
4658
  }
@@ -4667,7 +4668,7 @@
4667
4668
  return getDateTimeFormat(locale, filteredOptions).formatRange(from, to);
4668
4669
  }
4669
4670
  catch (e) {
4670
- onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting date time range.', e));
4671
+ onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting date time range.', e));
4671
4672
  }
4672
4673
  return String(from);
4673
4674
  }
@@ -4682,7 +4683,7 @@
4682
4683
  return getFormatter(config, 'date', getDateTimeFormat, options).formatToParts(date);
4683
4684
  }
4684
4685
  catch (e) {
4685
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting date.', e));
4686
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting date.', e));
4686
4687
  }
4687
4688
  return [];
4688
4689
  }
@@ -4697,7 +4698,7 @@
4697
4698
  return getFormatter(config, 'time', getDateTimeFormat, options).formatToParts(date);
4698
4699
  }
4699
4700
  catch (e) {
4700
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting time.', e));
4701
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting time.', e));
4701
4702
  }
4702
4703
  return [];
4703
4704
  }
@@ -4719,7 +4720,7 @@
4719
4720
  return getDisplayNames(locale, filteredOptions).of(value);
4720
4721
  }
4721
4722
  catch (e) {
4722
- onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting display name.', e));
4723
+ onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting display name.', e));
4723
4724
  }
4724
4725
  }
4725
4726
 
@@ -4769,7 +4770,7 @@
4769
4770
  }, []);
4770
4771
  }
4771
4772
  catch (e) {
4772
- onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting list.', e));
4773
+ onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting list.', e));
4773
4774
  }
4774
4775
  // @ts-ignore
4775
4776
  return values;
@@ -4860,7 +4861,7 @@
4860
4861
  return getFormatter$2(config, getNumberFormat, options).format(value);
4861
4862
  }
4862
4863
  catch (e) {
4863
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting number.', e));
4864
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting number.', e));
4864
4865
  }
4865
4866
  return String(value);
4866
4867
  }
@@ -4870,7 +4871,7 @@
4870
4871
  return getFormatter$2(config, getNumberFormat, options).formatToParts(value);
4871
4872
  }
4872
4873
  catch (e) {
4873
- config.onError(new IntlError("FORMAT_ERROR" /* FORMAT_ERROR */, 'Error formatting number.', e));
4874
+ config.onError(new IntlError(exports.ReactIntlErrorCode.FORMAT_ERROR, 'Error formatting number.', e));
4874
4875
  }
4875
4876
  return [];
4876
4877
  }
@@ -12,7 +12,7 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i,u,s=function(){return(s=Object.assign||function e(t){for(var r,n=1,a=arguments.length;n<a;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t}).apply(this,arguments)};function c(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function l(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n}function f(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function m(e){return e.type===i.literal}function p(e){return e.type===i.argument}function d(e){return e.type===i.number}function g(e){return e.type===i.date}function h(e){return e.type===i.time}function y(e){return e.type===i.select}function v(e){return e.type===i.plural}function b(e){return e.type===i.pound}function w(e){return e.type===i.tag}function A(e){return!(!e||"object"!=typeof e||0!==e.type)}function T(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(u||(u={}));var E=/(?:[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,F=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,I=/^(@+)?(\+|#+)?$/g,R=/(\*)(0+)|(#+)(0+)|(0+)/g,S=/^(0+)$/;function D(e){var t={};return e.replace(I,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function O(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function C(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!S.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function N(e){return O(e)||{}}function x(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=s(s(s({},t),{notation:"scientific"}),a.options.reduce((function(e,t){return s(s({},e),N(t))}),{}));continue;case"engineering":t=s(s(s({},t),{notation:"engineering"}),a.options.reduce((function(e,t){return s(s({},e),N(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(R,(function(e,r,n,a,o,i){if(r)t.minimumIntegerDigits=n.length;else{if(a&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(S.test(a.stem))t.minimumIntegerDigits=a.stem.length;else if(F.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(F,(function(e,r,n,a,o,i){return"*"===n?t.minimumFractionDigits=r.length:a&&"#"===a[0]?t.maximumFractionDigits=a.length:o&&i?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+i.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),a.options.length&&(t=s(s({},t),D(a.options[0])))}else if(I.test(a.stem))t=s(s({},t),D(a.stem));else{var o=O(a.stem);o&&(t=s(s({},t),o));var i=C(a.stem);i&&(t=s(s({},t),i))}}return t}var P=function(e){function t(r,n,a,o){var i=e.call(this)||this;return i.message=r,i.expected=n,i.found=a,i.location=o,i.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return o(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function i(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function u(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},t}(Error),M=function _(e,t){t=void 0!==t?t:{};var r,n={},a={start:Ce},o=Ce,u=Fe("<",!1),c=function(e){return e.join("")},l=Fe("#",!1),f=Re("tagElement"),m=Fe("/>",!1),p=Fe(">",!1),d=Fe("</",!1),g=Re("argumentElement"),h=Fe("{",!1),y=Fe("}",!1),v=Re("numberSkeletonId"),b=/^['\/{}]/,w=Ie(["'","/","{","}"],!1,!1),A={type:"any"},T=Re("numberSkeletonTokenOption"),F=Fe("/",!1),I=Re("numberSkeletonToken"),R=Fe("::",!1),S=function(e){return rt.pop(),e.replace(/\s*$/,"")},D=Fe(",",!1),O=Fe("number",!1),C=function(e,t,r){return s({type:"number"===t?i.number:"date"===t?i.date:i.time,style:r&&r[2],value:e},at())},N=Fe("'",!1),M=/^[^']/,_=Ie(["'"],!0,!1),j=/^[^a-zA-Z'{}]/,k=Ie([["a","z"],["A","Z"],"'","{","}"],!0,!1),L=/^[a-zA-Z]/,$=Ie([["a","z"],["A","Z"]],!1,!1),U=Fe("date",!1),z=Fe("time",!1),V=Fe("plural",!1),Z=Fe("selectordinal",!1),G=Fe("offset:",!1),B=Fe("select",!1),q=Fe("=",!1),W=Re("whitespace"),H=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,K=Ie([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),J=Re("syntax pattern"),Q=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,X=Ie([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Y=Re("optional whitespace"),ee=Re("number"),te=Fe("-",!1),re=Re("double apostrophes"),ne=Fe("''",!1),ae=Fe("\n",!1),oe=Re("argNameOrNumber"),ie=Re("validTag"),ue=Re("argNumber"),se=Fe("0",!1),ce=/^[1-9]/,le=Ie([["1","9"]],!1,!1),fe=/^[0-9]/,me=Ie([["0","9"]],!1,!1),pe=Re("argName"),de=Re("tagName"),ge=0,he=0,ye=[{line:1,column:1}],ve=0,be=[],we=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=a[t.startRule]}function Ae(){return e.substring(he,ge)}function Te(){return De(he,ge)}function Ee(e,t){throw function r(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:De(he,ge))}function Fe(e,t){return{type:"literal",text:e,ignoreCase:t}}function Ie(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Re(e){return{type:"other",description:e}}function Se(t){var r,n=ye[t];if(n)return n;for(r=t-1;!ye[r];)r--;for(n={line:(n=ye[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ye[t]=n,n}function De(e,t){var r=Se(e),n=Se(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Oe(e){ge<ve||(ge>ve&&(ve=ge,be=[]),be.push(e))}function Ce(){return Ne()}function Ne(){var e,t;for(e=[],t=xe();t!==n;)e.push(t),t=xe();return e}function xe(){var t,r;return t=ge,he=ge,(ot?n:void 0)!==n&&(r=function a(){var e,t,r,a,o,u,c;return we++,(e=_e())===n&&(e=ge,(t=je())!==n&&(r=Ne())!==n&&(a=ke())!==n?(he=e,u=r,(o=t)!==(c=a)&&Ee('Mismatch tag "'+o+'" !== "'+c+'"',Te()),e=t=s({type:i.tag,value:o,children:u},at())):(ge=e,e=n)),we--,e===n&&(t=n,0===we&&Oe(f)),e}())!==n?(he=t,t=r):(ge=t,t=n),t===n&&(t=function o(){var e,t;return e=ge,(t=Pe())!==n&&(he=e,t=s({type:i.literal,value:t},at())),t}())===n&&(t=function u(){var t,r,a,o;return we++,t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Oe(h)),r!==n&&We()!==n&&(a=Xe())!==n&&We()!==n?(125===e.charCodeAt(ge)?(o="}",ge++):(o=n,0===we&&Oe(y)),o!==n?(he=t,t=r=s({type:i.argument,value:a},at())):(ge=t,t=n)):(ge=t,t=n),we--,t===n&&(r=n,0===we&&Oe(g)),t}())===n&&(t=function c(){var t;return(t=function r(){var t,r,a,o,i,u,c,l,f;return t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Oe(h)),r!==n&&We()!==n&&(a=Xe())!==n&&We()!==n?(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Oe(D)),o!==n&&We()!==n?("number"===e.substr(ge,6)?(i="number",ge+=6):(i=n,0===we&&Oe(O)),i!==n&&We()!==n?(u=ge,44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Oe(D)),c!==n&&(l=We())!==n&&(f=function m(){var t,r,a;return t=ge,"::"===e.substr(ge,2)?(r="::",ge+=2):(r=n,0===we&&Oe(R)),r!==n&&(a=function o(){var e,t,r,a;if(e=ge,t=[],(r=Ue())!==n)for(;r!==n;)t.push(r),r=Ue();else t=n;return t!==n&&(he=e,t=s({type:0,tokens:a=t,parsedOptions:it?x(a):{}},at())),t}())!==n?(he=t,t=r=a):(ge=t,t=n),t===n&&(t=ge,he=ge,rt.push("numberArgStyle"),(r=(r=!0)?void 0:n)!==n&&(a=Pe())!==n?(he=t,t=r=S(a)):(ge=t,t=n)),t}())!==n?u=c=[c,l,f]:(ge=u,u=n),u===n&&(u=null),u!==n&&(c=We())!==n?(125===e.charCodeAt(ge)?(l="}",ge++):(l=n,0===we&&Oe(y)),l!==n?(he=t,t=r=C(a,i,u)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}())===n&&(t=function a(){var t,r,a,o,i,u,c,l,f;return t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Oe(h)),r!==n&&We()!==n&&(a=Xe())!==n&&We()!==n?(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Oe(D)),o!==n&&We()!==n?("date"===e.substr(ge,4)?(i="date",ge+=4):(i=n,0===we&&Oe(U)),i===n&&("time"===e.substr(ge,4)?(i="time",ge+=4):(i=n,0===we&&Oe(z))),i!==n&&We()!==n?(u=ge,44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Oe(D)),c!==n&&(l=We())!==n&&(f=function m(){var t,r,a;return t=ge,"::"===e.substr(ge,2)?(r="::",ge+=2):(r=n,0===we&&Oe(R)),r!==n&&(a=function o(){var t,r,a,o,i,u,c;if(t=ge,r=ge,a=[],(o=ze())===n&&(o=Ve()),o!==n)for(;o!==n;)a.push(o),(o=ze())===n&&(o=Ve());else a=n;return(r=a!==n?e.substring(r,ge):a)!==n&&(he=t,r=s({type:1,pattern:i=r,parsedOptions:it?(u=i,c={},u.replace(E,(function(e){var t=e.length;switch(e[0]){case"G":c.era=4===t?"long":5===t?"narrow":"short";break;case"y":c.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":c.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":c.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":c.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"a":c.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":c.hourCycle="h12",c.hour=["numeric","2-digit"][t-1];break;case"H":c.hourCycle="h23",c.hour=["numeric","2-digit"][t-1];break;case"K":c.hourCycle="h11",c.hour=["numeric","2-digit"][t-1];break;case"k":c.hourCycle="h24",c.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":c.minute=["numeric","2-digit"][t-1];break;case"s":c.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":c.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),c):{}},at())),r}())!==n?(he=t,t=r=a):(ge=t,t=n),t===n&&(t=ge,he=ge,rt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:n)!==n&&(a=Pe())!==n?(he=t,t=r=S(a)):(ge=t,t=n)),t}())!==n?u=c=[c,l,f]:(ge=u,u=n),u===n&&(u=null),u!==n&&(c=We())!==n?(125===e.charCodeAt(ge)?(l="}",ge++):(l=n,0===we&&Oe(y)),l!==n?(he=t,t=r=C(a,i,u)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}()),t}())===n&&(t=function m(){var t,r,a,o,u,c,l,f,m,p,d;if(t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Oe(h)),r!==n)if(We()!==n)if((a=Xe())!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Oe(D)),o!==n)if(We()!==n)if("plural"===e.substr(ge,6)?(u="plural",ge+=6):(u=n,0===we&&Oe(V)),u===n&&("selectordinal"===e.substr(ge,13)?(u="selectordinal",ge+=13):(u=n,0===we&&Oe(Z))),u!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Oe(D)),c!==n)if(We()!==n)if(l=ge,"offset:"===e.substr(ge,7)?(f="offset:",ge+=7):(f=n,0===we&&Oe(G)),f!==n&&(m=We())!==n&&(p=He())!==n?l=f=[f,m,p]:(ge=l,l=n),l===n&&(l=null),l!==n)if((f=We())!==n){if(m=[],(p=Ge())!==n)for(;p!==n;)m.push(p),p=Ge();else m=n;m!==n&&(p=We())!==n?(125===e.charCodeAt(ge)?(d="}",ge++):(d=n,0===we&&Oe(y)),d!==n?(he=t,t=r=function(e,t,r,n){return s({type:i.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Ee('Duplicate option "'+r+'" in plural element: "'+Ae()+'"',Te()),e[r]={value:n,location:a},e}),{})},at())}(a,u,l,m)):(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;return t}())===n&&(t=function p(){var t,r,a,o,u,c,l,f,m;if(t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Oe(h)),r!==n)if(We()!==n)if((a=Xe())!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Oe(D)),o!==n)if(We()!==n)if("select"===e.substr(ge,6)?(u="select",ge+=6):(u=n,0===we&&Oe(B)),u!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Oe(D)),c!==n)if(We()!==n){if(l=[],(f=Ze())!==n)for(;f!==n;)l.push(f),f=Ze();else l=n;l!==n&&(f=We())!==n?(125===e.charCodeAt(ge)?(m="}",ge++):(m=n,0===we&&Oe(y)),m!==n?(he=t,t=r=function(e,t){return s({type:i.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Ee('Duplicate option "'+r+'" in select element: "'+Ae()+'"',Te()),e[r]={value:n,location:a},e}),{})},at())}(a,l)):(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;return t}())===n&&(t=function d(){var t,r;return t=ge,35===e.charCodeAt(ge)?(r="#",ge++):(r=n,0===we&&Oe(l)),r!==n&&(he=t,r=s({type:i.pound},at())),r}()),t}function Pe(){var t,r,a,o;if(t=ge,he=ge,(r=(r=ot)?void 0:n)!==n){if(a=[],(o=Ke())===n&&(o=Je())===n&&(o=Qe())===n&&(60===e.charCodeAt(ge)?(o="<",ge++):(o=n,0===we&&Oe(u))),o!==n)for(;o!==n;)a.push(o),(o=Ke())===n&&(o=Je())===n&&(o=Qe())===n&&(60===e.charCodeAt(ge)?(o="<",ge++):(o=n,0===we&&Oe(u)));else a=n;a!==n?(he=t,t=r=c(a)):(ge=t,t=n)}else ge=t,t=n;if(t===n){if(t=ge,r=[],(a=Ke())===n&&(a=Je())===n&&(a=Qe())===n&&(a=Me()),a!==n)for(;a!==n;)r.push(a),(a=Ke())===n&&(a=Je())===n&&(a=Qe())===n&&(a=Me());else r=n;r!==n&&(he=t,r=c(r)),t=r}return t}function Me(){var t,r,a;return t=ge,r=ge,we++,(a=je())===n&&(a=ke())===n&&(a=_e()),we--,a===n?r=void 0:(ge=r,r=n),r!==n?(60===e.charCodeAt(ge)?(a="<",ge++):(a=n,0===we&&Oe(u)),a!==n?(he=t,t=r="<"):(ge=t,t=n)):(ge=t,t=n),t}function _e(){var t,r,a,o,c,l;return t=ge,r=ge,60===e.charCodeAt(ge)?(a="<",ge++):(a=n,0===we&&Oe(u)),a!==n&&(o=Ye())!==n&&(c=We())!==n?("/>"===e.substr(ge,2)?(l="/>",ge+=2):(l=n,0===we&&Oe(m)),l!==n?r=a=[a,o,c,l]:(ge=r,r=n)):(ge=r,r=n),r!==n&&(he=t,r=s({type:i.literal,value:r.join("")},at())),r}function je(){var t,r,a,o;return t=ge,60===e.charCodeAt(ge)?(r="<",ge++):(r=n,0===we&&Oe(u)),r!==n&&(a=Ye())!==n?(62===e.charCodeAt(ge)?(o=">",ge++):(o=n,0===we&&Oe(p)),o!==n?(he=t,t=r=a):(ge=t,t=n)):(ge=t,t=n),t}function ke(){var t,r,a,o;return t=ge,"</"===e.substr(ge,2)?(r="</",ge+=2):(r=n,0===we&&Oe(d)),r!==n&&(a=Ye())!==n?(62===e.charCodeAt(ge)?(o=">",ge++):(o=n,0===we&&Oe(p)),o!==n?(he=t,t=r=a):(ge=t,t=n)):(ge=t,t=n),t}function Le(){var t,r,a,o,i;if(we++,t=ge,r=[],a=ge,o=ge,we++,(i=Be())===n&&(b.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(w))),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n),a!==n)for(;a!==n;)r.push(a),a=ge,o=ge,we++,(i=Be())===n&&(b.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(w))),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n);else r=n;return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Oe(v)),t}function $e(){var t,r,a;return we++,t=ge,47===e.charCodeAt(ge)?(r="/",ge++):(r=n,0===we&&Oe(F)),r!==n&&(a=Le())!==n?(he=t,t=r=a):(ge=t,t=n),we--,t===n&&(r=n,0===we&&Oe(T)),t}function Ue(){var e,t,r,a;if(we++,e=ge,We()!==n)if((t=Le())!==n){for(r=[],a=$e();a!==n;)r.push(a),a=$e();r!==n?(he=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(ge=e,e=n)}else ge=e,e=n;else ge=e,e=n;return we--,e===n&&0===we&&Oe(I),e}function ze(){var t,r,a,o;if(t=ge,39===e.charCodeAt(ge)?(r="'",ge++):(r=n,0===we&&Oe(N)),r!==n){if(a=[],(o=Ke())===n&&(M.test(e.charAt(ge))?(o=e.charAt(ge),ge++):(o=n,0===we&&Oe(_))),o!==n)for(;o!==n;)a.push(o),(o=Ke())===n&&(M.test(e.charAt(ge))?(o=e.charAt(ge),ge++):(o=n,0===we&&Oe(_)));else a=n;a!==n?(39===e.charCodeAt(ge)?(o="'",ge++):(o=n,0===we&&Oe(N)),o!==n?t=r=[r,a,o]:(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;if(t===n)if(t=[],(r=Ke())===n&&(j.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Oe(k))),r!==n)for(;r!==n;)t.push(r),(r=Ke())===n&&(j.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Oe(k)));else t=n;return t}function Ve(){var t,r;if(t=[],L.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Oe($)),r!==n)for(;r!==n;)t.push(r),L.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Oe($));else t=n;return t}function Ze(){var t,r,a,o,i,u,c;return t=ge,We()!==n&&(r=tt())!==n&&We()!==n?(123===e.charCodeAt(ge)?(a="{",ge++):(a=n,0===we&&Oe(h)),a!==n?(he=ge,rt.push("select"),void 0!==n&&(o=Ne())!==n?(125===e.charCodeAt(ge)?(i="}",ge++):(i=n,0===we&&Oe(y)),i!==n?(he=t,u=r,c=o,rt.pop(),t=s({id:u,value:c},at())):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}function Ge(){var t,r,a,o,i,u,c;return t=ge,We()!==n&&(r=function l(){var t,r,a,o;return t=ge,r=ge,61===e.charCodeAt(ge)?(a="=",ge++):(a=n,0===we&&Oe(q)),a!==n&&(o=He())!==n?r=a=[a,o]:(ge=r,r=n),(t=r!==n?e.substring(t,ge):r)===n&&(t=tt()),t}())!==n&&We()!==n?(123===e.charCodeAt(ge)?(a="{",ge++):(a=n,0===we&&Oe(h)),a!==n?(he=ge,rt.push("plural"),void 0!==n&&(o=Ne())!==n?(125===e.charCodeAt(ge)?(i="}",ge++):(i=n,0===we&&Oe(y)),i!==n?(he=t,u=r,c=o,rt.pop(),t=s({id:u,value:c},at())):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}function Be(){var t;return we++,H.test(e.charAt(ge))?(t=e.charAt(ge),ge++):(t=n,0===we&&Oe(K)),we--,t===n&&0===we&&Oe(W),t}function qe(){var t;return we++,Q.test(e.charAt(ge))?(t=e.charAt(ge),ge++):(t=n,0===we&&Oe(X)),we--,t===n&&0===we&&Oe(J),t}function We(){var t,r,a;for(we++,t=ge,r=[],a=Be();a!==n;)r.push(a),a=Be();return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Oe(Y)),t}function He(){var t,r,a,o;return we++,t=ge,45===e.charCodeAt(ge)?(r="-",ge++):(r=n,0===we&&Oe(te)),r===n&&(r=null),r!==n&&(a=et())!==n?(he=t,t=r=(o=a)?r?-o:o:0):(ge=t,t=n),we--,t===n&&(r=n,0===we&&Oe(ee)),t}function Ke(){var t,r;return we++,t=ge,"''"===e.substr(ge,2)?(r="''",ge+=2):(r=n,0===we&&Oe(ne)),r!==n&&(he=t,r="'"),we--,(t=r)===n&&(r=n,0===we&&Oe(re)),t}function Je(){var t,r,a,o,i,u;if(t=ge,39===e.charCodeAt(ge)?(r="'",ge++):(r=n,0===we&&Oe(N)),r!==n)if((a=function s(){var t,r,a,o;return t=ge,r=ge,e.length>ge?(a=e.charAt(ge),ge++):(a=n,0===we&&Oe(A)),a!==n?(he=ge,(o=(o=function(e){return"<"===e||">"===e||"{"===e||"}"===e||nt()&&"#"===e}(a))?void 0:n)!==n?r=a=[a,o]:(ge=r,r=n)):(ge=r,r=n),r!==n?e.substring(t,ge):r}())!==n){for(o=ge,i=[],"''"===e.substr(ge,2)?(u="''",ge+=2):(u=n,0===we&&Oe(ne)),u===n&&(M.test(e.charAt(ge))?(u=e.charAt(ge),ge++):(u=n,0===we&&Oe(_)));u!==n;)i.push(u),"''"===e.substr(ge,2)?(u="''",ge+=2):(u=n,0===we&&Oe(ne)),u===n&&(M.test(e.charAt(ge))?(u=e.charAt(ge),ge++):(u=n,0===we&&Oe(_)));(o=i!==n?e.substring(o,ge):i)!==n?(39===e.charCodeAt(ge)?(i="'",ge++):(i=n,0===we&&Oe(N)),i===n&&(i=null),i!==n?(he=t,t=r=a+o.replace("''","'")):(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;else ge=t,t=n;return t}function Qe(){var t,r,a,o;return t=ge,r=ge,e.length>ge?(a=e.charAt(ge),ge++):(a=n,0===we&&Oe(A)),a!==n?(he=ge,(o=(o=function(e){return!("<"===e||"{"===e||nt()&&"#"===e||function t(){return rt.length>1}()&&"}"===e)}(a))?void 0:n)!==n?r=a=[a,o]:(ge=r,r=n)):(ge=r,r=n),r===n&&(10===e.charCodeAt(ge)?(r="\n",ge++):(r=n,0===we&&Oe(ae))),r!==n?e.substring(t,ge):r}function Xe(){var t,r;return we++,t=ge,(r=et())===n&&(r=tt()),t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Oe(oe)),t}function Ye(){var t,r;return we++,t=ge,(r=et())===n&&(r=function a(){var t,r,a,o,i;if(we++,t=ge,r=[],45===e.charCodeAt(ge)?(a="-",ge++):(a=n,0===we&&Oe(te)),a===n&&(a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n)),a!==n)for(;a!==n;)r.push(a),45===e.charCodeAt(ge)?(a="-",ge++):(a=n,0===we&&Oe(te)),a===n&&(a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n));else r=n;return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Oe(de)),t}()),t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Oe(ie)),t}function et(){var t,r,a,o,i;if(we++,t=ge,48===e.charCodeAt(ge)?(r="0",ge++):(r=n,0===we&&Oe(se)),r!==n&&(he=t,r=0),(t=r)===n){if(t=ge,r=ge,ce.test(e.charAt(ge))?(a=e.charAt(ge),ge++):(a=n,0===we&&Oe(le)),a!==n){for(o=[],fe.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(me));i!==n;)o.push(i),fe.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(me));o!==n?r=a=[a,o]:(ge=r,r=n)}else ge=r,r=n;r!==n&&(he=t,r=parseInt(r.join(""),10)),t=r}return we--,t===n&&(r=n,0===we&&Oe(ue)),t}function tt(){var t,r,a,o,i;if(we++,t=ge,r=[],a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n),a!==n)for(;a!==n;)r.push(a),a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Oe(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n);else r=n;return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Oe(pe)),t}var rt=["root"];function nt(){return"plural"===rt[rt.length-1]}function at(){return t&&t.captureLocation?{location:Te()}:{}}var ot=t&&t.ignoreTag,it=t&&t.shouldParseSkeleton;if((r=o())!==n&&ge===e.length)return r;throw r!==n&&ge<e.length&&Oe({type:"end"}),function ut(e,t,r){return new P(P.buildMessage(e,t),e,t,r)}(be,ve<e.length?e.charAt(ve):null,De(ve,ve<e.length?ve+1:ve))},j=/(^|[^\\])#/g;function k(e,t){t=s({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=M(e,t);return t.normalizeHashtagInPlural&&function e(t){t.forEach((function(t){(v(t)||y(t))&&Object.keys(t.options).forEach((function(r){for(var n,a=t.options[r],o=-1,i=void 0,u=0;u<a.value.length;u++){var s=a.value[u];if(m(s)&&j.test(s.value)){o=u,i=s;break}}if(i){var c=i.value.replace(j,"$1{"+t.value+", number}"),f=M(c);(n=a.value).splice.apply(n,l([o,1],f))}e(a.value)}))}))}(r),r}function L(e,t,r,n){var a=function o(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(a);return void 0===i&&(i=e.call(this,n),t.set(a,i)),i}function $(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return void 0===o&&(o=e.apply(this,n),t.set(a,o)),o}function U(e,t,r,n,a){return r.bind(t,e,n,a)}function z(e,t){return U(e,this,1===e.length?L:$,t.cache.create(),t.serializer)}function V(){return JSON.stringify(arguments)}function Z(){this.cache=Object.create(null)}Z.prototype.has=function(e){return e in this.cache},Z.prototype.get=function(e){return this.cache[e]},Z.prototype.set=function(e,t){this.cache[e]=t};var G={create:function e(){return new Z}},B=function q(e,t){return(t&&t.strategy?t.strategy:z)(e,{cache:t&&t.cache?t.cache:G,serializer:t&&t.serializer?t.serializer:V})},W={variadic:function H(e,t){return U(e,this,$,t.cache.create(),t.serializer)},monadic:function K(e,t){return U(e,this,L,t.cache.create(),t.serializer)}};B.strategies=W;var J,Q=Object.freeze(Object.assign(Object.create(null),B,{default:B,strategies:W}));!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(J||(J={}));var X,Y=function(e){function t(t,r,n){var a=e.call(this,t)||this;return a.code=r,a.originalMessage=n,a}return o(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),ee=function(e){function t(t,r,n,a){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",a)||this}return o(t,e),t}(Y),te=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return o(t,e),t}(Y),re=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return o(t,e),t}(Y);function ne(e){return"function"==typeof e}function ae(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(X||(X={}));var oe,ie=B||Q,ue=function(){function e(t,r,n,a){var o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,a,o,i,u){if(1===t.length&&m(t[0]))return[{type:0,value:t[0].value}];for(var s=[],c=0,l=t;c<l.length;c++){var f=l[c];if(m(f))s.push({type:0,value:f.value});else if(b(f))"number"==typeof i&&s.push({type:0,value:n.getNumberFormat(r).format(i)});else{var E=f.value;if(!o||!(E in o))throw new re(E,u);var F=o[E];if(p(f))F&&"string"!=typeof F&&"number"!=typeof F||(F="string"==typeof F||"number"==typeof F?String(F):""),s.push({type:"string"==typeof F?0:1,value:F});else if(g(f)){var I="string"==typeof f.style?a.date[f.style]:T(f.style)?f.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(r,I).format(F)})}else if(h(f))I="string"==typeof f.style?a.time[f.style]:T(f.style)?f.style.parsedOptions:void 0,s.push({type:0,value:n.getDateTimeFormat(r,I).format(F)});else if(d(f))(I="string"==typeof f.style?a.number[f.style]:A(f.style)?f.style.parsedOptions:void 0)&&I.scale&&(F*=I.scale||1),s.push({type:0,value:n.getNumberFormat(r,I).format(F)});else{if(w(f)){var R=f.children,S=f.value,D=o[S];if(!ne(D))throw new te(S,"function",u);var O=D(e(R,r,n,a,o,i).map((function(e){return e.value})));Array.isArray(O)||(O=[O]),s.push.apply(s,O.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(y(f)){if(!(C=f.options[F]||f.options.other))throw new ee(f.value,F,Object.keys(f.options),u);s.push.apply(s,e(C.value,r,n,a,o))}else if(v(f)){var C;if(!(C=f.options["="+F])){if(!Intl.PluralRules)throw new Y('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",u);var N=n.getPluralRules(r,{type:f.pluralType}).select(F-(f.offset||0));C=f.options[N]||f.options.other}if(!C)throw new ee(f.value,F,Object.keys(f.options),u);s.push.apply(s,e(C.value,r,n,a,o,F-(f.offset||0)))}}}}return function x(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(s)}(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==a?void 0:a.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function i(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function a(e,t){return t?s(s(s({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=s(s({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),s({},e)):e}(e.formats,n),this.locales=r,this.formatters=a&&a.formatters||function u(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t)))}),{cache:ae(e.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t)))}),{cache:ae(e.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t)))}),{cache:ae(e.pluralRules),strategy:ie.strategies.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=k,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();(oe=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",oe.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",oe.INVALID_CONFIG="INVALID_CONFIG",oe.MISSING_DATA="MISSING_DATA",oe.MISSING_TRANSLATION="MISSING_TRANSLATION";var se=function(e){function t(r,n,a){var o=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(a?"\n"+a.message+"\n"+a.stack:""))||this;return o.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return o(t,e),t}(Error),ce=function(e){function t(t,r){return e.call(this,"UNSUPPORTED_FORMATTER",t,r)||this}return o(t,e),t}(se),le=function(e){function t(t,r){return e.call(this,"INVALID_CONFIG",t,r)||this}return o(t,e),t}(se),fe=function(e){function t(t,r){return e.call(this,"MISSING_DATA",t,r)||this}return o(t,e),t}(se),me=function(e){function t(t,r,n,a){var o=e.call(this,"FORMAT_ERROR",t+" \nLocale: "+r+"\nMessageID: "+(null==n?void 0:n.id)+"\nDefault Message: "+(null==n?void 0:n.defaultMessage)+"\nDescription: "+(null==n?void 0:n.description)+" \n",a)||this;return o.descriptor=n,o}return o(t,e),t}(se),pe=function(e){function t(t,r){var n=e.call(this,"MISSING_TRANSLATION",'Missing message: "'+t.id+'" for locale "'+r+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return n.descriptor=t,n}return o(t,e),t}(se);function de(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var ge={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function he(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var ye=B||Q;function ve(e,t,r,n){var a,o=e&&e[t];if(o&&(a=o[r]),a)return a;n(new ce("No "+t+" format named: "+r))}function be(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=s({timeZone:t},e[n]),r}),{})}function we(e,t){return Object.keys(s(s({},e),t)).reduce((function(r,n){return r[n]=s(s({},e[n]||{}),t[n]||{}),r}),{})}function Ae(e,t){if(!t)return e;var r=ue.formats;return s(s(s({},r),e),{date:we(be(r.date,t),be(e.date||{},t)),time:we(be(r.time,t),be(e.time||{},t))})}function Te(e,t,r,n,a){var o=e.locale,u=e.formats,c=e.messages,l=e.defaultLocale,m=e.defaultFormats,p=e.onError,d=e.timeZone,g=e.defaultRichTextElements;void 0===r&&(r={id:""});var h=r.id,y=r.defaultMessage;f(!!h,"[@formatjs/intl] An `id` must be provided to format a message.");var v=String(h),b=c&&Object.prototype.hasOwnProperty.call(c,v)&&c[v];if(Array.isArray(b)&&1===b.length&&b[0].type===i.literal)return b[0].value;if(!n&&b&&"string"==typeof b&&!g)return b.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=s(s({},g),n||{}),u=Ae(u,d),m=Ae(m,d),!b){if((!y||o&&o.toLowerCase()!==l.toLowerCase())&&p(new pe(r,o)),y)try{return t.getMessageFormat(y,l,m,a).format(n)}catch(e){return p(new me('Error formatting default message for: "'+v+'", rendering default message verbatim',o,r,e)),"string"==typeof y?y:v}return v}try{return t.getMessageFormat(b,o,u,s({formatters:t},a||{})).format(n)}catch(e){p(new me('Error formatting message: "'+v+'", using '+(y?"default message":"id")+" as fallback.",o,r,e))}if(y)try{return t.getMessageFormat(y,l,m,a).format(n)}catch(e){p(new me('Error formatting the default message for: "'+v+'", rendering message verbatim',o,r,e))}return"string"==typeof b?b:"string"==typeof y?y:v}var Ee=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function Fe(e,t,r,n){var a=e.locale,o=e.formats,i=e.onError,u=e.timeZone;void 0===n&&(n={});var c=n.format,l=s(s({},u&&{timeZone:u}),c&&ve(o,t,c,i)),f=de(n,Ee,l);return"time"!==t||f.hour||f.minute||f.second||f.timeStyle||f.dateStyle||(f=s(s({},f),{hour:"numeric",minute:"numeric"})),r(a,f)}function Ie(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=void 0===o?{}:o,u="string"==typeof a?new Date(a||0):a;try{return Fe(e,"date",t,i).format(u)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting date.",t))}return String(u)}function Re(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=void 0===o?{}:o,u="string"==typeof a?new Date(a||0):a;try{return Fe(e,"time",t,i).format(u)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting time.",t))}return String(u)}function Se(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=r[2],u=void 0===i?{}:i,s=e.timeZone,c=e.locale,l=e.onError,f=de(u,Ee,s?{timeZone:s}:{});try{return t(c,f).formatRange(a,o)}catch(e){l(new se("FORMAT_ERROR","Error formatting date time range.",e))}return String(a)}function De(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=void 0===o?{}:o,u="string"==typeof a?new Date(a||0):a;try{return Fe(e,"date",t,i).formatToParts(u)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting date.",t))}return[]}function Oe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=void 0===o?{}:o,u="string"==typeof a?new Date(a||0):a;try{return Fe(e,"time",t,i).formatToParts(u)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting time.",t))}return[]}var Ce=["localeMatcher","style","type","fallback"];function Ne(e,t,r,n){var a=e.locale,o=e.onError;Intl.DisplayNames||o(new Y('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var i=de(n,Ce);try{return t(a,i).of(r)}catch(e){o(new se("FORMAT_ERROR","Error formatting display name.",e))}}var xe=["localeMatcher","type","style"],Pe=Date.now();function Me(e,t,r,n){var a=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new Y('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var i=de(n,xe);try{var u={},s=r.map((function(e,t){if("object"==typeof e){var r=function n(e){return Pe+"_"+e+"_"+Pe}(t);return u[r]=e,r}return String(e)}));return Object.keys(u).length?t(a,i).formatToParts(s).reduce((function(e,t){var r=t.value;return u[r]?e.push(u[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):t(a,i).format(s)}catch(e){o(new se("FORMAT_ERROR","Error formatting list.",e))}return r}var _e=["localeMatcher","type"];function je(e,t,r,n){var a=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new Y('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=de(n,_e);try{return t(a,i).select(r)}catch(e){o(new me("Error formatting plural.",e))}return"other"}var ke=["numeric","style"];function Le(e,t,r,n,a){void 0===a&&(a={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Y('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function o(e,t,r){var n=e.locale;void 0===r&&(r={});var a=r.format,o=!!a&&ve(e.formats,"relative",a,e.onError)||{};return t(n,de(r,ke,o))}(e,t,a).format(r,n)}catch(t){e.onError(new me("Error formatting relative time.",t))}return String(r)}var $e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ue(e,t,r){var n=e.locale;void 0===r&&(r={});var a=r.format,o=a&&ve(e.formats,"number",a,e.onError)||{};return t(n,de(r,$e,o))}function ze(e,t,r,n){void 0===n&&(n={});try{return Ue(e,t,n).format(r)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting number.",t))}return String(r)}function Ve(e,t,r,n){void 0===n&&(n={});try{return Ue(e,t,n).formatToParts(r)}catch(t){e.onError(new se("FORMAT_ERROR","Error formatting number.",t))}return[]}function Ze(e){var t=e?e[Object.keys(e)[0]]:void 0;return"object"==typeof t&&!!t}function Ge(e){f(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Be=s(s({},ge),{textComponent:t.Fragment}),qe="function"==typeof Symbol&&Symbol.for,We=qe?Symbol.for("react.element"):60103,He=qe?Symbol.for("react.portal"):60106,Ke=qe?Symbol.for("react.fragment"):60107,Je=qe?Symbol.for("react.strict_mode"):60108,Qe=qe?Symbol.for("react.profiler"):60114,Xe=qe?Symbol.for("react.provider"):60109,Ye=qe?Symbol.for("react.context"):60110,et=qe?Symbol.for("react.async_mode"):60111,tt=qe?Symbol.for("react.concurrent_mode"):60111,rt=qe?Symbol.for("react.forward_ref"):60112,nt=qe?Symbol.for("react.suspense"):60113,at=qe?Symbol.for("react.suspense_list"):60120,ot=qe?Symbol.for("react.memo"):60115,it=qe?Symbol.for("react.lazy"):60116,ut=qe?Symbol.for("react.block"):60121,st=qe?Symbol.for("react.fundamental"):60117,ct=qe?Symbol.for("react.responder"):60118,lt=qe?Symbol.for("react.scope"):60119;function ft(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case We:switch(e=e.type){case et:case tt:case Ke:case Qe:case Je:case nt:return e;default:switch(e=e&&e.$$typeof){case Ye:case rt:case it:case ot:case Xe:return e;default:return t}}case He:return t}}}function mt(e){return ft(e)===tt}var pt={AsyncMode:et,ConcurrentMode:tt,ContextConsumer:Ye,ContextProvider:Xe,Element:We,ForwardRef:rt,Fragment:Ke,Lazy:it,Memo:ot,Portal:He,Profiler:Qe,StrictMode:Je,Suspense:nt,isAsyncMode:function(e){return mt(e)||ft(e)===et},isConcurrentMode:mt,isContextConsumer:function(e){return ft(e)===Ye},isContextProvider:function(e){return ft(e)===Xe},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===We},isForwardRef:function(e){return ft(e)===rt},isFragment:function(e){return ft(e)===Ke},isLazy:function(e){return ft(e)===it},isMemo:function(e){return ft(e)===ot},isPortal:function(e){return ft(e)===He},isProfiler:function(e){return ft(e)===Qe},isStrictMode:function(e){return ft(e)===Je},isSuspense:function(e){return ft(e)===nt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Ke||e===tt||e===Qe||e===Je||e===nt||e===at||"object"==typeof e&&null!==e&&(e.$$typeof===it||e.$$typeof===ot||e.$$typeof===Xe||e.$$typeof===Ye||e.$$typeof===rt||e.$$typeof===st||e.$$typeof===ct||e.$$typeof===lt||e.$$typeof===ut)},typeOf:ft},dt=function gt(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
15
+ ***************************************************************************** */function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i,u,s=function(){return(s=Object.assign||function e(t){for(var r,n=1,a=arguments.length;n<a;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t}).apply(this,arguments)};function c(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function l(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n}function f(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function m(e){return e.type===i.literal}function p(e){return e.type===i.argument}function d(e){return e.type===i.number}function g(e){return e.type===i.date}function h(e){return e.type===i.time}function y(e){return e.type===i.select}function v(e){return e.type===i.plural}function b(e){return e.type===i.pound}function w(e){return e.type===i.tag}function A(e){return!(!e||"object"!=typeof e||0!==e.type)}function E(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(u||(u={}));var T=/(?:[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,I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,R=/^(@+)?(\+|#+)?$/g,F=/(\*)(0+)|(#+)(0+)|(0+)/g,S=/^(0+)$/;function D(e){var t={};return e.replace(R,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function C(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function O(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!S.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function N(e){return C(e)||{}}function x(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=s(s(s({},t),{notation:"scientific"}),a.options.reduce((function(e,t){return s(s({},e),N(t))}),{}));continue;case"engineering":t=s(s(s({},t),{notation:"engineering"}),a.options.reduce((function(e,t){return s(s({},e),N(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(F,(function(e,r,n,a,o,i){if(r)t.minimumIntegerDigits=n.length;else{if(a&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(S.test(a.stem))t.minimumIntegerDigits=a.stem.length;else if(I.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(I,(function(e,r,n,a,o,i){return"*"===n?t.minimumFractionDigits=r.length:a&&"#"===a[0]?t.maximumFractionDigits=a.length:o&&i?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+i.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),a.options.length&&(t=s(s({},t),D(a.options[0])))}else if(R.test(a.stem))t=s(s({},t),D(a.stem));else{var o=C(a.stem);o&&(t=s(s({},t),o));var i=O(a.stem);i&&(t=s(s({},t),i))}}return t}var P=function(e){function t(r,n,a,o){var i=e.call(this)||this;return i.message=r,i.expected=n,i.found=a,i.location=o,i.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return o(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function i(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function u(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},t}(Error),M=function _(e,t){t=void 0!==t?t:{};var r,n={},a={start:Oe},o=Oe,u=Ie("<",!1),c=function(e){return e.join("")},l=Ie("#",!1),f=Fe("tagElement"),m=Ie("/>",!1),p=Ie(">",!1),d=Ie("</",!1),g=Fe("argumentElement"),h=Ie("{",!1),y=Ie("}",!1),v=Fe("numberSkeletonId"),b=/^['\/{}]/,w=Re(["'","/","{","}"],!1,!1),A={type:"any"},E=Fe("numberSkeletonTokenOption"),I=Ie("/",!1),R=Fe("numberSkeletonToken"),F=Ie("::",!1),S=function(e){return rt.pop(),e.replace(/\s*$/,"")},D=Ie(",",!1),C=Ie("number",!1),O=function(e,t,r){return s({type:"number"===t?i.number:"date"===t?i.date:i.time,style:r&&r[2],value:e},at())},N=Ie("'",!1),M=/^[^']/,_=Re(["'"],!0,!1),j=/^[^a-zA-Z'{}]/,k=Re([["a","z"],["A","Z"],"'","{","}"],!0,!1),L=/^[a-zA-Z]/,$=Re([["a","z"],["A","Z"]],!1,!1),U=Ie("date",!1),z=Ie("time",!1),V=Ie("plural",!1),Z=Ie("selectordinal",!1),G=Ie("offset:",!1),B=Ie("select",!1),q=Ie("=",!1),W=Fe("whitespace"),H=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,K=Re([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),J=Fe("syntax pattern"),Q=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,X=Re([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Y=Fe("optional whitespace"),ee=Fe("number"),te=Ie("-",!1),re=Fe("double apostrophes"),ne=Ie("''",!1),ae=Ie("\n",!1),oe=Fe("argNameOrNumber"),ie=Fe("validTag"),ue=Fe("argNumber"),se=Ie("0",!1),ce=/^[1-9]/,le=Re([["1","9"]],!1,!1),fe=/^[0-9]/,me=Re([["0","9"]],!1,!1),pe=Fe("argName"),de=Fe("tagName"),ge=0,he=0,ye=[{line:1,column:1}],ve=0,be=[],we=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=a[t.startRule]}function Ae(){return e.substring(he,ge)}function Ee(){return De(he,ge)}function Te(e,t){throw function r(e,t){return new P(e,[],"",t)}(e,t=void 0!==t?t:De(he,ge))}function Ie(e,t){return{type:"literal",text:e,ignoreCase:t}}function Re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Fe(e){return{type:"other",description:e}}function Se(t){var r,n=ye[t];if(n)return n;for(r=t-1;!ye[r];)r--;for(n={line:(n=ye[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ye[t]=n,n}function De(e,t){var r=Se(e),n=Se(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Ce(e){ge<ve||(ge>ve&&(ve=ge,be=[]),be.push(e))}function Oe(){return Ne()}function Ne(){var e,t;for(e=[],t=xe();t!==n;)e.push(t),t=xe();return e}function xe(){var t,r;return t=ge,he=ge,(ot?n:void 0)!==n&&(r=function a(){var e,t,r,a,o,u,c;return we++,(e=_e())===n&&(e=ge,(t=je())!==n&&(r=Ne())!==n&&(a=ke())!==n?(he=e,u=r,(o=t)!==(c=a)&&Te('Mismatch tag "'+o+'" !== "'+c+'"',Ee()),e=t=s({type:i.tag,value:o,children:u},at())):(ge=e,e=n)),we--,e===n&&(t=n,0===we&&Ce(f)),e}())!==n?(he=t,t=r):(ge=t,t=n),t===n&&(t=function o(){var e,t;return e=ge,(t=Pe())!==n&&(he=e,t=s({type:i.literal,value:t},at())),t}())===n&&(t=function u(){var t,r,a,o;return we++,t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Ce(h)),r!==n&&We()!==n&&(a=Xe())!==n&&We()!==n?(125===e.charCodeAt(ge)?(o="}",ge++):(o=n,0===we&&Ce(y)),o!==n?(he=t,t=r=s({type:i.argument,value:a},at())):(ge=t,t=n)):(ge=t,t=n),we--,t===n&&(r=n,0===we&&Ce(g)),t}())===n&&(t=function c(){var t;return(t=function r(){var t,r,a,o,i,u,c,l,f;return t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Ce(h)),r!==n&&We()!==n&&(a=Xe())!==n&&We()!==n?(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Ce(D)),o!==n&&We()!==n?("number"===e.substr(ge,6)?(i="number",ge+=6):(i=n,0===we&&Ce(C)),i!==n&&We()!==n?(u=ge,44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Ce(D)),c!==n&&(l=We())!==n&&(f=function m(){var t,r,a;return t=ge,"::"===e.substr(ge,2)?(r="::",ge+=2):(r=n,0===we&&Ce(F)),r!==n&&(a=function o(){var e,t,r,a;if(e=ge,t=[],(r=Ue())!==n)for(;r!==n;)t.push(r),r=Ue();else t=n;return t!==n&&(he=e,t=s({type:0,tokens:a=t,parsedOptions:it?x(a):{}},at())),t}())!==n?(he=t,t=r=a):(ge=t,t=n),t===n&&(t=ge,he=ge,rt.push("numberArgStyle"),(r=(r=!0)?void 0:n)!==n&&(a=Pe())!==n?(he=t,t=r=S(a)):(ge=t,t=n)),t}())!==n?u=c=[c,l,f]:(ge=u,u=n),u===n&&(u=null),u!==n&&(c=We())!==n?(125===e.charCodeAt(ge)?(l="}",ge++):(l=n,0===we&&Ce(y)),l!==n?(he=t,t=r=O(a,i,u)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}())===n&&(t=function a(){var t,r,a,o,i,u,c,l,f;return t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Ce(h)),r!==n&&We()!==n&&(a=Xe())!==n&&We()!==n?(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Ce(D)),o!==n&&We()!==n?("date"===e.substr(ge,4)?(i="date",ge+=4):(i=n,0===we&&Ce(U)),i===n&&("time"===e.substr(ge,4)?(i="time",ge+=4):(i=n,0===we&&Ce(z))),i!==n&&We()!==n?(u=ge,44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Ce(D)),c!==n&&(l=We())!==n&&(f=function m(){var t,r,a;return t=ge,"::"===e.substr(ge,2)?(r="::",ge+=2):(r=n,0===we&&Ce(F)),r!==n&&(a=function o(){var t,r,a,o,i,u,c;if(t=ge,r=ge,a=[],(o=ze())===n&&(o=Ve()),o!==n)for(;o!==n;)a.push(o),(o=ze())===n&&(o=Ve());else a=n;return(r=a!==n?e.substring(r,ge):a)!==n&&(he=t,r=s({type:1,pattern:i=r,parsedOptions:it?(u=i,c={},u.replace(T,(function(e){var t=e.length;switch(e[0]){case"G":c.era=4===t?"long":5===t?"narrow":"short";break;case"y":c.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":c.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":c.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":c.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"a":c.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":c.hourCycle="h12",c.hour=["numeric","2-digit"][t-1];break;case"H":c.hourCycle="h23",c.hour=["numeric","2-digit"][t-1];break;case"K":c.hourCycle="h11",c.hour=["numeric","2-digit"][t-1];break;case"k":c.hourCycle="h24",c.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":c.minute=["numeric","2-digit"][t-1];break;case"s":c.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":c.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),c):{}},at())),r}())!==n?(he=t,t=r=a):(ge=t,t=n),t===n&&(t=ge,he=ge,rt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:n)!==n&&(a=Pe())!==n?(he=t,t=r=S(a)):(ge=t,t=n)),t}())!==n?u=c=[c,l,f]:(ge=u,u=n),u===n&&(u=null),u!==n&&(c=We())!==n?(125===e.charCodeAt(ge)?(l="}",ge++):(l=n,0===we&&Ce(y)),l!==n?(he=t,t=r=O(a,i,u)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}()),t}())===n&&(t=function m(){var t,r,a,o,u,c,l,f,m,p,d;if(t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Ce(h)),r!==n)if(We()!==n)if((a=Xe())!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Ce(D)),o!==n)if(We()!==n)if("plural"===e.substr(ge,6)?(u="plural",ge+=6):(u=n,0===we&&Ce(V)),u===n&&("selectordinal"===e.substr(ge,13)?(u="selectordinal",ge+=13):(u=n,0===we&&Ce(Z))),u!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Ce(D)),c!==n)if(We()!==n)if(l=ge,"offset:"===e.substr(ge,7)?(f="offset:",ge+=7):(f=n,0===we&&Ce(G)),f!==n&&(m=We())!==n&&(p=He())!==n?l=f=[f,m,p]:(ge=l,l=n),l===n&&(l=null),l!==n)if((f=We())!==n){if(m=[],(p=Ge())!==n)for(;p!==n;)m.push(p),p=Ge();else m=n;m!==n&&(p=We())!==n?(125===e.charCodeAt(ge)?(d="}",ge++):(d=n,0===we&&Ce(y)),d!==n?(he=t,t=r=function(e,t,r,n){return s({type:i.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:n.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Te('Duplicate option "'+r+'" in plural element: "'+Ae()+'"',Ee()),e[r]={value:n,location:a},e}),{})},at())}(a,u,l,m)):(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;return t}())===n&&(t=function p(){var t,r,a,o,u,c,l,f,m;if(t=ge,123===e.charCodeAt(ge)?(r="{",ge++):(r=n,0===we&&Ce(h)),r!==n)if(We()!==n)if((a=Xe())!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(o=",",ge++):(o=n,0===we&&Ce(D)),o!==n)if(We()!==n)if("select"===e.substr(ge,6)?(u="select",ge+=6):(u=n,0===we&&Ce(B)),u!==n)if(We()!==n)if(44===e.charCodeAt(ge)?(c=",",ge++):(c=n,0===we&&Ce(D)),c!==n)if(We()!==n){if(l=[],(f=Ze())!==n)for(;f!==n;)l.push(f),f=Ze();else l=n;l!==n&&(f=We())!==n?(125===e.charCodeAt(ge)?(m="}",ge++):(m=n,0===we&&Ce(y)),m!==n?(he=t,t=r=function(e,t){return s({type:i.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Te('Duplicate option "'+r+'" in select element: "'+Ae()+'"',Ee()),e[r]={value:n,location:a},e}),{})},at())}(a,l)):(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;else ge=t,t=n;return t}())===n&&(t=function d(){var t,r;return t=ge,35===e.charCodeAt(ge)?(r="#",ge++):(r=n,0===we&&Ce(l)),r!==n&&(he=t,r=s({type:i.pound},at())),r}()),t}function Pe(){var t,r,a,o;if(t=ge,he=ge,(r=(r=ot)?void 0:n)!==n){if(a=[],(o=Ke())===n&&(o=Je())===n&&(o=Qe())===n&&(60===e.charCodeAt(ge)?(o="<",ge++):(o=n,0===we&&Ce(u))),o!==n)for(;o!==n;)a.push(o),(o=Ke())===n&&(o=Je())===n&&(o=Qe())===n&&(60===e.charCodeAt(ge)?(o="<",ge++):(o=n,0===we&&Ce(u)));else a=n;a!==n?(he=t,t=r=c(a)):(ge=t,t=n)}else ge=t,t=n;if(t===n){if(t=ge,r=[],(a=Ke())===n&&(a=Je())===n&&(a=Qe())===n&&(a=Me()),a!==n)for(;a!==n;)r.push(a),(a=Ke())===n&&(a=Je())===n&&(a=Qe())===n&&(a=Me());else r=n;r!==n&&(he=t,r=c(r)),t=r}return t}function Me(){var t,r,a;return t=ge,r=ge,we++,(a=je())===n&&(a=ke())===n&&(a=_e()),we--,a===n?r=void 0:(ge=r,r=n),r!==n?(60===e.charCodeAt(ge)?(a="<",ge++):(a=n,0===we&&Ce(u)),a!==n?(he=t,t=r="<"):(ge=t,t=n)):(ge=t,t=n),t}function _e(){var t,r,a,o,c,l;return t=ge,r=ge,60===e.charCodeAt(ge)?(a="<",ge++):(a=n,0===we&&Ce(u)),a!==n&&(o=Ye())!==n&&(c=We())!==n?("/>"===e.substr(ge,2)?(l="/>",ge+=2):(l=n,0===we&&Ce(m)),l!==n?r=a=[a,o,c,l]:(ge=r,r=n)):(ge=r,r=n),r!==n&&(he=t,r=s({type:i.literal,value:r.join("")},at())),r}function je(){var t,r,a,o;return t=ge,60===e.charCodeAt(ge)?(r="<",ge++):(r=n,0===we&&Ce(u)),r!==n&&(a=Ye())!==n?(62===e.charCodeAt(ge)?(o=">",ge++):(o=n,0===we&&Ce(p)),o!==n?(he=t,t=r=a):(ge=t,t=n)):(ge=t,t=n),t}function ke(){var t,r,a,o;return t=ge,"</"===e.substr(ge,2)?(r="</",ge+=2):(r=n,0===we&&Ce(d)),r!==n&&(a=Ye())!==n?(62===e.charCodeAt(ge)?(o=">",ge++):(o=n,0===we&&Ce(p)),o!==n?(he=t,t=r=a):(ge=t,t=n)):(ge=t,t=n),t}function Le(){var t,r,a,o,i;if(we++,t=ge,r=[],a=ge,o=ge,we++,(i=Be())===n&&(b.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(w))),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n),a!==n)for(;a!==n;)r.push(a),a=ge,o=ge,we++,(i=Be())===n&&(b.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(w))),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n);else r=n;return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Ce(v)),t}function $e(){var t,r,a;return we++,t=ge,47===e.charCodeAt(ge)?(r="/",ge++):(r=n,0===we&&Ce(I)),r!==n&&(a=Le())!==n?(he=t,t=r=a):(ge=t,t=n),we--,t===n&&(r=n,0===we&&Ce(E)),t}function Ue(){var e,t,r,a;if(we++,e=ge,We()!==n)if((t=Le())!==n){for(r=[],a=$e();a!==n;)r.push(a),a=$e();r!==n?(he=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(ge=e,e=n)}else ge=e,e=n;else ge=e,e=n;return we--,e===n&&0===we&&Ce(R),e}function ze(){var t,r,a,o;if(t=ge,39===e.charCodeAt(ge)?(r="'",ge++):(r=n,0===we&&Ce(N)),r!==n){if(a=[],(o=Ke())===n&&(M.test(e.charAt(ge))?(o=e.charAt(ge),ge++):(o=n,0===we&&Ce(_))),o!==n)for(;o!==n;)a.push(o),(o=Ke())===n&&(M.test(e.charAt(ge))?(o=e.charAt(ge),ge++):(o=n,0===we&&Ce(_)));else a=n;a!==n?(39===e.charCodeAt(ge)?(o="'",ge++):(o=n,0===we&&Ce(N)),o!==n?t=r=[r,a,o]:(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;if(t===n)if(t=[],(r=Ke())===n&&(j.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Ce(k))),r!==n)for(;r!==n;)t.push(r),(r=Ke())===n&&(j.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Ce(k)));else t=n;return t}function Ve(){var t,r;if(t=[],L.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Ce($)),r!==n)for(;r!==n;)t.push(r),L.test(e.charAt(ge))?(r=e.charAt(ge),ge++):(r=n,0===we&&Ce($));else t=n;return t}function Ze(){var t,r,a,o,i,u,c;return t=ge,We()!==n&&(r=tt())!==n&&We()!==n?(123===e.charCodeAt(ge)?(a="{",ge++):(a=n,0===we&&Ce(h)),a!==n?(he=ge,rt.push("select"),void 0!==n&&(o=Ne())!==n?(125===e.charCodeAt(ge)?(i="}",ge++):(i=n,0===we&&Ce(y)),i!==n?(he=t,u=r,c=o,rt.pop(),t=s({id:u,value:c},at())):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}function Ge(){var t,r,a,o,i,u,c;return t=ge,We()!==n&&(r=function l(){var t,r,a,o;return t=ge,r=ge,61===e.charCodeAt(ge)?(a="=",ge++):(a=n,0===we&&Ce(q)),a!==n&&(o=He())!==n?r=a=[a,o]:(ge=r,r=n),(t=r!==n?e.substring(t,ge):r)===n&&(t=tt()),t}())!==n&&We()!==n?(123===e.charCodeAt(ge)?(a="{",ge++):(a=n,0===we&&Ce(h)),a!==n?(he=ge,rt.push("plural"),void 0!==n&&(o=Ne())!==n?(125===e.charCodeAt(ge)?(i="}",ge++):(i=n,0===we&&Ce(y)),i!==n?(he=t,u=r,c=o,rt.pop(),t=s({id:u,value:c},at())):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n)):(ge=t,t=n),t}function Be(){var t;return we++,H.test(e.charAt(ge))?(t=e.charAt(ge),ge++):(t=n,0===we&&Ce(K)),we--,t===n&&0===we&&Ce(W),t}function qe(){var t;return we++,Q.test(e.charAt(ge))?(t=e.charAt(ge),ge++):(t=n,0===we&&Ce(X)),we--,t===n&&0===we&&Ce(J),t}function We(){var t,r,a;for(we++,t=ge,r=[],a=Be();a!==n;)r.push(a),a=Be();return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Ce(Y)),t}function He(){var t,r,a,o;return we++,t=ge,45===e.charCodeAt(ge)?(r="-",ge++):(r=n,0===we&&Ce(te)),r===n&&(r=null),r!==n&&(a=et())!==n?(he=t,t=r=(o=a)?r?-o:o:0):(ge=t,t=n),we--,t===n&&(r=n,0===we&&Ce(ee)),t}function Ke(){var t,r;return we++,t=ge,"''"===e.substr(ge,2)?(r="''",ge+=2):(r=n,0===we&&Ce(ne)),r!==n&&(he=t,r="'"),we--,(t=r)===n&&(r=n,0===we&&Ce(re)),t}function Je(){var t,r,a,o,i,u;if(t=ge,39===e.charCodeAt(ge)?(r="'",ge++):(r=n,0===we&&Ce(N)),r!==n)if((a=function s(){var t,r,a,o;return t=ge,r=ge,e.length>ge?(a=e.charAt(ge),ge++):(a=n,0===we&&Ce(A)),a!==n?(he=ge,(o=(o=function(e){return"<"===e||">"===e||"{"===e||"}"===e||nt()&&"#"===e}(a))?void 0:n)!==n?r=a=[a,o]:(ge=r,r=n)):(ge=r,r=n),r!==n?e.substring(t,ge):r}())!==n){for(o=ge,i=[],"''"===e.substr(ge,2)?(u="''",ge+=2):(u=n,0===we&&Ce(ne)),u===n&&(M.test(e.charAt(ge))?(u=e.charAt(ge),ge++):(u=n,0===we&&Ce(_)));u!==n;)i.push(u),"''"===e.substr(ge,2)?(u="''",ge+=2):(u=n,0===we&&Ce(ne)),u===n&&(M.test(e.charAt(ge))?(u=e.charAt(ge),ge++):(u=n,0===we&&Ce(_)));(o=i!==n?e.substring(o,ge):i)!==n?(39===e.charCodeAt(ge)?(i="'",ge++):(i=n,0===we&&Ce(N)),i===n&&(i=null),i!==n?(he=t,t=r=a+o.replace("''","'")):(ge=t,t=n)):(ge=t,t=n)}else ge=t,t=n;else ge=t,t=n;return t}function Qe(){var t,r,a,o;return t=ge,r=ge,e.length>ge?(a=e.charAt(ge),ge++):(a=n,0===we&&Ce(A)),a!==n?(he=ge,(o=(o=function(e){return!("<"===e||"{"===e||nt()&&"#"===e||function t(){return rt.length>1}()&&"}"===e)}(a))?void 0:n)!==n?r=a=[a,o]:(ge=r,r=n)):(ge=r,r=n),r===n&&(10===e.charCodeAt(ge)?(r="\n",ge++):(r=n,0===we&&Ce(ae))),r!==n?e.substring(t,ge):r}function Xe(){var t,r;return we++,t=ge,(r=et())===n&&(r=tt()),t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Ce(oe)),t}function Ye(){var t,r;return we++,t=ge,(r=et())===n&&(r=function a(){var t,r,a,o,i;if(we++,t=ge,r=[],45===e.charCodeAt(ge)?(a="-",ge++):(a=n,0===we&&Ce(te)),a===n&&(a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n)),a!==n)for(;a!==n;)r.push(a),45===e.charCodeAt(ge)?(a="-",ge++):(a=n,0===we&&Ce(te)),a===n&&(a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n));else r=n;return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Ce(de)),t}()),t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Ce(ie)),t}function et(){var t,r,a,o,i;if(we++,t=ge,48===e.charCodeAt(ge)?(r="0",ge++):(r=n,0===we&&Ce(se)),r!==n&&(he=t,r=0),(t=r)===n){if(t=ge,r=ge,ce.test(e.charAt(ge))?(a=e.charAt(ge),ge++):(a=n,0===we&&Ce(le)),a!==n){for(o=[],fe.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(me));i!==n;)o.push(i),fe.test(e.charAt(ge))?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(me));o!==n?r=a=[a,o]:(ge=r,r=n)}else ge=r,r=n;r!==n&&(he=t,r=parseInt(r.join(""),10)),t=r}return we--,t===n&&(r=n,0===we&&Ce(ue)),t}function tt(){var t,r,a,o,i;if(we++,t=ge,r=[],a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n),a!==n)for(;a!==n;)r.push(a),a=ge,o=ge,we++,(i=Be())===n&&(i=qe()),we--,i===n?o=void 0:(ge=o,o=n),o!==n?(e.length>ge?(i=e.charAt(ge),ge++):(i=n,0===we&&Ce(A)),i!==n?a=o=[o,i]:(ge=a,a=n)):(ge=a,a=n);else r=n;return t=r!==n?e.substring(t,ge):r,we--,t===n&&(r=n,0===we&&Ce(pe)),t}var rt=["root"];function nt(){return"plural"===rt[rt.length-1]}function at(){return t&&t.captureLocation?{location:Ee()}:{}}var ot=t&&t.ignoreTag,it=t&&t.shouldParseSkeleton;if((r=o())!==n&&ge===e.length)return r;throw r!==n&&ge<e.length&&Ce({type:"end"}),function ut(e,t,r){return new P(P.buildMessage(e,t),e,t,r)}(be,ve<e.length?e.charAt(ve):null,De(ve,ve<e.length?ve+1:ve))},j=/(^|[^\\])#/g;function k(e,t){t=s({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=M(e,t);return t.normalizeHashtagInPlural&&function e(t){t.forEach((function(t){(v(t)||y(t))&&Object.keys(t.options).forEach((function(r){for(var n,a=t.options[r],o=-1,i=void 0,u=0;u<a.value.length;u++){var s=a.value[u];if(m(s)&&j.test(s.value)){o=u,i=s;break}}if(i){var c=i.value.replace(j,"$1{"+t.value+", number}"),f=M(c);(n=a.value).splice.apply(n,l([o,1],f))}e(a.value)}))}))}(r),r}function L(e,t,r,n){var a=function o(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(a);return void 0===i&&(i=e.call(this,n),t.set(a,i)),i}function $(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return void 0===o&&(o=e.apply(this,n),t.set(a,o)),o}function U(e,t,r,n,a){return r.bind(t,e,n,a)}function z(e,t){return U(e,this,1===e.length?L:$,t.cache.create(),t.serializer)}function V(){return JSON.stringify(arguments)}function Z(){this.cache=Object.create(null)}Z.prototype.has=function(e){return e in this.cache},Z.prototype.get=function(e){return this.cache[e]},Z.prototype.set=function(e,t){this.cache[e]=t};var G={create:function e(){return new Z}},B=function q(e,t){return(t&&t.strategy?t.strategy:z)(e,{cache:t&&t.cache?t.cache:G,serializer:t&&t.serializer?t.serializer:V})},W={variadic:function H(e,t){return U(e,this,$,t.cache.create(),t.serializer)},monadic:function K(e,t){return U(e,this,L,t.cache.create(),t.serializer)}};B.strategies=W;var J,Q=Object.freeze(Object.assign(Object.create(null),B,{default:B,strategies:W}));!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(J||(J={}));var X,Y=function(e){function t(t,r,n){var a=e.call(this,t)||this;return a.code=r,a.originalMessage=n,a}return o(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),ee=function(e){function t(t,r,n,a){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",a)||this}return o(t,e),t}(Y),te=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return o(t,e),t}(Y),re=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return o(t,e),t}(Y);function ne(e){return"function"==typeof e}function ae(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(X||(X={}));var oe,ie=B||Q,ue=function(){function e(t,r,n,a){var o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return function e(t,r,n,a,o,i,u){if(1===t.length&&m(t[0]))return[{type:0,value:t[0].value}];for(var s=[],c=0,l=t;c<l.length;c++){var f=l[c];if(m(f))s.push({type:0,value:f.value});else if(b(f))"number"==typeof i&&s.push({type:0,value:n.getNumberFormat(r).format(i)});else{var T=f.value;if(!o||!(T in o))throw new re(T,u);var I=o[T];if(p(f))I&&"string"!=typeof I&&"number"!=typeof I||(I="string"==typeof I||"number"==typeof I?String(I):""),s.push({type:"string"==typeof I?0:1,value:I});else if(g(f)){var R="string"==typeof f.style?a.date[f.style]:E(f.style)?f.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(r,R).format(I)})}else if(h(f))R="string"==typeof f.style?a.time[f.style]:E(f.style)?f.style.parsedOptions:void 0,s.push({type:0,value:n.getDateTimeFormat(r,R).format(I)});else if(d(f))(R="string"==typeof f.style?a.number[f.style]:A(f.style)?f.style.parsedOptions:void 0)&&R.scale&&(I*=R.scale||1),s.push({type:0,value:n.getNumberFormat(r,R).format(I)});else{if(w(f)){var F=f.children,S=f.value,D=o[S];if(!ne(D))throw new te(S,"function",u);var C=D(e(F,r,n,a,o,i).map((function(e){return e.value})));Array.isArray(C)||(C=[C]),s.push.apply(s,C.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(y(f)){if(!(O=f.options[I]||f.options.other))throw new ee(f.value,I,Object.keys(f.options),u);s.push.apply(s,e(O.value,r,n,a,o))}else if(v(f)){var O;if(!(O=f.options["="+I])){if(!Intl.PluralRules)throw new Y('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",u);var N=n.getPluralRules(r,{type:f.pluralType}).select(I-(f.offset||0));O=f.options[N]||f.options.other}if(!O)throw new ee(f.value,I,Object.keys(f.options),u);s.push.apply(s,e(O.value,r,n,a,o,I-(f.offset||0)))}}}}return function x(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(s)}(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==a?void 0:a.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function i(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function a(e,t){return t?s(s(s({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=s(s({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),s({},e)):e}(e.formats,n),this.locales=r,this.formatters=a&&a.formatters||function u(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t)))}),{cache:ae(e.number),strategy:ie.strategies.variadic}),getDateTimeFormat:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t)))}),{cache:ae(e.dateTime),strategy:ie.strategies.variadic}),getPluralRules:ie((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t)))}),{cache:ae(e.pluralRules),strategy:ie.strategies.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=k,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();e.ReactIntlErrorCode=void 0,(oe=e.ReactIntlErrorCode||(e.ReactIntlErrorCode={})).FORMAT_ERROR="FORMAT_ERROR",oe.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",oe.INVALID_CONFIG="INVALID_CONFIG",oe.MISSING_DATA="MISSING_DATA",oe.MISSING_TRANSLATION="MISSING_TRANSLATION";var se=function(e){function t(r,n,a){var o=e.call(this,"[@formatjs/intl Error "+r+"] "+n+" \n"+(a?"\n"+a.message+"\n"+a.stack:""))||this;return o.code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return o(t,e),t}(Error),ce=function(t){function r(r,n){return t.call(this,e.ReactIntlErrorCode.UNSUPPORTED_FORMATTER,r,n)||this}return o(r,t),r}(se),le=function(t){function r(r,n){return t.call(this,e.ReactIntlErrorCode.INVALID_CONFIG,r,n)||this}return o(r,t),r}(se),fe=function(t){function r(r,n){return t.call(this,e.ReactIntlErrorCode.MISSING_DATA,r,n)||this}return o(r,t),r}(se),me=function(t){function r(r,n,a,o){var i=t.call(this,e.ReactIntlErrorCode.FORMAT_ERROR,r+" \nLocale: "+n+"\nMessageID: "+(null==a?void 0:a.id)+"\nDefault Message: "+(null==a?void 0:a.defaultMessage)+"\nDescription: "+(null==a?void 0:a.description)+" \n",o)||this;return i.descriptor=a,i}return o(r,t),r}(se),pe=function(t){function r(r,n){var a=t.call(this,e.ReactIntlErrorCode.MISSING_TRANSLATION,'Missing message: "'+r.id+'" for locale "'+n+'", using '+(r.defaultMessage?"default message":"id")+" as fallback.")||this;return a.descriptor=r,a}return o(r,t),r}(se);function de(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var ge={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){}};function he(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var ye=B||Q;function ve(e,t,r,n){var a,o=e&&e[t];if(o&&(a=o[r]),a)return a;n(new ce("No "+t+" format named: "+r))}function be(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=s({timeZone:t},e[n]),r}),{})}function we(e,t){return Object.keys(s(s({},e),t)).reduce((function(r,n){return r[n]=s(s({},e[n]||{}),t[n]||{}),r}),{})}function Ae(e,t){if(!t)return e;var r=ue.formats;return s(s(s({},r),e),{date:we(be(r.date,t),be(e.date||{},t)),time:we(be(r.time,t),be(e.time||{},t))})}function Ee(e,t,r,n,a){var o=e.locale,u=e.formats,c=e.messages,l=e.defaultLocale,m=e.defaultFormats,p=e.onError,d=e.timeZone,g=e.defaultRichTextElements;void 0===r&&(r={id:""});var h=r.id,y=r.defaultMessage;f(!!h,"[@formatjs/intl] An `id` must be provided to format a message.");var v=String(h),b=c&&Object.prototype.hasOwnProperty.call(c,v)&&c[v];if(Array.isArray(b)&&1===b.length&&b[0].type===i.literal)return b[0].value;if(!n&&b&&"string"==typeof b&&!g)return b.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=s(s({},g),n||{}),u=Ae(u,d),m=Ae(m,d),!b){if((!y||o&&o.toLowerCase()!==l.toLowerCase())&&p(new pe(r,o)),y)try{return t.getMessageFormat(y,l,m,a).format(n)}catch(e){return p(new me('Error formatting default message for: "'+v+'", rendering default message verbatim',o,r,e)),"string"==typeof y?y:v}return v}try{return t.getMessageFormat(b,o,u,s({formatters:t},a||{})).format(n)}catch(e){p(new me('Error formatting message: "'+v+'", using '+(y?"default message":"id")+" as fallback.",o,r,e))}if(y)try{return t.getMessageFormat(y,l,m,a).format(n)}catch(e){p(new me('Error formatting the default message for: "'+v+'", rendering message verbatim',o,r,e))}return"string"==typeof b?b:"string"==typeof y?y:v}var Te=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","fractionalSecondDigits","calendar","numberingSystem"];function Ie(e,t,r,n){var a=e.locale,o=e.formats,i=e.onError,u=e.timeZone;void 0===n&&(n={});var c=n.format,l=s(s({},u&&{timeZone:u}),c&&ve(o,t,c,i)),f=de(n,Te,l);return"time"!==t||f.hour||f.minute||f.second||f.timeStyle||f.dateStyle||(f=s(s({},f),{hour:"numeric",minute:"numeric"})),r(a,f)}function Re(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o=n[0],i=n[1],u=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ie(t,"date",r,u).format(s)}catch(r){t.onError(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting date.",r))}return String(s)}function Fe(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o=n[0],i=n[1],u=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ie(t,"time",r,u).format(s)}catch(r){t.onError(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting time.",r))}return String(s)}function Se(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o=n[0],i=n[1],u=n[2],s=void 0===u?{}:u,c=t.timeZone,l=t.locale,f=t.onError,m=de(s,Te,c?{timeZone:c}:{});try{return r(l,m).formatRange(o,i)}catch(t){f(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting date time range.",t))}return String(o)}function De(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o=n[0],i=n[1],u=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ie(t,"date",r,u).formatToParts(s)}catch(r){t.onError(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting date.",r))}return[]}function Ce(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var o=n[0],i=n[1],u=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ie(t,"time",r,u).formatToParts(s)}catch(r){t.onError(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting time.",r))}return[]}var Oe=["localeMatcher","style","type","fallback"];function Ne(t,r,n,a){var o=t.locale,i=t.onError;Intl.DisplayNames||i(new Y('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',"MISSING_INTL_API"));var u=de(a,Oe);try{return r(o,u).of(n)}catch(t){i(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting display name.",t))}}var xe=["localeMatcher","type","style"],Pe=Date.now();function Me(t,r,n,a){var o=t.locale,i=t.onError;void 0===a&&(a={}),Intl.ListFormat||i(new Y('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',"MISSING_INTL_API"));var u=de(a,xe);try{var s={},c=n.map((function(e,t){if("object"==typeof e){var r=function n(e){return Pe+"_"+e+"_"+Pe}(t);return s[r]=e,r}return String(e)}));return Object.keys(s).length?r(o,u).formatToParts(c).reduce((function(e,t){var r=t.value;return s[r]?e.push(s[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]):r(o,u).format(c)}catch(t){i(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting list.",t))}return n}var _e=["localeMatcher","type"];function je(e,t,r,n){var a=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new Y('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API"));var i=de(n,_e);try{return t(a,i).select(r)}catch(e){o(new me("Error formatting plural.",e))}return"other"}var ke=["numeric","style"];function Le(e,t,r,n,a){void 0===a&&(a={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Y('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',"MISSING_INTL_API"));try{return function o(e,t,r){var n=e.locale;void 0===r&&(r={});var a=r.format,o=!!a&&ve(e.formats,"relative",a,e.onError)||{};return t(n,de(r,ke,o))}(e,t,a).format(r,n)}catch(t){e.onError(new me("Error formatting relative time.",t))}return String(r)}var $e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Ue(e,t,r){var n=e.locale;void 0===r&&(r={});var a=r.format,o=a&&ve(e.formats,"number",a,e.onError)||{};return t(n,de(r,$e,o))}function ze(t,r,n,a){void 0===a&&(a={});try{return Ue(t,r,a).format(n)}catch(r){t.onError(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting number.",r))}return String(n)}function Ve(t,r,n,a){void 0===a&&(a={});try{return Ue(t,r,a).formatToParts(n)}catch(r){t.onError(new se(e.ReactIntlErrorCode.FORMAT_ERROR,"Error formatting number.",r))}return[]}function Ze(e){var t=e?e[Object.keys(e)[0]]:void 0;return"object"==typeof t&&!!t}function Ge(e){f(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Be=s(s({},ge),{textComponent:t.Fragment}),qe="function"==typeof Symbol&&Symbol.for,We=qe?Symbol.for("react.element"):60103,He=qe?Symbol.for("react.portal"):60106,Ke=qe?Symbol.for("react.fragment"):60107,Je=qe?Symbol.for("react.strict_mode"):60108,Qe=qe?Symbol.for("react.profiler"):60114,Xe=qe?Symbol.for("react.provider"):60109,Ye=qe?Symbol.for("react.context"):60110,et=qe?Symbol.for("react.async_mode"):60111,tt=qe?Symbol.for("react.concurrent_mode"):60111,rt=qe?Symbol.for("react.forward_ref"):60112,nt=qe?Symbol.for("react.suspense"):60113,at=qe?Symbol.for("react.suspense_list"):60120,ot=qe?Symbol.for("react.memo"):60115,it=qe?Symbol.for("react.lazy"):60116,ut=qe?Symbol.for("react.block"):60121,st=qe?Symbol.for("react.fundamental"):60117,ct=qe?Symbol.for("react.responder"):60118,lt=qe?Symbol.for("react.scope"):60119;function ft(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case We:switch(e=e.type){case et:case tt:case Ke:case Qe:case Je:case nt:return e;default:switch(e=e&&e.$$typeof){case Ye:case rt:case it:case ot:case Xe:return e;default:return t}}case He:return t}}}function mt(e){return ft(e)===tt}var pt={AsyncMode:et,ConcurrentMode:tt,ContextConsumer:Ye,ContextProvider:Xe,Element:We,ForwardRef:rt,Fragment:Ke,Lazy:it,Memo:ot,Portal:He,Profiler:Qe,StrictMode:Je,Suspense:nt,isAsyncMode:function(e){return mt(e)||ft(e)===et},isConcurrentMode:mt,isContextConsumer:function(e){return ft(e)===Ye},isContextProvider:function(e){return ft(e)===Xe},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===We},isForwardRef:function(e){return ft(e)===rt},isFragment:function(e){return ft(e)===Ke},isLazy:function(e){return ft(e)===it},isMemo:function(e){return ft(e)===ot},isPortal:function(e){return ft(e)===He},isProfiler:function(e){return ft(e)===Qe},isStrictMode:function(e){return ft(e)===Je},isSuspense:function(e){return ft(e)===nt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Ke||e===tt||e===Qe||e===Je||e===nt||e===at||"object"==typeof e&&null!==e&&(e.$$typeof===it||e.$$typeof===ot||e.$$typeof===Xe||e.$$typeof===Ye||e.$$typeof===rt||e.$$typeof===st||e.$$typeof===ct||e.$$typeof===lt||e.$$typeof===ut)},typeOf:ft},dt=function gt(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
16
16
  /** @license React v16.13.1
17
17
  * react-is.production.min.js
18
18
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */()}},r.exports),r.exports}((function(e){e.exports=pt})),ht={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bt={};function wt(e){return dt.isMemo(e)?vt:bt[e.$$typeof]||ht}bt[dt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bt[dt.Memo]=vt;var At,Tt,Et=Object.defineProperty,Ft=Object.getOwnPropertyNames,It=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,St=Object.getPrototypeOf,Dt=Object.prototype,Ot=function e(t,r,n){if("string"!=typeof r){if(Dt){var a=St(r);a&&a!==Dt&&e(t,a,n)}var o=Ft(r);It&&(o=o.concat(It(r)));for(var i=wt(t),u=wt(r),s=0;s<o.length;++s){var c=o[s];if(!(yt[c]||n&&n[c]||u&&u[c]||i&&i[c])){var l=Rt(r,c);try{Et(t,c,l)}catch(e){}}}}return t},Ct=Ot.default||Ot,Nt=t.createContext(null),xt=Nt.Consumer,Pt=Nt.Provider,Mt=Nt;function _t(e,r){var n=r||{},a=n.intlPropName,o=void 0===a?"intl":a,i=n.forwardRef,u=void 0!==i&&i,c=n.enforceContext,l=void 0===c||c,f=function(r){return t.createElement(xt,null,(function(n){var a;l&&Ge(n);var i=((a={})[o]=n,a);return t.createElement(e,s({},r,i,{ref:u?r.forwardedRef:null}))}))};return f.displayName="injectIntl("+function m(e){return e.displayName||e.name||"Component"}(e)+")",f.WrappedComponent=e,Ct(u?t.forwardRef((function(e,r){return t.createElement(f,s({},e,{forwardedRef:r}))})):f,e)}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(At||(At={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Tt||(Tt={}));var jt=function(e){return t.createElement(Mt.Consumer,null,(function(t){Ge(t);var r=e.value,n=e.children,a=c(e,["value","children"]);return n(t.formatNumberToParts(r,a))}))};function kt(e){var r=function(r){return t.createElement(Mt.Consumer,null,(function(t){Ge(t);var n=r.value,a=r.children,o=c(r,["value","children"]),i="string"==typeof n?new Date(n||0):n;return a("formatDate"===e?t.formatDateToParts(i,o):t.formatTimeToParts(i,o))}))};return r.displayName=Tt[e],r}function Lt(e){var r=function(r){return t.createElement(Mt.Consumer,null,(function(n){Ge(n);var a=r.value,o=r.children,i=c(r,["value","children"]),u=n[e](a,i);return"function"==typeof o?o(u):t.createElement(n.textComponent||t.Fragment,null,u)}))};return r.displayName=At[e],r}jt.displayName="FormattedNumberParts";var $t=function Ut(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var i=r[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0},zt=Object.freeze(Object.assign(Object.create(null),$t,{default:$t})),Vt=$t||zt;function Zt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Gt(e){return e?Object.keys(e).reduce((function(r,n){var a=e[n];return r[n]=ne(a)?function o(e){return function(r){return e(t.Children.toArray(r))}}(a):a,r}),{}):e}var Bt=function(e,r,n,a){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var u=Gt(a),s=Te.apply(void 0,l([e,r,n,u],o));return Array.isArray(s)?t.Children.toArray(s):s},qt=function(e,t){var r=e.defaultRichTextElements,n=c(e,["defaultRichTextElements"]),a=Gt(r),o=function i(e,t){var r=function n(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=ye((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t)))}),{cache:he(e.dateTime),strategy:ye.strategies.variadic}),o=ye((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t)))}),{cache:he(e.number),strategy:ye.strategies.variadic}),i=ye((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t)))}),{cache:he(e.pluralRules),strategy:ye.strategies.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:ye((function(e,t,r,n){return new ue(e,t,r,s({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:i}},n||{}))}),{cache:he(e.message),strategy:ye.strategies.variadic}),getRelativeTimeFormat:ye((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,l([void 0],e)))}),{cache:he(e.relativeTime),strategy:ye.strategies.variadic}),getPluralRules:i,getListFormat:ye((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,l([void 0],e)))}),{cache:he(e.list),strategy:ye.strategies.variadic}),getDisplayNames:ye((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,l([void 0],e)))}),{cache:he(e.displayNames),strategy:ye.strategies.variadic})}}(t),a=s(s({},ge),e),o=a.locale,i=a.defaultLocale,u=a.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&u?u(new fe('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+i+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&u&&u(new fe('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+i+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(u&&u(new le('"locale" was not configured, using "'+i+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),a.locale=a.defaultLocale||"en"),function c(e){e.defaultRichTextElements&&!Ze(e.messages||{})&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(a),s(s({},a),{formatters:r,formatNumber:ze.bind(null,a,r.getNumberFormat),formatNumberToParts:Ve.bind(null,a,r.getNumberFormat),formatRelativeTime:Le.bind(null,a,r.getRelativeTimeFormat),formatDate:Ie.bind(null,a,r.getDateTimeFormat),formatDateToParts:De.bind(null,a,r.getDateTimeFormat),formatTime:Re.bind(null,a,r.getDateTimeFormat),formatDateTimeRange:Se.bind(null,a,r.getDateTimeFormat),formatTimeToParts:Oe.bind(null,a,r.getDateTimeFormat),formatPlural:je.bind(null,a,r.getPluralRules),formatMessage:Te.bind(null,a,r),formatList:Me.bind(null,a,r.getListFormat),formatDisplayName:Ne.bind(null,a,r.getDisplayNames),__addMessages:function(t){var r=Ze(a.messages),n=Ze(t);e.onError&&(r&&!n||!r&&n)&&e.onError(new le("Cannot mix AST & non-AST messages for locale "+a.locale)),Object.keys(t).forEach((function(e){a.messages[e]=t[e]}))}})}(s(s(s({},Be),n),{defaultRichTextElements:a}),t);return s(s({},o),{formatMessage:Bt.bind(null,{locale:o.locale,timeZone:o.timeZone,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a},o.formatters)})},Wt=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:qt(Zt(t.props),t.cache),prevConfig:Zt(t.props)},t}return o(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,a=Zt(e);return Vt(r,a)?null:{intl:qt(a,n),prevConfig:a}},r.prototype.render=function(){return Ge(this.state.intl),t.createElement(Pt,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Be,r}(t.PureComponent);function Ht(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Kt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function Jt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Qt=["second","minute","hour"];function Xt(e){return void 0===e&&(e="second"),Qt.includes(e)}var Yt=function(e){function r(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:Xt(r.props.unit)?Jt(r.props.value,r.props.unit):0},f(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!Xt(t.unit)),"Cannot schedule update with unit longer than hour"),r}return o(r,e),r.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,a=e.unit,o=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&Xt(a)){var i=o-n,u=Ht(i);if("day"!==u){var s=Kt(u),c=i-i%s,l=c>=o?c-s:c,f=Math.abs(l-o);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:l})}),1e3*f)}}},r.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},r.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:Xt(e.unit)?Jt(e.value,e.unit):0}:null},r.prototype.render=function(){var e=this;return t.createElement(Mt.Consumer,null,(function(r){Ge(r);var n=r.formatRelativeTime,a=r.textComponent,o=e.props,i=o.children,u=o.unit,c=o.updateIntervalInSeconds,l=e.state.currentValueInSeconds,f=o.value||0,m=u;if(Xt(u)&&"number"==typeof l&&c){var p=Kt(m=Ht(l));f=Math.round(l/p)}var d=n(f,m,s({},e.props));return"function"==typeof i?i(d):a?t.createElement(a,null,d):d}))},r.displayName="FormattedRelativeTime",r.defaultProps={value:0,unit:"second"},r}(t.PureComponent),er=function(e){var r=e.other,n=e.children,a=e.intl,o=a.textComponent,i=e[(0,a.formatPlural)(e.value,e)]||r;return"function"==typeof n?n(i):o?t.createElement(o,null,i):i};er.defaultProps={type:"cardinal"},er.displayName="FormattedPlural";var tr=_t(er),rr=$t||zt,nr=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),r.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=c(t,["values"]),a=e.values,o=c(e,["values"]);return!rr(a,r)||!rr(n,o)},r.prototype.render=function(){var e=this;return t.createElement(Mt.Consumer,null,(function(r){Ge(r);var a=r.textComponent,o=e.props,i=o.children,u=o.tagName,s=void 0===u?void 0===a?t.Fragment:a:u,c=(0,r.formatMessage)({id:o.id,description:o.description,defaultMessage:o.defaultMessage},o.values,{ignoreTag:o.ignoreTag});return Array.isArray(c)||(c=[c]),"function"==typeof i?i(c):s?t.createElement.apply(n,l([s,null],c)):c}))},r.displayName="FormattedMessage",r}(t.Component),ar=function(e){return t.createElement(Mt.Consumer,null,(function(r){Ge(r);var n=e.from,a=e.to,o=e.children,i=c(e,["from","to","children"]),u=r.formatDateTimeRange(n,a,i);return"function"==typeof o?o(u):t.createElement(r.textComponent||t.Fragment,null,u)}))};ar.displayName="FormattedDateTimeRange";var or=Lt("formatDate"),ir=Lt("formatTime"),ur=Lt("formatNumber"),sr=Lt("formatList"),cr=Lt("formatDisplayName"),lr=kt("formatDate"),fr=kt("formatTime");e.FormattedDate=or,e.FormattedDateParts=lr,e.FormattedDateTimeRange=ar,e.FormattedDisplayName=cr,e.FormattedList=sr,e.FormattedMessage=nr,e.FormattedNumber=ur,e.FormattedNumberParts=jt,e.FormattedPlural=tr,e.FormattedRelativeTime=Yt,e.FormattedTime=ir,e.FormattedTimeParts=fr,e.IntlContext=Mt,e.IntlProvider=Wt,e.InvalidConfigError=le,e.MessageFormatError=me,e.MissingDataError=fe,e.MissingTranslationError=pe,e.RawIntlProvider=Pt,e.ReactIntlError=se,e.UnsupportedFormatterError=ce,e.createIntl=qt,e.createIntlCache=function mr(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function pr(e){return e},e.defineMessages=function dr(e){return e},e.injectIntl=_t,e.useIntl=function gr(){var e=t.useContext(Mt);return Ge(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));
23
+ */()}},r.exports),r.exports}((function(e){e.exports=pt})),ht={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bt={};function wt(e){return dt.isMemo(e)?vt:bt[e.$$typeof]||ht}bt[dt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bt[dt.Memo]=vt;var At,Et,Tt=Object.defineProperty,It=Object.getOwnPropertyNames,Rt=Object.getOwnPropertySymbols,Ft=Object.getOwnPropertyDescriptor,St=Object.getPrototypeOf,Dt=Object.prototype,Ct=function e(t,r,n){if("string"!=typeof r){if(Dt){var a=St(r);a&&a!==Dt&&e(t,a,n)}var o=It(r);Rt&&(o=o.concat(Rt(r)));for(var i=wt(t),u=wt(r),s=0;s<o.length;++s){var c=o[s];if(!(yt[c]||n&&n[c]||u&&u[c]||i&&i[c])){var l=Ft(r,c);try{Tt(t,c,l)}catch(e){}}}}return t},Ot=Ct.default||Ct,Nt=t.createContext(null),xt=Nt.Consumer,Pt=Nt.Provider,Mt=Nt;function _t(e,r){var n=r||{},a=n.intlPropName,o=void 0===a?"intl":a,i=n.forwardRef,u=void 0!==i&&i,c=n.enforceContext,l=void 0===c||c,f=function(r){return t.createElement(xt,null,(function(n){var a;l&&Ge(n);var i=((a={})[o]=n,a);return t.createElement(e,s({},r,i,{ref:u?r.forwardedRef:null}))}))};return f.displayName="injectIntl("+function m(e){return e.displayName||e.name||"Component"}(e)+")",f.WrappedComponent=e,Ot(u?t.forwardRef((function(e,r){return t.createElement(f,s({},e,{forwardedRef:r}))})):f,e)}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(At||(At={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Et||(Et={}));var jt=function(e){return t.createElement(Mt.Consumer,null,(function(t){Ge(t);var r=e.value,n=e.children,a=c(e,["value","children"]);return n(t.formatNumberToParts(r,a))}))};function kt(e){var r=function(r){return t.createElement(Mt.Consumer,null,(function(t){Ge(t);var n=r.value,a=r.children,o=c(r,["value","children"]),i="string"==typeof n?new Date(n||0):n;return a("formatDate"===e?t.formatDateToParts(i,o):t.formatTimeToParts(i,o))}))};return r.displayName=Et[e],r}function Lt(e){var r=function(r){return t.createElement(Mt.Consumer,null,(function(n){Ge(n);var a=r.value,o=r.children,i=c(r,["value","children"]),u=n[e](a,i);return"function"==typeof o?o(u):t.createElement(n.textComponent||t.Fragment,null,u)}))};return r.displayName=At[e],r}jt.displayName="FormattedNumberParts";var $t=function Ut(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var i=r[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0},zt=Object.freeze(Object.assign(Object.create(null),$t,{default:$t})),Vt=$t||zt;function Zt(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Gt(e){return e?Object.keys(e).reduce((function(r,n){var a=e[n];return r[n]=ne(a)?function o(e){return function(r){return e(t.Children.toArray(r))}}(a):a,r}),{}):e}var Bt=function(e,r,n,a){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var u=Gt(a),s=Ee.apply(void 0,l([e,r,n,u],o));return Array.isArray(s)?t.Children.toArray(s):s},qt=function(e,t){var r=e.defaultRichTextElements,n=c(e,["defaultRichTextElements"]),a=Gt(r),o=function i(e,t){var r=function n(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=ye((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t)))}),{cache:he(e.dateTime),strategy:ye.strategies.variadic}),o=ye((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t)))}),{cache:he(e.number),strategy:ye.strategies.variadic}),i=ye((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t)))}),{cache:he(e.pluralRules),strategy:ye.strategies.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:ye((function(e,t,r,n){return new ue(e,t,r,s({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:i}},n||{}))}),{cache:he(e.message),strategy:ye.strategies.variadic}),getRelativeTimeFormat:ye((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,l([void 0],e)))}),{cache:he(e.relativeTime),strategy:ye.strategies.variadic}),getPluralRules:i,getListFormat:ye((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,l([void 0],e)))}),{cache:he(e.list),strategy:ye.strategies.variadic}),getDisplayNames:ye((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,l([void 0],e)))}),{cache:he(e.displayNames),strategy:ye.strategies.variadic})}}(t),a=s(s({},ge),e),o=a.locale,i=a.defaultLocale,u=a.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&u?u(new fe('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+i+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&u&&u(new fe('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+i+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(u&&u(new le('"locale" was not configured, using "'+i+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),a.locale=a.defaultLocale||"en"),function c(e){e.defaultRichTextElements&&!Ze(e.messages||{})&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(a),s(s({},a),{formatters:r,formatNumber:ze.bind(null,a,r.getNumberFormat),formatNumberToParts:Ve.bind(null,a,r.getNumberFormat),formatRelativeTime:Le.bind(null,a,r.getRelativeTimeFormat),formatDate:Re.bind(null,a,r.getDateTimeFormat),formatDateToParts:De.bind(null,a,r.getDateTimeFormat),formatTime:Fe.bind(null,a,r.getDateTimeFormat),formatDateTimeRange:Se.bind(null,a,r.getDateTimeFormat),formatTimeToParts:Ce.bind(null,a,r.getDateTimeFormat),formatPlural:je.bind(null,a,r.getPluralRules),formatMessage:Ee.bind(null,a,r),formatList:Me.bind(null,a,r.getListFormat),formatDisplayName:Ne.bind(null,a,r.getDisplayNames),__addMessages:function(t){var r=Ze(a.messages),n=Ze(t);e.onError&&(r&&!n||!r&&n)&&e.onError(new le("Cannot mix AST & non-AST messages for locale "+a.locale)),Object.keys(t).forEach((function(e){a.messages[e]=t[e]}))}})}(s(s(s({},Be),n),{defaultRichTextElements:a}),t);return s(s({},o),{formatMessage:Bt.bind(null,{locale:o.locale,timeZone:o.timeZone,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a},o.formatters)})},Wt=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:qt(Zt(t.props),t.cache),prevConfig:Zt(t.props)},t}return o(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,a=Zt(e);return Vt(r,a)?null:{intl:qt(a,n),prevConfig:a}},r.prototype.render=function(){return Ge(this.state.intl),t.createElement(Pt,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Be,r}(t.PureComponent);function Ht(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Kt(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function Jt(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}var Qt=["second","minute","hour"];function Xt(e){return void 0===e&&(e="second"),Qt.includes(e)}var Yt=function(e){function r(t){var r=e.call(this,t)||this;return r._updateTimer=null,r.state={prevUnit:r.props.unit,prevValue:r.props.value,currentValueInSeconds:Xt(r.props.unit)?Jt(r.props.value,r.props.unit):0},f(!t.updateIntervalInSeconds||!(!t.updateIntervalInSeconds||!Xt(t.unit)),"Cannot schedule update with unit longer than hour"),r}return o(r,e),r.prototype.scheduleNextUpdate=function(e,t){var r=this,n=e.updateIntervalInSeconds,a=e.unit,o=t.currentValueInSeconds;if(clearTimeout(this._updateTimer),this._updateTimer=null,n&&Xt(a)){var i=o-n,u=Ht(i);if("day"!==u){var s=Kt(u),c=i-i%s,l=c>=o?c-s:c,f=Math.abs(l-o);this._updateTimer=setTimeout((function(){return r.setState({currentValueInSeconds:l})}),1e3*f)}}},r.prototype.componentDidMount=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentDidUpdate=function(){this.scheduleNextUpdate(this.props,this.state)},r.prototype.componentWillUnmount=function(){clearTimeout(this._updateTimer),this._updateTimer=null},r.getDerivedStateFromProps=function(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:Xt(e.unit)?Jt(e.value,e.unit):0}:null},r.prototype.render=function(){var e=this;return t.createElement(Mt.Consumer,null,(function(r){Ge(r);var n=r.formatRelativeTime,a=r.textComponent,o=e.props,i=o.children,u=o.unit,c=o.updateIntervalInSeconds,l=e.state.currentValueInSeconds,f=o.value||0,m=u;if(Xt(u)&&"number"==typeof l&&c){var p=Kt(m=Ht(l));f=Math.round(l/p)}var d=n(f,m,s({},e.props));return"function"==typeof i?i(d):a?t.createElement(a,null,d):d}))},r.displayName="FormattedRelativeTime",r.defaultProps={value:0,unit:"second"},r}(t.PureComponent),er=function(e){var r=e.other,n=e.children,a=e.intl,o=a.textComponent,i=e[(0,a.formatPlural)(e.value,e)]||r;return"function"==typeof n?n(i):o?t.createElement(o,null,i):i};er.defaultProps={type:"cardinal"},er.displayName="FormattedPlural";var tr=_t(er),rr=$t||zt,nr=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),r.prototype.shouldComponentUpdate=function(e){var t=this.props,r=t.values,n=c(t,["values"]),a=e.values,o=c(e,["values"]);return!rr(a,r)||!rr(n,o)},r.prototype.render=function(){var e=this;return t.createElement(Mt.Consumer,null,(function(r){Ge(r);var a=r.textComponent,o=e.props,i=o.children,u=o.tagName,s=void 0===u?void 0===a?t.Fragment:a:u,c=(0,r.formatMessage)({id:o.id,description:o.description,defaultMessage:o.defaultMessage},o.values,{ignoreTag:o.ignoreTag});return Array.isArray(c)||(c=[c]),"function"==typeof i?i(c):s?t.createElement.apply(n,l([s,null],c)):c}))},r.displayName="FormattedMessage",r}(t.Component),ar=function(e){return t.createElement(Mt.Consumer,null,(function(r){Ge(r);var n=e.from,a=e.to,o=e.children,i=c(e,["from","to","children"]),u=r.formatDateTimeRange(n,a,i);return"function"==typeof o?o(u):t.createElement(r.textComponent||t.Fragment,null,u)}))};ar.displayName="FormattedDateTimeRange";var or=Lt("formatDate"),ir=Lt("formatTime"),ur=Lt("formatNumber"),sr=Lt("formatList"),cr=Lt("formatDisplayName"),lr=kt("formatDate"),fr=kt("formatTime");e.FormattedDate=or,e.FormattedDateParts=lr,e.FormattedDateTimeRange=ar,e.FormattedDisplayName=cr,e.FormattedList=sr,e.FormattedMessage=nr,e.FormattedNumber=ur,e.FormattedNumberParts=jt,e.FormattedPlural=tr,e.FormattedRelativeTime=Yt,e.FormattedTime=ir,e.FormattedTimeParts=fr,e.IntlContext=Mt,e.IntlProvider=Wt,e.InvalidConfigError=le,e.MessageFormatError=me,e.MissingDataError=fe,e.MissingTranslationError=pe,e.RawIntlProvider=Pt,e.ReactIntlError=se,e.UnsupportedFormatterError=ce,e.createIntl=qt,e.createIntlCache=function mr(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.defineMessage=function pr(e){return e},e.defineMessages=function dr(e){return e},e.injectIntl=_t,e.useIntl=function gr(){var e=t.useContext(Mt);return Ge(e),e},Object.defineProperty(e,"__esModule",{value:!0})}));