Socket
Socket
Sign inDemoInstall

@lingui/core

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/core - npm Package Compare versions

Comparing version 3.8.8 to 3.8.9

249

cjs/core.development.js

@@ -282,8 +282,2 @@ 'use strict';

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
var EventEmitter = /*#__PURE__*/function () {

@@ -293,238 +287,46 @@ function EventEmitter() {

this.events = new Map();
this._events = {};
}
_createClass__default['default'](EventEmitter, [{
key: "_addListener",
value: function _addListener(eventName, listener, prepend) {
this.emit("newListener", eventName, listener);
if (this.events.has(eventName)) {
var listeners = this.events.get(eventName);
if (prepend) {
listeners.unshift(listener);
} else {
listeners.push(listener);
}
} else {
this.events.set(eventName, [listener]);
}
var max = this.getMaxListeners();
if (max > 0 && this.listenerCount(eventName) > max) {
var warning = new Error("Possible EventEmitter memory leak detected.\n ".concat(this.listenerCount(eventName), " ").concat(eventName.toString(), " listeners.\n Use emitter.setMaxListeners() to increase limit"));
warning.name = "MaxListenersExceededWarning";
console.warn(warning);
}
return this;
}
}, {
key: "addListener",
value: function addListener(eventName, listener) {
return this._addListener(eventName, listener, false);
}
}, {
key: "emit",
value: function emit(eventName) {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
if (this.events.has(eventName)) {
var listeners = this.events.get(eventName).slice(); // We copy with slice() so array is not mutated during emit
var _iterator = _createForOfIteratorHelper(listeners),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var listener = _step.value;
try {
listener.apply(this, args);
} catch (err) {
this.emit("error", err);
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return true;
} else if (eventName === "error") {
var errMsg = args.length > 0 ? args[0] : Error("Unhandled error.");
throw errMsg;
}
return false;
}
}, {
key: "eventNames",
value: function eventNames() {
return Array.from(this.events.keys());
}
}, {
key: "getMaxListeners",
value: function getMaxListeners() {
return this.maxListeners || EventEmitter.defaultMaxListeners;
}
}, {
key: "listenerCount",
value: function listenerCount(eventName) {
if (this.events.has(eventName)) {
return this.events.get(eventName).length;
} else {
return 0;
}
}
}, {
key: "_listeners",
value: function _listeners(target, eventName, unwrap) {
if (!target.events.has(eventName)) {
return [];
}
var eventListeners = target.events.get(eventName);
return unwrap ? this.unwrapListeners(eventListeners) : eventListeners.slice(0);
}
}, {
key: "unwrapListeners",
value: function unwrapListeners(arr) {
var unwrappedListeners = new Array(arr.length);
for (var i = 0; i < arr.length; i++) {
unwrappedListeners[i] = arr[i]["listener"] || arr[i];
}
return unwrappedListeners;
}
}, {
key: "listeners",
value: function listeners(eventName) {
return this._listeners(this, eventName, true);
}
}, {
key: "rawListeners",
value: function rawListeners(eventName) {
return this._listeners(this, eventName, false);
}
}, {
key: "off",
value: function off(eventName, listener) {
return this.removeListener(eventName, listener);
}
}, {
key: "on",
value: function on(eventName, listener) {
return this.addListener(eventName, listener);
}
}, {
key: "once",
value: function once(eventName, listener) {
var wrapped = this.onceWrap(eventName, listener);
this.on(eventName, wrapped);
return this;
} // Wrapped function that calls EventEmitter.removeListener(eventName, self) on execution.
value: function on(event, listener) {
var _this = this;
}, {
key: "onceWrap",
value: function onceWrap(eventName, listener) {
var wrapper = function wrapper() // eslint-disable-line @typescript-eslint/no-explicit-any
{
this.context.removeListener(this.eventName, this.rawListener);
if (!this._hasEvent(event)) this._events[event] = [];
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
this._events[event].push(listener);
this.listener.apply(this.context, args);
return function () {
return _this.removeListener(event, listener);
};
var wrapperContext = {
eventName: eventName,
listener: listener,
rawListener: wrapper,
context: this
};
var wrapped = wrapper.bind(wrapperContext);
wrapperContext.rawListener = wrapped;
wrapped.listener = listener;
return wrapped;
}
}, {
key: "prependListener",
value: function prependListener(eventName, listener) {
return this._addListener(eventName, listener, true);
}
}, {
key: "prependOnceListener",
value: function prependOnceListener(eventName, listener) {
var wrapped = this.onceWrap(eventName, listener);
this.prependListener(eventName, wrapped);
return this;
}
}, {
key: "removeAllListeners",
value: function removeAllListeners(eventName) {
var _this = this;
key: "removeListener",
value: function removeListener(event, listener) {
if (!this._hasEvent(event)) return;
if (this.events === undefined) {
return this;
}
var index = this._events[event].indexOf(listener);
if (eventName && this.events.has(eventName)) {
var listeners = this.events.get(eventName).slice(); // Create a copy; We use it AFTER it's deleted.
this.events.delete(eventName);
var _iterator2 = _createForOfIteratorHelper(listeners),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var listener = _step2.value;
this.emit("removeListener", eventName, listener);
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
} else {
var eventList = this.eventNames();
eventList.map(function (value) {
_this.removeAllListeners(value);
});
}
return this;
if (~index) this._events[event].splice(index, 1);
}
}, {
key: "removeListener",
value: function removeListener(eventName, listener) {
if (this.events.has(eventName)) {
var arr = this.events.get(eventName);
key: "emit",
value: function emit(event) {
var _this2 = this;
if (arr.indexOf(listener) !== -1) {
arr.splice(arr.indexOf(listener), 1);
this.emit("removeListener", eventName, listener);
if (arr.length === 0) {
this.events.delete(eventName);
}
}
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return this;
if (!this._hasEvent(event)) return;
this._events[event].map(function (listener) {
return listener.apply(_this2, args);
});
}
}, {
key: "setMaxListeners",
value: function setMaxListeners(n) {
this.maxListeners = n;
return this;
key: "_hasEvent",
value: function _hasEvent(event) {
return Array.isArray(this._events[event]);
}

@@ -535,3 +337,2 @@ }]);

}();
EventEmitter.defaultMaxListeners = 10;

@@ -538,0 +339,0 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }

2

cjs/core.production.min.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),i=require("@babel/runtime/helpers/slicedToArray"),s=require("@babel/runtime/helpers/objectWithoutProperties");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),u=l(t),c=l(r),f=l(n),h=l(a),v=l(i),d=l(s),m=function(e){return"string"==typeof e},y=function(e){return"function"==typeof e},g=new Map,p=new Map;function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(m(n)&&(n=new Date(n)),r){var a=_(e,t),i=p.get(a);if(i)return i.format(n);var s=new Intl.DateTimeFormat(e,t);return p.set(a,s),s.format(n)}var l=new Intl.DateTimeFormat(e,t);return l.format(n)}}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(r){var a=_(e,t),i=g.get(a);if(i)return i.format(n);var s=new Intl.NumberFormat(e,t);return g.set(a,s),s.format(n)}var l=new Intl.NumberFormat(e,t);return l.format(n)}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e.sort().join("-"):e;return"".concat(r,"-").concat(JSON.stringify(t))}var L=Object.freeze({__proto__:null,date:b,number:k});function w(e){var t=e.locale,r=e.locales,n=e.values,a=e.formats,i=e.localeData,s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var a=r.plurals,i=function(e){return m(e)?n[e]||{style:e}:e},s=function(e,r){return function(n){var a=y(r)?r(n):r,i=Array.isArray(a)?a:[a],s=k(t)(e);return i.map((function(e){return m(e)?e.replace("#",s):e}))}};return a||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var r=t.offset,n=void 0===r?0:r,i=d.default(t,["offset"]),l=i[e]||i[null==a?void 0:a(e-n)]||i.other;return s(e-n,l)},selectordinal:function(e,t){var r=t.offset,n=void 0===r?0:r,i=d.default(t,["offset"]),l=i[e]||i[null==a?void 0:a(e-n,!0)]||i.other;return s(e-n,l)},select:function(e,t){return t[e]||t.other},number:function(e,r){return k(t,i(r))(e)},date:function(e,r){return b(t,i(r))(e)},undefined:function(e){return e}}}(t,r,i,a);return function e(t,r,a){var i=n[t],l=s[r](i,a),o=y(l)?l(e):l;return Array.isArray(o)?o.join(""):o}}function A(e,t,r,n){return function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=w({locale:t,locales:r,localeData:n,formats:i,values:a}),l=function e(t){return Array.isArray(t)?t.reduce((function(t,r){if(m(r))return t+r;var n=v.default(r,3),a=n[0],i=n[1],l=n[2],o={};null==l||m(l)?o=l:Object.keys(l).forEach((function(t){o[t]=e(l[t])}));var u=s(a,i,o);return null==u?t:t+u}),""):t},o=l(e);return m(o)&&/\\u[a-fA-F0-9]{4}/g.test(o)?JSON.parse('"'.concat(o.trim(),'"')):m(o)?o.trim():o}}function x(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=function(){function e(){o.default(this,e),this.events=new Map}return u.default(e,[{key:"_addListener",value:function(e,t,r){if(this.emit("newListener",e,t),this.events.has(e)){var n=this.events.get(e);r?n.unshift(t):n.push(t)}else this.events.set(e,[t]);var a=this.getMaxListeners();if(a>0&&this.listenerCount(e)>a){var i=new Error("Possible EventEmitter memory leak detected.\n ".concat(this.listenerCount(e)," ").concat(e.toString()," listeners.\n Use emitter.setMaxListeners() to increase limit"));i.name="MaxListenersExceededWarning",console.warn(i)}return this}},{key:"addListener",value:function(e,t){return this._addListener(e,t,!1)}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.events.has(e)){var a,i=this.events.get(e).slice(),s=x(i);try{for(s.s();!(a=s.n()).done;){var l=a.value;try{l.apply(this,r)}catch(e){this.emit("error",e)}}}catch(e){s.e(e)}finally{s.f()}return!0}if("error"===e){var o=r.length>0?r[0]:Error("Unhandled error.");throw o}return!1}},{key:"eventNames",value:function(){return Array.from(this.events.keys())}},{key:"getMaxListeners",value:function(){return this.maxListeners||e.defaultMaxListeners}},{key:"listenerCount",value:function(e){return this.events.has(e)?this.events.get(e).length:0}},{key:"_listeners",value:function(e,t,r){if(!e.events.has(t))return[];var n=e.events.get(t);return r?this.unwrapListeners(n):n.slice(0)}},{key:"unwrapListeners",value:function(e){for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e[r].listener||e[r];return t}},{key:"listeners",value:function(e){return this._listeners(this,e,!0)}},{key:"rawListeners",value:function(e){return this._listeners(this,e,!1)}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"once",value:function(e,t){var r=this.onceWrap(e,t);return this.on(e,r),this}},{key:"onceWrap",value:function(e,t){var r=function(){this.context.removeListener(this.eventName,this.rawListener);for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.listener.apply(this.context,t)},n={eventName:e,listener:t,rawListener:r,context:this},a=r.bind(n);return n.rawListener=a,a.listener=t,a}},{key:"prependListener",value:function(e,t){return this._addListener(e,t,!0)}},{key:"prependOnceListener",value:function(e,t){var r=this.onceWrap(e,t);return this.prependListener(e,r),this}},{key:"removeAllListeners",value:function(e){var t=this;if(void 0===this.events)return this;if(e&&this.events.has(e)){var r=this.events.get(e).slice();this.events.delete(e);var n,a=x(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;this.emit("removeListener",e,i)}}catch(e){a.e(e)}finally{a.f()}}else{var s=this.eventNames();s.map((function(e){t.removeAllListeners(e)}))}return this}},{key:"removeListener",value:function(e,t){if(this.events.has(e)){var r=this.events.get(e);-1!==r.indexOf(t)&&(r.splice(r.indexOf(t),1),this.emit("removeListener",e,t),0===r.length&&this.events.delete(e))}return this}},{key:"setMaxListeners",value:function(e){return this.maxListeners=e,this}}]),e}();function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h.default(e);if(t){var a=h.default(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f.default(this,r)}}O.defaultMaxListeners=10;var M=function(e){c.default(r,e);var t=j(r);function r(e){var n;return o.default(this,r),n=t.call(this),n._messages={},n._localeData={},null!=e.missing&&(n._missing=e.missing),null!=e.messages&&n.load(e.messages),null!=e.localeData&&n.loadLocaleData(e.localeData),null==e.locale&&null==e.locales||n.activate(e.locale,e.locales),n}return u.default(r,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var r=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return r._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var r=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return r._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.message,a=r.formats;m(e)||(t=e.values||t,n=e.message,e=e.id);var i=this.messages[e]||n||e,s=this._missing;return s&&!this.messages[e]?y(s)?s(this.locale,e):s:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),m(i)&&/\\u[a-fA-F0-9]{4}/g.test(i)?JSON.parse('"'.concat(i,'"')):m(i)?i:A(i,this.locale,this.locales,this.localeData)(t,a))}},{key:"date",value:function(e,t){return b(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return k(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),r}(O);function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new M(e)}var E=S();exports.I18n=M,exports.formats=L,exports.i18n=E,exports.setupI18n=S;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),l=require("@babel/runtime/helpers/slicedToArray"),o=require("@babel/runtime/helpers/objectWithoutProperties");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),u=i(t),c=i(r),f=i(n),h=i(a),v=i(l),d=i(o),m=function(e){return"string"==typeof e},g=function(e){return"function"==typeof e},y=new Map,p=new Map;function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(m(n)&&(n=new Date(n)),r){var a=D(e,t),l=p.get(a);if(l)return l.format(n);var o=new Intl.DateTimeFormat(e,t);return p.set(a,o),o.format(n)}var i=new Intl.DateTimeFormat(e,t);return i.format(n)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(r){var a=D(e,t),l=y.get(a);if(l)return l.format(n);var o=new Intl.NumberFormat(e,t);return y.set(a,o),o.format(n)}var i=new Intl.NumberFormat(e,t);return i.format(n)}}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e.sort().join("-"):e;return"".concat(r,"-").concat(JSON.stringify(t))}var k=Object.freeze({__proto__:null,date:_,number:b});function A(e){var t=e.locale,r=e.locales,n=e.values,a=e.formats,l=e.localeData,o=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var a=r.plurals,l=function(e){return m(e)?n[e]||{style:e}:e},o=function(e,r){return function(n){var a=g(r)?r(n):r,l=Array.isArray(a)?a:[a],o=b(t)(e);return l.map((function(e){return m(e)?e.replace("#",o):e}))}};return a||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var r=t.offset,n=void 0===r?0:r,l=d.default(t,["offset"]),i=l[e]||l[null==a?void 0:a(e-n)]||l.other;return o(e-n,i)},selectordinal:function(e,t){var r=t.offset,n=void 0===r?0:r,l=d.default(t,["offset"]),i=l[e]||l[null==a?void 0:a(e-n,!0)]||l.other;return o(e-n,i)},select:function(e,t){return t[e]||t.other},number:function(e,r){return b(t,l(r))(e)},date:function(e,r){return _(t,l(r))(e)},undefined:function(e){return e}}}(t,r,l,a);return function e(t,r,a){var l=n[t],i=o[r](l,a),s=g(i)?i(e):i;return Array.isArray(s)?s.join(""):s}}function O(e,t,r,n){return function(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=A({locale:t,locales:r,localeData:n,formats:l,values:a}),i=function e(t){return Array.isArray(t)?t.reduce((function(t,r){if(m(r))return t+r;var n=v.default(r,3),a=n[0],l=n[1],i=n[2],s={};null==i||m(i)?s=i:Object.keys(i).forEach((function(t){s[t]=e(i[t])}));var u=o(a,l,s);return null==u?t:t+u}),""):t},s=i(e);return m(s)&&/\\u[a-fA-F0-9]{4}/g.test(s)?JSON.parse('"'.concat(s.trim(),'"')):m(s)?s.trim():s}}var j=function(){function e(){s.default(this,e),this._events={}}return u.default(e,[{key:"on",value:function(e,t){var r=this;return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),function(){return r.removeListener(e,t)}}},{key:"removeListener",value:function(e,t){if(this._hasEvent(e)){var r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this._hasEvent(e)&&this._events[e].map((function(e){return e.apply(t,n)}))}},{key:"_hasEvent",value:function(e){return Array.isArray(this._events[e])}}]),e}();function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h.default(e);if(t){var a=h.default(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f.default(this,r)}}var L=function(e){c.default(r,e);var t=w(r);function r(e){var n;return s.default(this,r),n=t.call(this),n._messages={},n._localeData={},null!=e.missing&&(n._missing=e.missing),null!=e.messages&&n.load(e.messages),null!=e.localeData&&n.loadLocaleData(e.localeData),null==e.locale&&null==e.locales||n.activate(e.locale,e.locales),n}return u.default(r,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var r=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return r._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var r=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return r._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.message,a=r.formats;m(e)||(t=e.values||t,n=e.message,e=e.id);var l=this.messages[e]||n||e,o=this._missing;return o&&!this.messages[e]?g(o)?o(this.locale,e):o:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),m(l)&&/\\u[a-fA-F0-9]{4}/g.test(l)?JSON.parse('"'.concat(l,'"')):m(l)?l:O(l,this.locale,this.locales,this.localeData)(t,a))}},{key:"date",value:function(e,t){return _(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return b(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),r}(j);function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new L(e)}var x=q();exports.I18n=L,exports.formats=k,exports.i18n=x,exports.setupI18n=q;
//# sourceMappingURL=core.production.min.js.map

@@ -282,8 +282,2 @@ 'use strict';

function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
var EventEmitter = /*#__PURE__*/function () {

@@ -293,238 +287,46 @@ function EventEmitter() {

this.events = new Map();
this._events = {};
}
_createClass__default['default'](EventEmitter, [{
key: "_addListener",
value: function _addListener(eventName, listener, prepend) {
this.emit("newListener", eventName, listener);
if (this.events.has(eventName)) {
var listeners = this.events.get(eventName);
if (prepend) {
listeners.unshift(listener);
} else {
listeners.push(listener);
}
} else {
this.events.set(eventName, [listener]);
}
var max = this.getMaxListeners();
if (max > 0 && this.listenerCount(eventName) > max) {
var warning = new Error("Possible EventEmitter memory leak detected.\n ".concat(this.listenerCount(eventName), " ").concat(eventName.toString(), " listeners.\n Use emitter.setMaxListeners() to increase limit"));
warning.name = "MaxListenersExceededWarning";
console.warn(warning);
}
return this;
}
}, {
key: "addListener",
value: function addListener(eventName, listener) {
return this._addListener(eventName, listener, false);
}
}, {
key: "emit",
value: function emit(eventName) {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
if (this.events.has(eventName)) {
var listeners = this.events.get(eventName).slice(); // We copy with slice() so array is not mutated during emit
var _iterator = _createForOfIteratorHelper(listeners),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var listener = _step.value;
try {
listener.apply(this, args);
} catch (err) {
this.emit("error", err);
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return true;
} else if (eventName === "error") {
var errMsg = args.length > 0 ? args[0] : Error("Unhandled error.");
throw errMsg;
}
return false;
}
}, {
key: "eventNames",
value: function eventNames() {
return Array.from(this.events.keys());
}
}, {
key: "getMaxListeners",
value: function getMaxListeners() {
return this.maxListeners || EventEmitter.defaultMaxListeners;
}
}, {
key: "listenerCount",
value: function listenerCount(eventName) {
if (this.events.has(eventName)) {
return this.events.get(eventName).length;
} else {
return 0;
}
}
}, {
key: "_listeners",
value: function _listeners(target, eventName, unwrap) {
if (!target.events.has(eventName)) {
return [];
}
var eventListeners = target.events.get(eventName);
return unwrap ? this.unwrapListeners(eventListeners) : eventListeners.slice(0);
}
}, {
key: "unwrapListeners",
value: function unwrapListeners(arr) {
var unwrappedListeners = new Array(arr.length);
for (var i = 0; i < arr.length; i++) {
unwrappedListeners[i] = arr[i]["listener"] || arr[i];
}
return unwrappedListeners;
}
}, {
key: "listeners",
value: function listeners(eventName) {
return this._listeners(this, eventName, true);
}
}, {
key: "rawListeners",
value: function rawListeners(eventName) {
return this._listeners(this, eventName, false);
}
}, {
key: "off",
value: function off(eventName, listener) {
return this.removeListener(eventName, listener);
}
}, {
key: "on",
value: function on(eventName, listener) {
return this.addListener(eventName, listener);
}
}, {
key: "once",
value: function once(eventName, listener) {
var wrapped = this.onceWrap(eventName, listener);
this.on(eventName, wrapped);
return this;
} // Wrapped function that calls EventEmitter.removeListener(eventName, self) on execution.
value: function on(event, listener) {
var _this = this;
}, {
key: "onceWrap",
value: function onceWrap(eventName, listener) {
var wrapper = function wrapper() // eslint-disable-line @typescript-eslint/no-explicit-any
{
this.context.removeListener(this.eventName, this.rawListener);
if (!this._hasEvent(event)) this._events[event] = [];
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
this._events[event].push(listener);
this.listener.apply(this.context, args);
return function () {
return _this.removeListener(event, listener);
};
var wrapperContext = {
eventName: eventName,
listener: listener,
rawListener: wrapper,
context: this
};
var wrapped = wrapper.bind(wrapperContext);
wrapperContext.rawListener = wrapped;
wrapped.listener = listener;
return wrapped;
}
}, {
key: "prependListener",
value: function prependListener(eventName, listener) {
return this._addListener(eventName, listener, true);
}
}, {
key: "prependOnceListener",
value: function prependOnceListener(eventName, listener) {
var wrapped = this.onceWrap(eventName, listener);
this.prependListener(eventName, wrapped);
return this;
}
}, {
key: "removeAllListeners",
value: function removeAllListeners(eventName) {
var _this = this;
key: "removeListener",
value: function removeListener(event, listener) {
if (!this._hasEvent(event)) return;
if (this.events === undefined) {
return this;
}
var index = this._events[event].indexOf(listener);
if (eventName && this.events.has(eventName)) {
var listeners = this.events.get(eventName).slice(); // Create a copy; We use it AFTER it's deleted.
this.events.delete(eventName);
var _iterator2 = _createForOfIteratorHelper(listeners),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var listener = _step2.value;
this.emit("removeListener", eventName, listener);
}
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
} else {
var eventList = this.eventNames();
eventList.map(function (value) {
_this.removeAllListeners(value);
});
}
return this;
if (~index) this._events[event].splice(index, 1);
}
}, {
key: "removeListener",
value: function removeListener(eventName, listener) {
if (this.events.has(eventName)) {
var arr = this.events.get(eventName);
key: "emit",
value: function emit(event) {
var _this2 = this;
if (arr.indexOf(listener) !== -1) {
arr.splice(arr.indexOf(listener), 1);
this.emit("removeListener", eventName, listener);
if (arr.length === 0) {
this.events.delete(eventName);
}
}
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return this;
if (!this._hasEvent(event)) return;
this._events[event].map(function (listener) {
return listener.apply(_this2, args);
});
}
}, {
key: "setMaxListeners",
value: function setMaxListeners(n) {
this.maxListeners = n;
return this;
key: "_hasEvent",
value: function _hasEvent(event) {
return Array.isArray(this._events[event]);
}

@@ -535,3 +337,2 @@ }]);

}();
EventEmitter.defaultMaxListeners = 10;

@@ -538,0 +339,0 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),i=require("@babel/runtime/helpers/slicedToArray"),s=require("@babel/runtime/helpers/objectWithoutProperties");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(e),u=l(t),c=l(r),f=l(n),h=l(a),v=l(i),d=l(s),m=function(e){return"string"==typeof e},y=function(e){return"function"==typeof e},g=new Map,p=new Map;function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(m(n)&&(n=new Date(n)),r){var a=_(e,t),i=p.get(a);if(i)return i.format(n);var s=new Intl.DateTimeFormat(e,t);return p.set(a,s),s.format(n)}var l=new Intl.DateTimeFormat(e,t);return l.format(n)}}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(r){var a=_(e,t),i=g.get(a);if(i)return i.format(n);var s=new Intl.NumberFormat(e,t);return g.set(a,s),s.format(n)}var l=new Intl.NumberFormat(e,t);return l.format(n)}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e.sort().join("-"):e;return"".concat(r,"-").concat(JSON.stringify(t))}var L=Object.freeze({__proto__:null,date:b,number:k});function w(e){var t=e.locale,r=e.locales,n=e.values,a=e.formats,i=e.localeData,s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var a=r.plurals,i=function(e){return m(e)?n[e]||{style:e}:e},s=function(e,r){return function(n){var a=y(r)?r(n):r,i=Array.isArray(a)?a:[a],s=k(t)(e);return i.map((function(e){return m(e)?e.replace("#",s):e}))}};return a||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var r=t.offset,n=void 0===r?0:r,i=d.default(t,["offset"]),l=i[e]||i[null==a?void 0:a(e-n)]||i.other;return s(e-n,l)},selectordinal:function(e,t){var r=t.offset,n=void 0===r?0:r,i=d.default(t,["offset"]),l=i[e]||i[null==a?void 0:a(e-n,!0)]||i.other;return s(e-n,l)},select:function(e,t){return t[e]||t.other},number:function(e,r){return k(t,i(r))(e)},date:function(e,r){return b(t,i(r))(e)},undefined:function(e){return e}}}(t,r,i,a);return function e(t,r,a){var i=n[t],l=s[r](i,a),o=y(l)?l(e):l;return Array.isArray(o)?o.join(""):o}}function A(e,t,r,n){return function(a){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=w({locale:t,locales:r,localeData:n,formats:i,values:a}),l=function e(t){return Array.isArray(t)?t.reduce((function(t,r){if(m(r))return t+r;var n=v.default(r,3),a=n[0],i=n[1],l=n[2],o={};null==l||m(l)?o=l:Object.keys(l).forEach((function(t){o[t]=e(l[t])}));var u=s(a,i,o);return null==u?t:t+u}),""):t},o=l(e);return m(o)&&/\\u[a-fA-F0-9]{4}/g.test(o)?JSON.parse('"'.concat(o.trim(),'"')):m(o)?o.trim():o}}function x(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=function(){function e(){o.default(this,e),this.events=new Map}return u.default(e,[{key:"_addListener",value:function(e,t,r){if(this.emit("newListener",e,t),this.events.has(e)){var n=this.events.get(e);r?n.unshift(t):n.push(t)}else this.events.set(e,[t]);var a=this.getMaxListeners();if(a>0&&this.listenerCount(e)>a){var i=new Error("Possible EventEmitter memory leak detected.\n ".concat(this.listenerCount(e)," ").concat(e.toString()," listeners.\n Use emitter.setMaxListeners() to increase limit"));i.name="MaxListenersExceededWarning",console.warn(i)}return this}},{key:"addListener",value:function(e,t){return this._addListener(e,t,!1)}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.events.has(e)){var a,i=this.events.get(e).slice(),s=x(i);try{for(s.s();!(a=s.n()).done;){var l=a.value;try{l.apply(this,r)}catch(e){this.emit("error",e)}}}catch(e){s.e(e)}finally{s.f()}return!0}if("error"===e){var o=r.length>0?r[0]:Error("Unhandled error.");throw o}return!1}},{key:"eventNames",value:function(){return Array.from(this.events.keys())}},{key:"getMaxListeners",value:function(){return this.maxListeners||e.defaultMaxListeners}},{key:"listenerCount",value:function(e){return this.events.has(e)?this.events.get(e).length:0}},{key:"_listeners",value:function(e,t,r){if(!e.events.has(t))return[];var n=e.events.get(t);return r?this.unwrapListeners(n):n.slice(0)}},{key:"unwrapListeners",value:function(e){for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e[r].listener||e[r];return t}},{key:"listeners",value:function(e){return this._listeners(this,e,!0)}},{key:"rawListeners",value:function(e){return this._listeners(this,e,!1)}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"once",value:function(e,t){var r=this.onceWrap(e,t);return this.on(e,r),this}},{key:"onceWrap",value:function(e,t){var r=function(){this.context.removeListener(this.eventName,this.rawListener);for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.listener.apply(this.context,t)},n={eventName:e,listener:t,rawListener:r,context:this},a=r.bind(n);return n.rawListener=a,a.listener=t,a}},{key:"prependListener",value:function(e,t){return this._addListener(e,t,!0)}},{key:"prependOnceListener",value:function(e,t){var r=this.onceWrap(e,t);return this.prependListener(e,r),this}},{key:"removeAllListeners",value:function(e){var t=this;if(void 0===this.events)return this;if(e&&this.events.has(e)){var r=this.events.get(e).slice();this.events.delete(e);var n,a=x(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;this.emit("removeListener",e,i)}}catch(e){a.e(e)}finally{a.f()}}else{var s=this.eventNames();s.map((function(e){t.removeAllListeners(e)}))}return this}},{key:"removeListener",value:function(e,t){if(this.events.has(e)){var r=this.events.get(e);-1!==r.indexOf(t)&&(r.splice(r.indexOf(t),1),this.emit("removeListener",e,t),0===r.length&&this.events.delete(e))}return this}},{key:"setMaxListeners",value:function(e){return this.maxListeners=e,this}}]),e}();function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h.default(e);if(t){var a=h.default(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f.default(this,r)}}O.defaultMaxListeners=10;var M=function(e){c.default(r,e);var t=j(r);function r(e){var n;return o.default(this,r),n=t.call(this),n._messages={},n._localeData={},null!=e.missing&&(n._missing=e.missing),null!=e.messages&&n.load(e.messages),null!=e.localeData&&n.loadLocaleData(e.localeData),null==e.locale&&null==e.locales||n.activate(e.locale,e.locales),n}return u.default(r,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var r=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return r._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var r=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return r._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.message,a=r.formats;m(e)||(t=e.values||t,n=e.message,e=e.id);var i=this.messages[e]||n||e,s=this._missing;return s&&!this.messages[e]?y(s)?s(this.locale,e):s:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),m(i)&&/\\u[a-fA-F0-9]{4}/g.test(i)?JSON.parse('"'.concat(i,'"')):m(i)?i:A(i,this.locale,this.locales,this.localeData)(t,a))}},{key:"date",value:function(e,t){return b(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return k(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),r}(O);function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new M(e)}var E=S();exports.I18n=M,exports.formats=L,exports.i18n=E,exports.setupI18n=S;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),r=require("@babel/runtime/helpers/inherits"),n=require("@babel/runtime/helpers/possibleConstructorReturn"),a=require("@babel/runtime/helpers/getPrototypeOf"),l=require("@babel/runtime/helpers/slicedToArray"),o=require("@babel/runtime/helpers/objectWithoutProperties");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),u=i(t),c=i(r),f=i(n),h=i(a),v=i(l),d=i(o),m=function(e){return"string"==typeof e},g=function(e){return"function"==typeof e},y=new Map,p=new Map;function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(m(n)&&(n=new Date(n)),r){var a=D(e,t),l=p.get(a);if(l)return l.format(n);var o=new Intl.DateTimeFormat(e,t);return p.set(a,o),o.format(n)}var i=new Intl.DateTimeFormat(e,t);return i.format(n)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(r){var a=D(e,t),l=y.get(a);if(l)return l.format(n);var o=new Intl.NumberFormat(e,t);return y.set(a,o),o.format(n)}var i=new Intl.NumberFormat(e,t);return i.format(n)}}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e.sort().join("-"):e;return"".concat(r,"-").concat(JSON.stringify(t))}var k=Object.freeze({__proto__:null,date:_,number:b});function A(e){var t=e.locale,r=e.locales,n=e.values,a=e.formats,l=e.localeData,o=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var a=r.plurals,l=function(e){return m(e)?n[e]||{style:e}:e},o=function(e,r){return function(n){var a=g(r)?r(n):r,l=Array.isArray(a)?a:[a],o=b(t)(e);return l.map((function(e){return m(e)?e.replace("#",o):e}))}};return a||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var r=t.offset,n=void 0===r?0:r,l=d.default(t,["offset"]),i=l[e]||l[null==a?void 0:a(e-n)]||l.other;return o(e-n,i)},selectordinal:function(e,t){var r=t.offset,n=void 0===r?0:r,l=d.default(t,["offset"]),i=l[e]||l[null==a?void 0:a(e-n,!0)]||l.other;return o(e-n,i)},select:function(e,t){return t[e]||t.other},number:function(e,r){return b(t,l(r))(e)},date:function(e,r){return _(t,l(r))(e)},undefined:function(e){return e}}}(t,r,l,a);return function e(t,r,a){var l=n[t],i=o[r](l,a),s=g(i)?i(e):i;return Array.isArray(s)?s.join(""):s}}function O(e,t,r,n){return function(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=A({locale:t,locales:r,localeData:n,formats:l,values:a}),i=function e(t){return Array.isArray(t)?t.reduce((function(t,r){if(m(r))return t+r;var n=v.default(r,3),a=n[0],l=n[1],i=n[2],s={};null==i||m(i)?s=i:Object.keys(i).forEach((function(t){s[t]=e(i[t])}));var u=o(a,l,s);return null==u?t:t+u}),""):t},s=i(e);return m(s)&&/\\u[a-fA-F0-9]{4}/g.test(s)?JSON.parse('"'.concat(s.trim(),'"')):m(s)?s.trim():s}}var j=function(){function e(){s.default(this,e),this._events={}}return u.default(e,[{key:"on",value:function(e,t){var r=this;return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),function(){return r.removeListener(e,t)}}},{key:"removeListener",value:function(e,t){if(this._hasEvent(e)){var r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this._hasEvent(e)&&this._events[e].map((function(e){return e.apply(t,n)}))}},{key:"_hasEvent",value:function(e){return Array.isArray(this._events[e])}}]),e}();function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h.default(e);if(t){var a=h.default(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return f.default(this,r)}}var L=function(e){c.default(r,e);var t=w(r);function r(e){var n;return s.default(this,r),n=t.call(this),n._messages={},n._localeData={},null!=e.missing&&(n._missing=e.missing),null!=e.messages&&n.load(e.messages),null!=e.localeData&&n.loadLocaleData(e.localeData),null==e.locale&&null==e.locales||n.activate(e.locale,e.locales),n}return u.default(r,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var r=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return r._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var r=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return r._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.message,a=r.formats;m(e)||(t=e.values||t,n=e.message,e=e.id);var l=this.messages[e]||n||e,o=this._missing;return o&&!this.messages[e]?g(o)?o(this.locale,e):o:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),m(l)&&/\\u[a-fA-F0-9]{4}/g.test(l)?JSON.parse('"'.concat(l,'"')):m(l)?l:O(l,this.locale,this.locales,this.localeData)(t,a))}},{key:"date",value:function(e,t){return _(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return b(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),r}(j);function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new L(e)}var x=q();exports.I18n=L,exports.formats=k,exports.i18n=x,exports.setupI18n=q;
//# sourceMappingURL=dev.production.min.js.map

@@ -1,30 +0,10 @@

declare type ListenerFunction = {
listener?: Function;
} & Function;
export declare class EventEmitter {
static defaultMaxListeners: number;
maxListeners: number | undefined;
events: Map<string | symbol, Function[]>;
constructor();
_addListener(eventName: string | symbol, listener: Function, prepend: boolean): this;
addListener(eventName: string | symbol, listener: Function): this;
emit(eventName: string | symbol, ...args: any[]): boolean;
eventNames(): [string | symbol];
getMaxListeners(): number;
listenerCount(eventName: string | symbol): number;
_listeners(target: EventEmitter, eventName: string | symbol, unwrap: boolean): Function[];
unwrapListeners(arr: ListenerFunction[]): Function[];
listeners(eventName: string | symbol): Function[];
rawListeners(eventName: string | symbol): Function[];
off(eventName: string | symbol, listener: Function): this;
on(eventName: string | symbol, listener: Function): this;
once(eventName: string | symbol, listener: Function): this;
onceWrap(eventName: string | symbol, listener: Function): Function;
prependListener(eventName: string | symbol, listener: Function): this;
prependOnceListener(eventName: string | symbol, listener: Function): this;
removeAllListeners(eventName?: string | symbol): this;
removeListener(eventName: string | symbol, listener: Function): this;
setMaxListeners(n: number): this;
export declare class EventEmitter<Events extends {
[name: string]: (...args: any[]) => any;
}> {
private readonly _events;
on(event: keyof Events, listener: Events[typeof event]): () => void;
removeListener(event: keyof Events, listener: Events[typeof event]): void;
emit(event: keyof Events, ...args: Parameters<Events[typeof event]>): void;
private _hasEvent;
}
export {};
//# sourceMappingURL=eventEmitter.d.ts.map

@@ -32,3 +32,7 @@ import { EventEmitter } from "./eventEmitter";

};
export declare class I18n extends EventEmitter {
declare type Events = {
change: () => void;
missing: (event: MissingMessageEvent) => void;
};
export declare class I18n extends EventEmitter<Events> {
_locale: Locale;

@@ -35,0 +39,0 @@ _locales: Locales;

@@ -1,2 +0,2 @@

import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/objectWithoutProperties";var o=function(e){return"string"==typeof e},l=function(e){return"function"==typeof e},u=new Map,c=new Map;function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){if(o(r)&&(r=new Date(r)),n){var i=v(e,t),a=c.get(i);if(a)return a.format(r);var s=new Intl.DateTimeFormat(e,t);return c.set(i,s),s.format(r)}var l=new Intl.DateTimeFormat(e,t);return l.format(r)}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){if(n){var i=v(e,t),a=u.get(i);if(a)return a.format(r);var s=new Intl.NumberFormat(e,t);return u.set(i,s),s.format(r)}var o=new Intl.NumberFormat(e,t);return o.format(r)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e.sort().join("-"):e;return"".concat(n,"-").concat(JSON.stringify(t))}var m=Object.freeze({__proto__:null,date:f,number:h});function y(e){var t=e.locale,n=e.locales,r=e.values,i=e.formats,a=e.localeData,u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var i=n.plurals,a=function(e){return o(e)?r[e]||{style:e}:e},u=function(e,n){return function(r){var i=l(n)?n(r):n,a=Array.isArray(i)?i:[i],s=h(t)(e);return a.map((function(e){return o(e)?e.replace("#",s):e}))}};return i||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var n=t.offset,r=void 0===n?0:n,a=s(t,["offset"]),o=a[e]||a[null==i?void 0:i(e-r)]||a.other;return u(e-r,o)},selectordinal:function(e,t){var n=t.offset,r=void 0===n?0:n,a=s(t,["offset"]),o=a[e]||a[null==i?void 0:i(e-r,!0)]||a.other;return u(e-r,o)},select:function(e,t){return t[e]||t.other},number:function(e,n){return h(t,a(n))(e)},date:function(e,n){return f(t,a(n))(e)},undefined:function(e){return e}}}(t,n,a,i);return function e(t,n,i){var a=r[t],s=u[n](a,i),o=l(s)?s(e):s;return Array.isArray(o)?o.join(""):o}}function d(e,t,n,r){return function(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=y({locale:t,locales:n,localeData:r,formats:s,values:i}),u=function e(t){return Array.isArray(t)?t.reduce((function(t,n){if(o(n))return t+n;var r=a(n,3),i=r[0],s=r[1],u=r[2],c={};null==u||o(u)?c=u:Object.keys(u).forEach((function(t){c[t]=e(u[t])}));var f=l(i,s,c);return null==f?t:t+f}),""):t},c=u(e);return o(c)&&/\\u[a-fA-F0-9]{4}/g.test(c)?JSON.parse('"'.concat(c.trim(),'"')):o(c)?c.trim():c}}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=function(){function n(){e(this,n),this.events=new Map}return t(n,[{key:"_addListener",value:function(e,t,n){if(this.emit("newListener",e,t),this.events.has(e)){var r=this.events.get(e);n?r.unshift(t):r.push(t)}else this.events.set(e,[t]);var i=this.getMaxListeners();if(i>0&&this.listenerCount(e)>i){var a=new Error("Possible EventEmitter memory leak detected.\n ".concat(this.listenerCount(e)," ").concat(e.toString()," listeners.\n Use emitter.setMaxListeners() to increase limit"));a.name="MaxListenersExceededWarning",console.warn(a)}return this}},{key:"addListener",value:function(e,t){return this._addListener(e,t,!1)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.events.has(e)){var i,a=this.events.get(e).slice(),s=g(a);try{for(s.s();!(i=s.n()).done;){var o=i.value;try{o.apply(this,n)}catch(e){this.emit("error",e)}}}catch(e){s.e(e)}finally{s.f()}return!0}if("error"===e){var l=n.length>0?n[0]:Error("Unhandled error.");throw l}return!1}},{key:"eventNames",value:function(){return Array.from(this.events.keys())}},{key:"getMaxListeners",value:function(){return this.maxListeners||n.defaultMaxListeners}},{key:"listenerCount",value:function(e){return this.events.has(e)?this.events.get(e).length:0}},{key:"_listeners",value:function(e,t,n){if(!e.events.has(t))return[];var r=e.events.get(t);return n?this.unwrapListeners(r):r.slice(0)}},{key:"unwrapListeners",value:function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n].listener||e[n];return t}},{key:"listeners",value:function(e){return this._listeners(this,e,!0)}},{key:"rawListeners",value:function(e){return this._listeners(this,e,!1)}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"once",value:function(e,t){var n=this.onceWrap(e,t);return this.on(e,n),this}},{key:"onceWrap",value:function(e,t){var n=function(){this.context.removeListener(this.eventName,this.rawListener);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.listener.apply(this.context,t)},r={eventName:e,listener:t,rawListener:n,context:this},i=n.bind(r);return r.rawListener=i,i.listener=t,i}},{key:"prependListener",value:function(e,t){return this._addListener(e,t,!0)}},{key:"prependOnceListener",value:function(e,t){var n=this.onceWrap(e,t);return this.prependListener(e,n),this}},{key:"removeAllListeners",value:function(e){var t=this;if(void 0===this.events)return this;if(e&&this.events.has(e)){var n=this.events.get(e).slice();this.events.delete(e);var r,i=g(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.emit("removeListener",e,a)}}catch(e){i.e(e)}finally{i.f()}}else{var s=this.eventNames();s.map((function(e){t.removeAllListeners(e)}))}return this}},{key:"removeListener",value:function(e,t){if(this.events.has(e)){var n=this.events.get(e);-1!==n.indexOf(t)&&(n.splice(n.indexOf(t),1),this.emit("removeListener",e,t),0===n.length&&this.events.delete(e))}return this}},{key:"setMaxListeners",value:function(e){return this.maxListeners=e,this}}]),n}();function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=i(e);if(t){var s=i(this).constructor;n=Reflect.construct(a,arguments,s)}else n=a.apply(this,arguments);return r(this,n)}}b.defaultMaxListeners=10;var L=function(r){n(a,r);var i=k(a);function a(t){var n;return e(this,a),n=i.call(this),n._messages={},n._localeData={},null!=t.missing&&(n._missing=t.missing),null!=t.messages&&n.load(t.messages),null!=t.localeData&&n.loadLocaleData(t.localeData),null==t.locale&&null==t.locales||n.activate(t.locale,t.locales),n}return t(a,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var n=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return n._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var n=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return n._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.message,i=n.formats;o(e)||(t=e.values||t,r=e.message,e=e.id);var a=this.messages[e]||r||e,s=this._missing;return s&&!this.messages[e]?l(s)?s(this.locale,e):s:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),o(a)&&/\\u[a-fA-F0-9]{4}/g.test(a)?JSON.parse('"'.concat(a,'"')):o(a)?a:d(a,this.locale,this.locales,this.localeData)(t,i))}},{key:"date",value:function(e,t){return f(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return h(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),a}(b);function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new L(e)}var w=_();export{L as I18n,m as formats,w as i18n,_ as setupI18n};
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/slicedToArray";import l from"@babel/runtime/helpers/objectWithoutProperties";var i=function(e){return"string"==typeof e},s=function(e){return"function"==typeof e},u=new Map,c=new Map;function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(i(n)&&(n=new Date(n)),r){var a=v(e,t),o=c.get(a);if(o)return o.format(n);var l=new Intl.DateTimeFormat(e,t);return c.set(a,l),l.format(n)}var s=new Intl.DateTimeFormat(e,t);return s.format(n)}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(r){var a=v(e,t),o=u.get(a);if(o)return o.format(n);var l=new Intl.NumberFormat(e,t);return u.set(a,l),l.format(n)}var i=new Intl.NumberFormat(e,t);return i.format(n)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e.sort().join("-"):e;return"".concat(r,"-").concat(JSON.stringify(t))}var m=Object.freeze({__proto__:null,date:f,number:h});function g(e){var t=e.locale,r=e.locales,n=e.values,a=e.formats,o=e.localeData,u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var a=r.plurals,o=function(e){return i(e)?n[e]||{style:e}:e},u=function(e,r){return function(n){var a=s(r)?r(n):r,o=Array.isArray(a)?a:[a],l=h(t)(e);return o.map((function(e){return i(e)?e.replace("#",l):e}))}};return a||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var r=t.offset,n=void 0===r?0:r,o=l(t,["offset"]),i=o[e]||o[null==a?void 0:a(e-n)]||o.other;return u(e-n,i)},selectordinal:function(e,t){var r=t.offset,n=void 0===r?0:r,o=l(t,["offset"]),i=o[e]||o[null==a?void 0:a(e-n,!0)]||o.other;return u(e-n,i)},select:function(e,t){return t[e]||t.other},number:function(e,r){return h(t,o(r))(e)},date:function(e,r){return f(t,o(r))(e)},undefined:function(e){return e}}}(t,r,o,a);return function e(t,r,a){var o=n[t],l=u[r](o,a),i=s(l)?l(e):l;return Array.isArray(i)?i.join(""):i}}function d(e,t,r,n){return function(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=g({locale:t,locales:r,localeData:n,formats:l,values:a}),u=function e(t){return Array.isArray(t)?t.reduce((function(t,r){if(i(r))return t+r;var n=o(r,3),a=n[0],l=n[1],u=n[2],c={};null==u||i(u)?c=u:Object.keys(u).forEach((function(t){c[t]=e(u[t])}));var f=s(a,l,c);return null==f?t:t+f}),""):t},c=u(e);return i(c)&&/\\u[a-fA-F0-9]{4}/g.test(c)?JSON.parse('"'.concat(c.trim(),'"')):i(c)?c.trim():c}}var p=function(){function r(){e(this,r),this._events={}}return t(r,[{key:"on",value:function(e,t){var r=this;return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),function(){return r.removeListener(e,t)}}},{key:"removeListener",value:function(e,t){if(this._hasEvent(e)){var r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this._hasEvent(e)&&this._events[e].map((function(e){return e.apply(t,n)}))}},{key:"_hasEvent",value:function(e){return Array.isArray(this._events[e])}}]),r}();function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);if(t){var l=a(this).constructor;r=Reflect.construct(o,arguments,l)}else r=o.apply(this,arguments);return n(this,r)}}var _=function(n){r(o,n);var a=y(o);function o(t){var r;return e(this,o),r=a.call(this),r._messages={},r._localeData={},null!=t.missing&&(r._missing=t.missing),null!=t.messages&&r.load(t.messages),null!=t.localeData&&r.loadLocaleData(t.localeData),null==t.locale&&null==t.locales||r.activate(t.locale,t.locales),r}return t(o,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var r=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return r._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var r=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return r._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.message,a=r.formats;i(e)||(t=e.values||t,n=e.message,e=e.id);var o=this.messages[e]||n||e,l=this._missing;return l&&!this.messages[e]?s(l)?l(this.locale,e):l:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),i(o)&&/\\u[a-fA-F0-9]{4}/g.test(o)?JSON.parse('"'.concat(o,'"')):i(o)?o:d(o,this.locale,this.locales,this.localeData)(t,a))}},{key:"date",value:function(e,t){return f(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return h(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),o}(p);function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _(e)}var D=b();export{_ as I18n,m as formats,D as i18n,b as setupI18n};
//# sourceMappingURL=core.esm.js.map

@@ -1,2 +0,2 @@

import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/objectWithoutProperties";var o=function(e){return"string"==typeof e},l=function(e){return"function"==typeof e},u=new Map,c=new Map;function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){if(o(r)&&(r=new Date(r)),n){var i=v(e,t),a=c.get(i);if(a)return a.format(r);var s=new Intl.DateTimeFormat(e,t);return c.set(i,s),s.format(r)}var l=new Intl.DateTimeFormat(e,t);return l.format(r)}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){if(n){var i=v(e,t),a=u.get(i);if(a)return a.format(r);var s=new Intl.NumberFormat(e,t);return u.set(i,s),s.format(r)}var o=new Intl.NumberFormat(e,t);return o.format(r)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e.sort().join("-"):e;return"".concat(n,"-").concat(JSON.stringify(t))}var m=Object.freeze({__proto__:null,date:f,number:h});function y(e){var t=e.locale,n=e.locales,r=e.values,i=e.formats,a=e.localeData,u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var i=n.plurals,a=function(e){return o(e)?r[e]||{style:e}:e},u=function(e,n){return function(r){var i=l(n)?n(r):n,a=Array.isArray(i)?i:[i],s=h(t)(e);return a.map((function(e){return o(e)?e.replace("#",s):e}))}};return i||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var n=t.offset,r=void 0===n?0:n,a=s(t,["offset"]),o=a[e]||a[null==i?void 0:i(e-r)]||a.other;return u(e-r,o)},selectordinal:function(e,t){var n=t.offset,r=void 0===n?0:n,a=s(t,["offset"]),o=a[e]||a[null==i?void 0:i(e-r,!0)]||a.other;return u(e-r,o)},select:function(e,t){return t[e]||t.other},number:function(e,n){return h(t,a(n))(e)},date:function(e,n){return f(t,a(n))(e)},undefined:function(e){return e}}}(t,n,a,i);return function e(t,n,i){var a=r[t],s=u[n](a,i),o=l(s)?s(e):s;return Array.isArray(o)?o.join(""):o}}function d(e,t,n,r){return function(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=y({locale:t,locales:n,localeData:r,formats:s,values:i}),u=function e(t){return Array.isArray(t)?t.reduce((function(t,n){if(o(n))return t+n;var r=a(n,3),i=r[0],s=r[1],u=r[2],c={};null==u||o(u)?c=u:Object.keys(u).forEach((function(t){c[t]=e(u[t])}));var f=l(i,s,c);return null==f?t:t+f}),""):t},c=u(e);return o(c)&&/\\u[a-fA-F0-9]{4}/g.test(c)?JSON.parse('"'.concat(c.trim(),'"')):o(c)?c.trim():c}}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=function(){function n(){e(this,n),this.events=new Map}return t(n,[{key:"_addListener",value:function(e,t,n){if(this.emit("newListener",e,t),this.events.has(e)){var r=this.events.get(e);n?r.unshift(t):r.push(t)}else this.events.set(e,[t]);var i=this.getMaxListeners();if(i>0&&this.listenerCount(e)>i){var a=new Error("Possible EventEmitter memory leak detected.\n ".concat(this.listenerCount(e)," ").concat(e.toString()," listeners.\n Use emitter.setMaxListeners() to increase limit"));a.name="MaxListenersExceededWarning",console.warn(a)}return this}},{key:"addListener",value:function(e,t){return this._addListener(e,t,!1)}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.events.has(e)){var i,a=this.events.get(e).slice(),s=g(a);try{for(s.s();!(i=s.n()).done;){var o=i.value;try{o.apply(this,n)}catch(e){this.emit("error",e)}}}catch(e){s.e(e)}finally{s.f()}return!0}if("error"===e){var l=n.length>0?n[0]:Error("Unhandled error.");throw l}return!1}},{key:"eventNames",value:function(){return Array.from(this.events.keys())}},{key:"getMaxListeners",value:function(){return this.maxListeners||n.defaultMaxListeners}},{key:"listenerCount",value:function(e){return this.events.has(e)?this.events.get(e).length:0}},{key:"_listeners",value:function(e,t,n){if(!e.events.has(t))return[];var r=e.events.get(t);return n?this.unwrapListeners(r):r.slice(0)}},{key:"unwrapListeners",value:function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n].listener||e[n];return t}},{key:"listeners",value:function(e){return this._listeners(this,e,!0)}},{key:"rawListeners",value:function(e){return this._listeners(this,e,!1)}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"once",value:function(e,t){var n=this.onceWrap(e,t);return this.on(e,n),this}},{key:"onceWrap",value:function(e,t){var n=function(){this.context.removeListener(this.eventName,this.rawListener);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.listener.apply(this.context,t)},r={eventName:e,listener:t,rawListener:n,context:this},i=n.bind(r);return r.rawListener=i,i.listener=t,i}},{key:"prependListener",value:function(e,t){return this._addListener(e,t,!0)}},{key:"prependOnceListener",value:function(e,t){var n=this.onceWrap(e,t);return this.prependListener(e,n),this}},{key:"removeAllListeners",value:function(e){var t=this;if(void 0===this.events)return this;if(e&&this.events.has(e)){var n=this.events.get(e).slice();this.events.delete(e);var r,i=g(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.emit("removeListener",e,a)}}catch(e){i.e(e)}finally{i.f()}}else{var s=this.eventNames();s.map((function(e){t.removeAllListeners(e)}))}return this}},{key:"removeListener",value:function(e,t){if(this.events.has(e)){var n=this.events.get(e);-1!==n.indexOf(t)&&(n.splice(n.indexOf(t),1),this.emit("removeListener",e,t),0===n.length&&this.events.delete(e))}return this}},{key:"setMaxListeners",value:function(e){return this.maxListeners=e,this}}]),n}();function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=i(e);if(t){var s=i(this).constructor;n=Reflect.construct(a,arguments,s)}else n=a.apply(this,arguments);return r(this,n)}}b.defaultMaxListeners=10;var L=function(r){n(a,r);var i=k(a);function a(t){var n;return e(this,a),n=i.call(this),n._messages={},n._localeData={},null!=t.missing&&(n._missing=t.missing),null!=t.messages&&n.load(t.messages),null!=t.localeData&&n.loadLocaleData(t.localeData),null==t.locale&&null==t.locales||n.activate(t.locale,t.locales),n}return t(a,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var n=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return n._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var n=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return n._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.message,i=n.formats;o(e)||(t=e.values||t,r=e.message,e=e.id);var a=this.messages[e]||r||e,s=this._missing;return s&&!this.messages[e]?l(s)?s(this.locale,e):s:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),o(a)&&/\\u[a-fA-F0-9]{4}/g.test(a)?JSON.parse('"'.concat(a,'"')):o(a)?a:d(a,this.locale,this.locales,this.localeData)(t,i))}},{key:"date",value:function(e,t){return f(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return h(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),a}(b);function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new L(e)}var w=_();export{L as I18n,m as formats,w as i18n,_ as setupI18n};
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import r from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/slicedToArray";import l from"@babel/runtime/helpers/objectWithoutProperties";var i=function(e){return"string"==typeof e},s=function(e){return"function"==typeof e},u=new Map,c=new Map;function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(i(n)&&(n=new Date(n)),r){var a=v(e,t),o=c.get(a);if(o)return o.format(n);var l=new Intl.DateTimeFormat(e,t);return c.set(a,l),l.format(n)}var s=new Intl.DateTimeFormat(e,t);return s.format(n)}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(n){if(r){var a=v(e,t),o=u.get(a);if(o)return o.format(n);var l=new Intl.NumberFormat(e,t);return u.set(a,l),l.format(n)}var i=new Intl.NumberFormat(e,t);return i.format(n)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e.sort().join("-"):e;return"".concat(r,"-").concat(JSON.stringify(t))}var m=Object.freeze({__proto__:null,date:f,number:h});function g(e){var t=e.locale,r=e.locales,n=e.values,a=e.formats,o=e.localeData,u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{plurals:void 0},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=t||e;var a=r.plurals,o=function(e){return i(e)?n[e]||{style:e}:e},u=function(e,r){return function(n){var a=s(r)?r(n):r,o=Array.isArray(a)?a:[a],l=h(t)(e);return o.map((function(e){return i(e)?e.replace("#",l):e}))}};return a||console.error("Plurals for locale ".concat(e," aren't loaded. Use i18n.loadLocaleData method to load plurals for specific locale. Using other plural rule as a fallback.")),{plural:function(e,t){var r=t.offset,n=void 0===r?0:r,o=l(t,["offset"]),i=o[e]||o[null==a?void 0:a(e-n)]||o.other;return u(e-n,i)},selectordinal:function(e,t){var r=t.offset,n=void 0===r?0:r,o=l(t,["offset"]),i=o[e]||o[null==a?void 0:a(e-n,!0)]||o.other;return u(e-n,i)},select:function(e,t){return t[e]||t.other},number:function(e,r){return h(t,o(r))(e)},date:function(e,r){return f(t,o(r))(e)},undefined:function(e){return e}}}(t,r,o,a);return function e(t,r,a){var o=n[t],l=u[r](o,a),i=s(l)?l(e):l;return Array.isArray(i)?i.join(""):i}}function d(e,t,r,n){return function(a){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=g({locale:t,locales:r,localeData:n,formats:l,values:a}),u=function e(t){return Array.isArray(t)?t.reduce((function(t,r){if(i(r))return t+r;var n=o(r,3),a=n[0],l=n[1],u=n[2],c={};null==u||i(u)?c=u:Object.keys(u).forEach((function(t){c[t]=e(u[t])}));var f=s(a,l,c);return null==f?t:t+f}),""):t},c=u(e);return i(c)&&/\\u[a-fA-F0-9]{4}/g.test(c)?JSON.parse('"'.concat(c.trim(),'"')):i(c)?c.trim():c}}var p=function(){function r(){e(this,r),this._events={}}return t(r,[{key:"on",value:function(e,t){var r=this;return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),function(){return r.removeListener(e,t)}}},{key:"removeListener",value:function(e,t){if(this._hasEvent(e)){var r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this._hasEvent(e)&&this._events[e].map((function(e){return e.apply(t,n)}))}},{key:"_hasEvent",value:function(e){return Array.isArray(this._events[e])}}]),r}();function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=a(e);if(t){var l=a(this).constructor;r=Reflect.construct(o,arguments,l)}else r=o.apply(this,arguments);return n(this,r)}}var _=function(n){r(o,n);var a=y(o);function o(t){var r;return e(this,o),r=a.call(this),r._messages={},r._localeData={},null!=t.missing&&(r._missing=t.missing),null!=t.messages&&r.load(t.messages),null!=t.localeData&&r.loadLocaleData(t.localeData),null==t.locale&&null==t.locales||r.activate(t.locale,t.locales),r}return t(o,[{key:"_loadLocaleData",value:function(e,t){null==this._localeData[e]?this._localeData[e]=t:Object.assign(this._localeData[e],t)}},{key:"loadLocaleData",value:function(e,t){var r=this;null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach((function(t){return r._loadLocaleData(t,e[t])})),this.emit("change")}},{key:"_load",value:function(e,t){null==this._messages[e]?this._messages[e]=t:Object.assign(this._messages[e],t)}},{key:"load",value:function(e,t){var r=this;null!=t?this._load(e,t):Object.keys(e).forEach((function(t){return r._load(t,e[t])})),this.emit("change")}},{key:"activate",value:function(e,t){this._locale=e,this._locales=t,this.emit("change")}},{key:"_",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.message,a=r.formats;i(e)||(t=e.values||t,n=e.message,e=e.id);var o=this.messages[e]||n||e,l=this._missing;return l&&!this.messages[e]?s(l)?l(this.locale,e):l:(this.messages[e]||this.emit("missing",{id:e,locale:this._locale}),i(o)&&/\\u[a-fA-F0-9]{4}/g.test(o)?JSON.parse('"'.concat(o,'"')):i(o)?o:d(o,this.locale,this.locales,this.localeData)(t,a))}},{key:"date",value:function(e,t){return f(this.locales||this.locale,t)(e)}},{key:"number",value:function(e,t){return h(this.locales||this.locale,t)(e)}},{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var e;return null!==(e=this._messages[this._locale])&&void 0!==e?e:{}}},{key:"localeData",get:function(){var e;return null!==(e=this._localeData[this._locale])&&void 0!==e?e:{}}}]),o}(p);function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _(e)}var D=b();export{_ as I18n,m as formats,D as i18n,b as setupI18n};
//# sourceMappingURL=dev.esm.js.map

@@ -1,30 +0,10 @@

declare type ListenerFunction = {
listener?: Function;
} & Function;
export declare class EventEmitter {
static defaultMaxListeners: number;
maxListeners: number | undefined;
events: Map<string | symbol, Function[]>;
constructor();
_addListener(eventName: string | symbol, listener: Function, prepend: boolean): this;
addListener(eventName: string | symbol, listener: Function): this;
emit(eventName: string | symbol, ...args: any[]): boolean;
eventNames(): [string | symbol];
getMaxListeners(): number;
listenerCount(eventName: string | symbol): number;
_listeners(target: EventEmitter, eventName: string | symbol, unwrap: boolean): Function[];
unwrapListeners(arr: ListenerFunction[]): Function[];
listeners(eventName: string | symbol): Function[];
rawListeners(eventName: string | symbol): Function[];
off(eventName: string | symbol, listener: Function): this;
on(eventName: string | symbol, listener: Function): this;
once(eventName: string | symbol, listener: Function): this;
onceWrap(eventName: string | symbol, listener: Function): Function;
prependListener(eventName: string | symbol, listener: Function): this;
prependOnceListener(eventName: string | symbol, listener: Function): this;
removeAllListeners(eventName?: string | symbol): this;
removeListener(eventName: string | symbol, listener: Function): this;
setMaxListeners(n: number): this;
export declare class EventEmitter<Events extends {
[name: string]: (...args: any[]) => any;
}> {
private readonly _events;
on(event: keyof Events, listener: Events[typeof event]): () => void;
removeListener(event: keyof Events, listener: Events[typeof event]): void;
emit(event: keyof Events, ...args: Parameters<Events[typeof event]>): void;
private _hasEvent;
}
export {};
//# sourceMappingURL=eventEmitter.d.ts.map

@@ -32,3 +32,7 @@ import { EventEmitter } from "./eventEmitter";

};
export declare class I18n extends EventEmitter {
declare type Events = {
change: () => void;
missing: (event: MissingMessageEvent) => void;
};
export declare class I18n extends EventEmitter<Events> {
_locale: Locale;

@@ -35,0 +39,0 @@ _locales: Locales;

{
"name": "@lingui/core",
"version": "3.8.8",
"version": "3.8.9",
"description": "I18n tools for javascript",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc