@ohif/app 3.13.10 → 3.13.11

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.
Files changed (38) hide show
  1. package/dist/{100.bundle.1c5ef7d0e0ea4583.js → 100.bundle.cb5a2bad747309f0.js} +2 -2
  2. package/dist/{1180.bundle.12ff4a7091b814b0.js → 1180.bundle.5b8634c0a08964c4.js} +2 -2
  3. package/dist/{136.bundle.b948da0438a0a660.js → 136.bundle.7b820280583ef059.js} +5 -5
  4. package/dist/{8478.bundle.4520037e6185b95f.js → 2169.bundle.2973ff2503da4478.js} +32 -42
  5. package/dist/{2299.bundle.2375af8b16a1702e.js → 2299.bundle.55b447ec64b2c61c.js} +5 -5
  6. package/dist/{2779.bundle.590547b8c00fb118.js → 2779.bundle.fecd2db9528a6793.js} +2 -2
  7. package/dist/{3500.bundle.7eafa2e253d6ebf9.js → 3500.bundle.ed0dac1a16ec3fc9.js} +3 -3
  8. package/dist/{5731.bundle.694bce33e168bf29.js → 3553.bundle.e4798bfbe97d7aca.js} +42 -92
  9. package/dist/{3760.bundle.049908339d53018a.js → 3760.bundle.676c3dfedb88b932.js} +3 -3
  10. package/dist/{9383.bundle.40008913697b48b8.js → 4104.bundle.175b407a79f0b910.js} +29 -115
  11. package/dist/{4556.bundle.f47dd30a2808e074.js → 4556.bundle.9dad045b95dbf87d.js} +2 -2
  12. package/dist/{4683.bundle.124370a390087ca2.js → 4683.bundle.bd79a0628604571e.js} +2 -2
  13. package/dist/{5060.bundle.09456fba37e490bf.js → 5060.bundle.1a87b7b8c79d243a.js} +2 -2
  14. package/dist/{5696.bundle.8212bd837256341d.js → 5696.bundle.9336757a352f09bf.js} +2 -2
  15. package/dist/{12.bundle.b4688cdbdd856b75.js → 5700.bundle.682cd7e4ba38db11.js} +913 -199
  16. package/dist/{7071.bundle.de8df9d95b2ba245.js → 7071.bundle.0dd91590b962da14.js} +2 -2
  17. package/dist/{7248.bundle.e96ca656fdb25c7d.js → 7248.bundle.b48a875240cdd78d.js} +5 -5
  18. package/dist/{7463.bundle.bc592adfcd96a763.js → 7463.bundle.10f90a3dc5df84cf.js} +2 -2
  19. package/dist/{7499.bundle.57679cd343fae834.js → 7499.bundle.18c1c759f0508e28.js} +8 -8
  20. package/dist/{781.bundle.40af085bb7abd069.js → 781.bundle.3dd9e958d39a1dde.js} +6 -6
  21. package/dist/{8492.bundle.80935f39a3863f1f.js → 8492.bundle.90e74bb48a042efa.js} +2 -2
  22. package/dist/{8832.bundle.21b7afcf9ad88fee.js → 8832.bundle.08d096b37edc3ff4.js} +6 -6
  23. package/dist/{89.bundle.0c0b32304742d0d3.js → 89.bundle.32ec8b1356c76ca0.js} +17 -17
  24. package/dist/{9290.bundle.9f40c51f5da6c0d4.js → 9290.bundle.93cc172c5bcc89f1.js} +2 -2
  25. package/dist/{9363.bundle.8b90310748978ac8.js → 9363.bundle.285d218d72f9ac0b.js} +2 -2
  26. package/dist/{9415.bundle.dc8266561c966fdc.js → 9415.bundle.e624b651488d77f6.js} +4 -4
  27. package/dist/{9437.bundle.8880cc3f5874eb8c.js → 9437.bundle.7d96a9ebfcf04849.js} +2 -2
  28. package/dist/{app.bundle.2e2def80f8090a74.js → app.bundle.03a0f18892736c61.js} +789 -946
  29. package/dist/{compute.bundle.910086331888fd1b.js → compute.bundle.b9477cca94f45255.js} +3 -3
  30. package/dist/index.html +1 -1
  31. package/dist/{interpolation.bundle.fa54018d8628f8c0.js → interpolation.bundle.237f0ac59d5e9b04.js} +3 -3
  32. package/dist/{polySeg.bundle.0e906840b3becd72.js → polySeg.bundle.bb830462c629693e.js} +3 -3
  33. package/dist/sw.js +1 -1
  34. package/package.json +7 -7
  35. /package/dist/{1483.bundle.d61e4b3b75394193.js → 1483.bundle.f328dd43d7a0f167.js} +0 -0
  36. /package/dist/{1602.bundle.ce71ed9405418551.js → 1602.bundle.00866f8a8fa36293.js} +0 -0
  37. /package/dist/{6749.bundle.903e779c064193ad.js → 6749.bundle.72392a7e62097ebb.js} +0 -0
  38. /package/dist/{8423.bundle.a73bb02540af284b.js → 8423.bundle.5b1beb9c42b3e746.js} +0 -0
@@ -38708,10 +38708,10 @@ var react_namespaceObject = /*#__PURE__*/__webpack_require__.t(react, 2);
38708
38708
  // EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
38709
38709
  var prop_types = __webpack_require__(97598);
38710
38710
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
38711
- // EXTERNAL MODULE: ../../i18n/src/index.js + 302 modules
38712
- var i18n_src = __webpack_require__(42204);
38713
- // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 29 modules
38714
- var es = __webpack_require__(75258);
38711
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 291 modules
38712
+ var i18n_src = __webpack_require__(22299);
38713
+ // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
38714
+ var es = __webpack_require__(68852);
38715
38715
  // EXTERNAL MODULE: ../../../node_modules/react-router-dom/dist/index.js
38716
38716
  var dist = __webpack_require__(4194);
38717
38717
  ;// CONCATENATED MODULE: ./routes/Mode/Compose.tsx
@@ -39877,8 +39877,8 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(node_modules_classna
39877
39877
  // EXTERNAL MODULE: ../../../node_modules/lodash.isequal/index.js
39878
39878
  var lodash_isequal = __webpack_require__(16780);
39879
39879
  var lodash_isequal_default = /*#__PURE__*/__webpack_require__.n(lodash_isequal);
39880
- // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
39881
- var i18next = __webpack_require__(26104);
39880
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 3 modules
39881
+ var i18next = __webpack_require__(46680);
39882
39882
  ;// CONCATENATED MODULE: ./routes/LegacyWorkList/filtersMeta.js
39883
39883
 
39884
39884
  const filtersMeta_filtersMeta = [{
@@ -50528,35 +50528,35 @@ pluginImports_modes.push("@ohif/mode-ultrasound-pleura-bline");
50528
50528
  async function loadModule(module) {
50529
50529
  if (typeof module !== 'string') return module;
50530
50530
  if (module === "@ohif/extension-default") {
50531
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(89), __webpack_require__.e(6214)]).then(__webpack_require__.bind(__webpack_require__, 50904));
50531
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(89), __webpack_require__.e(6214)]).then(__webpack_require__.bind(__webpack_require__, 50904));
50532
50532
  return imported.default;
50533
50533
  }
50534
50534
  if (module === "@ohif/extension-cornerstone") {
50535
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(89), __webpack_require__.e(6214)]).then(__webpack_require__.bind(__webpack_require__, 75609));
50535
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(89), __webpack_require__.e(6214)]).then(__webpack_require__.bind(__webpack_require__, 75609));
50536
50536
  return imported.default;
50537
50537
  }
50538
50538
  if (module === "@ohif/extension-measurement-tracking") {
50539
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(9383), __webpack_require__.e(5406), __webpack_require__.e(89), __webpack_require__.e(7248), __webpack_require__.e(3760)]).then(__webpack_require__.bind(__webpack_require__, 34879));
50539
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(4104), __webpack_require__.e(5406), __webpack_require__.e(89), __webpack_require__.e(7248), __webpack_require__.e(3760)]).then(__webpack_require__.bind(__webpack_require__, 34879));
50540
50540
  return imported.default;
50541
50541
  }
50542
50542
  if (module === "@ohif/extension-cornerstone-dicom-sr") {
50543
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(9383), __webpack_require__.e(89), __webpack_require__.e(7248), __webpack_require__.e(3833)]).then(__webpack_require__.bind(__webpack_require__, 81107));
50543
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(4104), __webpack_require__.e(89), __webpack_require__.e(7248), __webpack_require__.e(3833)]).then(__webpack_require__.bind(__webpack_require__, 81107));
50544
50544
  return imported.default;
50545
50545
  }
50546
50546
  if (module === "@ohif/extension-cornerstone-dicom-seg") {
50547
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(9383), __webpack_require__.e(89), __webpack_require__.e(781)]).then(__webpack_require__.bind(__webpack_require__, 76360));
50547
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(4104), __webpack_require__.e(89), __webpack_require__.e(781)]).then(__webpack_require__.bind(__webpack_require__, 76360));
50548
50548
  return imported.default;
50549
50549
  }
50550
50550
  if (module === "@ohif/extension-cornerstone-dicom-pmap") {
50551
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(9383), __webpack_require__.e(89), __webpack_require__.e(9415)]).then(__webpack_require__.bind(__webpack_require__, 76494));
50551
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(4104), __webpack_require__.e(89), __webpack_require__.e(9415)]).then(__webpack_require__.bind(__webpack_require__, 76494));
50552
50552
  return imported.default;
50553
50553
  }
50554
50554
  if (module === "@ohif/extension-cornerstone-dynamic-volume") {
50555
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(89), __webpack_require__.e(1602)]).then(__webpack_require__.bind(__webpack_require__, 42061));
50555
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(89), __webpack_require__.e(1602)]).then(__webpack_require__.bind(__webpack_require__, 42061));
50556
50556
  return imported.default;
50557
50557
  }
50558
50558
  if (module === "@ohif/extension-dicom-microscopy") {
50559
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(5731), __webpack_require__.e(89), __webpack_require__.e(8832)]).then(__webpack_require__.bind(__webpack_require__, 4671));
50559
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(3553), __webpack_require__.e(89), __webpack_require__.e(8832)]).then(__webpack_require__.bind(__webpack_require__, 4671));
50560
50560
  return imported.default;
50561
50561
  }
50562
50562
  if (module === "@ohif/extension-dicom-pdf") {
@@ -50568,11 +50568,11 @@ async function loadModule(module) {
50568
50568
  return imported.default;
50569
50569
  }
50570
50570
  if (module === "@ohif/extension-tmtv") {
50571
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(9383), __webpack_require__.e(89), __webpack_require__.e(7499), __webpack_require__.e(976)]).then(__webpack_require__.bind(__webpack_require__, 87110));
50571
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(4104), __webpack_require__.e(89), __webpack_require__.e(7499), __webpack_require__.e(976)]).then(__webpack_require__.bind(__webpack_require__, 87110));
50572
50572
  return imported.default;
50573
50573
  }
50574
50574
  if (module === "@ohif/extension-test") {
50575
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(89), __webpack_require__.e(8423)]).then(__webpack_require__.bind(__webpack_require__, 49182));
50575
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(89), __webpack_require__.e(8423)]).then(__webpack_require__.bind(__webpack_require__, 49182));
50576
50576
  return imported.default;
50577
50577
  }
50578
50578
  if (module === "@ohif/extension-cornerstone-dicom-rt") {
@@ -50596,7 +50596,7 @@ async function loadModule(module) {
50596
50596
  return imported.default;
50597
50597
  }
50598
50598
  if (module === "@ohif/mode-tmtv") {
50599
- const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(8478), __webpack_require__.e(9383), __webpack_require__.e(89), __webpack_require__.e(6749), __webpack_require__.e(7499), __webpack_require__.e(8492)]).then(__webpack_require__.bind(__webpack_require__, 69387));
50599
+ const imported = await Promise.all(/* import() */ [__webpack_require__.e(1673), __webpack_require__.e(6938), __webpack_require__.e(6489), __webpack_require__.e(6495), __webpack_require__.e(2169), __webpack_require__.e(4104), __webpack_require__.e(89), __webpack_require__.e(6749), __webpack_require__.e(7499), __webpack_require__.e(8492)]).then(__webpack_require__.bind(__webpack_require__, 69387));
50600
50600
  return imported.default;
50601
50601
  }
50602
50602
  if (module === "@ohif/mode-microscopy") {
@@ -70541,8 +70541,8 @@ function isDicomUid(subject) {
70541
70541
  // EXTERNAL MODULE: ../../../node_modules/moment/moment.js
70542
70542
  var moment = __webpack_require__(14867);
70543
70543
  var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
70544
- // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
70545
- var i18next = __webpack_require__(26104);
70544
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 3 modules
70545
+ var i18next = __webpack_require__(46680);
70546
70546
  ;// CONCATENATED MODULE: ../../core/src/utils/formatDate.js
70547
70547
 
70548
70548
 
@@ -72918,7 +72918,7 @@ function uuidv4() {
72918
72918
  }
72919
72919
 
72920
72920
  },
72921
- 42204(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
72921
+ 22299(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
72922
72922
  "use strict";
72923
72923
 
72924
72924
  // EXPORTS
@@ -72926,70 +72926,14 @@ __webpack_require__.d(__webpack_exports__, {
72926
72926
  A: () => (/* binding */ src)
72927
72927
  });
72928
72928
 
72929
- // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
72930
- var esm_i18next = __webpack_require__(26104);
72931
- ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/node_modules/@babel/runtime/helpers/esm/typeof.js
72932
- function _typeof(o) {
72933
- "@babel/helpers - typeof";
72934
-
72935
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
72936
- return typeof o;
72937
- } : function (o) {
72938
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
72939
- }, _typeof(o);
72940
- }
72941
-
72942
- ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
72943
-
72944
- function toPrimitive(t, r) {
72945
- if ("object" != _typeof(t) || !t) return t;
72946
- var e = t[Symbol.toPrimitive];
72947
- if (void 0 !== e) {
72948
- var i = e.call(t, r || "default");
72949
- if ("object" != _typeof(i)) return i;
72950
- throw new TypeError("@@toPrimitive must return a primitive value.");
72951
- }
72952
- return ("string" === r ? String : Number)(t);
72953
- }
72954
-
72955
- ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
72956
-
72957
-
72958
- function toPropertyKey(t) {
72959
- var i = toPrimitive(t, "string");
72960
- return "symbol" == _typeof(i) ? i : i + "";
72961
- }
72962
-
72963
- ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/node_modules/@babel/runtime/helpers/esm/defineProperty.js
72964
-
72965
- function _defineProperty(e, r, t) {
72966
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
72967
- value: t,
72968
- enumerable: !0,
72969
- configurable: !0,
72970
- writable: !0
72971
- }) : e[r] = t, e;
72972
- }
72973
-
72974
- ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
72975
- function _classCallCheck(a, n) {
72976
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
72977
- }
72978
-
72979
- ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/node_modules/@babel/runtime/helpers/esm/createClass.js
72980
-
72981
- function _defineProperties(e, r) {
72982
- for (var t = 0; t < r.length; t++) {
72983
- var o = r[t];
72984
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
72985
- }
72986
- }
72987
- function _createClass(e, r, t) {
72988
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
72989
- writable: !1
72990
- }), e;
72991
- }
72992
-
72929
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 3 modules
72930
+ var esm_i18next = __webpack_require__(46680);
72931
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
72932
+ var defineProperty = __webpack_require__(36111);
72933
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
72934
+ var classCallCheck = __webpack_require__(82561);
72935
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/createClass.js
72936
+ var createClass = __webpack_require__(77001);
72993
72937
  ;// CONCATENATED MODULE: ../../../node_modules/i18next-locize-backend/dist/esm/i18nextLocizeBackend.js
72994
72938
 
72995
72939
 
@@ -73100,7 +73044,7 @@ function isMissingOption(obj, props) {
73100
73044
 
73101
73045
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
73102
73046
 
73103
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
73047
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* ["default"] */.A)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
73104
73048
 
73105
73049
  function ajax(url, options, callback, data, cache) {
73106
73050
  try {
@@ -73155,7 +73099,7 @@ var i18nextLocizeBackend_I18NextLocizeBackend =
73155
73099
  /*#__PURE__*/
73156
73100
  function () {
73157
73101
  function I18NextLocizeBackend(services, options, callback) {
73158
- _classCallCheck(this, I18NextLocizeBackend);
73102
+ (0,classCallCheck/* ["default"] */.A)(this, I18NextLocizeBackend);
73159
73103
 
73160
73104
  if (services && services.projectId) {
73161
73105
  this.init(null, services, {}, options);
@@ -73166,7 +73110,7 @@ function () {
73166
73110
  this.type = 'backend';
73167
73111
  }
73168
73112
 
73169
- _createClass(I18NextLocizeBackend, [{
73113
+ (0,createClass/* ["default"] */.A)(I18NextLocizeBackend, [{
73170
73114
  key: "init",
73171
73115
  value: function init(services) {
73172
73116
  var _this = this;
@@ -73646,64 +73590,10 @@ var locizeLastUsed = {
73646
73590
  locizeLastUsed.type = '3rdParty';
73647
73591
 
73648
73592
  /* export default */ const es = (locizeLastUsed);
73649
- ;// CONCATENATED MODULE: ../../../node_modules/locize-editor/node_modules/@babel/runtime/helpers/esm/typeof.js
73650
- function typeof_typeof(o) {
73651
- "@babel/helpers - typeof";
73652
-
73653
- return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
73654
- return typeof o;
73655
- } : function (o) {
73656
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
73657
- }, typeof_typeof(o);
73658
- }
73659
-
73660
- ;// CONCATENATED MODULE: ../../../node_modules/locize-editor/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
73661
-
73662
- function toPrimitive_toPrimitive(t, r) {
73663
- if ("object" != typeof_typeof(t) || !t) return t;
73664
- var e = t[Symbol.toPrimitive];
73665
- if (void 0 !== e) {
73666
- var i = e.call(t, r || "default");
73667
- if ("object" != typeof_typeof(i)) return i;
73668
- throw new TypeError("@@toPrimitive must return a primitive value.");
73669
- }
73670
- return ("string" === r ? String : Number)(t);
73671
- }
73672
-
73673
- ;// CONCATENATED MODULE: ../../../node_modules/locize-editor/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
73674
-
73675
-
73676
- function toPropertyKey_toPropertyKey(t) {
73677
- var i = toPrimitive_toPrimitive(t, "string");
73678
- return "symbol" == typeof_typeof(i) ? i : i + "";
73679
- }
73680
-
73681
- ;// CONCATENATED MODULE: ../../../node_modules/locize-editor/node_modules/@babel/runtime/helpers/esm/defineProperty.js
73682
-
73683
- function defineProperty_defineProperty(e, r, t) {
73684
- return (r = toPropertyKey_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
73685
- value: t,
73686
- enumerable: !0,
73687
- configurable: !0,
73688
- writable: !0
73689
- }) : e[r] = t, e;
73690
- }
73691
-
73692
- ;// CONCATENATED MODULE: ../../../node_modules/locize-editor/node_modules/@babel/runtime/helpers/esm/objectSpread.js
73693
-
73694
- function objectSpread_objectSpread(e) {
73695
- for (var r = 1; r < arguments.length; r++) {
73696
- var t = null != arguments[r] ? Object(arguments[r]) : {},
73697
- o = Object.keys(t);
73698
- "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) {
73699
- return Object.getOwnPropertyDescriptor(t, e).enumerable;
73700
- })), o.forEach(function (r) {
73701
- defineProperty_defineProperty(e, r, t[r]);
73702
- });
73703
- }
73704
- return e;
73705
- }
73706
-
73593
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/objectSpread.js
73594
+ var objectSpread = __webpack_require__(22957);
73595
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
73596
+ var esm_typeof = __webpack_require__(23224);
73707
73597
  ;// CONCATENATED MODULE: ../../../node_modules/locize-editor/dist/esm/locize-editor.js
73708
73598
 
73709
73599
 
@@ -73727,7 +73617,7 @@ function offset(elem) {
73727
73617
  docElem = doc && doc.documentElement;
73728
73618
  if (!docElem) return box;
73729
73619
 
73730
- if (typeof_typeof(elem.getBoundingClientRect) !== ("undefined")) {
73620
+ if ((0,esm_typeof/* ["default"] */.A)(elem.getBoundingClientRect) !== ("undefined")) {
73731
73621
  box = elem.getBoundingClientRect();
73732
73622
  }
73733
73623
 
@@ -73948,7 +73838,7 @@ var editor = {
73948
73838
  if (i18next && !i18next.init) i18next = convertOptionsToI18next(i18next);
73949
73839
  this.enabled = false;
73950
73840
  this.i18next = i18next;
73951
- this.options = objectSpread_objectSpread({}, defaultOptions, i18next.options.editor); //this.locizeUrl = (i18next.options.editor && i18next.options.editor.url) || 'https://www.locize.io';
73841
+ this.options = (0,objectSpread/* ["default"] */.A)({}, defaultOptions, i18next.options.editor); //this.locizeUrl = (i18next.options.editor && i18next.options.editor.url) || 'https://www.locize.io';
73952
73842
 
73953
73843
  this.handler = this.handler.bind(this);
73954
73844
  this.handleSavedMissing = this.handleSavedMissing.bind(this);
@@ -74058,8 +73948,8 @@ var editor = {
74058
73948
  // EXTERNAL MODULE: ../../../node_modules/i18next-browser-languagedetector/index.js
74059
73949
  var i18next_browser_languagedetector = __webpack_require__(77414);
74060
73950
  var i18next_browser_languagedetector_default = /*#__PURE__*/__webpack_require__.n(i18next_browser_languagedetector);
74061
- // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 29 modules
74062
- var dist_es = __webpack_require__(75258);
73951
+ // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
73952
+ var dist_es = __webpack_require__(68852);
74063
73953
  ;// CONCATENATED MODULE: ../../i18n/src/config.js
74064
73954
  const debugMode = !!( false && 0);
74065
73955
  const detectionOptions = {
@@ -74089,7 +73979,7 @@ const detectionOptions = {
74089
73979
  }
74090
73980
  });
74091
73981
  ;// CONCATENATED MODULE: ../../i18n/package.json
74092
- var package_namespaceObject = {"rE":"3.13.9"}
73982
+ var package_namespaceObject = {"rE":"3.13.10"}
74093
73983
  ;// CONCATENATED MODULE: ../../i18n/src/utils.js
74094
73984
  const languagesMap = {
74095
73985
  ar: 'Arabic',
@@ -78567,8 +78457,8 @@ function utils_cn(...inputs) {
78567
78457
  // EXTERNAL MODULE: ../../../node_modules/moment/moment.js
78568
78458
  var moment = __webpack_require__(14867);
78569
78459
  var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
78570
- // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
78571
- var i18next = __webpack_require__(26104);
78460
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 3 modules
78461
+ var i18next = __webpack_require__(46680);
78572
78462
  ;// CONCATENATED MODULE: ../../ui-next/src/utils/formatDICOMDate.ts
78573
78463
 
78574
78464
 
@@ -199083,8 +198973,8 @@ const useNavigation = (/* unused pure expression or super */ null && (useDayPick
199083
198973
 
199084
198974
 
199085
198975
 
199086
- // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 29 modules
199087
- var dist_es = __webpack_require__(75258);
198976
+ // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
198977
+ var dist_es = __webpack_require__(68852);
199088
198978
  ;// CONCATENATED MODULE: ../../ui-next/node_modules/react-day-picker/dist/esm/locale/af.js
199089
198979
 
199090
198980
 
@@ -227397,8 +227287,8 @@ var DragDropManagerImpl_DragDropManagerImpl = /*#__PURE__*/function () {
227397
227287
 
227398
227288
  return DragDropManagerImpl;
227399
227289
  }();
227400
- // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
227401
- var esm_defineProperty = __webpack_require__(62625);
227290
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
227291
+ var esm_defineProperty = __webpack_require__(36111);
227402
227292
  ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js
227403
227293
 
227404
227294
  function objectSpread2_ownKeys(e, r) {
@@ -297799,7 +297689,7 @@ module.exports["default"] = main;
297799
297689
 
297800
297690
 
297801
297691
  },
297802
- 26104(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
297692
+ 46680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
297803
297693
  "use strict";
297804
297694
 
297805
297695
  // EXPORTS
@@ -297807,113 +297697,35 @@ __webpack_require__.d(__webpack_exports__, {
297807
297697
  A: () => (/* binding */ esm_i18next)
297808
297698
  });
297809
297699
 
297810
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/typeof.js
297811
- function _typeof(o) {
297812
- "@babel/helpers - typeof";
297813
-
297814
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
297815
- return typeof o;
297816
- } : function (o) {
297817
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
297818
- }, _typeof(o);
297819
- }
297820
-
297821
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
297822
-
297823
- function toPrimitive(t, r) {
297824
- if ("object" != _typeof(t) || !t) return t;
297825
- var e = t[Symbol.toPrimitive];
297826
- if (void 0 !== e) {
297827
- var i = e.call(t, r || "default");
297828
- if ("object" != _typeof(i)) return i;
297829
- throw new TypeError("@@toPrimitive must return a primitive value.");
297830
- }
297831
- return ("string" === r ? String : Number)(t);
297832
- }
297833
-
297834
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
297835
-
297836
-
297837
- function toPropertyKey(t) {
297838
- var i = toPrimitive(t, "string");
297839
- return "symbol" == _typeof(i) ? i : i + "";
297840
- }
297841
-
297842
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/defineProperty.js
297843
-
297844
- function _defineProperty(e, r, t) {
297845
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
297846
- value: t,
297847
- enumerable: !0,
297848
- configurable: !0,
297849
- writable: !0
297850
- }) : e[r] = t, e;
297851
- }
297852
-
297853
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/objectSpread.js
297854
-
297855
- function _objectSpread(e) {
297856
- for (var r = 1; r < arguments.length; r++) {
297857
- var t = null != arguments[r] ? Object(arguments[r]) : {},
297858
- o = Object.keys(t);
297859
- "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) {
297860
- return Object.getOwnPropertyDescriptor(t, e).enumerable;
297861
- })), o.forEach(function (r) {
297862
- _defineProperty(e, r, t[r]);
297863
- });
297864
- }
297865
- return e;
297866
- }
297867
-
297868
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
297869
- function _classCallCheck(a, n) {
297870
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
297871
- }
297872
-
297873
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/createClass.js
297874
-
297875
- function _defineProperties(e, r) {
297876
- for (var t = 0; t < r.length; t++) {
297877
- var o = r[t];
297878
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
297879
- }
297880
- }
297881
- function _createClass(e, r, t) {
297882
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
297883
- writable: !1
297884
- }), e;
297885
- }
297886
-
297887
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
297888
- function _assertThisInitialized(e) {
297889
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
297890
- return e;
297891
- }
297892
-
297893
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
297700
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
297701
+ var esm_typeof = __webpack_require__(23224);
297702
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/objectSpread.js
297703
+ var objectSpread = __webpack_require__(22957);
297704
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
297705
+ var classCallCheck = __webpack_require__(82561);
297706
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/createClass.js
297707
+ var createClass = __webpack_require__(77001);
297708
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
297709
+ var assertThisInitialized = __webpack_require__(99805);
297710
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
297894
297711
 
297895
297712
 
297896
297713
  function _possibleConstructorReturn(t, e) {
297897
- if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
297714
+ if (e && ("object" == (0,esm_typeof/* ["default"] */.A)(e) || "function" == typeof e)) return e;
297898
297715
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
297899
- return _assertThisInitialized(t);
297716
+ return (0,assertThisInitialized/* ["default"] */.A)(t);
297900
297717
  }
297901
297718
 
297902
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
297719
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
297903
297720
  function _getPrototypeOf(t) {
297904
297721
  return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
297905
297722
  return t.__proto__ || Object.getPrototypeOf(t);
297906
297723
  }, _getPrototypeOf(t);
297907
297724
  }
297908
297725
 
297909
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
297910
- function _setPrototypeOf(t, e) {
297911
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
297912
- return t.__proto__ = e, t;
297913
- }, _setPrototypeOf(t, e);
297914
- }
297915
-
297916
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/inherits.js
297726
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
297727
+ var setPrototypeOf = __webpack_require__(82050);
297728
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/inherits.js
297917
297729
 
297918
297730
  function _inherits(t, e) {
297919
297731
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
@@ -297925,97 +297737,7 @@ function _inherits(t, e) {
297925
297737
  }
297926
297738
  }), Object.defineProperty(t, "prototype", {
297927
297739
  writable: !1
297928
- }), e && _setPrototypeOf(t, e);
297929
- }
297930
-
297931
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
297932
- function _arrayLikeToArray(r, a) {
297933
- (null == a || a > r.length) && (a = r.length);
297934
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
297935
- return n;
297936
- }
297937
-
297938
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
297939
-
297940
- function _arrayWithoutHoles(r) {
297941
- if (Array.isArray(r)) return _arrayLikeToArray(r);
297942
- }
297943
-
297944
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
297945
- function _iterableToArray(r) {
297946
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
297947
- }
297948
-
297949
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
297950
-
297951
- function _unsupportedIterableToArray(r, a) {
297952
- if (r) {
297953
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
297954
- var t = {}.toString.call(r).slice(8, -1);
297955
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
297956
- }
297957
- }
297958
-
297959
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
297960
- function _nonIterableSpread() {
297961
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
297962
- }
297963
-
297964
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
297965
-
297966
-
297967
-
297968
-
297969
- function _toConsumableArray(r) {
297970
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
297971
- }
297972
-
297973
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
297974
- function _arrayWithHoles(r) {
297975
- if (Array.isArray(r)) return r;
297976
- }
297977
-
297978
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
297979
- function _iterableToArrayLimit(r, l) {
297980
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
297981
- if (null != t) {
297982
- var e,
297983
- n,
297984
- i,
297985
- u,
297986
- a = [],
297987
- f = !0,
297988
- o = !1;
297989
- try {
297990
- if (i = (t = t.call(r)).next, 0 === l) {
297991
- if (Object(t) !== t) return;
297992
- f = !1;
297993
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
297994
- } catch (r) {
297995
- o = !0, n = r;
297996
- } finally {
297997
- try {
297998
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
297999
- } finally {
298000
- if (o) throw n;
298001
- }
298002
- }
298003
- return a;
298004
- }
298005
- }
298006
-
298007
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
298008
- function _nonIterableRest() {
298009
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
298010
- }
298011
-
298012
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
298013
-
298014
-
298015
-
298016
-
298017
- function _slicedToArray(r, e) {
298018
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
297740
+ }), e && (0,setPrototypeOf/* ["default"] */.A)(t, e);
298019
297741
  }
298020
297742
 
298021
297743
  ;// CONCATENATED MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
@@ -298028,8 +297750,6 @@ function _slicedToArray(r, e) {
298028
297750
 
298029
297751
 
298030
297752
 
298031
-
298032
-
298033
297753
  var consoleLogger = {
298034
297754
  type: 'logger',
298035
297755
  log: function log(args) {
@@ -298042,25 +297762,20 @@ var consoleLogger = {
298042
297762
  this.output('error', args);
298043
297763
  },
298044
297764
  output: function output(type, args) {
298045
- var _console;
298046
-
298047
- /* eslint no-console: 0 */
298048
- if (console && console[type]) (_console = console)[type].apply(_console, _toConsumableArray(args));
297765
+ if (console && console[type]) console[type].apply(console, args);
298049
297766
  }
298050
297767
  };
298051
297768
 
298052
- var i18next_Logger =
298053
- /*#__PURE__*/
298054
- function () {
297769
+ var i18next_Logger = function () {
298055
297770
  function Logger(concreteLogger) {
298056
297771
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
298057
297772
 
298058
- _classCallCheck(this, Logger);
297773
+ (0,classCallCheck/* ["default"] */.A)(this, Logger);
298059
297774
 
298060
297775
  this.init(concreteLogger, options);
298061
297776
  }
298062
297777
 
298063
- _createClass(Logger, [{
297778
+ (0,createClass/* ["default"] */.A)(Logger, [{
298064
297779
  key: "init",
298065
297780
  value: function init(concreteLogger) {
298066
297781
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -298120,7 +297835,7 @@ function () {
298120
297835
  }, {
298121
297836
  key: "create",
298122
297837
  value: function create(moduleName) {
298123
- return new Logger(this.logger, _objectSpread({}, {
297838
+ return new Logger(this.logger, (0,objectSpread/* ["default"] */.A)({}, {
298124
297839
  prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
298125
297840
  }, this.options));
298126
297841
  }
@@ -298131,16 +297846,14 @@ function () {
298131
297846
 
298132
297847
  var baseLogger = new i18next_Logger();
298133
297848
 
298134
- var i18next_EventEmitter =
298135
- /*#__PURE__*/
298136
- function () {
297849
+ var i18next_EventEmitter = function () {
298137
297850
  function EventEmitter() {
298138
- _classCallCheck(this, EventEmitter);
297851
+ (0,classCallCheck/* ["default"] */.A)(this, EventEmitter);
298139
297852
 
298140
297853
  this.observers = {};
298141
297854
  }
298142
297855
 
298143
- _createClass(EventEmitter, [{
297856
+ (0,createClass/* ["default"] */.A)(EventEmitter, [{
298144
297857
  key: "on",
298145
297858
  value: function on(events, listener) {
298146
297859
  var _this = this;
@@ -298193,7 +297906,6 @@ function () {
298193
297906
  return EventEmitter;
298194
297907
  }();
298195
297908
 
298196
- // http://lea.verou.me/2016/12/resolve-promises-externally-with-this-one-weird-trick/
298197
297909
  function defer() {
298198
297910
  var res;
298199
297911
  var rej;
@@ -298207,11 +297919,9 @@ function defer() {
298207
297919
  }
298208
297920
  function makeString(object) {
298209
297921
  if (object == null) return '';
298210
- /* eslint prefer-template: 0 */
298211
-
298212
297922
  return '' + object;
298213
297923
  }
298214
- function copy(a, s, t) {
297924
+ function i18next_copy(a, s, t) {
298215
297925
  a.forEach(function (m) {
298216
297926
  if (s[m]) t[m] = s[m];
298217
297927
  });
@@ -298232,7 +297942,12 @@ function getLastOfPath(object, path, Empty) {
298232
297942
  if (canNotTraverseDeeper()) return {};
298233
297943
  var key = cleanKey(stack.shift());
298234
297944
  if (!object[key] && Empty) object[key] = new Empty();
298235
- object = object[key];
297945
+
297946
+ if (Object.prototype.hasOwnProperty.call(object, key)) {
297947
+ object = object[key];
297948
+ } else {
297949
+ object = {};
297950
+ }
298236
297951
  }
298237
297952
 
298238
297953
  if (canNotTraverseDeeper()) return {};
@@ -298271,34 +297986,30 @@ function getPathWithDefaults(data, defaultData, key) {
298271
297986
 
298272
297987
  if (value !== undefined) {
298273
297988
  return value;
298274
- } // Fallback to default values
298275
-
297989
+ }
298276
297990
 
298277
297991
  return getPath(defaultData, key);
298278
297992
  }
298279
297993
  function deepExtend(target, source, overwrite) {
298280
- /* eslint no-restricted-syntax: 0 */
298281
297994
  for (var prop in source) {
298282
- if (prop in target) {
298283
- // If we reached a leaf string in target or source then replace with source or skip depending on the 'overwrite' switch
298284
- if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {
298285
- if (overwrite) target[prop] = source[prop];
297995
+ if (prop !== '__proto__' && prop !== 'constructor') {
297996
+ if (prop in target) {
297997
+ if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {
297998
+ if (overwrite) target[prop] = source[prop];
297999
+ } else {
298000
+ deepExtend(target[prop], source[prop], overwrite);
298001
+ }
298286
298002
  } else {
298287
- deepExtend(target[prop], source[prop], overwrite);
298003
+ target[prop] = source[prop];
298288
298004
  }
298289
- } else {
298290
- target[prop] = source[prop];
298291
298005
  }
298292
298006
  }
298293
298007
 
298294
298008
  return target;
298295
298009
  }
298296
298010
  function regexEscape(str) {
298297
- /* eslint no-useless-escape: 0 */
298298
298011
  return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
298299
298012
  }
298300
- /* eslint-disable */
298301
-
298302
298013
  var _entityMap = {
298303
298014
  '&': '&amp;',
298304
298015
  '<': '&lt;',
@@ -298307,8 +298018,6 @@ var _entityMap = {
298307
298018
  "'": '&#39;',
298308
298019
  '/': '&#x2F;'
298309
298020
  };
298310
- /* eslint-enable */
298311
-
298312
298021
  function i18next_escape(data) {
298313
298022
  if (typeof data === 'string') {
298314
298023
  return data.replace(/[&<>"'\/]/g, function (s) {
@@ -298318,10 +298027,9 @@ function i18next_escape(data) {
298318
298027
 
298319
298028
  return data;
298320
298029
  }
298030
+ var isIE10 = typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1;
298321
298031
 
298322
- var i18next_ResourceStore =
298323
- /*#__PURE__*/
298324
- function (_EventEmitter) {
298032
+ var i18next_ResourceStore = function (_EventEmitter) {
298325
298033
  _inherits(ResourceStore, _EventEmitter);
298326
298034
 
298327
298035
  function ResourceStore(data) {
@@ -298332,10 +298040,13 @@ function (_EventEmitter) {
298332
298040
  defaultNS: 'translation'
298333
298041
  };
298334
298042
 
298335
- _classCallCheck(this, ResourceStore);
298043
+ (0,classCallCheck/* ["default"] */.A)(this, ResourceStore);
298336
298044
 
298337
298045
  _this = _possibleConstructorReturn(this, _getPrototypeOf(ResourceStore).call(this));
298338
- i18next_EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)
298046
+
298047
+ if (isIE10) {
298048
+ i18next_EventEmitter.call((0,assertThisInitialized/* ["default"] */.A)(_this));
298049
+ }
298339
298050
 
298340
298051
  _this.data = data || {};
298341
298052
  _this.options = options;
@@ -298347,7 +298058,7 @@ function (_EventEmitter) {
298347
298058
  return _this;
298348
298059
  }
298349
298060
 
298350
- _createClass(ResourceStore, [{
298061
+ (0,createClass/* ["default"] */.A)(ResourceStore, [{
298351
298062
  key: "addNamespaces",
298352
298063
  value: function addNamespaces(ns) {
298353
298064
  if (this.options.ns.indexOf(ns) < 0) {
@@ -298406,7 +298117,6 @@ function (_EventEmitter) {
298406
298117
  silent: false
298407
298118
  };
298408
298119
 
298409
- /* eslint no-restricted-syntax: 0 */
298410
298120
  for (var m in resources) {
298411
298121
  if (typeof resources[m] === 'string' || Object.prototype.toString.apply(resources[m]) === '[object Array]') this.addResource(lng, ns, m, resources[m], {
298412
298122
  silent: true
@@ -298436,7 +298146,7 @@ function (_EventEmitter) {
298436
298146
  if (deep) {
298437
298147
  deepExtend(pack, resources, overwrite);
298438
298148
  } else {
298439
- pack = _objectSpread({}, pack, resources);
298149
+ pack = (0,objectSpread/* ["default"] */.A)({}, pack, resources);
298440
298150
  }
298441
298151
 
298442
298152
  setPath(this.data, path, pack);
@@ -298460,9 +298170,8 @@ function (_EventEmitter) {
298460
298170
  }, {
298461
298171
  key: "getResourceBundle",
298462
298172
  value: function getResourceBundle(lng, ns) {
298463
- if (!ns) ns = this.options.defaultNS; // COMPATIBILITY: remove extend in v2.1.0
298464
-
298465
- if (this.options.compatibilityAPI === 'v1') return _objectSpread({}, {}, this.getResource(lng, ns));
298173
+ if (!ns) ns = this.options.defaultNS;
298174
+ if (this.options.compatibilityAPI === 'v1') return (0,objectSpread/* ["default"] */.A)({}, {}, this.getResource(lng, ns));
298466
298175
  return this.getResource(lng, ns);
298467
298176
  }
298468
298177
  }, {
@@ -298495,9 +298204,9 @@ var postProcessor = {
298495
298204
  }
298496
298205
  };
298497
298206
 
298498
- var i18next_Translator =
298499
- /*#__PURE__*/
298500
- function (_EventEmitter) {
298207
+ var checkedLoadedFor = {};
298208
+
298209
+ var i18next_Translator = function (_EventEmitter) {
298501
298210
  _inherits(Translator, _EventEmitter);
298502
298211
 
298503
298212
  function Translator(services) {
@@ -298505,12 +298214,15 @@ function (_EventEmitter) {
298505
298214
 
298506
298215
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
298507
298216
 
298508
- _classCallCheck(this, Translator);
298217
+ (0,classCallCheck/* ["default"] */.A)(this, Translator);
298509
298218
 
298510
298219
  _this = _possibleConstructorReturn(this, _getPrototypeOf(Translator).call(this));
298511
- i18next_EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)
298512
298220
 
298513
- copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, _assertThisInitialized(_this));
298221
+ if (isIE10) {
298222
+ i18next_EventEmitter.call((0,assertThisInitialized/* ["default"] */.A)(_this));
298223
+ }
298224
+
298225
+ i18next_copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, (0,assertThisInitialized/* ["default"] */.A)(_this));
298514
298226
  _this.options = options;
298515
298227
 
298516
298228
  if (_this.options.keySeparator === undefined) {
@@ -298521,7 +298233,7 @@ function (_EventEmitter) {
298521
298233
  return _this;
298522
298234
  }
298523
298235
 
298524
- _createClass(Translator, [{
298236
+ (0,createClass/* ["default"] */.A)(Translator, [{
298525
298237
  key: "changeLanguage",
298526
298238
  value: function changeLanguage(lng) {
298527
298239
  if (lng) this.language = lng;
@@ -298538,12 +298250,21 @@ function (_EventEmitter) {
298538
298250
  }, {
298539
298251
  key: "extractFromKey",
298540
298252
  value: function extractFromKey(key, options) {
298541
- var nsSeparator = options.nsSeparator || this.options.nsSeparator;
298253
+ var nsSeparator = options.nsSeparator !== undefined ? options.nsSeparator : this.options.nsSeparator;
298542
298254
  if (nsSeparator === undefined) nsSeparator = ':';
298543
298255
  var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
298544
298256
  var namespaces = options.ns || this.options.defaultNS;
298545
298257
 
298546
298258
  if (nsSeparator && key.indexOf(nsSeparator) > -1) {
298259
+ var m = key.match(this.interpolator.nestingRegexp);
298260
+
298261
+ if (m && m.length > 0) {
298262
+ return {
298263
+ key: key,
298264
+ namespaces: namespaces
298265
+ };
298266
+ }
298267
+
298547
298268
  var parts = key.split(nsSeparator);
298548
298269
  if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();
298549
298270
  key = parts.join(keySeparator);
@@ -298557,27 +298278,23 @@ function (_EventEmitter) {
298557
298278
  }
298558
298279
  }, {
298559
298280
  key: "translate",
298560
- value: function translate(keys, options) {
298281
+ value: function translate(keys, options, lastKey) {
298561
298282
  var _this2 = this;
298562
298283
 
298563
- if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
298564
- /* eslint prefer-rest-params: 0 */
298284
+ if ((0,esm_typeof/* ["default"] */.A)(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
298565
298285
  options = this.options.overloadTranslationOptionHandler(arguments);
298566
298286
  }
298567
298287
 
298568
- if (!options) options = {}; // non valid keys handling
298569
-
298288
+ if (!options) options = {};
298570
298289
  if (keys === undefined || keys === null) return '';
298571
- if (!Array.isArray(keys)) keys = [String(keys)]; // separators
298572
-
298573
- var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator; // get namespace(s)
298290
+ if (!Array.isArray(keys)) keys = [String(keys)];
298291
+ var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
298574
298292
 
298575
298293
  var _this$extractFromKey = this.extractFromKey(keys[keys.length - 1], options),
298576
298294
  key = _this$extractFromKey.key,
298577
298295
  namespaces = _this$extractFromKey.namespaces;
298578
298296
 
298579
- var namespace = namespaces[namespaces.length - 1]; // return key on CIMode
298580
-
298297
+ var namespace = namespaces[namespaces.length - 1];
298581
298298
  var lng = options.lng || this.language;
298582
298299
  var appendNamespaceToCIMode = options.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
298583
298300
 
@@ -298588,8 +298305,7 @@ function (_EventEmitter) {
298588
298305
  }
298589
298306
 
298590
298307
  return key;
298591
- } // resolve from store
298592
-
298308
+ }
298593
298309
 
298594
298310
  var resolved = this.resolve(keys, options);
298595
298311
  var res = resolved && resolved.res;
@@ -298597,8 +298313,7 @@ function (_EventEmitter) {
298597
298313
  var resExactUsedKey = resolved && resolved.exactUsedKey || key;
298598
298314
  var resType = Object.prototype.toString.apply(res);
298599
298315
  var noObject = ['[object Number]', '[object Function]', '[object RegExp]'];
298600
- var joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays; // object
298601
-
298316
+ var joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;
298602
298317
  var handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
298603
298318
  var handleAsObject = typeof res !== 'string' && typeof res !== 'boolean' && typeof res !== 'number';
298604
298319
 
@@ -298606,61 +298321,59 @@ function (_EventEmitter) {
298606
298321
  if (!options.returnObjects && !this.options.returnObjects) {
298607
298322
  this.logger.warn('accessing an object - but returnObjects options is not enabled!');
298608
298323
  return this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, res, options) : "key '".concat(key, " (").concat(this.language, ")' returned an object instead of string.");
298609
- } // if we got a separator we loop over children - else we just return object as is
298610
- // as having it set to false means no hierarchy so no lookup for nested values
298611
-
298324
+ }
298612
298325
 
298613
298326
  if (keySeparator) {
298614
298327
  var resTypeIsArray = resType === '[object Array]';
298615
- var copy$$1 = resTypeIsArray ? [] : {}; // apply child translation on a copy
298616
-
298617
- /* eslint no-restricted-syntax: 0 */
298618
-
298328
+ var copy = resTypeIsArray ? [] : {};
298619
298329
  var newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
298620
298330
 
298621
298331
  for (var m in res) {
298622
298332
  if (Object.prototype.hasOwnProperty.call(res, m)) {
298623
298333
  var deepKey = "".concat(newKeyToUse).concat(keySeparator).concat(m);
298624
- copy$$1[m] = this.translate(deepKey, _objectSpread({}, options, {
298334
+ copy[m] = this.translate(deepKey, (0,objectSpread/* ["default"] */.A)({}, options, {
298625
298335
  joinArrays: false,
298626
298336
  ns: namespaces
298627
298337
  }));
298628
- if (copy$$1[m] === deepKey) copy$$1[m] = res[m]; // if nothing found use orginal value as fallback
298338
+ if (copy[m] === deepKey) copy[m] = res[m];
298629
298339
  }
298630
298340
  }
298631
298341
 
298632
- res = copy$$1;
298342
+ res = copy;
298633
298343
  }
298634
298344
  } else if (handleAsObjectInI18nFormat && typeof joinArrays === 'string' && resType === '[object Array]') {
298635
- // array special treatment
298636
298345
  res = res.join(joinArrays);
298637
- if (res) res = this.extendTranslation(res, keys, options);
298346
+ if (res) res = this.extendTranslation(res, keys, options, lastKey);
298638
298347
  } else {
298639
- // string, empty or null
298640
298348
  var usedDefault = false;
298641
- var usedKey = false; // fallback value
298349
+ var usedKey = false;
298350
+ var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';
298351
+ var hasDefaultValue = Translator.hasDefaultValue(options);
298352
+ var defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count) : '';
298353
+ var defaultValue = options["defaultValue".concat(defaultValueSuffix)] || options.defaultValue;
298642
298354
 
298643
- if (!this.isValidLookup(res) && options.defaultValue !== undefined) {
298355
+ if (!this.isValidLookup(res) && hasDefaultValue) {
298644
298356
  usedDefault = true;
298645
-
298646
- if (options.count !== undefined) {
298647
- var suffix = this.pluralResolver.getSuffix(lng, options.count);
298648
- res = options["defaultValue".concat(suffix)];
298649
- }
298650
-
298651
- if (!res) res = options.defaultValue;
298357
+ res = defaultValue;
298652
298358
  }
298653
298359
 
298654
298360
  if (!this.isValidLookup(res)) {
298655
298361
  usedKey = true;
298656
298362
  res = key;
298657
- } // save missing
298658
-
298363
+ }
298659
298364
 
298660
- var updateMissing = options.defaultValue && options.defaultValue !== res && this.options.updateMissing;
298365
+ var updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
298661
298366
 
298662
298367
  if (usedKey || usedDefault || updateMissing) {
298663
- this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? options.defaultValue : res);
298368
+ this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);
298369
+
298370
+ if (keySeparator) {
298371
+ var fk = this.resolve(key, (0,objectSpread/* ["default"] */.A)({}, options, {
298372
+ keySeparator: false
298373
+ }));
298374
+ if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');
298375
+ }
298376
+
298664
298377
  var lngs = [];
298665
298378
  var fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, options.lng || this.language);
298666
298379
 
@@ -298674,47 +298387,39 @@ function (_EventEmitter) {
298674
298387
  lngs.push(options.lng || this.language);
298675
298388
  }
298676
298389
 
298677
- var send = function send(l, k) {
298390
+ var send = function send(l, k, fallbackValue) {
298678
298391
  if (_this2.options.missingKeyHandler) {
298679
- _this2.options.missingKeyHandler(l, namespace, k, updateMissing ? options.defaultValue : res, updateMissing, options);
298392
+ _this2.options.missingKeyHandler(l, namespace, k, updateMissing ? fallbackValue : res, updateMissing, options);
298680
298393
  } else if (_this2.backendConnector && _this2.backendConnector.saveMissing) {
298681
- _this2.backendConnector.saveMissing(l, namespace, k, updateMissing ? options.defaultValue : res, updateMissing, options);
298394
+ _this2.backendConnector.saveMissing(l, namespace, k, updateMissing ? fallbackValue : res, updateMissing, options);
298682
298395
  }
298683
298396
 
298684
298397
  _this2.emit('missingKey', l, namespace, k, res);
298685
298398
  };
298686
298399
 
298687
298400
  if (this.options.saveMissing) {
298688
- var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';
298689
-
298690
298401
  if (this.options.saveMissingPlurals && needsPluralHandling) {
298691
- lngs.forEach(function (l) {
298692
- var plurals = _this2.pluralResolver.getPluralFormsOfKey(l, key);
298693
-
298694
- plurals.forEach(function (p) {
298695
- return send([l], p);
298402
+ lngs.forEach(function (language) {
298403
+ _this2.pluralResolver.getSuffixes(language).forEach(function (suffix) {
298404
+ send([language], key + suffix, options["defaultValue".concat(suffix)] || defaultValue);
298696
298405
  });
298697
298406
  });
298698
298407
  } else {
298699
- send(lngs, key);
298408
+ send(lngs, key, defaultValue);
298700
298409
  }
298701
298410
  }
298702
- } // extend
298703
-
298704
-
298705
- res = this.extendTranslation(res, keys, options, resolved); // append namespace if still key
298706
-
298707
- if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = "".concat(namespace, ":").concat(key); // parseMissingKeyHandler
298411
+ }
298708
298412
 
298413
+ res = this.extendTranslation(res, keys, options, resolved, lastKey);
298414
+ if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = "".concat(namespace, ":").concat(key);
298709
298415
  if (usedKey && this.options.parseMissingKeyHandler) res = this.options.parseMissingKeyHandler(res);
298710
- } // return
298711
-
298416
+ }
298712
298417
 
298713
298418
  return res;
298714
298419
  }
298715
298420
  }, {
298716
298421
  key: "extendTranslation",
298717
- value: function extendTranslation(res, key, options, resolved) {
298422
+ value: function extendTranslation(res, key, options, resolved, lastKey) {
298718
298423
  var _this3 = this;
298719
298424
 
298720
298425
  if (this.i18nFormat && this.i18nFormat.parse) {
@@ -298722,27 +298427,48 @@ function (_EventEmitter) {
298722
298427
  resolved: resolved
298723
298428
  });
298724
298429
  } else if (!options.skipInterpolation) {
298725
- // i18next.parsing
298726
- if (options.interpolation) this.interpolator.init(_objectSpread({}, options, {
298727
- interpolation: _objectSpread({}, this.options.interpolation, options.interpolation)
298728
- })); // interpolate
298430
+ if (options.interpolation) this.interpolator.init((0,objectSpread/* ["default"] */.A)({}, options, {
298431
+ interpolation: (0,objectSpread/* ["default"] */.A)({}, this.options.interpolation, options.interpolation)
298432
+ }));
298433
+ var skipOnVariables = options.interpolation && options.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
298434
+ var nestBef;
298435
+
298436
+ if (skipOnVariables) {
298437
+ var nb = res.match(this.interpolator.nestingRegexp);
298438
+ nestBef = nb && nb.length;
298439
+ }
298729
298440
 
298730
298441
  var data = options.replace && typeof options.replace !== 'string' ? options.replace : options;
298731
- if (this.options.interpolation.defaultVariables) data = _objectSpread({}, this.options.interpolation.defaultVariables, data);
298732
- res = this.interpolator.interpolate(res, data, options.lng || this.language, options); // nesting
298442
+ if (this.options.interpolation.defaultVariables) data = (0,objectSpread/* ["default"] */.A)({}, this.options.interpolation.defaultVariables, data);
298443
+ res = this.interpolator.interpolate(res, data, options.lng || this.language, options);
298444
+
298445
+ if (skipOnVariables) {
298446
+ var na = res.match(this.interpolator.nestingRegexp);
298447
+ var nestAft = na && na.length;
298448
+ if (nestBef < nestAft) options.nest = false;
298449
+ }
298733
298450
 
298734
298451
  if (options.nest !== false) res = this.interpolator.nest(res, function () {
298735
- return _this3.translate.apply(_this3, arguments);
298452
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
298453
+ args[_key] = arguments[_key];
298454
+ }
298455
+
298456
+ if (lastKey && lastKey[0] === args[0] && !options.context) {
298457
+ _this3.logger.warn("It seems you are nesting recursively key: ".concat(args[0], " in key: ").concat(key[0]));
298458
+
298459
+ return null;
298460
+ }
298461
+
298462
+ return _this3.translate.apply(_this3, args.concat([key]));
298736
298463
  }, options);
298737
298464
  if (options.interpolation) this.interpolator.reset();
298738
- } // post process
298739
-
298465
+ }
298740
298466
 
298741
298467
  var postProcess = options.postProcess || this.options.postProcess;
298742
298468
  var postProcessorNames = typeof postProcess === 'string' ? [postProcess] : postProcess;
298743
298469
 
298744
298470
  if (res !== undefined && res !== null && postProcessorNames && postProcessorNames.length && options.applyPostProcessor !== false) {
298745
- res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? _objectSpread({
298471
+ res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? (0,objectSpread/* ["default"] */.A)({
298746
298472
  i18nResolved: resolved
298747
298473
  }, options) : options, this);
298748
298474
  }
@@ -298756,14 +298482,11 @@ function (_EventEmitter) {
298756
298482
 
298757
298483
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
298758
298484
  var found;
298759
- var usedKey; // plain key
298760
-
298761
- var exactUsedKey; // key with context / plural
298762
-
298485
+ var usedKey;
298486
+ var exactUsedKey;
298763
298487
  var usedLng;
298764
298488
  var usedNS;
298765
- if (typeof keys === 'string') keys = [keys]; // forEach possible key
298766
-
298489
+ if (typeof keys === 'string') keys = [keys];
298767
298490
  keys.forEach(function (k) {
298768
298491
  if (_this4.isValidLookup(found)) return;
298769
298492
 
@@ -298780,8 +298503,10 @@ function (_EventEmitter) {
298780
298503
  if (_this4.isValidLookup(found)) return;
298781
298504
  usedNS = ns;
298782
298505
 
298783
- if (_this4.utils && _this4.utils.hasLoadedNamespace && !_this4.utils.hasLoadedNamespace(usedNS)) {
298784
- _this4.logger.warn("key \"".concat(usedKey, "\" for namespace \"").concat(usedNS, "\" won't get resolved as namespace was not yet loaded"), 'This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');
298506
+ if (!checkedLoadedFor["".concat(codes[0], "-").concat(ns)] && _this4.utils && _this4.utils.hasLoadedNamespace && !_this4.utils.hasLoadedNamespace(usedNS)) {
298507
+ checkedLoadedFor["".concat(codes[0], "-").concat(ns)] = true;
298508
+
298509
+ _this4.logger.warn("key \"".concat(usedKey, "\" for languages \"").concat(codes.join(', '), "\" won't get resolved as namespace \"").concat(usedNS, "\" was not yet loaded"), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');
298785
298510
  }
298786
298511
 
298787
298512
  codes.forEach(function (code) {
@@ -298794,18 +298519,13 @@ function (_EventEmitter) {
298794
298519
  _this4.i18nFormat.addLookupKeys(finalKeys, key, code, ns, options);
298795
298520
  } else {
298796
298521
  var pluralSuffix;
298797
- if (needsPluralHandling) pluralSuffix = _this4.pluralResolver.getSuffix(code, options.count); // fallback for plural if context not found
298798
-
298799
- if (needsPluralHandling && needsContextHandling) finalKeys.push(finalKey + pluralSuffix); // get key for context if needed
298800
-
298801
- if (needsContextHandling) finalKeys.push(finalKey += "".concat(_this4.options.contextSeparator).concat(options.context)); // get key for plural if needed
298802
-
298522
+ if (needsPluralHandling) pluralSuffix = _this4.pluralResolver.getSuffix(code, options.count);
298523
+ if (needsPluralHandling && needsContextHandling) finalKeys.push(finalKey + pluralSuffix);
298524
+ if (needsContextHandling) finalKeys.push(finalKey += "".concat(_this4.options.contextSeparator).concat(options.context));
298803
298525
  if (needsPluralHandling) finalKeys.push(finalKey += pluralSuffix);
298804
- } // iterate over finalKeys starting with most specific pluralkey (-> contextkey only) -> singularkey only
298805
-
298526
+ }
298806
298527
 
298807
298528
  var possibleKey;
298808
- /* eslint no-cond-assign: 0 */
298809
298529
 
298810
298530
  while (possibleKey = finalKeys.pop()) {
298811
298531
  if (!_this4.isValidLookup(found)) {
@@ -298836,6 +298556,19 @@ function (_EventEmitter) {
298836
298556
  if (this.i18nFormat && this.i18nFormat.getResource) return this.i18nFormat.getResource(code, ns, key, options);
298837
298557
  return this.resourceStore.getResource(code, ns, key, options);
298838
298558
  }
298559
+ }], [{
298560
+ key: "hasDefaultValue",
298561
+ value: function hasDefaultValue(options) {
298562
+ var prefix = 'defaultValue';
298563
+
298564
+ for (var option in options) {
298565
+ if (Object.prototype.hasOwnProperty.call(options, option) && prefix === option.substring(0, prefix.length) && undefined !== options[option]) {
298566
+ return true;
298567
+ }
298568
+ }
298569
+
298570
+ return false;
298571
+ }
298839
298572
  }]);
298840
298573
 
298841
298574
  return Translator;
@@ -298845,24 +298578,24 @@ function capitalize(string) {
298845
298578
  return string.charAt(0).toUpperCase() + string.slice(1);
298846
298579
  }
298847
298580
 
298848
- var i18next_LanguageUtil =
298849
- /*#__PURE__*/
298850
- function () {
298581
+ var i18next_LanguageUtil = function () {
298851
298582
  function LanguageUtil(options) {
298852
- _classCallCheck(this, LanguageUtil);
298583
+ (0,classCallCheck/* ["default"] */.A)(this, LanguageUtil);
298853
298584
 
298854
298585
  this.options = options;
298855
- this.whitelist = this.options.whitelist || false;
298586
+ this.whitelist = this.options.supportedLngs || false;
298587
+ this.supportedLngs = this.options.supportedLngs || false;
298856
298588
  this.logger = baseLogger.create('languageUtils');
298857
298589
  }
298858
298590
 
298859
- _createClass(LanguageUtil, [{
298591
+ (0,createClass/* ["default"] */.A)(LanguageUtil, [{
298860
298592
  key: "getScriptPartFromCode",
298861
298593
  value: function getScriptPartFromCode(code) {
298862
298594
  if (!code || code.indexOf('-') < 0) return null;
298863
298595
  var p = code.split('-');
298864
298596
  if (p.length === 2) return null;
298865
298597
  p.pop();
298598
+ if (p[p.length - 1].toLowerCase() === 'x') return null;
298866
298599
  return this.formatLanguageCode(p.join('-'));
298867
298600
  }
298868
298601
  }, {
@@ -298875,7 +298608,6 @@ function () {
298875
298608
  }, {
298876
298609
  key: "formatLanguageCode",
298877
298610
  value: function formatLanguageCode(code) {
298878
- // http://www.iana.org/assignments/language-tags/language-tags.xhtml
298879
298611
  if (typeof code === 'string' && code.indexOf('-') > -1) {
298880
298612
  var specialCases = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab'];
298881
298613
  var p = code.split('-');
@@ -298889,8 +298621,7 @@ function () {
298889
298621
  p[1] = p[1].toUpperCase();
298890
298622
  if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());
298891
298623
  } else if (p.length === 3) {
298892
- p[0] = p[0].toLowerCase(); // if lenght 2 guess it's a country
298893
-
298624
+ p[0] = p[0].toLowerCase();
298894
298625
  if (p[1].length === 2) p[1] = p[1].toUpperCase();
298895
298626
  if (p[0] !== 'sgn' && p[2].length === 2) p[2] = p[2].toUpperCase();
298896
298627
  if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());
@@ -298905,30 +298636,68 @@ function () {
298905
298636
  }, {
298906
298637
  key: "isWhitelisted",
298907
298638
  value: function isWhitelisted(code) {
298908
- if (this.options.load === 'languageOnly' || this.options.nonExplicitWhitelist) {
298639
+ this.logger.deprecate('languageUtils.isWhitelisted', 'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.');
298640
+ return this.isSupportedCode(code);
298641
+ }
298642
+ }, {
298643
+ key: "isSupportedCode",
298644
+ value: function isSupportedCode(code) {
298645
+ if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {
298909
298646
  code = this.getLanguagePartFromCode(code);
298910
298647
  }
298911
298648
 
298912
- return !this.whitelist || !this.whitelist.length || this.whitelist.indexOf(code) > -1;
298649
+ return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(code) > -1;
298650
+ }
298651
+ }, {
298652
+ key: "getBestMatchFromCodes",
298653
+ value: function getBestMatchFromCodes(codes) {
298654
+ var _this = this;
298655
+
298656
+ if (!codes) return null;
298657
+ var found;
298658
+ codes.forEach(function (code) {
298659
+ if (found) return;
298660
+
298661
+ var cleanedLng = _this.formatLanguageCode(code);
298662
+
298663
+ if (!_this.options.supportedLngs || _this.isSupportedCode(cleanedLng)) found = cleanedLng;
298664
+ });
298665
+
298666
+ if (!found && this.options.supportedLngs) {
298667
+ codes.forEach(function (code) {
298668
+ if (found) return;
298669
+
298670
+ var lngOnly = _this.getLanguagePartFromCode(code);
298671
+
298672
+ if (_this.isSupportedCode(lngOnly)) return found = lngOnly;
298673
+ found = _this.options.supportedLngs.find(function (supportedLng) {
298674
+ if (supportedLng.indexOf(lngOnly) === 0) return supportedLng;
298675
+ });
298676
+ });
298677
+ }
298678
+
298679
+ if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];
298680
+ return found;
298913
298681
  }
298914
298682
  }, {
298915
298683
  key: "getFallbackCodes",
298916
298684
  value: function getFallbackCodes(fallbacks, code) {
298917
298685
  if (!fallbacks) return [];
298686
+ if (typeof fallbacks === 'function') fallbacks = fallbacks(code);
298918
298687
  if (typeof fallbacks === 'string') fallbacks = [fallbacks];
298919
298688
  if (Object.prototype.toString.apply(fallbacks) === '[object Array]') return fallbacks;
298920
- if (!code) return fallbacks["default"] || []; // asume we have an object defining fallbacks
298921
-
298689
+ if (!code) return fallbacks["default"] || [];
298922
298690
  var found = fallbacks[code];
298923
298691
  if (!found) found = fallbacks[this.getScriptPartFromCode(code)];
298924
298692
  if (!found) found = fallbacks[this.formatLanguageCode(code)];
298693
+ if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];
298925
298694
  if (!found) found = fallbacks["default"];
298926
298695
  return found || [];
298927
298696
  }
298928
298697
  }, {
298929
298698
  key: "toResolveHierarchy",
298930
298699
  value: function toResolveHierarchy(code, fallbackCode) {
298931
- var _this = this;
298700
+ var _this2 = this;
298932
298701
 
298933
298702
  var fallbackCodes = this.getFallbackCodes(fallbackCode || this.options.fallbackLng || [], code);
298934
298703
  var codes = [];
@@ -298936,10 +298705,10 @@ function () {
298936
298705
  var addCode = function addCode(c) {
298937
298706
  if (!c) return;
298938
298707
 
298939
- if (_this.isWhitelisted(c)) {
298708
+ if (_this2.isSupportedCode(c)) {
298940
298709
  codes.push(c);
298941
298710
  } else {
298942
- _this.logger.warn("rejecting non-whitelisted language code: ".concat(c));
298711
+ _this2.logger.warn("rejecting language code not found in supportedLngs: ".concat(c));
298943
298712
  }
298944
298713
  };
298945
298714
 
@@ -298952,7 +298721,7 @@ function () {
298952
298721
  }
298953
298722
 
298954
298723
  fallbackCodes.forEach(function (fc) {
298955
- if (codes.indexOf(fc) < 0) addCode(_this.formatLanguageCode(fc));
298724
+ if (codes.indexOf(fc) < 0) addCode(_this2.formatLanguageCode(fc));
298956
298725
  });
298957
298726
  return codes;
298958
298727
  }
@@ -298961,10 +298730,8 @@ function () {
298961
298730
  return LanguageUtil;
298962
298731
  }();
298963
298732
 
298964
- /* eslint-disable */
298965
-
298966
298733
  var sets = [{
298967
- lngs: ['ach', 'ak', 'am', 'arn', 'br', 'fil', 'gun', 'ln', 'mfe', 'mg', 'mi', 'oc', 'pt', 'pt-BR', 'tg', 'ti', 'tr', 'uz', 'wa'],
298734
+ lngs: ['ach', 'ak', 'am', 'arn', 'br', 'fil', 'gun', 'ln', 'mfe', 'mg', 'mi', 'oc', 'pt', 'pt-BR', 'tg', 'tl', 'ti', 'tr', 'uz', 'wa'],
298968
298735
  nr: [1, 2],
298969
298736
  fc: 1
298970
298737
  }, {
@@ -298972,7 +298739,7 @@ var sets = [{
298972
298739
  nr: [1, 2],
298973
298740
  fc: 2
298974
298741
  }, {
298975
- lngs: ['ay', 'bo', 'cgg', 'fa', 'id', 'ja', 'jbo', 'ka', 'kk', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],
298742
+ lngs: ['ay', 'bo', 'cgg', 'fa', 'ht', 'id', 'ja', 'jbo', 'ka', 'kk', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],
298976
298743
  nr: [1],
298977
298744
  fc: 3
298978
298745
  }, {
@@ -299052,7 +298819,7 @@ var sets = [{
299052
298819
  nr: [5, 1, 2, 3],
299053
298820
  fc: 21
299054
298821
  }, {
299055
- lngs: ['he'],
298822
+ lngs: ['he', 'iw'],
299056
298823
  nr: [1, 2, 20, 21],
299057
298824
  fc: 22
299058
298825
  }];
@@ -299070,7 +298837,7 @@ var _rulesPluralsTypes = {
299070
298837
  return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
299071
298838
  },
299072
298839
  5: function _(n) {
299073
- return Number(n === 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);
298840
+ return Number(n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5);
299074
298841
  },
299075
298842
  6: function _(n) {
299076
298843
  return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);
@@ -299106,25 +298873,24 @@ var _rulesPluralsTypes = {
299106
298873
  return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);
299107
298874
  },
299108
298875
  17: function _(n) {
299109
- return Number(n == 1 || n % 10 == 1 ? 0 : 1);
298876
+ return Number(n == 1 || n % 10 == 1 && n % 100 != 11 ? 0 : 1);
299110
298877
  },
299111
298878
  18: function _(n) {
299112
298879
  return Number(n == 0 ? 0 : n == 1 ? 1 : 2);
299113
298880
  },
299114
298881
  19: function _(n) {
299115
- return Number(n == 1 ? 0 : n === 0 || n % 100 > 1 && n % 100 < 11 ? 1 : n % 100 > 10 && n % 100 < 20 ? 2 : 3);
298882
+ return Number(n == 1 ? 0 : n == 0 || n % 100 > 1 && n % 100 < 11 ? 1 : n % 100 > 10 && n % 100 < 20 ? 2 : 3);
299116
298883
  },
299117
298884
  20: function _(n) {
299118
- return Number(n == 1 ? 0 : n === 0 || n % 100 > 0 && n % 100 < 20 ? 1 : 2);
298885
+ return Number(n == 1 ? 0 : n == 0 || n % 100 > 0 && n % 100 < 20 ? 1 : 2);
299119
298886
  },
299120
298887
  21: function _(n) {
299121
298888
  return Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);
299122
298889
  },
299123
298890
  22: function _(n) {
299124
- return Number(n === 1 ? 0 : n === 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3);
298891
+ return Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3);
299125
298892
  }
299126
298893
  };
299127
- /* eslint-enable */
299128
298894
 
299129
298895
  function createRules() {
299130
298896
  var rules = {};
@@ -299139,13 +298905,11 @@ function createRules() {
299139
298905
  return rules;
299140
298906
  }
299141
298907
 
299142
- var i18next_PluralResolver =
299143
- /*#__PURE__*/
299144
- function () {
298908
+ var i18next_PluralResolver = function () {
299145
298909
  function PluralResolver(languageUtils) {
299146
298910
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
299147
298911
 
299148
- _classCallCheck(this, PluralResolver);
298912
+ (0,classCallCheck/* ["default"] */.A)(this, PluralResolver);
299149
298913
 
299150
298914
  this.languageUtils = languageUtils;
299151
298915
  this.options = options;
@@ -299153,7 +298917,7 @@ function () {
299153
298917
  this.rules = createRules();
299154
298918
  }
299155
298919
 
299156
- _createClass(PluralResolver, [{
298920
+ (0,createClass/* ["default"] */.A)(PluralResolver, [{
299157
298921
  key: "addRule",
299158
298922
  value: function addRule(lng, obj) {
299159
298923
  this.rules[lng] = obj;
@@ -299172,17 +298936,24 @@ function () {
299172
298936
  }, {
299173
298937
  key: "getPluralFormsOfKey",
299174
298938
  value: function getPluralFormsOfKey(code, key) {
298939
+ return this.getSuffixes(code).map(function (suffix) {
298940
+ return key + suffix;
298941
+ });
298942
+ }
298943
+ }, {
298944
+ key: "getSuffixes",
298945
+ value: function getSuffixes(code) {
299175
298946
  var _this = this;
299176
298947
 
299177
- var ret = [];
299178
298948
  var rule = this.getRule(code);
299179
- if (!rule) return ret;
299180
- rule.numbers.forEach(function (n) {
299181
- var suffix = _this.getSuffix(code, n);
299182
298949
 
299183
- ret.push("".concat(key).concat(suffix));
298950
+ if (!rule) {
298951
+ return [];
298952
+ }
298953
+
298954
+ return rule.numbers.map(function (number) {
298955
+ return _this.getSuffix(code, number);
299184
298956
  });
299185
- return ret;
299186
298957
  }
299187
298958
  }, {
299188
298959
  key: "getSuffix",
@@ -299192,9 +298963,8 @@ function () {
299192
298963
  var rule = this.getRule(code);
299193
298964
 
299194
298965
  if (rule) {
299195
- // if (rule.numbers.length === 1) return ''; // only singular
299196
298966
  var idx = rule.noAbs ? rule.plurals(count) : rule.plurals(Math.abs(count));
299197
- var suffix = rule.numbers[idx]; // special treatment for lngs only having singular and plural
298967
+ var suffix = rule.numbers[idx];
299198
298968
 
299199
298969
  if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {
299200
298970
  if (suffix === 2) {
@@ -299206,21 +298976,15 @@ function () {
299206
298976
 
299207
298977
  var returnSuffix = function returnSuffix() {
299208
298978
  return _this2.options.prepend && suffix.toString() ? _this2.options.prepend + suffix.toString() : suffix.toString();
299209
- }; // COMPATIBILITY JSON
299210
- // v1
299211
-
298979
+ };
299212
298980
 
299213
298981
  if (this.options.compatibilityJSON === 'v1') {
299214
298982
  if (suffix === 1) return '';
299215
298983
  if (typeof suffix === 'number') return "_plural_".concat(suffix.toString());
299216
298984
  return returnSuffix();
299217
- } else if (
299218
- /* v2 */
299219
- this.options.compatibilityJSON === 'v2') {
298985
+ } else if (this.options.compatibilityJSON === 'v2') {
299220
298986
  return returnSuffix();
299221
- } else if (
299222
- /* v3 - gettext index */
299223
- this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {
298987
+ } else if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {
299224
298988
  return returnSuffix();
299225
298989
  }
299226
298990
 
@@ -299235,13 +298999,11 @@ function () {
299235
298999
  return PluralResolver;
299236
299000
  }();
299237
299001
 
299238
- var i18next_Interpolator =
299239
- /*#__PURE__*/
299240
- function () {
299002
+ var i18next_Interpolator = function () {
299241
299003
  function Interpolator() {
299242
299004
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
299243
299005
 
299244
- _classCallCheck(this, Interpolator);
299006
+ (0,classCallCheck/* ["default"] */.A)(this, Interpolator);
299245
299007
 
299246
299008
  this.logger = baseLogger.create('interpolator');
299247
299009
  this.options = options;
@@ -299252,10 +299014,8 @@ function () {
299252
299014
 
299253
299015
  this.init(options);
299254
299016
  }
299255
- /* eslint no-param-reassign: 0 */
299256
299017
 
299257
-
299258
- _createClass(Interpolator, [{
299018
+ (0,createClass/* ["default"] */.A)(Interpolator, [{
299259
299019
  key: "init",
299260
299020
  value: function init() {
299261
299021
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -299273,8 +299033,9 @@ function () {
299273
299033
  this.unescapeSuffix = this.unescapePrefix ? '' : iOpts.unescapeSuffix || '';
299274
299034
  this.nestingPrefix = iOpts.nestingPrefix ? regexEscape(iOpts.nestingPrefix) : iOpts.nestingPrefixEscaped || regexEscape('$t(');
299275
299035
  this.nestingSuffix = iOpts.nestingSuffix ? regexEscape(iOpts.nestingSuffix) : iOpts.nestingSuffixEscaped || regexEscape(')');
299276
- this.maxReplaces = iOpts.maxReplaces ? iOpts.maxReplaces : 1000; // the regexp
299277
-
299036
+ this.nestingOptionsSeparator = iOpts.nestingOptionsSeparator ? iOpts.nestingOptionsSeparator : iOpts.nestingOptionsSeparator || ',';
299037
+ this.maxReplaces = iOpts.maxReplaces ? iOpts.maxReplaces : 1000;
299038
+ this.alwaysFormat = iOpts.alwaysFormat !== undefined ? iOpts.alwaysFormat : false;
299278
299039
  this.resetRegExp();
299279
299040
  }
299280
299041
  }, {
@@ -299285,7 +299046,6 @@ function () {
299285
299046
  }, {
299286
299047
  key: "resetRegExp",
299287
299048
  value: function resetRegExp() {
299288
- // the regexp
299289
299049
  var regexpStr = "".concat(this.prefix, "(.+?)").concat(this.suffix);
299290
299050
  this.regexp = new RegExp(regexpStr, 'g');
299291
299051
  var regexpUnescapeStr = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
@@ -299309,123 +299069,125 @@ function () {
299309
299069
 
299310
299070
  var handleFormat = function handleFormat(key) {
299311
299071
  if (key.indexOf(_this.formatSeparator) < 0) {
299312
- return getPathWithDefaults(data, defaultData, key);
299072
+ var path = getPathWithDefaults(data, defaultData, key);
299073
+ return _this.alwaysFormat ? _this.format(path, undefined, lng) : path;
299313
299074
  }
299314
299075
 
299315
299076
  var p = key.split(_this.formatSeparator);
299316
299077
  var k = p.shift().trim();
299317
299078
  var f = p.join(_this.formatSeparator).trim();
299318
- return _this.format(getPathWithDefaults(data, defaultData, k), f, lng);
299079
+ return _this.format(getPathWithDefaults(data, defaultData, k), f, lng, options);
299319
299080
  };
299320
299081
 
299321
299082
  this.resetRegExp();
299322
299083
  var missingInterpolationHandler = options && options.missingInterpolationHandler || this.options.missingInterpolationHandler;
299323
- replaces = 0; // unescape if has unescapePrefix/Suffix
299324
-
299325
- /* eslint no-cond-assign: 0 */
299326
-
299327
- while (match = this.regexpUnescape.exec(str)) {
299328
- value = handleFormat(match[1].trim());
299329
-
299330
- if (value === undefined) {
299331
- if (typeof missingInterpolationHandler === 'function') {
299332
- var temp = missingInterpolationHandler(str, match, options);
299333
- value = typeof temp === 'string' ? temp : '';
299334
- } else {
299335
- this.logger.warn("missed to pass in variable ".concat(match[1], " for interpolating ").concat(str));
299336
- value = '';
299337
- }
299338
- } else if (typeof value !== 'string' && !this.useRawValueToEscape) {
299339
- value = makeString(value);
299084
+ var skipOnVariables = options && options.interpolation && options.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
299085
+ var todos = [{
299086
+ regex: this.regexpUnescape,
299087
+ safeValue: function safeValue(val) {
299088
+ return regexSafe(val);
299340
299089
  }
299341
-
299342
- str = str.replace(match[0], regexSafe(value));
299343
- this.regexpUnescape.lastIndex = 0;
299344
- replaces++;
299345
-
299346
- if (replaces >= this.maxReplaces) {
299347
- break;
299090
+ }, {
299091
+ regex: this.regexp,
299092
+ safeValue: function safeValue(val) {
299093
+ return _this.escapeValue ? regexSafe(_this.escape(val)) : regexSafe(val);
299348
299094
  }
299349
- }
299350
-
299351
- replaces = 0; // regular escape on demand
299352
-
299353
- while (match = this.regexp.exec(str)) {
299354
- value = handleFormat(match[1].trim());
299355
-
299356
- if (value === undefined) {
299357
- if (typeof missingInterpolationHandler === 'function') {
299358
- var _temp = missingInterpolationHandler(str, match, options);
299095
+ }];
299096
+ todos.forEach(function (todo) {
299097
+ replaces = 0;
299098
+
299099
+ while (match = todo.regex.exec(str)) {
299100
+ value = handleFormat(match[1].trim());
299101
+
299102
+ if (value === undefined) {
299103
+ if (typeof missingInterpolationHandler === 'function') {
299104
+ var temp = missingInterpolationHandler(str, match, options);
299105
+ value = typeof temp === 'string' ? temp : '';
299106
+ } else if (skipOnVariables) {
299107
+ value = match[0];
299108
+ continue;
299109
+ } else {
299110
+ _this.logger.warn("missed to pass in variable ".concat(match[1], " for interpolating ").concat(str));
299359
299111
 
299360
- value = typeof _temp === 'string' ? _temp : '';
299361
- } else {
299362
- this.logger.warn("missed to pass in variable ".concat(match[1], " for interpolating ").concat(str));
299363
- value = '';
299112
+ value = '';
299113
+ }
299114
+ } else if (typeof value !== 'string' && !_this.useRawValueToEscape) {
299115
+ value = makeString(value);
299364
299116
  }
299365
- } else if (typeof value !== 'string' && !this.useRawValueToEscape) {
299366
- value = makeString(value);
299367
- }
299368
299117
 
299369
- value = this.escapeValue ? regexSafe(this.escape(value)) : regexSafe(value);
299370
- str = str.replace(match[0], value);
299371
- this.regexp.lastIndex = 0;
299372
- replaces++;
299118
+ str = str.replace(match[0], todo.safeValue(value));
299119
+ todo.regex.lastIndex = 0;
299120
+ replaces++;
299373
299121
 
299374
- if (replaces >= this.maxReplaces) {
299375
- break;
299122
+ if (replaces >= _this.maxReplaces) {
299123
+ break;
299124
+ }
299376
299125
  }
299377
- }
299378
-
299126
+ });
299379
299127
  return str;
299380
299128
  }
299381
299129
  }, {
299382
299130
  key: "nest",
299383
299131
  value: function nest(str, fc) {
299132
+ var _this2 = this;
299133
+
299384
299134
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
299385
299135
  var match;
299386
299136
  var value;
299387
299137
 
299388
- var clonedOptions = _objectSpread({}, options);
299138
+ var clonedOptions = (0,objectSpread/* ["default"] */.A)({}, options);
299389
299139
 
299390
- clonedOptions.applyPostProcessor = false; // avoid post processing on nested lookup
299391
-
299392
- delete clonedOptions.defaultValue; // assert we do not get a endless loop on interpolating defaultValue again and again
299393
- // if value is something like "myKey": "lorem $(anotherKey, { "count": {{aValueInOptions}} })"
299140
+ clonedOptions.applyPostProcessor = false;
299141
+ delete clonedOptions.defaultValue;
299394
299142
 
299395
299143
  function handleHasOptions(key, inheritedOptions) {
299396
- if (key.indexOf(',') < 0) return key;
299397
- var p = key.split(',');
299398
- key = p.shift();
299399
- var optionsString = p.join(',');
299144
+ var sep = this.nestingOptionsSeparator;
299145
+ if (key.indexOf(sep) < 0) return key;
299146
+ var c = key.split(new RegExp("".concat(sep, "[ ]*{")));
299147
+ var optionsString = "{".concat(c[1]);
299148
+ key = c[0];
299400
299149
  optionsString = this.interpolate(optionsString, clonedOptions);
299401
299150
  optionsString = optionsString.replace(/'/g, '"');
299402
299151
 
299403
299152
  try {
299404
299153
  clonedOptions = JSON.parse(optionsString);
299405
- if (inheritedOptions) clonedOptions = _objectSpread({}, inheritedOptions, clonedOptions);
299154
+ if (inheritedOptions) clonedOptions = (0,objectSpread/* ["default"] */.A)({}, inheritedOptions, clonedOptions);
299406
299155
  } catch (e) {
299407
- this.logger.error("failed parsing options string in nesting for key ".concat(key), e);
299408
- } // assert we do not get a endless loop on interpolating defaultValue again and again
299409
-
299156
+ this.logger.warn("failed parsing options string in nesting for key ".concat(key), e);
299157
+ return "".concat(key).concat(sep).concat(optionsString);
299158
+ }
299410
299159
 
299411
299160
  delete clonedOptions.defaultValue;
299412
299161
  return key;
299413
- } // regular escape on demand
299414
-
299162
+ }
299415
299163
 
299416
299164
  while (match = this.nestingRegexp.exec(str)) {
299417
- value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions); // is only the nesting key (key1 = '$(key2)') return the value without stringify
299165
+ var formatters = [];
299166
+ var doReduce = false;
299418
299167
 
299419
- if (value && match[0] === str && typeof value !== 'string') return value; // no string to include or empty
299168
+ if (match[0].includes(this.formatSeparator) && !/{.*}/.test(match[1])) {
299169
+ var r = match[1].split(this.formatSeparator).map(function (elem) {
299170
+ return elem.trim();
299171
+ });
299172
+ match[1] = r.shift();
299173
+ formatters = r;
299174
+ doReduce = true;
299175
+ }
299420
299176
 
299177
+ value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);
299178
+ if (value && match[0] === str && typeof value !== 'string') return value;
299421
299179
  if (typeof value !== 'string') value = makeString(value);
299422
299180
 
299423
299181
  if (!value) {
299424
299182
  this.logger.warn("missed to resolve ".concat(match[1], " for nesting ").concat(str));
299425
299183
  value = '';
299426
- } // Nested keys should not be escaped by default #854
299427
- // value = this.escapeValue ? regexSafe(utils.escape(value)) : regexSafe(value);
299184
+ }
299428
299185
 
299186
+ if (doReduce) {
299187
+ value = formatters.reduce(function (v, f) {
299188
+ return _this2.format(v, f, options.lng, options);
299189
+ }, value.trim());
299190
+ }
299429
299191
 
299430
299192
  str = str.replace(match[0], value);
299431
299193
  this.regexp.lastIndex = 0;
@@ -299447,9 +299209,7 @@ function remove(arr, what) {
299447
299209
  }
299448
299210
  }
299449
299211
 
299450
- var i18next_Connector =
299451
- /*#__PURE__*/
299452
- function (_EventEmitter) {
299212
+ var i18next_Connector = function (_EventEmitter) {
299453
299213
  _inherits(Connector, _EventEmitter);
299454
299214
 
299455
299215
  function Connector(backend, store, services) {
@@ -299457,10 +299217,13 @@ function (_EventEmitter) {
299457
299217
 
299458
299218
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
299459
299219
 
299460
- _classCallCheck(this, Connector);
299220
+ (0,classCallCheck/* ["default"] */.A)(this, Connector);
299461
299221
 
299462
299222
  _this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this));
299463
- i18next_EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)
299223
+
299224
+ if (isIE10) {
299225
+ i18next_EventEmitter.call((0,assertThisInitialized/* ["default"] */.A)(_this));
299226
+ }
299464
299227
 
299465
299228
  _this.backend = backend;
299466
299229
  _this.store = store;
@@ -299478,12 +299241,11 @@ function (_EventEmitter) {
299478
299241
  return _this;
299479
299242
  }
299480
299243
 
299481
- _createClass(Connector, [{
299244
+ (0,createClass/* ["default"] */.A)(Connector, [{
299482
299245
  key: "queueLoad",
299483
299246
  value: function queueLoad(languages, namespaces, options, callback) {
299484
299247
  var _this2 = this;
299485
299248
 
299486
- // find what needs to be loaded
299487
299249
  var toLoad = [];
299488
299250
  var pending = [];
299489
299251
  var toLoadLanguages = [];
@@ -299494,12 +299256,11 @@ function (_EventEmitter) {
299494
299256
  var name = "".concat(lng, "|").concat(ns);
299495
299257
 
299496
299258
  if (!options.reload && _this2.store.hasResourceBundle(lng, ns)) {
299497
- _this2.state[name] = 2; // loaded
299259
+ _this2.state[name] = 2;
299498
299260
  } else if (_this2.state[name] < 0) ; else if (_this2.state[name] === 1) {
299499
299261
  if (pending.indexOf(name) < 0) pending.push(name);
299500
299262
  } else {
299501
- _this2.state[name] = 1; // pending
299502
-
299263
+ _this2.state[name] = 1;
299503
299264
  hasAllNamespaces = false;
299504
299265
  if (pending.indexOf(name) < 0) pending.push(name);
299505
299266
  if (toLoad.indexOf(name) < 0) toLoad.push(name);
@@ -299528,29 +299289,23 @@ function (_EventEmitter) {
299528
299289
  }, {
299529
299290
  key: "loaded",
299530
299291
  value: function loaded(name, err, data) {
299531
- var _name$split = name.split('|'),
299532
- _name$split2 = _slicedToArray(_name$split, 2),
299533
- lng = _name$split2[0],
299534
- ns = _name$split2[1];
299535
-
299292
+ var s = name.split('|');
299293
+ var lng = s[0];
299294
+ var ns = s[1];
299536
299295
  if (err) this.emit('failedLoading', lng, ns, err);
299537
299296
 
299538
299297
  if (data) {
299539
299298
  this.store.addResourceBundle(lng, ns, data);
299540
- } // set loaded
299541
-
299542
-
299543
- this.state[name] = err ? -1 : 2; // consolidated loading done in this run - only emit once for a loaded namespace
299544
-
299545
- var loaded = {}; // callback if ready
299299
+ }
299546
299300
 
299301
+ this.state[name] = err ? -1 : 2;
299302
+ var loaded = {};
299547
299303
  this.queue.forEach(function (q) {
299548
299304
  pushPath(q.loaded, [lng], ns);
299549
299305
  remove(q.pending, name);
299550
299306
  if (err) q.errors.push(err);
299551
299307
 
299552
299308
  if (q.pending.length === 0 && !q.done) {
299553
- // only do once per loaded -> this.emit('loaded', q.loaded);
299554
299309
  Object.keys(q.loaded).forEach(function (l) {
299555
299310
  if (!loaded[l]) loaded[l] = [];
299556
299311
 
@@ -299560,8 +299315,6 @@ function (_EventEmitter) {
299560
299315
  });
299561
299316
  }
299562
299317
  });
299563
- /* eslint no-param-reassign: 0 */
299564
-
299565
299318
  q.done = true;
299566
299319
 
299567
299320
  if (q.errors.length) {
@@ -299570,10 +299323,8 @@ function (_EventEmitter) {
299570
299323
  q.callback();
299571
299324
  }
299572
299325
  }
299573
- }); // emit consolidated loaded event
299574
-
299575
- this.emit('loaded', loaded); // remove done load requests
299576
-
299326
+ });
299327
+ this.emit('loaded', loaded);
299577
299328
  this.queue = this.queue.filter(function (q) {
299578
299329
  return !q.done;
299579
299330
  });
@@ -299584,14 +299335,11 @@ function (_EventEmitter) {
299584
299335
  var _this3 = this;
299585
299336
 
299586
299337
  var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
299587
- var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 250;
299338
+ var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 350;
299588
299339
  var callback = arguments.length > 5 ? arguments[5] : undefined;
299589
- if (!lng.length) return callback(null, {}); // noting to load
299590
-
299340
+ if (!lng.length) return callback(null, {});
299591
299341
  return this.backend[fcName](lng, ns, function (err, data) {
299592
- if (err && data
299593
- /* = retryFlag */
299594
- && tried < 5) {
299342
+ if (err && data && tried < 5) {
299595
299343
  setTimeout(function () {
299596
299344
  _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
299597
299345
  }, wait);
@@ -299601,8 +299349,6 @@ function (_EventEmitter) {
299601
299349
  callback(err, data);
299602
299350
  });
299603
299351
  }
299604
- /* eslint consistent-return: 0 */
299605
-
299606
299352
  }, {
299607
299353
  key: "prepareLoading",
299608
299354
  value: function prepareLoading(languages, namespaces) {
@@ -299621,9 +299367,8 @@ function (_EventEmitter) {
299621
299367
  var toLoad = this.queueLoad(languages, namespaces, options, callback);
299622
299368
 
299623
299369
  if (!toLoad.toLoad.length) {
299624
- if (!toLoad.pending.length) callback(); // nothing to load and no pendings...callback now
299625
-
299626
- return null; // pendings will trigger callback
299370
+ if (!toLoad.pending.length) callback();
299371
+ return null;
299627
299372
  }
299628
299373
 
299629
299374
  toLoad.toLoad.forEach(function (name) {
@@ -299648,13 +299393,10 @@ function (_EventEmitter) {
299648
299393
  var _this5 = this;
299649
299394
 
299650
299395
  var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
299651
-
299652
- var _name$split3 = name.split('|'),
299653
- _name$split4 = _slicedToArray(_name$split3, 2),
299654
- lng = _name$split4[0],
299655
- ns = _name$split4[1];
299656
-
299657
- this.read(lng, ns, 'read', null, null, function (err, data) {
299396
+ var s = name.split('|');
299397
+ var lng = s[0];
299398
+ var ns = s[1];
299399
+ this.read(lng, ns, 'read', undefined, undefined, function (err, data) {
299658
299400
  if (err) _this5.logger.warn("".concat(prefix, "loading namespace ").concat(ns, " for language ").concat(lng, " failed"), err);
299659
299401
  if (!err && data) _this5.logger.log("".concat(prefix, "loaded namespace ").concat(ns, " for language ").concat(lng), data);
299660
299402
 
@@ -299667,18 +299409,17 @@ function (_EventEmitter) {
299667
299409
  var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
299668
299410
 
299669
299411
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(namespace)) {
299670
- this.logger.warn("did not save key \"".concat(key, "\" for namespace \"").concat(namespace, "\" as the namespace was not yet loaded"), 'This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');
299412
+ this.logger.warn("did not save key \"".concat(key, "\" as the namespace \"").concat(namespace, "\" was not yet loaded"), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');
299671
299413
  return;
299672
299414
  }
299673
299415
 
299416
+ if (key === undefined || key === null || key === '') return;
299417
+
299674
299418
  if (this.backend && this.backend.create) {
299675
- this.backend.create(languages, namespace, key, fallbackValue, null
299676
- /* unused callback */
299677
- , _objectSpread({}, options, {
299419
+ this.backend.create(languages, namespace, key, fallbackValue, null, (0,objectSpread/* ["default"] */.A)({}, options, {
299678
299420
  isUpdate: isUpdate
299679
299421
  }));
299680
- } // write to store to avoid resending
299681
-
299422
+ }
299682
299423
 
299683
299424
  if (!languages || !languages[0]) return;
299684
299425
  this.store.addResource(languages[0], namespace, key, fallbackValue);
@@ -299696,57 +299437,41 @@ function get() {
299696
299437
  defaultNS: ['translation'],
299697
299438
  fallbackLng: ['dev'],
299698
299439
  fallbackNS: false,
299699
- // string or array of namespaces
299700
299440
  whitelist: false,
299701
- // array with whitelisted languages
299702
299441
  nonExplicitWhitelist: false,
299442
+ supportedLngs: false,
299443
+ nonExplicitSupportedLngs: false,
299703
299444
  load: 'all',
299704
- // | currentOnly | languageOnly
299705
299445
  preload: false,
299706
- // array with preload languages
299707
299446
  simplifyPluralSuffix: true,
299708
299447
  keySeparator: '.',
299709
299448
  nsSeparator: ':',
299710
299449
  pluralSeparator: '_',
299711
299450
  contextSeparator: '_',
299712
299451
  partialBundledLanguages: false,
299713
- // allow bundling certain languages that are not remotely fetched
299714
299452
  saveMissing: false,
299715
- // enable to send missing values
299716
299453
  updateMissing: false,
299717
- // enable to update default values if different from translated value (only useful on initial development, or when keeping code as source of truth)
299718
299454
  saveMissingTo: 'fallback',
299719
- // 'current' || 'all'
299720
299455
  saveMissingPlurals: true,
299721
- // will save all forms not only singular key
299722
299456
  missingKeyHandler: false,
299723
- // function(lng, ns, key, fallbackValue) -> override if prefer on handling
299724
299457
  missingInterpolationHandler: false,
299725
- // function(str, match)
299726
299458
  postProcess: false,
299727
- // string or array of postProcessor names
299728
299459
  postProcessPassResolved: false,
299729
- // pass resolved object into 'options.i18nResolved' for postprocessor
299730
299460
  returnNull: true,
299731
- // allows null value as valid translation
299732
299461
  returnEmptyString: true,
299733
- // allows empty string value as valid translation
299734
299462
  returnObjects: false,
299735
299463
  joinArrays: false,
299736
- // or string to join array
299737
299464
  returnedObjectHandler: false,
299738
- // function(key, value, options) triggered if key returns object but returnObjects is set to false
299739
299465
  parseMissingKeyHandler: false,
299740
- // function(key) parsed a key that was not found in t() before returning
299741
299466
  appendNamespaceToMissingKey: false,
299742
299467
  appendNamespaceToCIMode: false,
299743
299468
  overloadTranslationOptionHandler: function handle(args) {
299744
299469
  var ret = {};
299745
- if (_typeof(args[1]) === 'object') ret = args[1];
299470
+ if ((0,esm_typeof/* ["default"] */.A)(args[1]) === 'object') ret = args[1];
299746
299471
  if (typeof args[1] === 'string') ret.defaultValue = args[1];
299747
299472
  if (typeof args[2] === 'string') ret.tDescription = args[2];
299748
299473
 
299749
- if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {
299474
+ if ((0,esm_typeof/* ["default"] */.A)(args[2]) === 'object' || (0,esm_typeof/* ["default"] */.A)(args[3]) === 'object') {
299750
299475
  var options = args[3] || args[2];
299751
299476
  Object.keys(options).forEach(function (key) {
299752
299477
  ret[key] = options[key];
@@ -299757,36 +299482,40 @@ function get() {
299757
299482
  },
299758
299483
  interpolation: {
299759
299484
  escapeValue: true,
299760
- format: function format(value, _format, lng) {
299485
+ format: function format(value, _format, lng, options) {
299761
299486
  return value;
299762
299487
  },
299763
299488
  prefix: '{{',
299764
299489
  suffix: '}}',
299765
299490
  formatSeparator: ',',
299766
- // prefixEscaped: '{{',
299767
- // suffixEscaped: '}}',
299768
- // unescapeSuffix: '',
299769
299491
  unescapePrefix: '-',
299770
299492
  nestingPrefix: '$t(',
299771
299493
  nestingSuffix: ')',
299772
- // nestingPrefixEscaped: '$t(',
299773
- // nestingSuffixEscaped: ')',
299774
- // defaultVariables: undefined // object that can have values to interpolate on - extends passed in interpolation data
299775
- maxReplaces: 1000 // max replaces to prevent endless loop
299776
-
299494
+ nestingOptionsSeparator: ',',
299495
+ maxReplaces: 1000,
299496
+ skipOnVariables: false
299777
299497
  }
299778
299498
  };
299779
299499
  }
299780
- /* eslint no-param-reassign: 0 */
299781
-
299782
299500
  function transformOptions(options) {
299783
- // create namespace object if namespace is passed in as string
299784
299501
  if (typeof options.ns === 'string') options.ns = [options.ns];
299785
299502
  if (typeof options.fallbackLng === 'string') options.fallbackLng = [options.fallbackLng];
299786
- if (typeof options.fallbackNS === 'string') options.fallbackNS = [options.fallbackNS]; // extend whitelist with cimode
299503
+ if (typeof options.fallbackNS === 'string') options.fallbackNS = [options.fallbackNS];
299504
+
299505
+ if (options.whitelist) {
299506
+ if (options.whitelist && options.whitelist.indexOf('cimode') < 0) {
299507
+ options.whitelist = options.whitelist.concat(['cimode']);
299508
+ }
299509
+
299510
+ options.supportedLngs = options.whitelist;
299511
+ }
299512
+
299513
+ if (options.nonExplicitWhitelist) {
299514
+ options.nonExplicitSupportedLngs = options.nonExplicitWhitelist;
299515
+ }
299787
299516
 
299788
- if (options.whitelist && options.whitelist.indexOf('cimode') < 0) {
299789
- options.whitelist = options.whitelist.concat(['cimode']);
299517
+ if (options.supportedLngs && options.supportedLngs.indexOf('cimode') < 0) {
299518
+ options.supportedLngs = options.supportedLngs.concat(['cimode']);
299790
299519
  }
299791
299520
 
299792
299521
  return options;
@@ -299794,9 +299523,7 @@ function transformOptions(options) {
299794
299523
 
299795
299524
  function noop() {}
299796
299525
 
299797
- var i18next_I18n =
299798
- /*#__PURE__*/
299799
- function (_EventEmitter) {
299526
+ var i18next_I18n = function (_EventEmitter) {
299800
299527
  _inherits(I18n, _EventEmitter);
299801
299528
 
299802
299529
  function I18n() {
@@ -299805,10 +299532,13 @@ function (_EventEmitter) {
299805
299532
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
299806
299533
  var callback = arguments.length > 1 ? arguments[1] : undefined;
299807
299534
 
299808
- _classCallCheck(this, I18n);
299535
+ (0,classCallCheck/* ["default"] */.A)(this, I18n);
299809
299536
 
299810
299537
  _this = _possibleConstructorReturn(this, _getPrototypeOf(I18n).call(this));
299811
- i18next_EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)
299538
+
299539
+ if (isIE10) {
299540
+ i18next_EventEmitter.call((0,assertThisInitialized/* ["default"] */.A)(_this));
299541
+ }
299812
299542
 
299813
299543
  _this.options = transformOptions(options);
299814
299544
  _this.services = {};
@@ -299818,11 +299548,10 @@ function (_EventEmitter) {
299818
299548
  };
299819
299549
 
299820
299550
  if (callback && !_this.isInitialized && !options.isClone) {
299821
- // https://github.com/i18next/i18next/issues/879
299822
299551
  if (!_this.options.initImmediate) {
299823
299552
  _this.init(options, callback);
299824
299553
 
299825
- return _possibleConstructorReturn(_this, _assertThisInitialized(_this));
299554
+ return _possibleConstructorReturn(_this, (0,assertThisInitialized/* ["default"] */.A)(_this));
299826
299555
  }
299827
299556
 
299828
299557
  setTimeout(function () {
@@ -299833,7 +299562,7 @@ function (_EventEmitter) {
299833
299562
  return _this;
299834
299563
  }
299835
299564
 
299836
- _createClass(I18n, [{
299565
+ (0,createClass/* ["default"] */.A)(I18n, [{
299837
299566
  key: "init",
299838
299567
  value: function init() {
299839
299568
  var _this2 = this;
@@ -299846,7 +299575,15 @@ function (_EventEmitter) {
299846
299575
  options = {};
299847
299576
  }
299848
299577
 
299849
- this.options = _objectSpread({}, get(), this.options, transformOptions(options));
299578
+ if (options.whitelist && !options.supportedLngs) {
299579
+ this.logger.deprecate('whitelist', 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.');
299580
+ }
299581
+
299582
+ if (options.nonExplicitWhitelist && !options.nonExplicitSupportedLngs) {
299583
+ this.logger.deprecate('whitelist', 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.');
299584
+ }
299585
+
299586
+ this.options = (0,objectSpread/* ["default"] */.A)({}, get(), this.options, transformOptions(options));
299850
299587
  this.format = this.options.interpolation.format;
299851
299588
  if (!callback) callback = noop;
299852
299589
 
@@ -299854,8 +299591,7 @@ function (_EventEmitter) {
299854
299591
  if (!ClassOrObject) return null;
299855
299592
  if (typeof ClassOrObject === 'function') return new ClassOrObject();
299856
299593
  return ClassOrObject;
299857
- } // init services
299858
-
299594
+ }
299859
299595
 
299860
299596
  if (!this.options.isClone) {
299861
299597
  if (this.modules.logger) {
@@ -299879,8 +299615,7 @@ function (_EventEmitter) {
299879
299615
  s.utils = {
299880
299616
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
299881
299617
  };
299882
- s.backendConnector = new i18next_Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options); // pipe events from backendConnector
299883
-
299618
+ s.backendConnector = new i18next_Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);
299884
299619
  s.backendConnector.on('*', function (event) {
299885
299620
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
299886
299621
  args[_key - 1] = arguments[_key];
@@ -299899,8 +299634,7 @@ function (_EventEmitter) {
299899
299634
  if (s.i18nFormat.init) s.i18nFormat.init(this);
299900
299635
  }
299901
299636
 
299902
- this.translator = new i18next_Translator(this.services, this.options); // pipe events from translator
299903
-
299637
+ this.translator = new i18next_Translator(this.services, this.options);
299904
299638
  this.translator.on('*', function (event) {
299905
299639
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
299906
299640
  args[_key2 - 1] = arguments[_key2];
@@ -299911,10 +299645,18 @@ function (_EventEmitter) {
299911
299645
  this.modules.external.forEach(function (m) {
299912
299646
  if (m.init) m.init(_this2);
299913
299647
  });
299914
- } // append api
299648
+ }
299649
+
299650
+ if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
299651
+ var codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
299652
+ if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];
299653
+ }
299915
299654
 
299655
+ if (!this.services.languageDetector && !this.options.lng) {
299656
+ this.logger.warn('init: no languageDetector is used and no lng is defined');
299657
+ }
299916
299658
 
299917
- var storeApi = ['getResource', 'addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
299659
+ var storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
299918
299660
  storeApi.forEach(function (fcName) {
299919
299661
  _this2[fcName] = function () {
299920
299662
  var _this2$store;
@@ -299922,20 +299664,33 @@ function (_EventEmitter) {
299922
299664
  return (_this2$store = _this2.store)[fcName].apply(_this2$store, arguments);
299923
299665
  };
299924
299666
  });
299667
+ var storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];
299668
+ storeApiChained.forEach(function (fcName) {
299669
+ _this2[fcName] = function () {
299670
+ var _this2$store2;
299671
+
299672
+ (_this2$store2 = _this2.store)[fcName].apply(_this2$store2, arguments);
299673
+
299674
+ return _this2;
299675
+ };
299676
+ });
299925
299677
  var deferred = defer();
299926
299678
 
299927
299679
  var load = function load() {
299928
- _this2.changeLanguage(_this2.options.lng, function (err, t) {
299680
+ var finish = function finish(err, t) {
299681
+ if (_this2.isInitialized) _this2.logger.warn('init: i18next is already initialized. You should call init just once!');
299929
299682
  _this2.isInitialized = true;
299930
-
299931
- _this2.logger.log('initialized', _this2.options);
299683
+ if (!_this2.options.isClone) _this2.logger.log('initialized', _this2.options);
299932
299684
 
299933
299685
  _this2.emit('initialized', _this2.options);
299934
299686
 
299935
- deferred.resolve(t); // not rejecting on err (as err is only a loading translation failed warning)
299936
-
299687
+ deferred.resolve(t);
299937
299688
  callback(err, t);
299938
- });
299689
+ };
299690
+
299691
+ if (_this2.languages && _this2.options.compatibilityAPI !== 'v1' && !_this2.isInitialized) return finish(null, _this2.t.bind(_this2));
299692
+
299693
+ _this2.changeLanguage(_this2.options.lng, finish);
299939
299694
  };
299940
299695
 
299941
299696
  if (this.options.resources || !this.options.initImmediate) {
@@ -299946,18 +299701,18 @@ function (_EventEmitter) {
299946
299701
 
299947
299702
  return deferred;
299948
299703
  }
299949
- /* eslint consistent-return: 0 */
299950
-
299951
299704
  }, {
299952
299705
  key: "loadResources",
299953
- value: function loadResources() {
299706
+ value: function loadResources(language) {
299954
299707
  var _this3 = this;
299955
299708
 
299956
- var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : noop;
299709
+ var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
299710
+ var usedCallback = callback;
299711
+ var usedLng = typeof language === 'string' ? language : this.language;
299712
+ if (typeof language === 'function') usedCallback = language;
299957
299713
 
299958
299714
  if (!this.options.resources || this.options.partialBundledLanguages) {
299959
- if (this.language && this.language.toLowerCase() === 'cimode') return callback(); // avoid loading resources for cimode
299960
-
299715
+ if (usedLng && usedLng.toLowerCase() === 'cimode') return usedCallback();
299961
299716
  var toLoad = [];
299962
299717
 
299963
299718
  var append = function append(lng) {
@@ -299970,14 +299725,13 @@ function (_EventEmitter) {
299970
299725
  });
299971
299726
  };
299972
299727
 
299973
- if (!this.language) {
299974
- // at least load fallbacks in this case
299728
+ if (!usedLng) {
299975
299729
  var fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
299976
299730
  fallbacks.forEach(function (l) {
299977
299731
  return append(l);
299978
299732
  });
299979
299733
  } else {
299980
- append(this.language);
299734
+ append(usedLng);
299981
299735
  }
299982
299736
 
299983
299737
  if (this.options.preload) {
@@ -299986,9 +299740,9 @@ function (_EventEmitter) {
299986
299740
  });
299987
299741
  }
299988
299742
 
299989
- this.services.backendConnector.load(toLoad, this.options.ns, callback);
299743
+ this.services.backendConnector.load(toLoad, this.options.ns, usedCallback);
299990
299744
  } else {
299991
- callback(null);
299745
+ usedCallback(null);
299992
299746
  }
299993
299747
  }
299994
299748
  }, {
@@ -299999,8 +299753,7 @@ function (_EventEmitter) {
299999
299753
  if (!ns) ns = this.options.ns;
300000
299754
  if (!callback) callback = noop;
300001
299755
  this.services.backendConnector.reload(lngs, ns, function (err) {
300002
- deferred.resolve(); // not rejecting on err (as err is only a loading translation failed warning)
300003
-
299756
+ deferred.resolve();
300004
299757
  callback(err);
300005
299758
  });
300006
299759
  return deferred;
@@ -300008,6 +299761,9 @@ function (_EventEmitter) {
300008
299761
  }, {
300009
299762
  key: "use",
300010
299763
  value: function use(module) {
299764
+ if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');
299765
+ if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');
299766
+
300011
299767
  if (module.type === 'backend') {
300012
299768
  this.modules.backend = module;
300013
299769
  }
@@ -300039,16 +299795,24 @@ function (_EventEmitter) {
300039
299795
  value: function changeLanguage(lng, callback) {
300040
299796
  var _this4 = this;
300041
299797
 
299798
+ this.isLanguageChangingTo = lng;
300042
299799
  var deferred = defer();
300043
299800
  this.emit('languageChanging', lng);
300044
299801
 
300045
299802
  var done = function done(err, l) {
300046
- _this4.translator.changeLanguage(l);
300047
-
300048
299803
  if (l) {
299804
+ _this4.language = l;
299805
+ _this4.languages = _this4.services.languageUtils.toResolveHierarchy(l);
299806
+
299807
+ _this4.translator.changeLanguage(l);
299808
+
299809
+ _this4.isLanguageChangingTo = undefined;
299810
+
300049
299811
  _this4.emit('languageChanged', l);
300050
299812
 
300051
299813
  _this4.logger.log('languageChanged', l);
299814
+ } else {
299815
+ _this4.isLanguageChangingTo = undefined;
300052
299816
  }
300053
299817
 
300054
299818
  deferred.resolve(function () {
@@ -300059,15 +299823,20 @@ function (_EventEmitter) {
300059
299823
  });
300060
299824
  };
300061
299825
 
300062
- var setLng = function setLng(l) {
299826
+ var setLng = function setLng(lngs) {
299827
+ var l = typeof lngs === 'string' ? lngs : _this4.services.languageUtils.getBestMatchFromCodes(lngs);
299828
+
300063
299829
  if (l) {
300064
- _this4.language = l;
300065
- _this4.languages = _this4.services.languageUtils.toResolveHierarchy(l);
299830
+ if (!_this4.language) {
299831
+ _this4.language = l;
299832
+ _this4.languages = _this4.services.languageUtils.toResolveHierarchy(l);
299833
+ }
299834
+
300066
299835
  if (!_this4.translator.language) _this4.translator.changeLanguage(l);
300067
299836
  if (_this4.services.languageDetector) _this4.services.languageDetector.cacheUserLanguage(l);
300068
299837
  }
300069
299838
 
300070
- _this4.loadResources(function (err) {
299839
+ _this4.loadResources(l, function (err) {
300071
299840
  done(err, l);
300072
299841
  });
300073
299842
  };
@@ -300090,14 +299859,14 @@ function (_EventEmitter) {
300090
299859
  var fixedT = function fixedT(key, opts) {
300091
299860
  var options;
300092
299861
 
300093
- if (_typeof(opts) !== 'object') {
299862
+ if ((0,esm_typeof/* ["default"] */.A)(opts) !== 'object') {
300094
299863
  for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
300095
299864
  rest[_key3 - 2] = arguments[_key3];
300096
299865
  }
300097
299866
 
300098
299867
  options = _this5.options.overloadTranslationOptionHandler([key, opts].concat(rest));
300099
299868
  } else {
300100
- options = _objectSpread({}, opts);
299869
+ options = (0,objectSpread/* ["default"] */.A)({}, opts);
300101
299870
  }
300102
299871
 
300103
299872
  options.lng = options.lng || fixedT.lng;
@@ -300139,6 +299908,8 @@ function (_EventEmitter) {
300139
299908
  value: function hasLoadedNamespace(ns) {
300140
299909
  var _this6 = this;
300141
299910
 
299911
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
299912
+
300142
299913
  if (!this.isInitialized) {
300143
299914
  this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);
300144
299915
  return false;
@@ -300151,21 +299922,22 @@ function (_EventEmitter) {
300151
299922
 
300152
299923
  var lng = this.languages[0];
300153
299924
  var fallbackLng = this.options ? this.options.fallbackLng : false;
300154
- var lastLng = this.languages[this.languages.length - 1]; // we're in cimode so this shall pass
300155
-
299925
+ var lastLng = this.languages[this.languages.length - 1];
300156
299926
  if (lng.toLowerCase() === 'cimode') return true;
300157
299927
 
300158
299928
  var loadNotPending = function loadNotPending(l, n) {
300159
299929
  var loadState = _this6.services.backendConnector.state["".concat(l, "|").concat(n)];
300160
299930
 
300161
299931
  return loadState === -1 || loadState === 2;
300162
- }; // loaded -> SUCCESS
300163
-
300164
-
300165
- if (this.hasResourceBundle(lng, ns)) return true; // were not loading at all -> SEMI SUCCESS
299932
+ };
300166
299933
 
300167
- if (!this.services.backendConnector.backend) return true; // failed loading ns - but at least fallback is not pending -> SEMI SUCCESS
299934
+ if (options.precheck) {
299935
+ var preResult = options.precheck(this, loadNotPending);
299936
+ if (preResult !== undefined) return preResult;
299937
+ }
300168
299938
 
299939
+ if (this.hasResourceBundle(lng, ns)) return true;
299940
+ if (!this.services.backendConnector.backend) return true;
300169
299941
  if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
300170
299942
  return false;
300171
299943
  }
@@ -300199,7 +299971,7 @@ function (_EventEmitter) {
300199
299971
  var preloaded = this.options.preload || [];
300200
299972
  var newLngs = lngs.filter(function (lng) {
300201
299973
  return preloaded.indexOf(lng) < 0;
300202
- }); // Exit early if all given languages are already preloaded
299974
+ });
300203
299975
 
300204
299976
  if (!newLngs.length) {
300205
299977
  if (callback) callback();
@@ -300218,11 +299990,9 @@ function (_EventEmitter) {
300218
299990
  value: function dir(lng) {
300219
299991
  if (!lng) lng = this.languages && this.languages.length > 0 ? this.languages[0] : this.language;
300220
299992
  if (!lng) return 'rtl';
300221
- var rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam'];
299993
+ var rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam'];
300222
299994
  return rtlLngs.indexOf(this.services.languageUtils.getLanguagePartFromCode(lng)) >= 0 ? 'rtl' : 'ltr';
300223
299995
  }
300224
- /* eslint class-methods-use-this: 0 */
300225
-
300226
299996
  }, {
300227
299997
  key: "createInstance",
300228
299998
  value: function createInstance() {
@@ -300238,7 +300008,7 @@ function (_EventEmitter) {
300238
300008
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
300239
300009
  var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
300240
300010
 
300241
- var mergedOptions = _objectSpread({}, this.options, options, {
300011
+ var mergedOptions = (0,objectSpread/* ["default"] */.A)({}, this.options, options, {
300242
300012
  isClone: true
300243
300013
  });
300244
300014
 
@@ -300247,6 +300017,10 @@ function (_EventEmitter) {
300247
300017
  membersToCopy.forEach(function (m) {
300248
300018
  clone[m] = _this8[m];
300249
300019
  });
300020
+ clone.services = (0,objectSpread/* ["default"] */.A)({}, this.services);
300021
+ clone.services.utils = {
300022
+ hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
300023
+ };
300250
300024
  clone.translator = new i18next_Translator(clone.services, clone.options);
300251
300025
  clone.translator.on('*', function (event) {
300252
300026
  for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
@@ -300256,8 +300030,10 @@ function (_EventEmitter) {
300256
300030
  clone.emit.apply(clone, [event].concat(args));
300257
300031
  });
300258
300032
  clone.init(mergedOptions, callback);
300259
- clone.translator.options = clone.options; // sync options
300260
-
300033
+ clone.translator.options = clone.options;
300034
+ clone.translator.backendConnector.services.utils = {
300035
+ hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
300036
+ };
300261
300037
  return clone;
300262
300038
  }
300263
300039
  }]);
@@ -338188,33 +337964,234 @@ Object.defineProperty(exports, "YAMLWriter", ({ enumerable: true, get: function
338188
337964
  //# sourceMappingURL=index.js.map
338189
337965
 
338190
337966
  },
338191
- 62625(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
337967
+ 99805(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
337968
+ "use strict";
337969
+ __webpack_require__.d(__webpack_exports__, {
337970
+ A: () => (_assertThisInitialized)
337971
+ });
337972
+ function _assertThisInitialized(e) {
337973
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
337974
+ return e;
337975
+ }
337976
+
337977
+
337978
+ },
337979
+ 82561(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
337980
+ "use strict";
337981
+ __webpack_require__.d(__webpack_exports__, {
337982
+ A: () => (_classCallCheck)
337983
+ });
337984
+ function _classCallCheck(a, n) {
337985
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
337986
+ }
337987
+
337988
+
337989
+ },
337990
+ 77001(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
337991
+ "use strict";
337992
+ __webpack_require__.d(__webpack_exports__, {
337993
+ A: () => (_createClass)
337994
+ });
337995
+ /* import */ var _toPropertyKey_js__rspack_import_0 = __webpack_require__(48670);
337996
+
337997
+ function _defineProperties(e, r) {
337998
+ for (var t = 0; t < r.length; t++) {
337999
+ var o = r[t];
338000
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, (0,_toPropertyKey_js__rspack_import_0/* ["default"] */.A)(o.key), o);
338001
+ }
338002
+ }
338003
+ function _createClass(e, r, t) {
338004
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
338005
+ writable: !1
338006
+ }), e;
338007
+ }
338008
+
338009
+
338010
+ },
338011
+ 36111(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338012
+ "use strict";
338013
+ __webpack_require__.d(__webpack_exports__, {
338014
+ A: () => (_defineProperty)
338015
+ });
338016
+ /* import */ var _toPropertyKey_js__rspack_import_0 = __webpack_require__(48670);
338017
+
338018
+ function _defineProperty(e, r, t) {
338019
+ return (r = (0,_toPropertyKey_js__rspack_import_0/* ["default"] */.A)(r)) in e ? Object.defineProperty(e, r, {
338020
+ value: t,
338021
+ enumerable: !0,
338022
+ configurable: !0,
338023
+ writable: !0
338024
+ }) : e[r] = t, e;
338025
+ }
338026
+
338027
+
338028
+ },
338029
+ 22957(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338030
+ "use strict";
338031
+ __webpack_require__.d(__webpack_exports__, {
338032
+ A: () => (_objectSpread)
338033
+ });
338034
+ /* import */ var _defineProperty_js__rspack_import_0 = __webpack_require__(36111);
338035
+
338036
+ function _objectSpread(e) {
338037
+ for (var r = 1; r < arguments.length; r++) {
338038
+ var t = null != arguments[r] ? Object(arguments[r]) : {},
338039
+ o = Object.keys(t);
338040
+ "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) {
338041
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
338042
+ })), o.forEach(function (r) {
338043
+ (0,_defineProperty_js__rspack_import_0/* ["default"] */.A)(e, r, t[r]);
338044
+ });
338045
+ }
338046
+ return e;
338047
+ }
338048
+
338049
+
338050
+ },
338051
+ 43057(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338052
+ "use strict";
338053
+ __webpack_require__.d(__webpack_exports__, {
338054
+ A: () => (_objectWithoutProperties)
338055
+ });
338056
+ /* import */ var _objectWithoutPropertiesLoose_js__rspack_import_0 = __webpack_require__(61927);
338057
+
338058
+ function _objectWithoutProperties(e, t) {
338059
+ if (null == e) return {};
338060
+ var o,
338061
+ r,
338062
+ i = (0,_objectWithoutPropertiesLoose_js__rspack_import_0/* ["default"] */.A)(e, t);
338063
+ if (Object.getOwnPropertySymbols) {
338064
+ var n = Object.getOwnPropertySymbols(e);
338065
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
338066
+ }
338067
+ return i;
338068
+ }
338069
+
338070
+
338071
+ },
338072
+ 61927(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338073
+ "use strict";
338074
+ __webpack_require__.d(__webpack_exports__, {
338075
+ A: () => (_objectWithoutPropertiesLoose)
338076
+ });
338077
+ function _objectWithoutPropertiesLoose(r, e) {
338078
+ if (null == r) return {};
338079
+ var t = {};
338080
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
338081
+ if (-1 !== e.indexOf(n)) continue;
338082
+ t[n] = r[n];
338083
+ }
338084
+ return t;
338085
+ }
338086
+
338087
+
338088
+ },
338089
+ 82050(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338090
+ "use strict";
338091
+ __webpack_require__.d(__webpack_exports__, {
338092
+ A: () => (_setPrototypeOf)
338093
+ });
338094
+ function _setPrototypeOf(t, e) {
338095
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
338096
+ return t.__proto__ = e, t;
338097
+ }, _setPrototypeOf(t, e);
338098
+ }
338099
+
338100
+
338101
+ },
338102
+ 1682(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338192
338103
  "use strict";
338193
338104
 
338194
338105
  // EXPORTS
338195
338106
  __webpack_require__.d(__webpack_exports__, {
338196
- A: () => (/* binding */ _defineProperty)
338107
+ A: () => (/* binding */ _slicedToArray)
338197
338108
  });
338198
338109
 
338199
- ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
338200
- function _typeof(o) {
338201
- "@babel/helpers - typeof";
338110
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
338111
+ function _arrayWithHoles(r) {
338112
+ if (Array.isArray(r)) return r;
338113
+ }
338202
338114
 
338203
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
338204
- return typeof o;
338205
- } : function (o) {
338206
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
338207
- }, _typeof(o);
338115
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
338116
+ function _iterableToArrayLimit(r, l) {
338117
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
338118
+ if (null != t) {
338119
+ var e,
338120
+ n,
338121
+ i,
338122
+ u,
338123
+ a = [],
338124
+ f = !0,
338125
+ o = !1;
338126
+ try {
338127
+ if (i = (t = t.call(r)).next, 0 === l) {
338128
+ if (Object(t) !== t) return;
338129
+ f = !1;
338130
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
338131
+ } catch (r) {
338132
+ o = !0, n = r;
338133
+ } finally {
338134
+ try {
338135
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
338136
+ } finally {
338137
+ if (o) throw n;
338138
+ }
338139
+ }
338140
+ return a;
338141
+ }
338142
+ }
338143
+
338144
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
338145
+ function _arrayLikeToArray(r, a) {
338146
+ (null == a || a > r.length) && (a = r.length);
338147
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
338148
+ return n;
338149
+ }
338150
+
338151
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
338152
+
338153
+ function _unsupportedIterableToArray(r, a) {
338154
+ if (r) {
338155
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
338156
+ var t = {}.toString.call(r).slice(8, -1);
338157
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
338158
+ }
338159
+ }
338160
+
338161
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
338162
+ function _nonIterableRest() {
338163
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
338208
338164
  }
338209
338165
 
338166
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
338167
+
338168
+
338169
+
338170
+
338171
+ function _slicedToArray(r, e) {
338172
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
338173
+ }
338174
+
338175
+
338176
+ },
338177
+ 48670(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338178
+ "use strict";
338179
+
338180
+ // EXPORTS
338181
+ __webpack_require__.d(__webpack_exports__, {
338182
+ A: () => (/* binding */ toPropertyKey)
338183
+ });
338184
+
338185
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
338186
+ var esm_typeof = __webpack_require__(23224);
338210
338187
  ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
338211
338188
 
338212
338189
  function toPrimitive(t, r) {
338213
- if ("object" != _typeof(t) || !t) return t;
338190
+ if ("object" != (0,esm_typeof/* ["default"] */.A)(t) || !t) return t;
338214
338191
  var e = t[Symbol.toPrimitive];
338215
338192
  if (void 0 !== e) {
338216
338193
  var i = e.call(t, r || "default");
338217
- if ("object" != _typeof(i)) return i;
338194
+ if ("object" != (0,esm_typeof/* ["default"] */.A)(i)) return i;
338218
338195
  throw new TypeError("@@toPrimitive must return a primitive value.");
338219
338196
  }
338220
338197
  return ("string" === r ? String : Number)(t);
@@ -338225,18 +338202,24 @@ function toPrimitive(t, r) {
338225
338202
 
338226
338203
  function toPropertyKey(t) {
338227
338204
  var i = toPrimitive(t, "string");
338228
- return "symbol" == _typeof(i) ? i : i + "";
338205
+ return "symbol" == (0,esm_typeof/* ["default"] */.A)(i) ? i : i + "";
338229
338206
  }
338230
338207
 
338231
- ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
338232
338208
 
338233
- function _defineProperty(e, r, t) {
338234
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
338235
- value: t,
338236
- enumerable: !0,
338237
- configurable: !0,
338238
- writable: !0
338239
- }) : e[r] = t, e;
338209
+ },
338210
+ 23224(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
338211
+ "use strict";
338212
+ __webpack_require__.d(__webpack_exports__, {
338213
+ A: () => (_typeof)
338214
+ });
338215
+ function _typeof(o) {
338216
+ "@babel/helpers - typeof";
338217
+
338218
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
338219
+ return typeof o;
338220
+ } : function (o) {
338221
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
338222
+ }, _typeof(o);
338240
338223
  }
338241
338224
 
338242
338225
 
@@ -456716,7 +456699,7 @@ function divergingSqrt() {
456716
456699
 
456717
456700
 
456718
456701
  },
456719
- 75258(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
456702
+ 68852(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
456720
456703
  "use strict";
456721
456704
 
456722
456705
  // EXPORTS
@@ -456729,76 +456712,14 @@ __webpack_require__.d(__webpack_exports__, {
456729
456712
 
456730
456713
  // UNUSED EXPORTS: I18nContext, Trans, TransWithoutContext, Translation, composeInitialProps, date, getDefaults, getI18n, getInitialProps, number, plural, select, selectOrdinal, setDefaults, setI18n, time, useSSR, withSSR
456731
456714
 
456732
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/typeof.js
456733
- function typeof_typeof(o) {
456734
- "@babel/helpers - typeof";
456735
-
456736
- return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
456737
- return typeof o;
456738
- } : function (o) {
456739
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
456740
- }, typeof_typeof(o);
456741
- }
456742
-
456743
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
456744
-
456745
- function toPrimitive(t, r) {
456746
- if ("object" != typeof_typeof(t) || !t) return t;
456747
- var e = t[Symbol.toPrimitive];
456748
- if (void 0 !== e) {
456749
- var i = e.call(t, r || "default");
456750
- if ("object" != typeof_typeof(i)) return i;
456751
- throw new TypeError("@@toPrimitive must return a primitive value.");
456752
- }
456753
- return ("string" === r ? String : Number)(t);
456754
- }
456755
-
456756
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
456757
-
456758
-
456759
- function toPropertyKey(t) {
456760
- var i = toPrimitive(t, "string");
456761
- return "symbol" == typeof_typeof(i) ? i : i + "";
456762
- }
456763
-
456764
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/defineProperty.js
456765
-
456766
- function defineProperty_defineProperty(e, r, t) {
456767
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
456768
- value: t,
456769
- enumerable: !0,
456770
- configurable: !0,
456771
- writable: !0
456772
- }) : e[r] = t, e;
456773
- }
456774
-
456775
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
456776
- function _objectWithoutPropertiesLoose(r, e) {
456777
- if (null == r) return {};
456778
- var t = {};
456779
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
456780
- if (-1 !== e.indexOf(n)) continue;
456781
- t[n] = r[n];
456782
- }
456783
- return t;
456784
- }
456785
-
456786
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
456787
-
456788
- function objectWithoutProperties_objectWithoutProperties(e, t) {
456789
- if (null == e) return {};
456790
- var o,
456791
- r,
456792
- i = _objectWithoutPropertiesLoose(e, t);
456793
- if (Object.getOwnPropertySymbols) {
456794
- var n = Object.getOwnPropertySymbols(e);
456795
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
456796
- }
456797
- return i;
456798
- }
456799
-
456715
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
456716
+ var defineProperty = __webpack_require__(36111);
456717
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
456718
+ var objectWithoutProperties = __webpack_require__(43057);
456800
456719
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
456801
456720
  var react = __webpack_require__(86326);
456721
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
456722
+ var esm_typeof = __webpack_require__(23224);
456802
456723
  // EXTERNAL MODULE: ../../../node_modules/void-elements/index.js
456803
456724
  var void_elements = __webpack_require__(39741);
456804
456725
  ;// CONCATENATED MODULE: ../../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
@@ -456938,7 +456859,7 @@ var unescape_unescape = function unescape(text) {
456938
456859
 
456939
456860
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
456940
456861
 
456941
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
456862
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* ["default"] */.A)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
456942
456863
 
456943
456864
 
456944
456865
  var defaultOptions = {
@@ -457239,25 +457160,10 @@ function Trans(_ref) {
457239
457160
  var useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;
457240
457161
  return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
457241
457162
  }
457242
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
457243
- function _classCallCheck(a, n) {
457244
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
457245
- }
457246
-
457247
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/createClass.js
457248
-
457249
- function _defineProperties(e, r) {
457250
- for (var t = 0; t < r.length; t++) {
457251
- var o = r[t];
457252
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
457253
- }
457254
- }
457255
- function _createClass(e, r, t) {
457256
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
457257
- writable: !1
457258
- }), e;
457259
- }
457260
-
457163
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
457164
+ var classCallCheck = __webpack_require__(82561);
457165
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/createClass.js
457166
+ var createClass = __webpack_require__(77001);
457261
457167
  ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/dist/es/initReactI18next.js
457262
457168
 
457263
457169
 
@@ -457285,12 +457191,12 @@ function context_objectSpread(target) { for (var i = 1; i < arguments.length; i+
457285
457191
  var context_I18nContext = (0,react.createContext)();
457286
457192
  var context_ReportNamespaces = function () {
457287
457193
  function ReportNamespaces() {
457288
- _classCallCheck(this, ReportNamespaces);
457194
+ (0,classCallCheck/* ["default"] */.A)(this, ReportNamespaces);
457289
457195
 
457290
457196
  this.usedNamespaces = {};
457291
457197
  }
457292
457198
 
457293
- _createClass(ReportNamespaces, [{
457199
+ (0,createClass/* ["default"] */.A)(ReportNamespaces, [{
457294
457200
  key: "addUsedNamespaces",
457295
457201
  value: function addUsedNamespaces(namespaces) {
457296
457202
  var _this = this;
@@ -457390,71 +457296,8 @@ function Trans_Trans(_ref) {
457390
457296
  shouldUnescape: shouldUnescape
457391
457297
  }, additionalProps));
457392
457298
  }
457393
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
457394
- function _arrayWithHoles(r) {
457395
- if (Array.isArray(r)) return r;
457396
- }
457397
-
457398
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
457399
- function _iterableToArrayLimit(r, l) {
457400
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
457401
- if (null != t) {
457402
- var e,
457403
- n,
457404
- i,
457405
- u,
457406
- a = [],
457407
- f = !0,
457408
- o = !1;
457409
- try {
457410
- if (i = (t = t.call(r)).next, 0 === l) {
457411
- if (Object(t) !== t) return;
457412
- f = !1;
457413
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
457414
- } catch (r) {
457415
- o = !0, n = r;
457416
- } finally {
457417
- try {
457418
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
457419
- } finally {
457420
- if (o) throw n;
457421
- }
457422
- }
457423
- return a;
457424
- }
457425
- }
457426
-
457427
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
457428
- function _arrayLikeToArray(r, a) {
457429
- (null == a || a > r.length) && (a = r.length);
457430
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
457431
- return n;
457432
- }
457433
-
457434
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
457435
-
457436
- function _unsupportedIterableToArray(r, a) {
457437
- if (r) {
457438
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
457439
- var t = {}.toString.call(r).slice(8, -1);
457440
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
457441
- }
457442
- }
457443
-
457444
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
457445
- function _nonIterableRest() {
457446
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
457447
- }
457448
-
457449
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
457450
-
457451
-
457452
-
457453
-
457454
- function slicedToArray_slicedToArray(r, e) {
457455
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
457456
- }
457457
-
457299
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 5 modules
457300
+ var slicedToArray = __webpack_require__(1682);
457458
457301
  ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/dist/es/useTranslation.js
457459
457302
 
457460
457303
 
@@ -457462,7 +457305,7 @@ function slicedToArray_slicedToArray(r, e) {
457462
457305
 
457463
457306
  function useTranslation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
457464
457307
 
457465
- function useTranslation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { useTranslation_ownKeys(Object(source), true).forEach(function (key) { defineProperty_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { useTranslation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
457308
+ function useTranslation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { useTranslation_ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* ["default"] */.A)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { useTranslation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
457466
457309
 
457467
457310
 
457468
457311
 
@@ -457492,7 +457335,7 @@ function useTranslation_useTranslation(ns) {
457492
457335
 
457493
457336
  var notReadyT = function notReadyT(k, optsOrDefaultValue) {
457494
457337
  if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;
457495
- if (optsOrDefaultValue && typeof_typeof(optsOrDefaultValue) === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;
457338
+ if (optsOrDefaultValue && (0,esm_typeof/* ["default"] */.A)(optsOrDefaultValue) === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;
457496
457339
  return Array.isArray(k) ? k[k.length - 1] : k;
457497
457340
  };
457498
457341
 
@@ -457521,7 +457364,7 @@ function useTranslation_useTranslation(ns) {
457521
457364
  }
457522
457365
 
457523
457366
  var _useState = (0,react.useState)(getT),
457524
- _useState2 = slicedToArray_slicedToArray(_useState, 2),
457367
+ _useState2 = (0,slicedToArray/* ["default"] */.A)(_useState, 2),
457525
457368
  t = _useState2[0],
457526
457369
  setT = _useState2[1];
457527
457370
 
@@ -457600,7 +457443,7 @@ var withTranslation_excluded = ["forwardedRef"];
457600
457443
 
457601
457444
  function withTranslation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
457602
457445
 
457603
- function withTranslation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { withTranslation_ownKeys(Object(source), true).forEach(function (key) { defineProperty_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { withTranslation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
457446
+ function withTranslation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { withTranslation_ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* ["default"] */.A)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { withTranslation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
457604
457447
 
457605
457448
 
457606
457449
 
@@ -457610,12 +457453,12 @@ function withTranslation(ns) {
457610
457453
  return function Extend(WrappedComponent) {
457611
457454
  function I18nextWithTranslation(_ref) {
457612
457455
  var forwardedRef = _ref.forwardedRef,
457613
- rest = objectWithoutProperties_objectWithoutProperties(_ref, withTranslation_excluded);
457456
+ rest = (0,objectWithoutProperties/* ["default"] */.A)(_ref, withTranslation_excluded);
457614
457457
 
457615
457458
  var _useTranslation = useTranslation_useTranslation(ns, withTranslation_objectSpread(withTranslation_objectSpread({}, rest), {}, {
457616
457459
  keyPrefix: options.keyPrefix
457617
457460
  })),
457618
- _useTranslation2 = slicedToArray_slicedToArray(_useTranslation, 3),
457461
+ _useTranslation2 = (0,slicedToArray/* ["default"] */.A)(_useTranslation, 3),
457619
457462
  t = _useTranslation2[0],
457620
457463
  i18n = _useTranslation2[1],
457621
457464
  ready = _useTranslation2[2];
@@ -458292,7 +458135,7 @@ __webpack_require__.u = (chunkId) => {
458292
458135
  // return url for filenames not based on template
458293
458136
 
458294
458137
  // return url for filenames based on template
458295
- return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "1c5ef7d0e0ea4583",1180: "12ff4a7091b814b0",1206: "786e5b556f903028",1229: "f721ec472f3d61bf",1483: "d61e4b3b75394193",1602: "ce71ed9405418551",1644: "fa54018d8628f8c0",1673: "76779c7722e8c6c0",2623: "44c0c8ec6fa40d03",2779: "590547b8c00fb118",3500: "7eafa2e253d6ebf9",3760: "049908339d53018a",4556: "f47dd30a2808e074",4683: "124370a390087ca2",5189: "ae2e6c3b91f526f7",5302: "d6194babac4a763e",5406: "4dcfa7c697973300",5448: "ac180bf858959dd5",5696: "8212bd837256341d",5731: "694bce33e168bf29",5910: "f969465957013c3e",6489: "95cb243641a61a2f",6495: "8e8306fedff44999",6749: "903e779c064193ad",6915: "ec5f0cf05ce3909c",6938: "34415aaeea5935b3",7248: "e96ca656fdb25c7d",7463: "bc592adfcd96a763",7499: "57679cd343fae834",781: "40af085bb7abd069",8097: "8ae6404ba94890a0",8423: "a73bb02540af284b",8478: "4520037e6185b95f",8492: "80935f39a3863f1f",8547: "910086331888fd1b",8781: "0e906840b3becd72",8832: "21b7afcf9ad88fee",89: "0c0b32304742d0d3",899: "3ea5c8d021b1e60d",9068: "e1d5946c370fd4ee",9290: "9f40c51f5da6c0d4",9363: "8b90310748978ac8",9383: "40008913697b48b8",9415: "dc8266561c966fdc",9437: "8880cc3f5874eb8c",}[chunkId] + ".js"
458138
+ return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "cb5a2bad747309f0",1180: "5b8634c0a08964c4",1206: "786e5b556f903028",1229: "f721ec472f3d61bf",1483: "f328dd43d7a0f167",1602: "00866f8a8fa36293",1644: "237f0ac59d5e9b04",1673: "76779c7722e8c6c0",2169: "2973ff2503da4478",2623: "44c0c8ec6fa40d03",2779: "fecd2db9528a6793",3500: "ed0dac1a16ec3fc9",3553: "e4798bfbe97d7aca",3760: "676c3dfedb88b932",4104: "175b407a79f0b910",4556: "9dad045b95dbf87d",4683: "bd79a0628604571e",5189: "ae2e6c3b91f526f7",5302: "d6194babac4a763e",5406: "4dcfa7c697973300",5448: "ac180bf858959dd5",5696: "9336757a352f09bf",5910: "f969465957013c3e",6489: "95cb243641a61a2f",6495: "8e8306fedff44999",6749: "72392a7e62097ebb",6915: "ec5f0cf05ce3909c",6938: "34415aaeea5935b3",7248: "b48a875240cdd78d",7463: "10f90a3dc5df84cf",7499: "18c1c759f0508e28",781: "3dd9e958d39a1dde",8097: "8ae6404ba94890a0",8423: "5b1beb9c42b3e746",8492: "90e74bb48a042efa",8547: "b9477cca94f45255",8781: "bb830462c629693e",8832: "08d096b37edc3ff4",89: "32ec8b1356c76ca0",899: "3ea5c8d021b1e60d",9068: "e1d5946c370fd4ee",9290: "93cc172c5bcc89f1",9363: "285d218d72f9ac0b",9415: "e624b651488d77f6",9437: "7d96a9ebfcf04849",}[chunkId] + ".js"
458296
458139
  }
458297
458140
  })();
458298
458141
  // webpack/runtime/get mini-css chunk filename
@@ -458652,7 +458495,7 @@ chunkLoadingGlobal.push = __rspack_jsonp.bind(null, chunkLoadingGlobal.push.bind
458652
458495
  })();
458653
458496
  // webpack/runtime/chunk_prefetch_trigger
458654
458497
  (() => {
458655
- var chunkToChildrenMap = {"6214":[2623,2623],"3760":[2623,9068,1206],"3833":[2623,9068],"781":[2623,899],"9415":[2623,5448],"1602":[2623],"8832":[2623],"9363":[7463],"976":[2623],"8423":[2623],"3500":[8478,89,5910],"5910":[2623],"8492":[2623]};
458498
+ var chunkToChildrenMap = {"6214":[2623,2623],"3760":[2623,9068,1206],"3833":[2623,9068],"781":[2623,899],"9415":[2623,5448],"1602":[2623],"8832":[2623],"9363":[7463],"976":[2623],"8423":[2623],"3500":[2169,89,5910],"5910":[2623],"8492":[2623]};
458656
458499
  __webpack_require__.f.prefetch = (chunkId, promises) => {
458657
458500
  Promise.all(promises).then(() => {
458658
458501
  var chunks = chunkToChildrenMap[chunkId];