@ohif/app 3.13.4 → 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 (53) hide show
  1. package/dist/{100.bundle.93620cd5a7d73cec.js → 100.bundle.cb5a2bad747309f0.js} +2 -2
  2. package/dist/{1180.bundle.bdab97766a233ec7.js → 1180.bundle.5b8634c0a08964c4.js} +2 -2
  3. package/dist/{136.bundle.b948da0438a0a660.js → 136.bundle.7b820280583ef059.js} +5 -5
  4. package/dist/1602.css +1 -1
  5. package/dist/{8478.bundle.4520037e6185b95f.js → 2169.bundle.2973ff2503da4478.js} +32 -42
  6. package/dist/{2299.bundle.2375af8b16a1702e.js → 2299.bundle.55b447ec64b2c61c.js} +5 -5
  7. package/dist/{2493.bundle.ed36d3c811332bff.js → 2493.bundle.b6d776952823b290.js} +16 -3
  8. package/dist/{2779.bundle.848cf438813c9e1a.js → 2779.bundle.fecd2db9528a6793.js} +2 -2
  9. package/dist/{3500.bundle.09b3e7f32c325d2b.js → 3500.bundle.ed0dac1a16ec3fc9.js} +3 -3
  10. package/dist/{5731.bundle.694bce33e168bf29.js → 3553.bundle.e4798bfbe97d7aca.js} +42 -92
  11. package/dist/{3760.bundle.fbc299e8e62a6dd2.js → 3760.bundle.676c3dfedb88b932.js} +3 -3
  12. package/dist/3760.css +1 -1
  13. package/dist/3833.css +1 -1
  14. package/dist/{9383.bundle.40008913697b48b8.js → 4104.bundle.175b407a79f0b910.js} +29 -115
  15. package/dist/{4556.bundle.93158ba1b65ea809.js → 4556.bundle.9dad045b95dbf87d.js} +2 -2
  16. package/dist/{4683.bundle.8688b43b36f34429.js → 4683.bundle.bd79a0628604571e.js} +2 -2
  17. package/dist/{5060.bundle.09456fba37e490bf.js → 5060.bundle.1a87b7b8c79d243a.js} +2 -2
  18. package/dist/5189.css +2 -2
  19. package/dist/{5696.bundle.5ea29e0a81aae060.js → 5696.bundle.9336757a352f09bf.js} +2 -2
  20. package/dist/{12.bundle.b4688cdbdd856b75.js → 5700.bundle.682cd7e4ba38db11.js} +913 -199
  21. package/dist/5910.css +1 -1
  22. package/dist/6214.css +1 -1
  23. package/dist/{7071.bundle.de8df9d95b2ba245.js → 7071.bundle.0dd91590b962da14.js} +2 -2
  24. package/dist/{7248.bundle.faa6438cca2ceaf8.js → 7248.bundle.b48a875240cdd78d.js} +5 -5
  25. package/dist/{7463.bundle.40668aa8d083d077.js → 7463.bundle.10f90a3dc5df84cf.js} +67 -27
  26. package/dist/{7499.bundle.88867ec1d3ed6f9d.js → 7499.bundle.18c1c759f0508e28.js} +8 -8
  27. package/dist/{781.bundle.9aeca4c33ef2ed2d.js → 781.bundle.3dd9e958d39a1dde.js} +6 -6
  28. package/dist/781.css +1 -1
  29. package/dist/8423.css +1 -1
  30. package/dist/{8492.bundle.72bb70110ea19e02.js → 8492.bundle.90e74bb48a042efa.js} +2 -2
  31. package/dist/8492.css +1 -1
  32. package/dist/{8832.bundle.d9101f1c00db8753.js → 8832.bundle.08d096b37edc3ff4.js} +6 -6
  33. package/dist/8832.css +1 -1
  34. package/dist/{89.bundle.d74d60cd3a177268.js → 89.bundle.32ec8b1356c76ca0.js} +17 -17
  35. package/dist/{9290.bundle.014b7808ead74b80.js → 9290.bundle.93cc172c5bcc89f1.js} +2 -2
  36. package/dist/9363.bundle.285d218d72f9ac0b.js +454 -0
  37. package/dist/{9415.bundle.06ab071cc84660b6.js → 9415.bundle.e624b651488d77f6.js} +4 -4
  38. package/dist/9415.css +1 -1
  39. package/dist/{9437.bundle.cb34ec039a3367e8.js → 9437.bundle.7d96a9ebfcf04849.js} +2 -2
  40. package/dist/976.css +1 -1
  41. package/dist/{app.bundle.895ee92d1f12cf80.js → app.bundle.03a0f18892736c61.js} +826 -962
  42. package/dist/app.bundle.css +8 -8
  43. package/dist/{compute.bundle.609c93f9819406cd.js → compute.bundle.b9477cca94f45255.js} +3 -3
  44. package/dist/index.html +1 -1
  45. package/dist/{interpolation.bundle.fa54018d8628f8c0.js → interpolation.bundle.237f0ac59d5e9b04.js} +3 -3
  46. package/dist/{polySeg.bundle.75141812aebb86a0.js → polySeg.bundle.bb830462c629693e.js} +3 -3
  47. package/dist/sw.js +1 -1
  48. package/package.json +8 -8
  49. package/dist/9116.bundle.7a5b2dc22505d4a0.js +0 -146
  50. /package/dist/{1483.bundle.59969cc3c412ca3e.js → 1483.bundle.f328dd43d7a0f167.js} +0 -0
  51. /package/dist/{1602.bundle.776866c0ae47e2bc.js → 1602.bundle.00866f8a8fa36293.js} +0 -0
  52. /package/dist/{6749.bundle.39d8f2c68cff280a.js → 6749.bundle.72392a7e62097ebb.js} +0 -0
  53. /package/dist/{8423.bundle.a1ac56b9812386f7.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 + 300 modules
38712
- var i18n_src = __webpack_require__(90119);
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 = [{
@@ -43365,7 +43365,7 @@ function _taggedTemplateLiteral(e, t) {
43365
43365
  // EXTERNAL MODULE: ../../../node_modules/react-dom/index.js
43366
43366
  var react_dom = __webpack_require__(35623);
43367
43367
  // EXTERNAL MODULE: ../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs + 3 modules
43368
- var floating_ui_dom = __webpack_require__(95913);
43368
+ var floating_ui_dom = __webpack_require__(19187);
43369
43369
  // EXTERNAL MODULE: ../../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js
43370
43370
  var use_isomorphic_layout_effect_browser_esm = __webpack_require__(57321);
43371
43371
  ;// CONCATENATED MODULE: ../../../node_modules/react-select/dist/index-baa8dc4f.esm.js
@@ -50528,39 +50528,39 @@ 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") {
50563
- const imported = await __webpack_require__.e(/* import() */ 9116).then(__webpack_require__.bind(__webpack_require__, 95991));
50563
+ const imported = await __webpack_require__.e(/* import() */ 9363).then(__webpack_require__.bind(__webpack_require__, 42446));
50564
50564
  return imported.default;
50565
50565
  }
50566
50566
  if (module === "@ohif/extension-dicom-video") {
@@ -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
- 90119(__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.3"}
73982
+ var package_namespaceObject = {"rE":"3.13.10"}
74093
73983
  ;// CONCATENATED MODULE: ../../i18n/src/utils.js
74094
73984
  const languagesMap = {
74095
73985
  ar: 'Arabic',
@@ -74433,6 +74323,8 @@ var PanelSUV_namespaceObject = JSON.parse('{"Patient Information":"Patient Infor
74433
74323
  var ROIThresholdConfiguration_namespaceObject = JSON.parse('{"Max":"Max","Range":"Range","Start":"Start","End":"End","Percentage of Max SUV":"Percentage of Max SUV","Lower & Upper Ranges":"Lower & Upper Ranges","Run":"Run","Threshold Tools":"Threshold Tools","ThresholdRange":"Threshold Range"}')
74434
74324
  ;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/USAnnotationPanel.json
74435
74325
  var USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Workflow","Depth guide toggle":"Depth guide toggle","Show pleura percentage":"Show pleura percentage","Sector Annotations":"Sector Annotations","Pleura line":"Pleura line","B-line":"B-line","B-line annotation":"B-line annotation","Pleura annotation":"Pleura annotation","Show Overlay":"Show Overlay","Annotated Frames":"Annotated Frames","Frame":"Frame","Pleura lines":"Pleura lines","B-lines":"B-lines","JSON":"JSON","Annotations":"Annotations"}')
74326
+ ;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/EncapsulatedDocument.json
74327
+ var EncapsulatedDocument_namespaceObject = JSON.parse('{"Loading document...":"Loading document...","This document type cannot be displayed":"This document type cannot be displayed","Document content does not match its declared type":"Document content does not match its declared type","Unable to retrieve this document":"Unable to retrieve this document","No viewer installed for {{mimeType}}":"No viewer installed for {{mimeType}}","Encapsulated document":"Encapsulated document"}')
74436
74328
  ;// CONCATENATED MODULE: ../../i18n/src/locales/en-US/index.js
74437
74329
 
74438
74330
 
@@ -74467,6 +74359,7 @@ var USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Workflow","Dept
74467
74359
 
74468
74360
 
74469
74361
 
74362
+
74470
74363
 
74471
74364
 
74472
74365
  /* export default */ const en_US = ({
@@ -74505,7 +74398,8 @@ var USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Workflow","Dept
74505
74398
  Colormaps: Colormaps_namespaceObject,
74506
74399
  PanelSUV: PanelSUV_namespaceObject,
74507
74400
  ROIThresholdConfiguration: ROIThresholdConfiguration_namespaceObject,
74508
- USAnnotationPanel: USAnnotationPanel_namespaceObject
74401
+ USAnnotationPanel: USAnnotationPanel_namespaceObject,
74402
+ EncapsulatedDocument: EncapsulatedDocument_namespaceObject
74509
74403
  }
74510
74404
  });
74511
74405
  ;// CONCATENATED MODULE: ../../i18n/src/locales/es/AboutModal.json
@@ -75218,6 +75112,8 @@ var test_LNG_Hps_namespaceObject = JSON.parse('{"MPR":"Test MPR","3D four up":"T
75218
75112
  var test_LNG_ToolbarLayoutSelector_namespaceObject = JSON.parse('{"Change layout":"Test Change layout","Common":"Test Common","Advanced":"Test Advanced","Custom":"Test Custom","Hover to select":"Test Hover to select","rows and columns":"Test rows and columns","Click to apply":"Test Click to apply"}')
75219
75113
  ;// CONCATENATED MODULE: ../../i18n/src/locales/test-LNG/USAnnotationPanel.json
75220
75114
  var test_LNG_USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Test Workflow","Depth guide toggle":"Test Depth guide toggle","Show pleura percentage":"Test Show pleura percentage","Sector Annotations":"Test Sector Annotations","Pleura line":"Test Pleura line","B-line":"Test B-line","B-line annotation":"Test B-line annotation","Pleura annotation":"Test Pleura annotation","Show Overlay":"Test Show Overlay","Annotated Frames":"Test Annotated Frames","Frame":"Test Frame","Pleura lines":"Test Pleura lines","B-lines":"Test B-lines","JSON":"Test JSON","Annotations":"Test Annotations"}')
75115
+ ;// CONCATENATED MODULE: ../../i18n/src/locales/test-LNG/EncapsulatedDocument.json
75116
+ var test_LNG_EncapsulatedDocument_namespaceObject = JSON.parse('{"Loading document...":"Test Loading document...","This document type cannot be displayed":"Test This document type cannot be displayed","Document content does not match its declared type":"Test Document content does not match its declared type","Unable to retrieve this document":"Test Unable to retrieve this document","No viewer installed for {{mimeType}}":"Test No viewer installed for {{mimeType}}","Encapsulated document":"Test Encapsulated document"}')
75221
75117
  ;// CONCATENATED MODULE: ../../i18n/src/locales/test-LNG/index.js
75222
75118
 
75223
75119
 
@@ -75254,6 +75150,7 @@ var test_LNG_USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Test W
75254
75150
 
75255
75151
 
75256
75152
 
75153
+
75257
75154
 
75258
75155
 
75259
75156
  /* export default */ const test_LNG = ({
@@ -75294,7 +75191,8 @@ var test_LNG_USAnnotationPanel_namespaceObject = JSON.parse('{"Workflow":"Test W
75294
75191
  Tools: test_LNG_Tools_namespaceObject,
75295
75192
  Hps: test_LNG_Hps_namespaceObject,
75296
75193
  ToolbarLayoutSelector: test_LNG_ToolbarLayoutSelector_namespaceObject,
75297
- USAnnotationPanel: test_LNG_USAnnotationPanel_namespaceObject
75194
+ USAnnotationPanel: test_LNG_USAnnotationPanel_namespaceObject,
75195
+ EncapsulatedDocument: test_LNG_EncapsulatedDocument_namespaceObject
75298
75196
  }
75299
75197
  });
75300
75198
  ;// CONCATENATED MODULE: ../../i18n/src/locales/index.js
@@ -78559,8 +78457,8 @@ function utils_cn(...inputs) {
78559
78457
  // EXTERNAL MODULE: ../../../node_modules/moment/moment.js
78560
78458
  var moment = __webpack_require__(14867);
78561
78459
  var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
78562
- // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
78563
- var i18next = __webpack_require__(26104);
78460
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 3 modules
78461
+ var i18next = __webpack_require__(46680);
78564
78462
  ;// CONCATENATED MODULE: ../../ui-next/src/utils/formatDICOMDate.ts
78565
78463
 
78566
78464
 
@@ -83354,7 +83252,7 @@ var dist_Provider = (/* unused pure expression or super */ null && (DirectionPro
83354
83252
  //# sourceMappingURL=index.mjs.map
83355
83253
 
83356
83254
  // EXTERNAL MODULE: ../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs + 3 modules
83357
- var floating_ui_dom = __webpack_require__(95913);
83255
+ var floating_ui_dom = __webpack_require__(19187);
83358
83256
  ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
83359
83257
 
83360
83258
 
@@ -199075,8 +198973,8 @@ const useNavigation = (/* unused pure expression or super */ null && (useDayPick
199075
198973
 
199076
198974
 
199077
198975
 
199078
- // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 29 modules
199079
- 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);
199080
198978
  ;// CONCATENATED MODULE: ../../ui-next/node_modules/react-day-picker/dist/esm/locale/af.js
199081
198979
 
199082
198980
 
@@ -227389,8 +227287,8 @@ var DragDropManagerImpl_DragDropManagerImpl = /*#__PURE__*/function () {
227389
227287
 
227390
227288
  return DragDropManagerImpl;
227391
227289
  }();
227392
- // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
227393
- var esm_defineProperty = __webpack_require__(62625);
227290
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
227291
+ var esm_defineProperty = __webpack_require__(36111);
227394
227292
  ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js
227395
227293
 
227396
227294
  function objectSpread2_ownKeys(e, r) {
@@ -236552,8 +236450,8 @@ const ViewportDialog = ({
236552
236450
 
236553
236451
 
236554
236452
  ;// CONCATENATED MODULE: ../../../node_modules/shepherd.js/dist/js/shepherd.mjs
236555
- /*! shepherd.js 15.2.2 */
236556
- function shepherd_t(t){return t instanceof HTMLElement}function shepherd_e(t){return"function"==typeof t}function shepherd_n(t){return"string"==typeof t}function shepherd_o(t){return void 0===t}class shepherd_i{on(t,e,n,i=!1){var s;return shepherd_o(this.bindings)&&(this.bindings={}),shepherd_o(this.bindings[t])&&(this.bindings[t]=[]),null==(s=this.bindings[t])||s.push({handler:e,ctx:n,once:i}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){if(shepherd_o(this.bindings)||shepherd_o(this.bindings[t]))return this;var n;shepherd_o(e)?delete this.bindings[t]:null==(n=this.bindings[t])||n.forEach((n,o)=>{var i;n.handler===e&&(null==(i=this.bindings[t])||i.splice(o,1))});return this}trigger(t,...e){var n;!shepherd_o(this.bindings)&&this.bindings[t]&&(null==(n=this.bindings[t])||n.forEach((n,o)=>{const{ctx:i,handler:s,once:r}=n,l=i||this;var c;(s.apply(l,e),r)&&(null==(c=this.bindings[t])||c.splice(o,1))}));return this}}function shepherd_s(){return shepherd_s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},shepherd_s.apply(null,arguments)}function shepherd_r(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}const shepherd_l={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function shepherd_c(t,e){return e}function shepherd_a(t,e){return t.filter(t=>void 0!==t)}var shepherd_u;function shepherd_h(t){return"object"!=typeof t||null===t?0:Array.isArray(t)?2:function(t){if(!shepherd_p.includes(Object.prototype.toString.call(t)))return!1;const{constructor:e}=t;if(void 0===e)return!0;const n=e.prototype;if(null===n||"object"!=typeof n||!shepherd_p.includes(Object.prototype.toString.call(n)))return!1;if(!n.hasOwnProperty("isPrototypeOf"))return!1;return!0}(t)?1:t instanceof Set?3:t instanceof Map?4:5}function shepherd_d(t,e){return"object"==typeof t&&Object.prototype.propertyIsEnumerable.call(t,e)}function shepherd_f(t){var e;let n=0,o=null==(e=t[0])?void 0:e[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(;;){if(void 0===o)return{done:!0,value:void 0};const i=o.next();if(!0!==i.done)return{done:!1,value:i.value};var e;n+=1,o=null==(e=t[n])?void 0:e[Symbol.iterator]()}}})}}!function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"}(shepherd_u||(shepherd_u={}));const shepherd_p=["[object Object]","[object Module]"];const shepherd_g={mergeRecords:function(t,e,n){const o={};for(const i of function(t){const e=new Set;for(const n of t)for(const t of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])e.add(t);return e}(t)){const s=[];for(const e of t)shepherd_d(e,i)&&s.push(e[i]);if(0===s.length)continue;const r=e.metaDataUpdater(n,{key:i,parents:t}),c=shepherd_v(s,e,r);c!==shepherd_l.skip&&("__proto__"===i?Object.defineProperty(o,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[i]=c)}return o},mergeArrays:function(t){return t.flat()},mergeSets:function(t){return new Set(shepherd_f(t))},mergeMaps:function(t){return new Map(shepherd_f(t))},mergeOthers:function(t){return t.at(-1)}};function shepherd_m(...t){return function(t,e){const n=function(t,e){var n,o,i;return{defaultMergeFunctions:shepherd_g,mergeFunctions:shepherd_s({},shepherd_g,Object.fromEntries(Object.entries(t).filter(([t,e])=>Object.hasOwn(shepherd_g,t)).map(([t,e])=>!1===e?[t,shepherd_g.mergeOthers]:[t,e]))),metaDataUpdater:null!=(n=t.metaDataUpdater)?n:shepherd_c,deepmerge:e,useImplicitDefaultMerging:null!=(o=t.enableImplicitDefaultMerging)&&o,filterValues:!1===t.filterValues?void 0:null!=(i=t.filterValues)?i:shepherd_a,actions:shepherd_l}}(t,o);function o(...t){return shepherd_v(t,n,e)}return o}({})(...t)}function shepherd_v(t,e,n){var o;const i=null!=(o=null==e.filterValues?void 0:e.filterValues(t,n))?o:t;if(0===i.length)return;if(1===i.length)return shepherd_y(i,e,n);const s=shepherd_h(i[0]);if(0!==s&&5!==s)for(let t=1;t<i.length;t++)if(shepherd_h(i[t])!==s)return shepherd_y(i,e,n);switch(s){case 1:return function(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeRecords!==e.defaultMergeFunctions.mergeRecords)return e.defaultMergeFunctions.mergeRecords(t,e,n);return o}(i,e,n);case 2:return function(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeArrays!==e.defaultMergeFunctions.mergeArrays)return e.defaultMergeFunctions.mergeArrays(t);return o}(i,e,n);case 3:return function(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeSets!==e.defaultMergeFunctions.mergeSets)return e.defaultMergeFunctions.mergeSets(t);return o}(i,e,n);case 4:return function(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);if(o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeMaps!==e.defaultMergeFunctions.mergeMaps)return e.defaultMergeFunctions.mergeMaps(t);return o}(i,e,n);default:return shepherd_y(i,e,n)}}function shepherd_y(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return o===shepherd_l.defaultMerge||e.useImplicitDefaultMerging&&void 0===o&&e.mergeFunctions.mergeOthers!==e.defaultMergeFunctions.mergeOthers?e.defaultMergeFunctions.mergeOthers(t):o}function shepherd_x(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function shepherd_b(t){const{event:e,selector:n}=t.options.advanceOn||{};if(e){const i=function(t,e){return n=>{if(t.isOpen()){const i=t.el&&n.currentTarget===t.el;(!shepherd_o(e)&&n.currentTarget.matches(e)||i)&&t.tour.next()}}}(t,n);let s=null;if(!shepherd_o(n)&&(s=document.querySelector(n),!s))return;s?(s.addEventListener(e,i),t.on("destroy",()=>s.removeEventListener(e,i))):(document.body.addEventListener(e,i,!0),t.on("destroy",()=>document.body.removeEventListener(e,i,!0)))}}function shepherd_w(t){return shepherd_n(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function shepherd_E(t){return null==t||(!t.element||!t.on)}function shepherd_O(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}const shepherd_T=["start","end"],shepherd_S=["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-"+shepherd_T[0],e+"-"+shepherd_T[1]),[]),shepherd_A=Math.min,shepherd_L=Math.max,shepherd_=Math.round,shepherd_R=Math.floor,shepherd_M=t=>({x:t,y:t}),shepherd_P={left:"right",right:"left",bottom:"top",top:"bottom"},shepherd_C={start:"end",end:"start"};function shepherd_k(t,e,n){return shepherd_L(t,shepherd_A(e,n))}function shepherd_D(t,e){return"function"==typeof t?t(e):t}function shepherd_$(t){return t.split("-")[0]}function shepherd_F(t){return t.split("-")[1]}function shepherd_I(t){return"x"===t?"y":"x"}function shepherd_H(t){return"y"===t?"height":"width"}const shepherd_j=new Set(["top","bottom"]);function shepherd_B(t){return shepherd_j.has(shepherd_$(t))?"y":"x"}function shepherd_V(t){return shepherd_I(shepherd_B(t))}function shepherd_N(t,e,n){void 0===n&&(n=!1);const o=shepherd_F(t),i=shepherd_V(t),s=shepherd_H(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=shepherd_Z(r)),[r,shepherd_Z(r)]}function shepherd_W(t){return t.replace(/start|end/g,t=>shepherd_C[t])}const shepherd_q=["left","right"],shepherd_U=["right","left"],shepherd_z=["top","bottom"],shepherd_Y=["bottom","top"];function shepherd_X(t,e,n,o){const i=shepherd_F(t);let s=function(t,e,n){switch(t){case"top":case"bottom":return n?e?shepherd_U:shepherd_q:e?shepherd_q:shepherd_U;case"left":case"right":return e?shepherd_z:shepherd_Y;default:return[]}}(shepherd_$(t),"start"===n,o);return i&&(s=s.map(t=>t+"-"+i),e&&(s=s.concat(s.map(shepherd_W)))),s}function shepherd_Z(t){return t.replace(/left|right|bottom|top/g,t=>shepherd_P[t])}function shepherd_K(t){return"number"!=typeof t?function(t){return shepherd_s({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function shepherd_G(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}const shepherd_J=["crossAxis","alignment","allowedPlacements","autoAlignment"],shepherd_Q=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],tt=["mainAxis","crossAxis","limiter"];function shepherd_et(t,e,n){let{reference:o,floating:i}=t;const s=shepherd_B(e),r=shepherd_V(e),l=shepherd_H(r),c=shepherd_$(e),a="y"===s,u=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,d=o[l]/2-i[l]/2;let f;switch(c){case"top":f={x:u,y:o.y-i.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:h};break;case"left":f={x:o.x-i.width,y:h};break;default:f={x:o.x,y:o.y}}switch(shepherd_F(e)){case"start":f[r]-=d*(n&&a?-1:1);break;case"end":f[r]+=d*(n&&a?-1:1)}return f}async function shepherd_nt(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=shepherd_D(e,t),p=shepherd_K(f),g=l[d?"floating"===h?"reference":"floating":h],m=shepherd_G(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(g)))||n?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),v="floating"===h?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),x=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},b=shepherd_G(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:c}):v);return{top:(m.top-b.top+p.top)/x.y,bottom:(b.bottom-m.bottom+p.bottom)/x.y,left:(m.left-b.left+p.left)/x.x,right:(b.right-m.right+p.right)/x.x}}const shepherd_ot=new Set(["left","top"]);function shepherd_it(){return"undefined"!=typeof window}function shepherd_st(t){return shepherd_ct(t)?(t.nodeName||"").toLowerCase():"#document"}function shepherd_rt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function shepherd_lt(t){var e;return null==(e=(shepherd_ct(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function shepherd_ct(t){return!!shepherd_it()&&(t instanceof Node||t instanceof shepherd_rt(t).Node)}function shepherd_at(t){return!!shepherd_it()&&(t instanceof Element||t instanceof shepherd_rt(t).Element)}function shepherd_ut(t){return!!shepherd_it()&&(t instanceof HTMLElement||t instanceof shepherd_rt(t).HTMLElement)}function shepherd_ht(t){return!(!shepherd_it()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof shepherd_rt(t).ShadowRoot)}const shepherd_dt=new Set(["inline","contents"]);function shepherd_ft(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=shepherd_St(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!shepherd_dt.has(i)}const shepherd_pt=new Set(["table","td","th"]);function shepherd_gt(t){return shepherd_pt.has(shepherd_st(t))}const shepherd_mt=[":popover-open",":modal"];function shepherd_vt(t){return shepherd_mt.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const yt=["transform","translate","scale","rotate","perspective"],xt=["transform","translate","scale","rotate","perspective","filter"],bt=["paint","layout","strict","content"];function wt(t){const e=shepherd_Et(),n=shepherd_at(t)?shepherd_St(t):t;return yt.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||xt.some(t=>(n.willChange||"").includes(t))||bt.some(t=>(n.contain||"").includes(t))}function shepherd_Et(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ot=new Set(["html","body","#document"]);function shepherd_Tt(t){return Ot.has(shepherd_st(t))}function shepherd_St(t){return shepherd_rt(t).getComputedStyle(t)}function shepherd_At(t){return shepherd_at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function shepherd_Lt(t){if("html"===shepherd_st(t))return t;const e=t.assignedSlot||t.parentNode||shepherd_ht(t)&&t.host||shepherd_lt(t);return shepherd_ht(e)?e.host:e}function _t(t){const e=shepherd_Lt(t);return shepherd_Tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:shepherd_ut(e)&&shepherd_ft(e)?e:_t(e)}function shepherd_Rt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=_t(t),s=i===(null==(o=t.ownerDocument)?void 0:o.body),r=shepherd_rt(i);if(s){const t=shepherd_Mt(r);return e.concat(r,r.visualViewport||[],shepherd_ft(i)?i:[],t&&n?shepherd_Rt(t):[])}return e.concat(i,shepherd_Rt(i,[],n))}function shepherd_Mt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function shepherd_Pt(t){const e=shepherd_St(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=shepherd_ut(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=shepherd_(n)!==s||shepherd_(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function shepherd_Ct(t){return shepherd_at(t)?t:t.contextElement}function shepherd_kt(t){const e=shepherd_Ct(t);if(!shepherd_ut(e))return shepherd_M(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=shepherd_Pt(e);let r=(s?shepherd_(n.width):n.width)/o,l=(s?shepherd_(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}const shepherd_Dt=shepherd_M(0);function $t(t){const e=shepherd_rt(t);return shepherd_Et()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:shepherd_Dt}function Ft(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),s=shepherd_Ct(t);let r=shepherd_M(1);e&&(o?shepherd_at(o)&&(r=shepherd_kt(o)):r=shepherd_kt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==shepherd_rt(t))&&e}(s,n,o)?$t(s):shepherd_M(0);let c=(i.left+l.x)/r.x,a=(i.top+l.y)/r.y,u=i.width/r.x,h=i.height/r.y;if(s){const t=shepherd_rt(s),e=o&&shepherd_at(o)?shepherd_rt(o):o;let n=t,i=shepherd_Mt(n);for(;i&&o&&e!==n;){const t=shepherd_kt(i),e=i.getBoundingClientRect(),o=shepherd_St(i),s=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,a*=t.y,u*=t.x,h*=t.y,c+=s,a+=r,n=shepherd_rt(i),i=shepherd_Mt(n)}}return shepherd_G({width:u,height:h,x:c,y:a})}function shepherd_It(t,e){const n=shepherd_At(t).scrollLeft;return e?e.left+n:Ft(shepherd_lt(t)).left+n}function shepherd_Ht(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-shepherd_It(t,n),y:n.top+e.scrollTop}}const jt=new Set(["absolute","fixed"]);function shepherd_Bt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=shepherd_rt(t),o=shepherd_lt(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;const t=shepherd_Et();(!t||t&&"fixed"===e)&&(l=i.offsetLeft,c=i.offsetTop)}const a=shepherd_It(o);if(a<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(o.clientWidth-e.clientWidth-i);r<=25&&(s-=r)}else a<=25&&(s+=a);return{width:s,height:r,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=shepherd_lt(t),n=shepherd_At(t),o=t.ownerDocument.body,i=shepherd_L(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=shepherd_L(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+shepherd_It(t);const l=-n.scrollTop;return"rtl"===shepherd_St(o).direction&&(r+=shepherd_L(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}(shepherd_lt(t));else if(shepherd_at(e))o=function(t,e){const n=Ft(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=shepherd_ut(t)?shepherd_kt(t):shepherd_M(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:i*s.x,y:o*s.y}}(e,n);else{const n=$t(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return shepherd_G(o)}function shepherd_Vt(t,e){const n=shepherd_Lt(t);return!(n===e||!shepherd_at(n)||shepherd_Tt(n))&&("fixed"===shepherd_St(n).position||shepherd_Vt(n,e))}function shepherd_Nt(t,e,n){const o=shepherd_ut(e),i=shepherd_lt(e),s="fixed"===n,r=Ft(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=shepherd_M(0);function a(){c.x=shepherd_It(i)}if(o||!o&&!s)if(("body"!==shepherd_st(e)||shepherd_ft(i))&&(l=shepherd_At(e)),o){const t=Ft(e,!0,s,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&a();s&&!o&&i&&a();const u=!i||o||s?shepherd_M(0):shepherd_Ht(i,l);return{x:r.left+l.scrollLeft-c.x-u.x,y:r.top+l.scrollTop-c.y-u.y,width:r.width,height:r.height}}function Wt(t){return"static"===shepherd_St(t).position}function shepherd_qt(t,e){if(!shepherd_ut(t)||"fixed"===shepherd_St(t).position)return null;if(e)return e(t);let n=t.offsetParent;return shepherd_lt(t)===n&&(n=n.ownerDocument.body),n}function shepherd_Ut(t,e){const n=shepherd_rt(t);if(shepherd_vt(t))return n;if(!shepherd_ut(t)){let e=shepherd_Lt(t);for(;e&&!shepherd_Tt(e);){if(shepherd_at(e)&&!Wt(e))return e;e=shepherd_Lt(e)}return n}let o=shepherd_qt(t,e);for(;o&&shepherd_gt(o)&&Wt(o);)o=shepherd_qt(o,e);return o&&shepherd_Tt(o)&&Wt(o)&&!wt(o)?n:o||function(t){let e=shepherd_Lt(t);for(;shepherd_ut(e)&&!shepherd_Tt(e);){if(wt(e))return e;if(shepherd_vt(e))return null;e=shepherd_Lt(e)}return null}(t)||n}const shepherd_zt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s="fixed"===i,r=shepherd_lt(o),l=!!e&&shepherd_vt(e.floating);if(o===r||l&&s)return n;let c={scrollLeft:0,scrollTop:0},a=shepherd_M(1);const u=shepherd_M(0),h=shepherd_ut(o);if((h||!h&&!s)&&(("body"!==shepherd_st(o)||shepherd_ft(r))&&(c=shepherd_At(o)),shepherd_ut(o))){const t=Ft(o);a=shepherd_kt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const d=!r||h||s?shepherd_M(0):shepherd_Ht(r,c);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+d.x,y:n.y*a.y-c.scrollTop*a.y+u.y+d.y}},getDocumentElement:shepherd_lt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[..."clippingAncestors"===n?shepherd_vt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=shepherd_Rt(t,[],!1).filter(t=>shepherd_at(t)&&"body"!==shepherd_st(t)),i=null;const s="fixed"===shepherd_St(t).position;let r=s?shepherd_Lt(t):t;for(;shepherd_at(r)&&!shepherd_Tt(r);){const e=shepherd_St(r),n=wt(r);n||"fixed"!==e.position||(i=null),(s?!n&&!i:!n&&"static"===e.position&&i&&jt.has(i.position)||shepherd_ft(r)&&!n&&shepherd_Vt(t,r))?o=o.filter(t=>t!==r):i=e,r=shepherd_Lt(r)}return e.set(t,o),o}(e,this._c):[].concat(n),o],r=s[0],l=s.reduce((t,n)=>{const o=shepherd_Bt(e,n,i);return t.top=shepherd_L(o.top,t.top),t.right=shepherd_A(o.right,t.right),t.bottom=shepherd_A(o.bottom,t.bottom),t.left=shepherd_L(o.left,t.left),t},shepherd_Bt(e,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:shepherd_Ut,getElementRects:async function(t){const e=this.getOffsetParent||shepherd_Ut,n=this.getDimensions,o=await n(t.floating);return{reference:shepherd_Nt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=shepherd_Pt(t);return{width:e,height:n}},getScale:shepherd_kt,isElement:shepherd_at,isRTL:function(t){return"rtl"===shepherd_St(t).direction}};function Yt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function shepherd_Xt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,u=shepherd_Ct(t),h=i||r?[...u?shepherd_Rt(u):[],...shepherd_Rt(e)]:[];h.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)});const d=u&&c?function(t,e){let n,o=null;const i=shepherd_lt(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(c,a){void 0===c&&(c=!1),void 0===a&&(a=1),r();const u=t.getBoundingClientRect(),{left:h,top:d,width:f,height:p}=u;if(c||e(),!f||!p)return;const g={rootMargin:-shepherd_R(d)+"px "+-shepherd_R(i.clientWidth-(h+f))+"px "+-shepherd_R(i.clientHeight-(d+p))+"px "+-shepherd_R(h)+"px",threshold:shepherd_L(0,shepherd_A(1,a))||1};let m=!0;function v(e){const o=e[0].intersectionRatio;if(o!==a){if(!m)return l();o?l(!1,o):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==o||Yt(u,t.getBoundingClientRect())||l(),m=!1}try{o=new IntersectionObserver(v,shepherd_s({},g,{root:i.ownerDocument}))}catch(t){o=new IntersectionObserver(v,g)}o.observe(t)}(!0),r}(u,n):null;let f,p=-1,g=null;l&&(g=new ResizeObserver(t=>{let[o]=t;o&&o.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=g)||t.observe(e)})),n()}),u&&!a&&g.observe(u),g.observe(e));let m=a?Ft(t):null;return a&&function e(){const o=Ft(t);m&&!Yt(m,o)&&n();m=o,f=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),null==d||d(),null==(t=g)||t.disconnect(),g=null,a&&cancelAnimationFrame(f)}}const shepherd_Zt=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:s,middlewareData:l,placement:c,platform:a,elements:u}=e,h=shepherd_D(t,e),{crossAxis:d=!1,alignment:f,allowedPlacements:p=shepherd_S,autoAlignment:g=!0}=h,m=shepherd_r(h,shepherd_J),v=void 0!==f||p===shepherd_S?function(t,e,n){return(t?[...n.filter(e=>shepherd_F(e)===t),...n.filter(e=>shepherd_F(e)!==t)]:n.filter(t=>shepherd_$(t)===t)).filter(n=>!t||shepherd_F(n)===t||!!e&&shepherd_W(n)!==n)}(f||null,g,p):p,y=await a.detectOverflow(e,m),x=(null==(n=l.autoPlacement)?void 0:n.index)||0,b=v[x];if(null==b)return{};const w=shepherd_N(b,s,await(null==a.isRTL?void 0:a.isRTL(u.floating)));if(c!==b)return{reset:{placement:v[0]}};const E=[y[shepherd_$(b)],y[w[0]],y[w[1]]],O=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:b,overflows:E}],T=v[x+1];if(T)return{data:{index:x+1,overflows:O},reset:{placement:T}};const A=O.map(t=>{const e=shepherd_F(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),L=(null==(i=A.filter(t=>t[2].slice(0,shepherd_F(t[0])?2:3).every(t=>t<=0))[0])?void 0:i[0])||A[0][0];return L!==c?{data:{index:x+1,overflows:O},reset:{placement:L}}:{}}}},shepherd_Kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:l}=e,c=shepherd_D(t,e),{mainAxis:a=!0,crossAxis:u=!1,limiter:h={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=c,d=shepherd_r(c,tt),f={x:n,y:o},p=await l.detectOverflow(e,d),g=shepherd_B(shepherd_$(i)),m=shepherd_I(g);let v=f[m],y=f[g];if(a){const t="y"===m?"bottom":"right";v=shepherd_k(v+p["y"===m?"top":"left"],v,v-p[t])}if(u){const t="y"===g?"bottom":"right";y=shepherd_k(y+p["y"===g?"top":"left"],y,y-p[t])}const x=h.fn(shepherd_s({},e,{[m]:v,[g]:y}));return shepherd_s({},x,{data:{x:x.x-n,y:x.y-o,enabled:{[m]:a,[g]:u}}})}}},shepherd_Gt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:a,elements:u}=e,h=shepherd_D(t,e),{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0}=h,y=shepherd_r(h,shepherd_Q);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const x=shepherd_$(i),b=shepherd_B(c),w=shepherd_$(c)===c,E=await(null==a.isRTL?void 0:a.isRTL(u.floating)),O=p||(w||!v?[shepherd_Z(c)]:function(t){const e=shepherd_Z(t);return[shepherd_W(t),e,shepherd_W(e)]}(c)),T="none"!==m;!p&&T&&O.push(...shepherd_X(c,v,m,E));const S=[c,...O],A=await a.detectOverflow(e,y),L=[];let _=(null==(o=s.flip)?void 0:o.overflows)||[];if(d&&L.push(A[x]),f){const t=shepherd_N(i,l,E);L.push(A[t[0]],A[t[1]])}if(_=[..._,{placement:i,overflows:L}],!L.every(t=>t<=0)){var R,M;const t=((null==(R=s.flip)?void 0:R.index)||0)+1,e=S[t];if(e){if(!("alignment"===f&&b!==shepherd_B(e))||_.every(t=>shepherd_B(t.placement)!==b||t.overflows[0]>0))return{data:{index:t,overflows:_},reset:{placement:e}}}let n=null==(M=_.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:M.placement;if(!n)switch(g){case"bestFit":{var P;const t=null==(P=_.filter(t=>{if(T){const e=shepherd_B(t.placement);return e===b||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},shepherd_Jt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:a}=e,{element:u,padding:h=0}=shepherd_D(t,e)||{};if(null==u)return{};const d=shepherd_K(h),f={x:n,y:o},p=shepherd_V(i),g=shepherd_H(p),m=await l.getDimensions(u),v="y"===p,y=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=r.reference[g]+r.reference[p]-f[p]-r.floating[g],E=f[p]-r.reference[p],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let T=O?O[b]:0;T&&await(null==l.isElement?void 0:l.isElement(O))||(T=c.floating[b]||r.floating[g]);const S=w/2-E/2,L=T/2-m[g]/2-1,_=shepherd_A(d[y],L),R=shepherd_A(d[x],L),M=_,P=T-m[g]-R,C=T/2-m[g]/2+S,$=shepherd_k(M,C,P),I=!a.arrow&&null!=shepherd_F(i)&&C!==$&&r.reference[g]/2-(C<M?_:R)-m[g]/2<0,j=I?C<M?C-M:C-P:0;return{[p]:f[p]+j,data:shepherd_s({[p]:$,centerOffset:C-$-j},I&&{alignmentOffset:j}),reset:I}}}),shepherd_Qt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=e,{offset:c=0,mainAxis:a=!0,crossAxis:u=!0}=shepherd_D(t,e),h={x:n,y:o},d=shepherd_B(i),f=shepherd_I(d);let p=h[f],g=h[d];const m=shepherd_D(c,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:shepherd_s({mainAxis:0,crossAxis:0},m);if(a){const t="y"===f?"height":"width",e=r.reference[f]-r.floating[t]+v.mainAxis,n=r.reference[f]+r.reference[t]-v.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var y,x;const t="y"===f?"width":"height",e=shepherd_ot.has(shepherd_$(i)),n=r.reference[d]-r.floating[t]+(e&&(null==(y=l.offset)?void 0:y[d])||0)+(e?0:v.crossAxis),o=r.reference[d]+r.reference[t]+(e?0:(null==(x=l.offset)?void 0:x[d])||0)-(e?v.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[f]:p,[d]:g}}}},shepherd_te=(t,e,n)=>{const o=new Map,i=shepherd_s({platform:shepherd_zt},n),r=shepherd_s({},i.platform,{_c:o});return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:d}=shepherd_et(u,o,a),f=o,p={},g=0;for(let n=0;n<c.length;n++){var m;const{name:r,fn:v}=c[n],{x:y,y:x,data:b,reset:w}=await v({x:h,y:d,initialPlacement:o,placement:f,strategy:i,middlewareData:p,rects:u,platform:shepherd_s({},l,{detectOverflow:null!=(m=l.detectOverflow)?m:shepherd_nt}),elements:{reference:t,floating:e}});h=null!=y?y:h,d=null!=x?x:d,p=shepherd_s({},p,{[r]:shepherd_s({},p[r],b)}),w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:h,y:d}=shepherd_et(u,f,a))),n=-1)}return{x:h,y:d,placement:f,strategy:i,middlewareData:p}})(t,e,shepherd_s({},i,{platform:r}))};function shepherd_ee(e){e.cleanup&&e.cleanup();const n=e._getResolvedAttachToOptions();let o=n.element;const i=function(t,e){var n,o,i;const s={strategy:"absolute",middleware:[]},r=function(t){if(t.options.arrow&&t.el)return t.el.querySelector(".shepherd-arrow");return!1}(e),l=shepherd_E(t),c=null==(n=t.on)?void 0:n.includes("auto"),a=(null==t||null==(o=t.on)?void 0:o.includes("-start"))||(null==t||null==(i=t.on)?void 0:i.includes("-end"));if(!l){var u;if(c)s.middleware.push(shepherd_Zt({crossAxis:!0,alignment:a?null==t||null==(u=t.on)?void 0:u.split("-").pop():null}));else s.middleware.push(shepherd_Gt());if(s.middleware.push(shepherd_Kt({limiter:shepherd_Qt(),crossAxis:!0})),r){const t="object"==typeof e.options.arrow?e.options.arrow:{padding:4};s.middleware.push(shepherd_Jt({element:r,padding:a?t.padding:0}))}c||(s.placement=t.on)}return shepherd_m(s,e.options.floatingUIOptions||{})}(n,e),s=shepherd_E(n);if(s){var r;o=document.body;const t=null==(r=e.shepherdElementComponent)?void 0:r.element;null==t||t.classList.add("shepherd-centered")}return e.cleanup=shepherd_Xt(o,e.el,()=>{e.el?function(e,n,o,i){shepherd_te(e,n.el,o).then(function(e,n){return({x:o,y:i,placement:s,middlewareData:r})=>e.el?(n?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:`${o}px`,top:`${i}px`}),e.el.dataset.popperPlacement=s,function(e,n){const o=e.querySelector(".shepherd-arrow");if(shepherd_t(o)&&n.arrow){const{x:t,y:e}=n.arrow;Object.assign(o.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:""})}}(e.el,r),e):e}(n,i)).then(t=>new Promise(e=>{setTimeout(()=>e(t),300)})).then(t=>{null!=t&&t.el&&(t.el.tabIndex=0,t.el.focus({preventScroll:!0}))})}(o,e,i,s):null==e.cleanup||e.cleanup()}),e.target=n.element,i}function shepherd_ne(t,e,...n){const o=document.createElement(t);return shepherd_ie(o,e),shepherd_se(o,n),o}function shepherd_oe(t,e,...n){const o=document.createElementNS("http://www.w3.org/2000/svg",t);return shepherd_ie(o,e),shepherd_se(o,n),o}function shepherd_ie(t,e){if(e)for(const[n,o]of Object.entries(e))null!=o&&!1!==o&&(n.startsWith("on")&&"function"==typeof o?t.addEventListener(n.slice(2).toLowerCase(),o):"disabled"===n&&!0===o?t.disabled=!0:t.setAttribute(n,String(o)))}function shepherd_se(t,e){for(const n of e)null!=n&&!1!==n&&t.append("string"==typeof n?document.createTextNode(n):n)}function shepherd_re(t,n){return shepherd_e(t)?t.call(n):t}function shepherd_le(t,e){const n=t.action?t.action.bind(e.tour):null,o=!!t.disabled&&shepherd_re(t.disabled,e),i=t.label?shepherd_re(t.label,e):null,r=t.text?shepherd_re(t.text,e):null,l=shepherd_ne("button",shepherd_s({},t.attrs||{},{"aria-label":i||null,class:`${t.classes||""} shepherd-button ${t.secondary?"shepherd-button-secondary":""}`,disabled:o||null,onclick:n,tabindex:"0",type:"button"}));return r&&(l.innerHTML=r),l}function shepherd_ce(t,n){const o=shepherd_ne("header",{class:"shepherd-header"});return n.options.title&&o.append(function(t,n){const o=shepherd_ne("h3",{id:t,class:"shepherd-title"}),i=shepherd_e(n)?n():n;return o.innerHTML=i,o}(t,n.options.title)),n.options.cancelIcon&&n.options.cancelIcon.enabled&&o.append(function(t,e){return shepherd_ne("button",shepherd_s({},t.attrs||{},{"aria-label":t.label?t.label:"Close Tour",class:"shepherd-cancel-icon",onclick:t=>{t.preventDefault(),e.cancel()},type:"button"}),shepherd_ne("span",{"aria-hidden":"true"},"×"))}(n.options.cancelIcon,n)),o}function ae(n,i,s){const r=shepherd_ne("div",{class:"shepherd-content"});return(!shepherd_o(s.options.title)||s.options.cancelIcon&&s.options.cancelIcon.enabled)&&r.append(shepherd_ce(i,s)),shepherd_o(s.options.text)||r.append(function(n,o){const i=shepherd_ne("div",{class:"shepherd-text",id:n});let s=o.options.text;return shepherd_e(s)&&(s=s.call(o)),shepherd_t(s)?i.appendChild(s):i.innerHTML=s,i}(n,s)),Array.isArray(s.options.buttons)&&s.options.buttons.length&&r.append(function(t){const e=shepherd_ne("footer",{class:"shepherd-footer"});if(t.options.buttons)for(const n of t.options.buttons)e.append(shepherd_le(n,t));return e}(s)),r}class shepherd_ue extends shepherd_i{constructor(t,e={}){return super(),this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?shepherd_w(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,shepherd_x(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){var e;(e=this).cleanup&&e.cleanup(),e.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),shepherd_t(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var t;null==(t=this.tour.modal)||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){var t;return this._resolvedExtraHighlightElements=(t=this).options.extraHighlights?t.options.extraHighlights.flatMap(t=>Array.from(document.querySelectorAll(t))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(t){const o=t.options.attachTo||{},i=Object.assign({},o);if(shepherd_e(i.element)&&(i.element=i.element.call(t)),shepherd_n(i.element)){try{i.element=document.querySelector(i.element)}catch(t){}i.element}return i}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return shepherd_e(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(t){const e=t.getAttribute("tabindex");null!==e&&this._originalTabIndexes.set(t,e)}_restoreOriginalTabIndexes(){const t=this.target;t&&(this._originalTabIndexes.has(t)?t.setAttribute("tabindex",this._originalTabIndexes.get(t)):t.removeAttribute("tabindex"))}_createTooltipContent(){const t=`${this.id}-description`,e=`${this.id}-label`;this.shepherdElementComponent=function(t){var e,i,s,r;const{classPrefix:l,descriptionId:c,labelId:a,step:u}=t;let h,d,f,p,g,m,v;const y=null!=(e=null==(i=u.options)||null==(i=i.cancelIcon)?void 0:i.enabled)&&e,x=null!=(s=null==(r=u.options)?void 0:r.title)&&s,b=t=>{const{tour:e}=u;switch(t.keyCode){case 9:if((!d||0===d.length)&&m&&0===m.length){t.preventDefault();break}var n,o,i;if(t.shiftKey){if(document.activeElement===g||null!=(n=document.activeElement)&&n.classList.contains("shepherd-element"))t.preventDefault(),null==(o=null!=p?p:v)||o.focus();else if(document.activeElement===f){var s;t.preventDefault(),null==(s=v)||s.focus()}}else if(document.activeElement===v)t.preventDefault(),null==(i=null!=f?f:g)||i.focus();else if(document.activeElement===p){var r;t.preventDefault(),null==(r=g)||r.focus()}break;case 27:e.options.exitOnEsc&&(t.preventDefault(),t.stopPropagation(),u.cancel());break;case 37:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.back());break;case 39:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.next())}},w=shepherd_ne("dialog",{"aria-describedby":shepherd_o(u.options.text)?null:c,"aria-labelledby":u.options.title?a:null,class:["shepherd-element",y?"shepherd-has-cancel-icon":"",x?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${l}shepherd-step-id`]:u.id,onkeydown:b,open:"true"});if(u.options.arrow&&u.options.attachTo&&u.options.attachTo.element&&u.options.attachTo.on&&w.append(shepherd_ne("div",{class:"shepherd-arrow","data-popper-arrow":""})),w.append(ae(c,a,u)),shepherd_n(u.options.classes)){const t=u.options.classes.split(" ").filter(t=>!!t.length);t.length&&w.classList.add(...t)}const E='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';m=[...w.querySelectorAll(E)],g=m[0],v=m[m.length-1];const O=u._getResolvedAttachToOptions();return null!=O&&O.element&&(h=O.element,u._storeOriginalTabIndex(h),h.tabIndex=0,d=[h,...h.querySelectorAll(E)],f=d[0],p=d[d.length-1],h.addEventListener("keydown",b)),{element:w,cleanup:()=>{var t;null==(t=h)||t.removeEventListener("keydown",b)}}}({classPrefix:this.classPrefix,descriptionId:t,labelId:e,step:this});return(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();shepherd_e(this.options.scrollToHandler)?this.options.scrollToHandler(n):n instanceof Element&&"function"==typeof n.scrollIntoView&&n.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[...n.split(" "),...o.split(" ")],s=new Set(i);return Array.from(s).join(" ").trim()}_setOptions(t={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=shepherd_m({},e||{}),this.options=Object.assign({arrow:!0},e,t,function(t,e){return{floatingUIOptions:shepherd_m(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(e,t));const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||`step-${shepherd_O()}`,n&&Object.keys(n).forEach(t=>{this.on(t,n[t],this)})}_setupElements(){shepherd_o(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&shepherd_b(this),shepherd_ee(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),null==(t=this.tour.modal)||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const e=this.shepherdElementComponent.element,n=this.target||document.body,o=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),e.classList.add("shepherd-enabled"),null==o||o.forEach(t=>{t.classList.add(`${this.classPrefix}shepherd-enabled`),t.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const e=t.target,n=t._resolvedExtraHighlightElements;if(!e)return;const o=t.options.highlightClass;o&&(e.classList.add(o),null==n||n.forEach(t=>t.classList.add(o))),e.classList.remove("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.remove("shepherd-target-click-disabled")),!1===t.options.canClickTarget&&(e.classList.add("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,e=this._resolvedExtraHighlightElements,n=this.options.highlightClass;n&&(t.classList.remove(n),null==e||e.forEach(t=>t.classList.remove(n))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),null==e||e.forEach(t=>{t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}function shepherd_he(t){let e,n=[{width:0,height:0,x:0,y:0,r:0}];const o=shepherd_oe("path"),i=shepherd_oe("svg",{class:"shepherd-modal-overlay-container"},o);function s(){o.setAttribute("d",function(t){let e="";const{innerWidth:n,innerHeight:o}=window;return t.forEach(t=>{const{width:n,height:o,x:i=0,y:s=0,r:r=0}=t,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:u=0}="number"==typeof r?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;e+=`M${i+l},${s}a${l},${l},0,0,0-${l},${l}V`+(o+s-u)+`a${u},${u},0,0,0,${u},${u}H`+(n+i-a)+`a${a},${a},0,0,0,${a}-${a}`+`V${s+c}`+`a${c},${c},0,0,0-${c}-${c}Z`}),`M${n},${o}H0V0H${n}V${o}Z${e}`.replace(/\s/g,"")}(n))}function r(){n=[{width:0,height:0,x:0,y:0,r:0}],s()}function l(){i.classList.remove("shepherd-modal-is-visible"),d()}function c(){i.classList.add("shepherd-modal-is-visible")}function a(t=0,e=0,o=0,i=0,l,c,a){if(c){{const s=[c,...a||[]],r=[];for(const n of s){if(!n)continue;if(s.indexOf(n)!==s.lastIndexOf(n))continue;const{y:c,height:a}=p(n,l),{x:u,width:h,left:d}=n.getBoundingClientRect();s.some(t=>{if(t===n)return!1;const e=t.getBoundingClientRect(),{y:o,height:i}=p(t,l);return u>=e.left&&u+h<=e.left+e.width&&c>=o&&c+a<=o+i})||r.push({width:h+2*t,height:a+2*t,x:(u||d)+o-t,y:c+i-t,r:e})}n=r}s()}else r()}function u(t){t.stopPropagation()}i.addEventListener("touchmove",u),s(),t.append(i);const h=t=>{t.preventDefault()};function d(){e&&(cancelAnimationFrame(e),e=void 0),window.removeEventListener("touchmove",h,{passive:!1})}function f(t){if(!t)return null;const e=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==e&&"visible"!==e&&t.scrollHeight>=t.clientHeight?t:f(t.parentElement)}function p(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;if(e){const t=e.getBoundingClientRect(),n=t.y||t.top,s=t.bottom||n+t.height;o=Math.max(o,n),i=Math.min(i,s)}return{y:o,height:Math.max(i-o,0)}}return{closeModalOpening:r,destroy:function(){d(),i.removeEventListener("touchmove",u),i.remove()},hide:l,positionModal:a,setupForStep:function(t){d(),t.tour.options.useModalOverlay?(!function(t){const{modalOverlayOpeningPadding:n,modalOverlayOpeningRadius:o,modalOverlayOpeningXOffset:i=0,modalOverlayOpeningYOffset:s=0}=t.options,r=function(t){const e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;try{for(;n&&n!==window.top;){var o;const t=null==(o=n)?void 0:o.frameElement;if(t){const n=t.getBoundingClientRect();e.top+=n.top+t.scrollTop,e.left+=n.left+t.scrollLeft}n=n.parent}}catch(t){}return e}(t.target),l=f(t.target),c=()=>{e=void 0,a(n,o,i+r.left,s+r.top,l,t.target,t._resolvedExtraHighlightElements),e=requestAnimationFrame(c)};c(),window.addEventListener("touchmove",h,{passive:!1})}(t),c()):l()},show:c,getElement:function(){return i}}}class shepherd_de extends shepherd_i{constructor(){super(),this.activeTour=void 0,shepherd_x(this)}}const shepherd_fe=new shepherd_de,shepherd_pe="undefined"==typeof window;shepherd_fe.Step=shepherd_pe?class{constructor(t){}}:shepherd_ue,shepherd_fe.Tour=shepherd_pe?class{constructor(t,e){}}:class extends shepherd_i{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,shepherd_x(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=shepherd_w(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(t=>{(t=>{this.on(t,e=>{(e=e||{}).tour=this,shepherd_fe.trigger(t,e)})})(t)}),this._setTourID(t.id),this}addStep(t,e){let n=t;return n instanceof shepherd_ue?n.tour=this:n=new shepherd_ue(this,n),shepherd_o(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach(t=>{this.addStep(t)}),this}back(){const t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;n=shepherd_e(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(e=>e.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return shepherd_fe.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)}removeStep(t){const e=this.getCurrentStep();this.steps.some((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0}),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,o=!0){const i=shepherd_n(t)?this.getById(t):this.steps[t];if(i){this._updateStateBeforeShow();shepherd_e(i.options.showOn)&&!i.options.showOn()?this._skipStep(i,o):(this.currentStep=i,this.trigger("show",{step:i,previous:this.currentStep}),i.show())}}async start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(t=>t.destroy()),function(e){if(e){const{steps:n}=e;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&(shepherd_t(e.target)&&e.target.classList.remove("shepherd-target-click-disabled"),e._resolvedExtraHighlightElements&&e._resolvedExtraHighlightElements.forEach(e=>{shepherd_t(e)&&e.classList.remove("shepherd-target-click-disabled")}))})}}(this),this.trigger(e,{index:n}),shepherd_fe.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),"cancel"!==e&&"complete"!==e||this.modal&&(this.modal.destroy(),this.modal=null),shepherd_t(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),shepherd_fe.activeTour=this}setupModal(){const t=this.options.modalContainer||document.body;this.modal=shepherd_he(t)}_skipStep(t,e){const n=this.steps.indexOf(t),o=e?n+1:n-1;o<0?this.cancel():o>=this.steps.length?this.complete():this.show(o,e)}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const e=this.options.tourName||"tour",n=t||shepherd_O();this.id=`${e}--${n}`}};
236453
+ /*! shepherd.js 15.3.0 */
236454
+ function shepherd_t(t){return t instanceof HTMLElement}function shepherd_e(t){return"function"==typeof t}function shepherd_n(t){return"string"==typeof t}function shepherd_o(t){return void 0===t}class shepherd_i{on(t,e,n,i=!1){var r;return shepherd_o(this.bindings)&&(this.bindings={}),shepherd_o(this.bindings[t])&&(this.bindings[t]=[]),null==(r=this.bindings[t])||r.push({handler:e,ctx:n,once:i}),this}once(t,e,n){return this.on(t,e,n,!0)}off(t,e){var n;const i=null==(n=this.bindings)?void 0:n[t];return shepherd_o(i)||(shepherd_o(e)?delete this.bindings[t]:this.bindings[t]=i.filter(t=>t.handler!==e)),this}trigger(t,...e){var n;const i=null==(n=this.bindings)?void 0:n[t];if(shepherd_o(i))return this;for(const n of i.slice()){const{ctx:o,handler:i,once:c}=n,a=o||this;if(i.apply(a,e),c){var r,s;const e=null!=(r=null==(s=this.bindings[t])?void 0:s.indexOf(n))?r:-1;var l;if(-1!==e)null==(l=this.bindings[t])||l.splice(e,1)}}return this}}function shepherd_r(){return shepherd_r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},shepherd_r.apply(null,arguments)}function shepherd_s(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}const shepherd_l={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function shepherd_c(t,e){const n={key:e.key,parents:e.parents,values:e.values,result:e.result},o=null==t?void 0:t.hierarchy;return shepherd_r({},n,{hierarchy:void 0===o?[n]:[...o,n]})}function shepherd_a(t,e){return t.includes(void 0)?t.filter(t=>void 0!==t):t}function shepherd_u(t,e,n){return n===shepherd_l.defaultMerge||t.useImplicitDefaultMerging&&void 0===n&&t.mergeFunctions[e]!==t.defaultMergeFunctions[e]}function shepherd_h(t,e){return shepherd_r({},e,Object.fromEntries(Object.entries(t).filter(([t])=>Object.hasOwn(e,t)).map(([t,n])=>!1===n?[t,e.mergeOthers]:"function"==typeof n?[t,n]:[t,e[t]])))}var shepherd_f;function shepherd_d(t){return"object"!=typeof t||null===t?shepherd_f.NOT:Array.isArray(t)?shepherd_f.ARRAY:function(t){const e=Object.getPrototypeOf(t);if(null===e||e===Object.prototype)return!0;const n=Object.prototype.toString.call(t);if("[object Object]"!==n&&"[object Module]"!==n)return!1;const{constructor:o}=t;if(void 0===o)return!0;const i=o.prototype;if(null===i||"object"!=typeof i)return!1;const r=Object.prototype.toString.call(i);if("[object Object]"!==r&&"[object Module]"!==r)return!1;if(!Object.hasOwn(i,"isPrototypeOf"))return!1;return!0}(t)?shepherd_f.RECORD:t instanceof Set?shepherd_f.SET:t instanceof Map?shepherd_f.MAP:shepherd_f.OTHER}function shepherd_p(t){const e=Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e));return[...Object.keys(t),...e]}function shepherd_m(t,e){return"object"==typeof t&&Object.prototype.propertyIsEnumerable.call(t,e)}function shepherd_g(t,e,n){if(void 0===e||0===e.length)return 0;let o=1;for(let i=e.length-1;i>=0;i--){const{parents:r}=e[i];if(r[n]===t||r.includes(t))return o;o+=1}return 0}function shepherd_v(t){return null==t?void 0:t.hierarchy}function shepherd_y(t,e,n){if("object"!=typeof t||null===t)return t;const o=shepherd_v(n),i=shepherd_g(t,o,0);var r;if(i>0&&void 0!==o)return null==(r=o[o.length-i])?void 0:r.result;if(shepherd_d(t)===shepherd_f.RECORD){const o=t;let i=!1;const r={};for(const t of shepherd_p(o)){const s=o[t],l=e.metaDataUpdater(n,{key:t,parents:[o],values:[s],result:r}),c=shepherd_y(s,e,l);c!==s&&(i=!0),"__proto__"===t?Object.defineProperty(r,t,{value:c,configurable:!0,enumerable:!0,writable:!0}):r[t]=c}return i?r:t}return t}!function(t){t[t.NOT=0]="NOT",t[t.RECORD=1]="RECORD",t[t.ARRAY=2]="ARRAY",t[t.SET=3]="SET",t[t.MAP=4]="MAP",t[t.OTHER=5]="OTHER"}(shepherd_f||(shepherd_f={}));const shepherd_b={mergeRecords:function(t,e,n){if(2===t.length){const o={},i=(i,r)=>{const s=e.metaDataUpdater(n,{key:i,parents:t,values:r,result:o}),c=shepherd_E(r,e,s);c!==shepherd_l.skip&&("__proto__"===i?Object.defineProperty(o,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[i]=c)},r=t[0],s=t[1];for(const t of shepherd_p(r))i(t,shepherd_m(s,t)?[r[t],s[t]]:[r[t]]);for(const t of shepherd_p(s))shepherd_m(r,t)||i(t,[s[t]]);return o}return function(t,e,n){const o={};for(const i of function(t){const e=new Set;for(const n of t){const t=Object.keys(n);for(const n of t)e.add(n);const o=Object.getOwnPropertySymbols(n);if(o.length>0)for(const t of o)Object.prototype.propertyIsEnumerable.call(n,t)&&e.add(t)}return e}(t)){const r=[];for(const e of t)shepherd_m(e,i)&&r.push(e[i]);const s=e.metaDataUpdater(n,{key:i,parents:t,values:r,result:o}),c=shepherd_E(r,e,s);c!==shepherd_l.skip&&("__proto__"===i?Object.defineProperty(o,i,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[i]=c)}return o}(t,e,n)},mergeArrays:function(t,e,n){return t.flat()},mergeSets:function(t,e,n){const o=new Set;for(const e of t)for(const t of e)o.add(t);return o},mergeMaps:function(t,e,n){const o=new Map,i=new Map;for(const e of t)for(const[t,n]of e){const e=i.get(t);void 0===e?i.set(t,[n]):e.push(n)}for(const[r,s]of i){const i=e.metaDataUpdater(n,{key:r,parents:t,values:s,result:o}),c=shepherd_E(s,e,i);c!==shepherd_l.skip&&o.set(r,c)}return o},mergeCircularReferences:function(t,e,n,o){var i;const r=e[0],s=shepherd_v(o);for(let i=1;i<t.length;i++)if(e[i]!==r){var l;const i=e.at(-1);return 0===i?shepherd_y(t.at(-1),n,o):null==s||null==(l=s[s.length-i])?void 0:l.result}return null==s||null==(i=s[s.length-r])?void 0:i.result},mergeOthers:function(t,e,n){return t.at(-1)}},shepherd_w=shepherd_O();function shepherd_x(...t){return shepherd_w(...t)}function shepherd_O(t={},e){const n=function(t,e){var n;const o=shepherd_c;return{defaultMergeFunctions:shepherd_b,mergeFunctions:shepherd_h(t,shepherd_b),metaDataUpdater:"function"==typeof t.metaDataUpdater?t.metaDataUpdater:o,deepmerge:e,useImplicitDefaultMerging:null!=(n=t.enableImplicitDefaultMerging)&&n,filterValues:!1===t.filterValues?void 0:"function"==typeof t.filterValues?t.filterValues:shepherd_a,maxDepth:"number"==typeof t.maxDepth&&!Number.isNaN(t.maxDepth)&&t.maxDepth>=0?t.maxDepth:1e3,actions:shepherd_l}}(t,o);function o(...t){return shepherd_E(t,n,null!=e?e:void 0)}return o}function shepherd_E(t,e,n){var o,i,r;const s=null!=(o=null==e.filterValues?void 0:e.filterValues(t,n))?o:t;if(0===s.length)return;const l=shepherd_v(n),c=null!=(i=null==l?void 0:l.length)?i:"number"==typeof n?n:null!=(r=null==n?void 0:n.depth)?r:0;if(void 0!==e.maxDepth&&c>=e.maxDepth)return shepherd_S(s,e,n);if(1===s.length){if(void 0!==l){const t=shepherd_g(s[0],l,0);var a,h,p;if(t>0)return null!=(a=null==(h=l[l.length-t])?void 0:h.result)?a:null==(p=l[l.length-t])?void 0:p.parents[0]}return shepherd_S(s,e,n)}const m=shepherd_d(s[0]);if(m!==shepherd_f.NOT&&m!==shepherd_f.OTHER)if(2===s.length){if(shepherd_d(s[1])!==m)return shepherd_S(s,e,n);const t=shepherd_g(s[0],l,0),o=shepherd_g(s[1],l,1);if(0!==t||0!==o)return shepherd_T(s,[t,o],e,n)}else{const t=new Array(s.length);t[0]=shepherd_g(s[0],l,0);for(let o=1;o<s.length;o++){if(shepherd_d(s[o])!==m)return shepherd_S(s,e,n);t[o]=shepherd_g(s[o],l,o)}if(t.some(t=>0!==t))return shepherd_T(s,t,e,n)}switch(m){case shepherd_f.RECORD:return function(t,e,n){const o=e.mergeFunctions.mergeRecords(t,e,n);if(shepherd_u(e,"mergeRecords",o))return e.defaultMergeFunctions.mergeRecords(t,e,n);return o}(s,e,n);case shepherd_f.ARRAY:return function(t,e,n){const o=e.mergeFunctions.mergeArrays(t,e,n);if(shepherd_u(e,"mergeArrays",o))return e.defaultMergeFunctions.mergeArrays(t);return o}(s,e,n);case shepherd_f.SET:return function(t,e,n){const o=e.mergeFunctions.mergeSets(t,e,n);if(shepherd_u(e,"mergeSets",o))return e.defaultMergeFunctions.mergeSets(t);return o}(s,e,n);case shepherd_f.MAP:return function(t,e,n){const o=e.mergeFunctions.mergeMaps(t,e,n);if(shepherd_u(e,"mergeMaps",o))return e.defaultMergeFunctions.mergeMaps(t,e,n);return o}(s,e,n);default:return shepherd_S(s,e,n)}}function shepherd_T(t,e,n,o){const i=n.mergeFunctions.mergeCircularReferences(t,e,n,o);return shepherd_u(n,"mergeCircularReferences",i)?n.defaultMergeFunctions.mergeCircularReferences(t,e,n,o):i}function shepherd_S(t,e,n){const o=e.mergeFunctions.mergeOthers(t,e,n);return shepherd_u(e,"mergeOthers",o)?e.defaultMergeFunctions.mergeOthers(t):o}function shepherd_(t){const e=Object.getOwnPropertyNames(t.constructor.prototype);for(let n=0;n<e.length;n++){const o=e[n],i=t[o];"constructor"!==o&&"function"==typeof i&&(t[o]=i.bind(t))}return t}function shepherd_A(t){const{event:e,selector:n}=t.options.advanceOn||{};if(!e)return;const i=function(t,e){return n=>{if(t.isOpen()){const i=t.el&&n.currentTarget===t.el;(!shepherd_o(e)&&n.currentTarget.matches(e)||i)&&t.tour.next()}}}(t,n);if(!shepherd_o(n)){const t=document.querySelector(n);if(!t)return;return t.addEventListener(e,i),()=>t.removeEventListener(e,i)}return document.body.addEventListener(e,i,!0),()=>document.body.removeEventListener(e,i,!0)}function shepherd_R(t){return shepherd_n(t)&&""!==t?"-"!==t.charAt(t.length-1)?`${t}-`:t:""}function shepherd_L(t){const o=t.options.attachTo||{};let i=shepherd_e(o.element)?o.element.call(t):o.element;if(shepherd_n(i))try{i=document.querySelector(i)}catch(t){i=null}return i||null}function shepherd_C(t){return null==t||(!t.element||!t.on)}function shepherd_P(){let t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)})}const shepherd_M=["start","end"],shepherd_k=["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-"+shepherd_M[0],e+"-"+shepherd_M[1]),[]),shepherd_D=Math.min,shepherd_$=Math.max,shepherd_j=Math.round,shepherd_H=Math.floor,shepherd_I=t=>({x:t,y:t}),shepherd_F={left:"right",right:"left",bottom:"top",top:"bottom"};function shepherd_B(t,e,n){return shepherd_$(t,shepherd_D(e,n))}function shepherd_V(t,e){return"function"==typeof t?t(e):t}function shepherd_N(t){return t.split("-")[0]}function shepherd_W(t){return t.split("-")[1]}function shepherd_q(t){return"x"===t?"y":"x"}function shepherd_U(t){return"y"===t?"height":"width"}function shepherd_z(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function shepherd_Y(t){return shepherd_q(shepherd_z(t))}function shepherd_G(t,e,n){void 0===n&&(n=!1);const o=shepherd_W(t),i=shepherd_Y(t),r=shepherd_U(i);let s="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=shepherd_et(s)),[s,shepherd_et(s)]}function shepherd_X(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const shepherd_Z=["left","right"],shepherd_K=["right","left"],shepherd_J=["top","bottom"],shepherd_Q=["bottom","top"];function tt(t,e,n,o){const i=shepherd_W(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?shepherd_K:shepherd_Z:e?shepherd_Z:shepherd_K;case"left":case"right":return e?shepherd_J:shepherd_Q;default:return[]}}(shepherd_N(t),"start"===n,o);return i&&(r=r.map(t=>t+"-"+i),e&&(r=r.concat(r.map(shepherd_X)))),r}function shepherd_et(t){const e=shepherd_N(t);return shepherd_F[e]+t.slice(e.length)}function shepherd_nt(t){return"number"!=typeof t?function(t){var e,n,o,i;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(i=t.left)?i:0}}(t):{top:t,right:t,bottom:t,left:t}}function shepherd_ot(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}const shepherd_it=["crossAxis","alignment","allowedPlacements","autoAlignment"],shepherd_rt=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],shepherd_st=["mainAxis","crossAxis","limiter"];function shepherd_lt(t,e,n){let{reference:o,floating:i}=t;const r=shepherd_z(e),s=shepherd_Y(e),l=shepherd_U(s),c=shepherd_N(e),a="y"===r,u=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,f=o[l]/2-i[l]/2;let d;switch(c){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:h};break;case"left":d={x:o.x-i.width,y:h};break;default:d={x:o.x,y:o.y}}const p=shepherd_W(e);return p&&(d[s]+=f*("end"===p?1:-1)*(n&&a?-1:1)),d}async function shepherd_ct(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:s,elements:l,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=shepherd_V(e,t),p=shepherd_nt(d),m=l[f?"floating"===h?"reference":"floating":h],g=shepherd_ot(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),v="floating"===h?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),b=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=shepherd_ot(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:c}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}const shepherd_at=new Set(["left","top"]);function shepherd_ut(){return"undefined"!=typeof window}function shepherd_ht(t){return shepherd_pt(t)?(t.nodeName||"").toLowerCase():"#document"}function shepherd_ft(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function shepherd_dt(t){var e;return null==(e=(shepherd_pt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function shepherd_pt(t){return!!shepherd_ut()&&(t instanceof Node||t instanceof shepherd_ft(t).Node)}function shepherd_mt(t){return!!shepherd_ut()&&(t instanceof Element||t instanceof shepherd_ft(t).Element)}function shepherd_gt(t){return!!shepherd_ut()&&(t instanceof HTMLElement||t instanceof shepherd_ft(t).HTMLElement)}function shepherd_vt(t){return!(!shepherd_ut()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof shepherd_ft(t).ShadowRoot)}function yt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=shepherd_Rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==i&&"contents"!==i}function bt(t){return/^(table|td|th)$/.test(shepherd_ht(t))}function wt(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const xt=/transform|translate|scale|rotate|perspective|filter/,Ot=/paint|layout|strict|content/,shepherd_Et=t=>!!t&&"none"!==t;let shepherd_Tt;function shepherd_St(t){const e=shepherd_mt(t)?shepherd_Rt(t):t;return shepherd_Et(e.transform)||shepherd_Et(e.translate)||shepherd_Et(e.scale)||shepherd_Et(e.rotate)||shepherd_Et(e.perspective)||!_t()&&(shepherd_Et(e.backdropFilter)||shepherd_Et(e.filter))||xt.test(e.willChange||"")||Ot.test(e.contain||"")}function _t(){return null==shepherd_Tt&&(shepherd_Tt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),shepherd_Tt}function shepherd_At(t){return/^(html|body|#document)$/.test(shepherd_ht(t))}function shepherd_Rt(t){return shepherd_ft(t).getComputedStyle(t)}function shepherd_Lt(t){return shepherd_mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function shepherd_Ct(t){if("html"===shepherd_ht(t))return t;const e=t.assignedSlot||t.parentNode||shepherd_vt(t)&&t.host||shepherd_dt(t);return shepherd_vt(e)?e.host:e}function shepherd_Pt(t){const e=shepherd_Ct(t);return shepherd_At(e)?(t.ownerDocument||t).body:shepherd_gt(e)&&yt(e)?e:shepherd_Pt(e)}function shepherd_Mt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=shepherd_Pt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),s=shepherd_ft(i);if(r){const t=shepherd_kt(s);return e.concat(s,s.visualViewport||[],yt(i)?i:[],t&&n?shepherd_Mt(t):[])}return e.concat(i,shepherd_Mt(i,[],n))}function shepherd_kt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function shepherd_Dt(t){const e=shepherd_Rt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=shepherd_gt(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=shepherd_j(n)!==r||shepherd_j(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function $t(t){return shepherd_mt(t)?t:t.contextElement}function jt(t){const e=$t(t);if(!shepherd_gt(e))return shepherd_I(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=shepherd_Dt(e);let s=(r?shepherd_j(n.width):n.width)/o,l=(r?shepherd_j(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const shepherd_Ht=shepherd_I(0);function shepherd_It(t){const e=shepherd_ft(t);return _t()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:shepherd_Ht}function Ft(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=$t(t);let s=shepherd_I(1);e&&(o?shepherd_mt(o)&&(s=jt(o)):s=jt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===shepherd_ft(t)}(r,n,o)?shepherd_It(r):shepherd_I(0);let c=(i.left+l.x)/s.x,a=(i.top+l.y)/s.y,u=i.width/s.x,h=i.height/s.y;if(r&&o){const t=shepherd_ft(r),e=shepherd_mt(o)?shepherd_ft(o):o;let n=t,i=shepherd_kt(n);for(;i&&e!==n;){const t=jt(i),e=i.getBoundingClientRect(),o=shepherd_Rt(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,a*=t.y,u*=t.x,h*=t.y,c+=r,a+=s,n=shepherd_ft(i),i=shepherd_kt(n)}}return shepherd_ot({width:u,height:h,x:c,y:a})}function shepherd_Bt(t,e){const n=shepherd_Lt(t).scrollLeft;return e?e.left+n:Ft(shepherd_dt(t)).left+n}function shepherd_Vt(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-shepherd_Bt(t,n),y:n.top+e.scrollTop}}function shepherd_Nt(t,e,n){let o;if("viewport"===e||"layoutViewport"===e)o=function(t,e,n){void 0===n&&(n="viewport");const o="layoutViewport"===n,i=shepherd_ft(t),r=shepherd_dt(t),s=i.visualViewport;let l=r.clientWidth,c=r.clientHeight,a=0,u=0;if(s){const t=!_t()||"fixed"===e;o?t||(a=-s.offsetLeft,u=-s.offsetTop):(l=s.width,c=s.height,t&&(a=s.offsetLeft,u=s.offsetTop))}if(shepherd_Bt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),o="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-e.clientWidth-o),s="stable both-edges"===getComputedStyle(r).scrollbarGutter?i/2:i;s<=25&&(l-=s)}return{width:l,height:c,x:a,y:u}}(t,n,e);else if("document"===e)o=function(t){const e=shepherd_Lt(t),n=t.ownerDocument.body,o=shepherd_$(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=shepherd_$(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+shepherd_Bt(t);const s=-e.scrollTop;return"rtl"===shepherd_Rt(n).direction&&(r+=shepherd_$(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:r,y:s}}(shepherd_dt(t));else if(shepherd_mt(e))o=function(t,e){const n=Ft(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=jt(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=shepherd_It(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return shepherd_ot(o)}function Wt(t,e,n){const o=shepherd_gt(e),i=shepherd_dt(e),r="fixed"===n,s=Ft(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=shepherd_I(0);if((o||!r)&&(("body"!==shepherd_ht(e)||yt(i))&&(l=shepherd_Lt(e)),o)){const t=Ft(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}!o&&i&&(c.x=shepherd_Bt(i));const a=!i||o||r?shepherd_I(0):shepherd_Vt(i,l);return{x:s.left+l.scrollLeft-c.x-a.x,y:s.top+l.scrollTop-c.y-a.y,width:s.width,height:s.height}}function shepherd_qt(t){return"static"===shepherd_Rt(t).position}function shepherd_Ut(t,e){if(!shepherd_gt(t)||"fixed"===shepherd_Rt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return shepherd_dt(t)===n&&(n=n.ownerDocument.body),n}function shepherd_zt(t,e){const n=shepherd_ft(t);if(wt(t))return n;if(!shepherd_gt(t)){let e=shepherd_Ct(t);for(;e&&!shepherd_At(e);){if(shepherd_mt(e)&&!shepherd_qt(e))return e;e=shepherd_Ct(e)}return n}let o=shepherd_Ut(t,e);for(;o&&bt(o)&&shepherd_qt(o);)o=shepherd_Ut(o,e);return o&&shepherd_At(o)&&shepherd_qt(o)&&!shepherd_St(o)?n:o||function(t){let e=shepherd_Ct(t);for(;shepherd_gt(e)&&!shepherd_At(e);){if(shepherd_St(e))return e;if(wt(e))return null;e=shepherd_Ct(e)}return null}(t)||n}const Yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=shepherd_dt(o),l=!!e&&wt(e.floating);if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},a=shepherd_I(1);const u=shepherd_I(0),h=shepherd_gt(o);if((h||!r)&&(("body"!==shepherd_ht(o)||yt(s))&&(c=shepherd_Lt(o)),h)){const t=Ft(o);a=jt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const f=!s||h||r?shepherd_I(0):shepherd_Vt(s,c);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+f.x,y:n.y*a.y-c.scrollTop*a.y+u.y+f.y}},getDocumentElement:shepherd_dt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?wt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=shepherd_Mt(t,[],!1).filter(t=>shepherd_mt(t)&&"body"!==shepherd_ht(t)),i=null;const r="fixed"===shepherd_Rt(t).position;let s=r?shepherd_Ct(t):t;for(;shepherd_mt(s)&&!shepherd_At(s);){const t=shepherd_Rt(s),e=shepherd_St(s),n=i?i.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?i=t:o=o.filter(t=>t!==s),s=shepherd_Ct(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=shepherd_Nt(e,r[0],i);let l=s.top,c=s.right,a=s.bottom,u=s.left;for(let t=1;t<r.length;t++){const n=shepherd_Nt(e,r[t],i);l=shepherd_$(n.top,l),c=shepherd_D(n.right,c),a=shepherd_D(n.bottom,a),u=shepherd_$(n.left,u)}return{width:c-u,height:a-l,x:u,y:l}},getOffsetParent:shepherd_zt,getElementRects:async function(t){const e=this.getOffsetParent||shepherd_zt,n=this.getDimensions,o=await n(t.floating);return{reference:Wt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=shepherd_Dt(t);return{width:e,height:n}},getScale:jt,isElement:shepherd_mt,isRTL:function(t){return"rtl"===shepherd_Rt(t).direction}};function shepherd_Gt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function shepherd_Xt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,u=$t(t),h=i||s?[...u?shepherd_Mt(u):[],...e?shepherd_Mt(e):[]]:[];h.forEach(t=>{i&&t.addEventListener("scroll",n),s&&t.addEventListener("resize",n)});const f=u&&c?function(t,e,n){let o,i=null;const s=shepherd_dt(t);function l(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}function c(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();const u=t.getBoundingClientRect(),{left:h,top:f,width:d,height:p}=u;if(n||e(),!d||!p)return;const m={rootMargin:-shepherd_H(f)+"px "+-shepherd_H(s.clientWidth-(h+d))+"px "+-shepherd_H(s.clientHeight-(f+p))+"px "+-shepherd_H(h)+"px",threshold:shepherd_$(0,shepherd_D(1,a))||1};let g=!0;function v(e){const n=e[0].intersectionRatio;if(!shepherd_Gt(u,t.getBoundingClientRect()))return c();if(n!==a){if(!g)return c();n?c(!1,n):o=setTimeout(()=>{c(!1,1e-7)},1e3)}g=!1}try{i=new IntersectionObserver(v,shepherd_r({},m,{root:s.ownerDocument}))}catch(t){i=new IntersectionObserver(v,m)}i.observe(t)}const a=shepherd_ft(t),u=()=>c(n);return a.addEventListener("resize",u),c(!0),()=>{a.removeEventListener("resize",u),l()}}(u,n,s):null;let d,p=-1,m=null;l&&(m=new ResizeObserver(t=>{let[o]=t;o&&o.target===u&&m&&e&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=m)||t.observe(e)})),n()}),u&&!a&&m.observe(u),e&&m.observe(e));let g=a?Ft(t):null;return a&&function e(){const o=Ft(t);g&&!shepherd_Gt(g,o)&&n();g=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach(t=>{i&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)}),null==f||f(),null==(t=m)||t.disconnect(),m=null,a&&cancelAnimationFrame(d)}}const shepherd_Zt=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:r,middlewareData:l,placement:c,platform:a,elements:u}=e,h=shepherd_V(t,e),{crossAxis:f=!1,alignment:d,allowedPlacements:p=shepherd_k,autoAlignment:m=!0}=h,g=shepherd_s(h,shepherd_it),v=void 0!==d||p===shepherd_k?function(t,e,n){return(t?[...n.filter(e=>shepherd_W(e)===t),...n.filter(e=>shepherd_W(e)!==t)]:n.filter(t=>shepherd_N(t)===t)).filter(n=>!t||shepherd_W(n)===t||!!e&&shepherd_X(n)!==n)}(d||null,m,p):p,y=(null==(n=l.autoPlacement)?void 0:n.index)||0,b=v[y];if(null==b)return{};if(c!==b)return{reset:{placement:v[0]}};const w=await a.detectOverflow(e,g),x=shepherd_G(b,r,await(null==a.isRTL?void 0:a.isRTL(u.floating))),O=[w[shepherd_N(b)],w[x[0]],w[x[1]]],E=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:b,overflows:O}],T=v[y+1];if(T)return{data:{index:y+1,overflows:E},reset:{placement:T}};const S=E.map(t=>{const e=shepherd_W(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),_=(null==(i=S.filter(t=>t[2].slice(0,shepherd_W(t[0])?2:3).every(t=>t<=0))[0])?void 0:i[0])||S[0][0];return _!==c?{data:{index:y+1,overflows:E},reset:{placement:_}}:{}}}},shepherd_Kt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:l}=e,c=shepherd_V(t,e),{mainAxis:a=!0,crossAxis:u=!1,limiter:h={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=c,f=shepherd_s(c,shepherd_st),d={x:n,y:o},p=await l.detectOverflow(e,f),m=shepherd_z(i),g=shepherd_q(m);let v=d[g],y=d[m];const b=(t,e)=>shepherd_B(e+p["y"===t?"top":"left"],e,e-p["y"===t?"bottom":"right"]);a&&(v=b(g,v)),u&&(y=b(m,y));const w=h.fn(shepherd_r({},e,{[g]:v,[m]:y}));return shepherd_r({},w,{data:{x:w.x-n,y:w.y-o,enabled:{[g]:a,[m]:u}}})}}},shepherd_Jt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:a,elements:u}=e,h=shepherd_V(t,e),{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0}=h,y=shepherd_s(h,shepherd_rt);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=shepherd_N(i),w=shepherd_z(c),x=shepherd_N(c)===c,O=await(null==a.isRTL?void 0:a.isRTL(u.floating)),E=p||(x||!v?[shepherd_et(c)]:function(t){const e=shepherd_et(t);return[shepherd_X(t),e,shepherd_X(e)]}(c)),T="none"!==g;!p&&T&&E.push(...tt(c,v,g,O));const S=[c,...E],_=await a.detectOverflow(e,y),A=[];let R=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&A.push(_[b]),d){const t=shepherd_G(i,l,O);A.push(_[t[0]],_[t[1]])}if(R=[...R,{placement:i,overflows:A}],!A.every(t=>t<=0)){var L,C;const t=((null==(L=r.flip)?void 0:L.index)||0)+1,e=S[t];if(e){if(!("alignment"===d&&w!==shepherd_z(e))||R.every(t=>shepherd_z(t.placement)!==w||t.overflows[0]>0))return{data:{index:t,overflows:R},reset:{placement:e}}}let n=null==(C=R.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:C.placement;if(!n)switch(m){case"bestFit":{var P;const t=null==(P=R.filter(t=>{if(T){const e=shepherd_z(t.placement);return e===w||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:P[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},shepherd_Qt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:s,platform:l,elements:c,middlewareData:a}=e,{element:u,padding:h=0}=shepherd_V(t,e)||{};if(null==u)return{};const f=shepherd_nt(h),d={x:n,y:o},p=shepherd_Y(i),m=shepherd_U(p),g=await l.getDimensions(u),v="y"===p,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[p]-d[p]-s.floating[m],O=d[p]-s.reference[p],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let T=E?E[w]:0;T&&await(null==l.isElement?void 0:l.isElement(E))||(T=c.floating[w]||s.floating[m]);const S=x/2-O/2,_=T/2-g[m]/2-1,A=shepherd_D(f[y],_),R=shepherd_D(f[b],_),L=T-g[m]-R,C=T/2-g[m]/2+S,P=shepherd_B(A,C,L),M=!a.arrow&&null!=shepherd_W(i)&&C!==P&&s.reference[m]/2-(C<A?A:R)-g[m]/2<0,k=M?C<A?C-A:C-L:0;return{[p]:d[p]+k,data:shepherd_r({[p]:P,centerOffset:C-P-k},M&&{alignmentOffset:k}),reset:M}}}),shepherd_te=function(t){return void 0===t&&(t={}),{options:t,fn(e){var n,o;const{x:i,y:r,placement:s,rects:l,middlewareData:c}=e,{offset:a=0,mainAxis:u=!0,crossAxis:h=!0}=shepherd_V(t,e),f={x:i,y:r},d=shepherd_z(s),p=shepherd_q(d);let m=f[p],g=f[d];const v=shepherd_V(a,e),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:null!=(n=v.mainAxis)?n:0,crossAxis:null!=(o=v.crossAxis)?o:0};if(u){const t="y"===p?"height":"width",e=l.reference[p]-l.floating[t]+y.mainAxis,n=l.reference[p]+l.reference[t]-y.mainAxis;m<e?m=e:m>n&&(m=n)}if(h){var b,w;const t="y"===p?"width":"height",e=shepherd_at.has(shepherd_N(s)),n=l.reference[d]-l.floating[t]+(e&&(null==(b=c.offset)?void 0:b[d])||0)+(e?0:y.crossAxis),o=l.reference[d]+l.reference[t]+(e?0:(null==(w=c.offset)?void 0:w[d])||0)-(e?y.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[p]:m,[d]:g}}}},shepherd_ee=(t,e,n)=>{const o=new Map,i=null!=n?n:{},s=shepherd_r({},Yt,i.platform,{_c:o});return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=l.detectOverflow?l:shepherd_r({},l,{detectOverflow:shepherd_ct}),a=await(null==l.isRTL?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=shepherd_lt(u,o,a),d=o,p=0;const m={};for(let n=0;n<s.length;n++){const g=s[n];if(!g)continue;const{name:v,fn:y}=g,{x:b,y:w,data:x,reset:O}=await y({x:h,y:f,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:u,platform:c,elements:{reference:t,floating:e}});h=null!=b?b:h,f=null!=w?w:f,m[v]=shepherd_r({},m[v],x),O&&p<50&&(p++,"object"==typeof O&&(O.placement&&(d=O.placement),O.rects&&(u=!0===O.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):O.rects),({x:h,y:f}=shepherd_lt(u,d,a))),n=-1)}return{x:h,y:f,placement:d,strategy:i,middlewareData:m}})(t,e,shepherd_r({},i,{platform:s}))};function shepherd_ne(e){e.cleanup&&e.cleanup();const n=e._getResolvedAttachToOptions();let o=n.element;const i=function(t,e){var n,o,i;const r={strategy:"absolute",middleware:[]},s=function(t){if(t.options.arrow&&t.el)return t.el.querySelector(".shepherd-arrow");return!1}(e),l=shepherd_C(t),c=null==(n=t.on)?void 0:n.includes("auto"),a=(null==t||null==(o=t.on)?void 0:o.includes("-start"))||(null==t||null==(i=t.on)?void 0:i.includes("-end"));if(!l){var u;if(c)r.middleware.push(shepherd_Zt({crossAxis:!0,alignment:a?null==t||null==(u=t.on)?void 0:u.split("-").pop():null}));else r.middleware.push(shepherd_Jt());r.middleware.push(shepherd_Kt({limiter:shepherd_te(),crossAxis:!0})),c||(r.placement=t.on)}const h=shepherd_x(r,e.options.floatingUIOptions||{});if(!l&&s&&(d=h.middleware,!Boolean(null==d?void 0:d.some(t=>function(t){return Boolean(t)}(t)&&"arrow"===t.name)))){var f;const t="object"==typeof e.options.arrow?e.options.arrow:{padding:4};h.middleware=[...null!=(f=h.middleware)?f:[],shepherd_Qt({element:s,padding:a?t.padding:0})]}var d;return h}(n,e),r=shepherd_C(n);if(r){var s;o=document.body;const t=null==(s=e.shepherdElementComponent)?void 0:s.element;null==t||t.classList.add("shepherd-centered")}return e.cleanup=shepherd_Xt(o,e.el,()=>{e.el?function(e,n,o,i){shepherd_ee(e,n.el,o).then(function(e,n){return({x:o,y:i,strategy:r,placement:s,middlewareData:l})=>e.el?(n?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:r,left:`${o}px`,top:`${i}px`}),e.el.dataset.popperPlacement=s,function(e,n){const o=e.querySelector(".shepherd-arrow");if(shepherd_t(o)&&n.arrow){const{x:t,y:e}=n.arrow;Object.assign(o.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:""})}}(e.el,l),e):e}(n,i)).then(t=>new Promise(e=>{setTimeout(()=>e(t),300)})).then(t=>{null!=t&&t.el&&(t.el.tabIndex=0,t.el.focus({preventScroll:!0}))})}(o,e,i,r):null==e.cleanup||e.cleanup()}),e.target=n.element,i}function shepherd_oe(t,e,...n){const o=document.createElement(t);return shepherd_re(o,e),shepherd_se(o,n),o}function shepherd_ie(t,e,...n){const o=document.createElementNS("http://www.w3.org/2000/svg",t);return shepherd_re(o,e),shepherd_se(o,n),o}function shepherd_re(t,e){if(e)for(const[n,o]of Object.entries(e))null!=o&&!1!==o&&(n.startsWith("on")&&"function"==typeof o?t.addEventListener(n.slice(2).toLowerCase(),o):"disabled"===n&&!0===o?t.disabled=!0:t.setAttribute(n,String(o)))}function shepherd_se(t,e){for(const n of e)null!=n&&!1!==n&&t.append("string"==typeof n?document.createTextNode(n):n)}function shepherd_le(t,n){return shepherd_e(t)?t.call(n):t}function shepherd_ce(t,e){const n=t.action?t.action.bind(e.tour):null,o=!!t.disabled&&shepherd_le(t.disabled,e),i=t.label?shepherd_le(t.label,e):null,s=t.text?shepherd_le(t.text,e):null,l=shepherd_oe("button",shepherd_r({},t.attrs||{},{"aria-label":i||null,class:`${t.classes||""} shepherd-button ${t.secondary?"shepherd-button-secondary":""}`,disabled:o||null,onclick:n,tabindex:"0",type:"button"}));return s&&(l.innerHTML=s),l}function ae(t,n){const o=shepherd_oe("header",{class:"shepherd-header"});return n.options.title&&o.append(function(t,n){const o=shepherd_oe("h3",{id:t,class:"shepherd-title"}),i=shepherd_e(n)?n():n;return o.innerHTML=i,o}(t,n.options.title)),n.options.cancelIcon&&n.options.cancelIcon.enabled&&o.append(function(t,e){return shepherd_oe("button",shepherd_r({},t.attrs||{},{"aria-label":t.label?t.label:"Close Tour",class:"shepherd-cancel-icon",onclick:t=>{t.preventDefault(),e.cancel()},type:"button"}),shepherd_oe("span",{"aria-hidden":"true"},"×"))}(n.options.cancelIcon,n)),o}function shepherd_ue(n,i,r){const s=shepherd_oe("div",{class:"shepherd-content"});return(!shepherd_o(r.options.title)||r.options.cancelIcon&&r.options.cancelIcon.enabled)&&s.append(ae(i,r)),shepherd_o(r.options.text)||s.append(function(n,o){const i=shepherd_oe("div",{class:"shepherd-text",id:n});let r=o.options.text;return shepherd_e(r)&&(r=r.call(o)),shepherd_t(r)?i.appendChild(r):i.innerHTML=r,i}(n,r)),Array.isArray(r.options.buttons)&&r.options.buttons.length&&s.append(function(t){const e=shepherd_oe("footer",{class:"shepherd-footer"});if(t.options.buttons)for(const n of t.options.buttons)e.append(shepherd_ce(n,t));return e}(r)),s}class shepherd_he extends shepherd_i{constructor(t,e={}){return super(),this._advanceOnCleanup=void 0,this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=t,this.classPrefix=this.tour.options?shepherd_R(this.tour.options.classPrefix):"",this.styles=t.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,shepherd_(this),this._setOptions(e),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){var e;this._advanceOnCleanup&&(this._advanceOnCleanup(),this._advanceOnCleanup=null),(e=this).cleanup&&e.cleanup(),e.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),shepherd_t(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var t;null==(t=this.tour.modal)||t.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){var t;return this._resolvedExtraHighlightElements=(t=this).options.extraHighlights?t.options.extraHighlights.flatMap(t=>Array.from(document.querySelectorAll(t))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(t){const o=t.options.attachTo||{},i=Object.assign({},o);if(shepherd_e(i.element)&&(i.element=i.element.call(t)),shepherd_n(i.element)){try{i.element=document.querySelector(i.element)}catch(t){}!i.element&&t.options.skipMissingElement}return i}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return shepherd_e(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(t){const e=t.getAttribute("tabindex");null!==e&&this._originalTabIndexes.set(t,e)}_restoreOriginalTabIndexes(){const t=this.target;t&&(this._originalTabIndexes.has(t)?t.setAttribute("tabindex",this._originalTabIndexes.get(t)):t.removeAttribute("tabindex"))}_createTooltipContent(){const t=`${this.id}-description`,i=`${this.id}-label`;this.shepherdElementComponent=function(t){var i,r,s,l;const{classPrefix:c,descriptionId:a,labelId:u,step:h}=t;let f,d,p,m,g,v,y;const b=null!=(i=null==(r=h.options)||null==(r=r.cancelIcon)?void 0:r.enabled)&&i,w=null!=(s=null==(l=h.options)?void 0:l.title)&&s,x=w?void 0:shepherd_e(h.options.label)?h.options.label.call(h):h.options.label,O=shepherd_n(x)&&x.trim()?x:null,E=t=>{const{tour:e}=h;switch(t.keyCode){case 9:if((!d||0===d.length)&&v&&0===v.length){t.preventDefault();break}var n,o,i;if(t.shiftKey){if(document.activeElement===g||null!=(n=document.activeElement)&&n.classList.contains("shepherd-element"))t.preventDefault(),null==(o=null!=m?m:y)||o.focus();else if(document.activeElement===p){var r;t.preventDefault(),null==(r=y)||r.focus()}}else if(document.activeElement===y)t.preventDefault(),null==(i=null!=p?p:g)||i.focus();else if(document.activeElement===m){var s;t.preventDefault(),null==(s=g)||s.focus()}break;case 27:e.options.exitOnEsc&&(t.preventDefault(),t.stopPropagation(),h.cancel());break;case 37:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.back());break;case 39:e.options.keyboardNavigation&&(t.preventDefault(),t.stopPropagation(),e.next())}},T=shepherd_oe("dialog",{"aria-describedby":shepherd_o(h.options.text)?null:a,"aria-label":O,"aria-labelledby":h.options.title?u:null,class:["shepherd-element",b?"shepherd-has-cancel-icon":"",w?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${c}shepherd-step-id`]:h.id,onkeydown:E,open:"true"});if(h.options.arrow&&h.options.attachTo&&h.options.attachTo.element&&h.options.attachTo.on&&T.append(shepherd_oe("div",{class:"shepherd-arrow","data-popper-arrow":""})),T.append(shepherd_ue(a,u,h)),shepherd_n(h.options.classes)){const t=h.options.classes.split(" ").filter(t=>!!t.length);t.length&&T.classList.add(...t)}const S='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';v=[...T.querySelectorAll(S)],g=v[0],y=v[v.length-1];const _=h._getResolvedAttachToOptions();return null!=_&&_.element&&(f=_.element,h._storeOriginalTabIndex(f),f.tabIndex=0,d=[f,...f.querySelectorAll(S)],p=d[0],m=d[d.length-1],f.addEventListener("keydown",E)),{element:T,cleanup:()=>{var t;null==(t=f)||t.removeEventListener("keydown",E)}}}({classPrefix:this.classPrefix,descriptionId:t,labelId:i,step:this});return(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(t){const{element:n}=this._getResolvedAttachToOptions();shepherd_e(this.options.scrollToHandler)?this.options.scrollToHandler(n):n instanceof Element&&"function"==typeof n.scrollIntoView&&n.scrollIntoView(t)}_getClassOptions(t){const e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[...n.split(" "),...o.split(" ")],r=new Set(i);return Array.from(r).join(" ").trim()}_setOptions(t={}){let e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;e=shepherd_x({},e||{}),this.options=Object.assign({arrow:!0},e,t,function(t,e){return{floatingUIOptions:shepherd_x(t.floatingUIOptions||{},e.floatingUIOptions||{})}}(e,t));const{when:n}=this.options;this.options.classes=this._getClassOptions(t),this._teardownElements(),this.id=this.options.id||`step-${shepherd_P()}`,n&&Object.keys(n).forEach(t=>{this.on(t,n[t],this)})}_setupElements(){var e;(shepherd_t(this.el)&&this._teardownElements(),this.el=this._createTooltipContent(),this.options.advanceOn)&&(this._advanceOnCleanup=null!=(e=shepherd_A(this))?e:null);shepherd_ne(this)}_show(){var t;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),null==(t=this.tour.modal)||t.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);const e=this.shepherdElementComponent.element,n=this.target||document.body,o=this._resolvedExtraHighlightElements;n.classList.add(`${this.classPrefix}shepherd-enabled`),n.classList.add(`${this.classPrefix}shepherd-target`),e.classList.add("shepherd-enabled"),null==o||o.forEach(t=>{t.classList.add(`${this.classPrefix}shepherd-enabled`),t.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(t){const e=t.target,n=t._resolvedExtraHighlightElements;if(!e)return;const o=t.options.highlightClass;o&&(e.classList.add(o),null==n||n.forEach(t=>t.classList.add(o))),e.classList.remove("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.remove("shepherd-target-click-disabled")),!1===t.options.canClickTarget&&(e.classList.add("shepherd-target-click-disabled"),null==n||n.forEach(t=>t.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){const t=this.target||document.body,e=this._resolvedExtraHighlightElements,n=this.options.highlightClass;n&&(t.classList.remove(n),null==e||e.forEach(t=>t.classList.remove(n))),t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),null==e||e.forEach(t=>{t.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}function shepherd_fe(t){let e,n=new WeakMap,o=[{width:0,height:0,x:0,y:0,r:0}];const i=shepherd_ie("path"),r=shepherd_ie("svg",{class:"shepherd-modal-overlay-container"},i);function s(){i.setAttribute("d",function(t){let e="";const{innerWidth:n,innerHeight:o}=window;return t.forEach(t=>{const{width:n,height:o,x:i=0,y:r=0,r:s=0}=t,{topLeft:l=0,topRight:c=0,bottomRight:a=0,bottomLeft:u=0}="number"==typeof s?{topLeft:s,topRight:s,bottomRight:s,bottomLeft:s}:s;e+=`M${i+l},${r}a${l},${l},0,0,0-${l},${l}V`+(o+r-u)+`a${u},${u},0,0,0,${u},${u}H`+(n+i-a)+`a${a},${a},0,0,0,${a}-${a}`+`V${r+c}`+`a${c},${c},0,0,0-${c}-${c}Z`}),`M${n},${o}H0V0H${n}V${o}Z${e}`.replace(/\s/g,"")}(o))}function l(){o=[{width:0,height:0,x:0,y:0,r:0}],s()}function c(){r.classList.remove("shepherd-modal-is-visible"),d()}function a(){r.classList.add("shepherd-modal-is-visible")}function u(t=0,e=0,n=0,i=0,r,c,a){if(c){{const s=[c,...a||[]],l=[],u=r?[r,...g(r.parentElement)]:[],h=t=>t===c?u:g(t);for(const o of s){if(!o)continue;if(s.indexOf(o)!==s.lastIndexOf(o))continue;const{y:r,height:c}=v(o,h(o)),{x:a,width:u,left:f}=o.getBoundingClientRect();s.some(t=>{if(t===o)return!1;const e=t.getBoundingClientRect(),{y:n,height:i}=v(t,h(t));return a>=e.left&&a+u<=e.left+e.width&&r>=n&&r+c<=n+i})||l.push({width:u+2*t,height:c+2*t,x:(a||f)+n-t,y:r+i-t,r:e})}o=l}s()}else l()}function h(t){t.stopPropagation()}r.addEventListener("touchmove",h),s(),t.append(r);const f=t=>{t.preventDefault()};function d(){e&&(cancelAnimationFrame(e),e=void 0),n=new WeakMap,window.removeEventListener("touchmove",f,{passive:!1})}function p(t,e){const{overflowY:n}=e;return"hidden"!==n&&"visible"!==n&&t.scrollHeight>=t.clientHeight}function m(t){if(!(t instanceof HTMLElement))return[];const{position:e}=window.getComputedStyle(t);if("fixed"===e)return[];const n=[];let o="absolute"!==e;for(let e=t;e;e=e.parentElement){const i=window.getComputedStyle(e);o||e===t||"static"===i.position||(o=!0),o&&p(e,i)&&n.push(e)}return n}function g(t){if(!t)return[];const e=n.get(t);if(e)return e;const o=m(t);return n.set(t,o),o}function v(t,e){const n=t.getBoundingClientRect();let o=n.y||n.top,i=n.bottom||o+n.height;for(const t of e){const e=t.getBoundingClientRect(),n=e.y||e.top,r=e.bottom||n+e.height;o=Math.max(o,n),i=Math.min(i,r)}return{y:o,height:Math.max(i-o,0)}}return{closeModalOpening:l,destroy:function(){d(),r.removeEventListener("touchmove",h),r.remove()},hide:c,positionModal:u,setupForStep:function(t){d(),t.tour.options.useModalOverlay?(!function(t){const{modalOverlayOpeningPadding:n,modalOverlayOpeningRadius:o,modalOverlayOpeningXOffset:i=0,modalOverlayOpeningYOffset:r=0}=t.options,s=function(t){const e={top:0,left:0};if(!t)return e;let n=t.ownerDocument.defaultView;try{for(;n&&n!==window.top;){var o;const t=null==(o=n)?void 0:o.frameElement;if(t){const n=t.getBoundingClientRect();e.top+=n.top+t.scrollTop,e.left+=n.left+t.scrollLeft}n=n.parent}}catch(t){}return e}(t.target),l=(a=t.target,null!=(h=m(a)[0])?h:null),c=()=>{e=void 0,u(n,o,i+s.left,r+s.top,l,t.target,t._resolvedExtraHighlightElements),e=requestAnimationFrame(c)};var a,h;c(),window.addEventListener("touchmove",f,{passive:!1})}(t),a()):c()},show:a,getElement:function(){return r}}}class shepherd_de extends shepherd_i{constructor(){super(),this.activeTour=void 0,shepherd_(this)}}const shepherd_pe=new shepherd_de,shepherd_me="undefined"==typeof window;shepherd_pe.Step=shepherd_me?class{constructor(t){}}:shepherd_he,shepherd_pe.Tour=shepherd_me?class{constructor(t,e){}}:class extends shepherd_i{constructor(t={}){super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,this._showGeneration=0,shepherd_(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},t),this.classPrefix=shepherd_R(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(t=>{(t=>{this.on(t,e=>{(e=e||{}).tour=this,shepherd_pe.trigger(t,e)})})(t)}),this._setTourID(t.id),this}addStep(t,e){let n=t;return n instanceof shepherd_he?n.tour=this:n=new shepherd_he(this,n),shepherd_o(e)?this.steps.push(n):this.steps.splice(e,0,n),n}addSteps(t){return Array.isArray(t)&&t.forEach(t=>{this.addStep(t)}),this}back(){const t=this.steps.indexOf(this.currentStep);return this.show(t-1,!1)}async cancel(){if(this.options.confirmCancel){const t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";let n;n=shepherd_e(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(t),n&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(t){return this.steps.find(e=>e.id===t)}getCurrentStep(){return this.currentStep}hide(){const t=this.getCurrentStep();if(t)return t.hide()}isActive(){return shepherd_pe.activeTour===this}next(){const t=this.steps.indexOf(this.currentStep);if(t!==this.steps.length-1)return this.show(t+1,!0);this.complete()}removeStep(t){const e=this.getCurrentStep();this.steps.some((e,n)=>{if(e.id===t)return e.isOpen()&&e.hide(),e.destroy(),this.steps.splice(n,1),!0}),e&&e.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(t=0,o=!0){const i=shepherd_n(t)?this.getById(t):this.steps[t];if(!i)return;this._updateStateBeforeShow();const r=++this._showGeneration;if(shepherd_e(i.options.showOn)&&!i.options.showOn())return this._skipStep(i,o);const{skipMissingElement:s,waitForElement:l}=i.options,c=i.options.attachTo&&i.options.attachTo.element,a="number"==typeof l&&l>0?l:0;if((shepherd_n(c)||shepherd_e(c))&&(s||a>0)&&!shepherd_L(i)){if(a>0)return function(t,e){return new Promise(n=>{const o=shepherd_L(t);if(o||!(e>0))return void n(o);let i=null,r=null,s=null;const l=t=>{var e;null==(e=i)||e.disconnect(),null!==r&&clearInterval(r),null!==s&&clearTimeout(s),n(t)},c=()=>{const e=shepherd_L(t);e&&l(e)};s=setTimeout(()=>l(null),e),"undefined"!=typeof MutationObserver?(i=new MutationObserver(c),i.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})):r=setInterval(c,50)})}(i,a).then(t=>{if(r===this._showGeneration&&this.isActive())return!t&&s?this._skipStep(i,o):void this._showStep(i)});if(s)return this._skipStep(i,o)}this._showStep(i)}_showStep(t){var e;const n=null!=(e=this.currentStep)?e:null;this.currentStep=t,this.trigger("show",{step:t,previous:n}),t.show()}async start(){return this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){const n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(t=>t.destroy()),function(e){if(e){const{steps:n}=e;n.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&(shepherd_t(e.target)&&e.target.classList.remove("shepherd-target-click-disabled"),e._resolvedExtraHighlightElements&&e._resolvedExtraHighlightElements.forEach(e=>{shepherd_t(e)&&e.classList.remove("shepherd-target-click-disabled")}))})}}(this),this.trigger(e,{index:n}),shepherd_pe.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),"cancel"!==e&&"complete"!==e||this.modal&&(this.modal.destroy(),this.modal=null),shepherd_t(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),shepherd_pe.activeTour=this}setupModal(){const t=this.options.modalContainer||document.body;this.modal=shepherd_fe(t)}_skipStep(t,e){const n=this.steps.indexOf(t),o=e?n+1:n-1;if(o<0)this.cancel();else{if(!(o>=this.steps.length))return this.show(o,e);this.complete()}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(t){const e=this.options.tourName||"tour",n=t||shepherd_P();this.id=`${e}--${n}`}};
236557
236455
  //# sourceMappingURL=shepherd.mjs.map
236558
236456
 
236559
236457
  // EXTERNAL MODULE: ../../../node_modules/react-router/dist/index.js
@@ -236673,7 +236571,7 @@ const Onboarding = ({
236673
236571
  if (!matchingTour || hasTourBeenShown(matchingTour.id)) {
236674
236572
  return;
236675
236573
  }
236676
- const tourInstance = new shepherd_fe.Tour({
236574
+ const tourInstance = new shepherd_pe.Tour({
236677
236575
  ...matchingTour.tourOptions,
236678
236576
  defaultStepOptions: {
236679
236577
  ...matchingTour.tourOptions?.defaultStepOptions,
@@ -236682,7 +236580,7 @@ const Onboarding = ({
236682
236580
  },
236683
236581
  when: {
236684
236582
  ...matchingTour.tourOptions?.defaultStepOptions?.when,
236685
- show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(shepherd_fe))
236583
+ show: matchingTour.tourOptions?.defaultStepOptions?.when?.show || (() => defaultShowHandler(shepherd_pe))
236686
236584
  }
236687
236585
  }
236688
236586
  });
@@ -297791,7 +297689,7 @@ module.exports["default"] = main;
297791
297689
 
297792
297690
 
297793
297691
  },
297794
- 26104(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
297692
+ 46680(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
297795
297693
  "use strict";
297796
297694
 
297797
297695
  // EXPORTS
@@ -297799,113 +297697,35 @@ __webpack_require__.d(__webpack_exports__, {
297799
297697
  A: () => (/* binding */ esm_i18next)
297800
297698
  });
297801
297699
 
297802
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/typeof.js
297803
- function _typeof(o) {
297804
- "@babel/helpers - typeof";
297805
-
297806
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
297807
- return typeof o;
297808
- } : function (o) {
297809
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
297810
- }, _typeof(o);
297811
- }
297812
-
297813
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
297814
-
297815
- function toPrimitive(t, r) {
297816
- if ("object" != _typeof(t) || !t) return t;
297817
- var e = t[Symbol.toPrimitive];
297818
- if (void 0 !== e) {
297819
- var i = e.call(t, r || "default");
297820
- if ("object" != _typeof(i)) return i;
297821
- throw new TypeError("@@toPrimitive must return a primitive value.");
297822
- }
297823
- return ("string" === r ? String : Number)(t);
297824
- }
297825
-
297826
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
297827
-
297828
-
297829
- function toPropertyKey(t) {
297830
- var i = toPrimitive(t, "string");
297831
- return "symbol" == _typeof(i) ? i : i + "";
297832
- }
297833
-
297834
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/defineProperty.js
297835
-
297836
- function _defineProperty(e, r, t) {
297837
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
297838
- value: t,
297839
- enumerable: !0,
297840
- configurable: !0,
297841
- writable: !0
297842
- }) : e[r] = t, e;
297843
- }
297844
-
297845
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/objectSpread.js
297846
-
297847
- function _objectSpread(e) {
297848
- for (var r = 1; r < arguments.length; r++) {
297849
- var t = null != arguments[r] ? Object(arguments[r]) : {},
297850
- o = Object.keys(t);
297851
- "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) {
297852
- return Object.getOwnPropertyDescriptor(t, e).enumerable;
297853
- })), o.forEach(function (r) {
297854
- _defineProperty(e, r, t[r]);
297855
- });
297856
- }
297857
- return e;
297858
- }
297859
-
297860
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
297861
- function _classCallCheck(a, n) {
297862
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
297863
- }
297864
-
297865
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/createClass.js
297866
-
297867
- function _defineProperties(e, r) {
297868
- for (var t = 0; t < r.length; t++) {
297869
- var o = r[t];
297870
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
297871
- }
297872
- }
297873
- function _createClass(e, r, t) {
297874
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
297875
- writable: !1
297876
- }), e;
297877
- }
297878
-
297879
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
297880
- function _assertThisInitialized(e) {
297881
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
297882
- return e;
297883
- }
297884
-
297885
- ;// 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
297886
297711
 
297887
297712
 
297888
297713
  function _possibleConstructorReturn(t, e) {
297889
- 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;
297890
297715
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
297891
- return _assertThisInitialized(t);
297716
+ return (0,assertThisInitialized/* ["default"] */.A)(t);
297892
297717
  }
297893
297718
 
297894
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
297719
+ ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
297895
297720
  function _getPrototypeOf(t) {
297896
297721
  return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
297897
297722
  return t.__proto__ || Object.getPrototypeOf(t);
297898
297723
  }, _getPrototypeOf(t);
297899
297724
  }
297900
297725
 
297901
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
297902
- function _setPrototypeOf(t, e) {
297903
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
297904
- return t.__proto__ = e, t;
297905
- }, _setPrototypeOf(t, e);
297906
- }
297907
-
297908
- ;// 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
297909
297729
 
297910
297730
  function _inherits(t, e) {
297911
297731
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
@@ -297917,97 +297737,7 @@ function _inherits(t, e) {
297917
297737
  }
297918
297738
  }), Object.defineProperty(t, "prototype", {
297919
297739
  writable: !1
297920
- }), e && _setPrototypeOf(t, e);
297921
- }
297922
-
297923
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
297924
- function _arrayLikeToArray(r, a) {
297925
- (null == a || a > r.length) && (a = r.length);
297926
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
297927
- return n;
297928
- }
297929
-
297930
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
297931
-
297932
- function _arrayWithoutHoles(r) {
297933
- if (Array.isArray(r)) return _arrayLikeToArray(r);
297934
- }
297935
-
297936
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
297937
- function _iterableToArray(r) {
297938
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
297939
- }
297940
-
297941
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
297942
-
297943
- function _unsupportedIterableToArray(r, a) {
297944
- if (r) {
297945
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
297946
- var t = {}.toString.call(r).slice(8, -1);
297947
- 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;
297948
- }
297949
- }
297950
-
297951
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
297952
- function _nonIterableSpread() {
297953
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
297954
- }
297955
-
297956
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
297957
-
297958
-
297959
-
297960
-
297961
- function _toConsumableArray(r) {
297962
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
297963
- }
297964
-
297965
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
297966
- function _arrayWithHoles(r) {
297967
- if (Array.isArray(r)) return r;
297968
- }
297969
-
297970
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
297971
- function _iterableToArrayLimit(r, l) {
297972
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
297973
- if (null != t) {
297974
- var e,
297975
- n,
297976
- i,
297977
- u,
297978
- a = [],
297979
- f = !0,
297980
- o = !1;
297981
- try {
297982
- if (i = (t = t.call(r)).next, 0 === l) {
297983
- if (Object(t) !== t) return;
297984
- f = !1;
297985
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
297986
- } catch (r) {
297987
- o = !0, n = r;
297988
- } finally {
297989
- try {
297990
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
297991
- } finally {
297992
- if (o) throw n;
297993
- }
297994
- }
297995
- return a;
297996
- }
297997
- }
297998
-
297999
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
298000
- function _nonIterableRest() {
298001
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
298002
- }
298003
-
298004
- ;// CONCATENATED MODULE: ../../../node_modules/i18next/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
298005
-
298006
-
298007
-
298008
-
298009
- function _slicedToArray(r, e) {
298010
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
297740
+ }), e && (0,setPrototypeOf/* ["default"] */.A)(t, e);
298011
297741
  }
298012
297742
 
298013
297743
  ;// CONCATENATED MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
@@ -298020,8 +297750,6 @@ function _slicedToArray(r, e) {
298020
297750
 
298021
297751
 
298022
297752
 
298023
-
298024
-
298025
297753
  var consoleLogger = {
298026
297754
  type: 'logger',
298027
297755
  log: function log(args) {
@@ -298034,25 +297762,20 @@ var consoleLogger = {
298034
297762
  this.output('error', args);
298035
297763
  },
298036
297764
  output: function output(type, args) {
298037
- var _console;
298038
-
298039
- /* eslint no-console: 0 */
298040
- if (console && console[type]) (_console = console)[type].apply(_console, _toConsumableArray(args));
297765
+ if (console && console[type]) console[type].apply(console, args);
298041
297766
  }
298042
297767
  };
298043
297768
 
298044
- var i18next_Logger =
298045
- /*#__PURE__*/
298046
- function () {
297769
+ var i18next_Logger = function () {
298047
297770
  function Logger(concreteLogger) {
298048
297771
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
298049
297772
 
298050
- _classCallCheck(this, Logger);
297773
+ (0,classCallCheck/* ["default"] */.A)(this, Logger);
298051
297774
 
298052
297775
  this.init(concreteLogger, options);
298053
297776
  }
298054
297777
 
298055
- _createClass(Logger, [{
297778
+ (0,createClass/* ["default"] */.A)(Logger, [{
298056
297779
  key: "init",
298057
297780
  value: function init(concreteLogger) {
298058
297781
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -298112,7 +297835,7 @@ function () {
298112
297835
  }, {
298113
297836
  key: "create",
298114
297837
  value: function create(moduleName) {
298115
- return new Logger(this.logger, _objectSpread({}, {
297838
+ return new Logger(this.logger, (0,objectSpread/* ["default"] */.A)({}, {
298116
297839
  prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
298117
297840
  }, this.options));
298118
297841
  }
@@ -298123,16 +297846,14 @@ function () {
298123
297846
 
298124
297847
  var baseLogger = new i18next_Logger();
298125
297848
 
298126
- var i18next_EventEmitter =
298127
- /*#__PURE__*/
298128
- function () {
297849
+ var i18next_EventEmitter = function () {
298129
297850
  function EventEmitter() {
298130
- _classCallCheck(this, EventEmitter);
297851
+ (0,classCallCheck/* ["default"] */.A)(this, EventEmitter);
298131
297852
 
298132
297853
  this.observers = {};
298133
297854
  }
298134
297855
 
298135
- _createClass(EventEmitter, [{
297856
+ (0,createClass/* ["default"] */.A)(EventEmitter, [{
298136
297857
  key: "on",
298137
297858
  value: function on(events, listener) {
298138
297859
  var _this = this;
@@ -298185,7 +297906,6 @@ function () {
298185
297906
  return EventEmitter;
298186
297907
  }();
298187
297908
 
298188
- // http://lea.verou.me/2016/12/resolve-promises-externally-with-this-one-weird-trick/
298189
297909
  function defer() {
298190
297910
  var res;
298191
297911
  var rej;
@@ -298199,11 +297919,9 @@ function defer() {
298199
297919
  }
298200
297920
  function makeString(object) {
298201
297921
  if (object == null) return '';
298202
- /* eslint prefer-template: 0 */
298203
-
298204
297922
  return '' + object;
298205
297923
  }
298206
- function copy(a, s, t) {
297924
+ function i18next_copy(a, s, t) {
298207
297925
  a.forEach(function (m) {
298208
297926
  if (s[m]) t[m] = s[m];
298209
297927
  });
@@ -298224,7 +297942,12 @@ function getLastOfPath(object, path, Empty) {
298224
297942
  if (canNotTraverseDeeper()) return {};
298225
297943
  var key = cleanKey(stack.shift());
298226
297944
  if (!object[key] && Empty) object[key] = new Empty();
298227
- object = object[key];
297945
+
297946
+ if (Object.prototype.hasOwnProperty.call(object, key)) {
297947
+ object = object[key];
297948
+ } else {
297949
+ object = {};
297950
+ }
298228
297951
  }
298229
297952
 
298230
297953
  if (canNotTraverseDeeper()) return {};
@@ -298263,34 +297986,30 @@ function getPathWithDefaults(data, defaultData, key) {
298263
297986
 
298264
297987
  if (value !== undefined) {
298265
297988
  return value;
298266
- } // Fallback to default values
298267
-
297989
+ }
298268
297990
 
298269
297991
  return getPath(defaultData, key);
298270
297992
  }
298271
297993
  function deepExtend(target, source, overwrite) {
298272
- /* eslint no-restricted-syntax: 0 */
298273
297994
  for (var prop in source) {
298274
- if (prop in target) {
298275
- // If we reached a leaf string in target or source then replace with source or skip depending on the 'overwrite' switch
298276
- if (typeof target[prop] === 'string' || target[prop] instanceof String || typeof source[prop] === 'string' || source[prop] instanceof String) {
298277
- 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
+ }
298278
298002
  } else {
298279
- deepExtend(target[prop], source[prop], overwrite);
298003
+ target[prop] = source[prop];
298280
298004
  }
298281
- } else {
298282
- target[prop] = source[prop];
298283
298005
  }
298284
298006
  }
298285
298007
 
298286
298008
  return target;
298287
298009
  }
298288
298010
  function regexEscape(str) {
298289
- /* eslint no-useless-escape: 0 */
298290
298011
  return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
298291
298012
  }
298292
- /* eslint-disable */
298293
-
298294
298013
  var _entityMap = {
298295
298014
  '&': '&amp;',
298296
298015
  '<': '&lt;',
@@ -298299,8 +298018,6 @@ var _entityMap = {
298299
298018
  "'": '&#39;',
298300
298019
  '/': '&#x2F;'
298301
298020
  };
298302
- /* eslint-enable */
298303
-
298304
298021
  function i18next_escape(data) {
298305
298022
  if (typeof data === 'string') {
298306
298023
  return data.replace(/[&<>"'\/]/g, function (s) {
@@ -298310,10 +298027,9 @@ function i18next_escape(data) {
298310
298027
 
298311
298028
  return data;
298312
298029
  }
298030
+ var isIE10 = typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1;
298313
298031
 
298314
- var i18next_ResourceStore =
298315
- /*#__PURE__*/
298316
- function (_EventEmitter) {
298032
+ var i18next_ResourceStore = function (_EventEmitter) {
298317
298033
  _inherits(ResourceStore, _EventEmitter);
298318
298034
 
298319
298035
  function ResourceStore(data) {
@@ -298324,10 +298040,13 @@ function (_EventEmitter) {
298324
298040
  defaultNS: 'translation'
298325
298041
  };
298326
298042
 
298327
- _classCallCheck(this, ResourceStore);
298043
+ (0,classCallCheck/* ["default"] */.A)(this, ResourceStore);
298328
298044
 
298329
298045
  _this = _possibleConstructorReturn(this, _getPrototypeOf(ResourceStore).call(this));
298330
- 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
+ }
298331
298050
 
298332
298051
  _this.data = data || {};
298333
298052
  _this.options = options;
@@ -298339,7 +298058,7 @@ function (_EventEmitter) {
298339
298058
  return _this;
298340
298059
  }
298341
298060
 
298342
- _createClass(ResourceStore, [{
298061
+ (0,createClass/* ["default"] */.A)(ResourceStore, [{
298343
298062
  key: "addNamespaces",
298344
298063
  value: function addNamespaces(ns) {
298345
298064
  if (this.options.ns.indexOf(ns) < 0) {
@@ -298398,7 +298117,6 @@ function (_EventEmitter) {
298398
298117
  silent: false
298399
298118
  };
298400
298119
 
298401
- /* eslint no-restricted-syntax: 0 */
298402
298120
  for (var m in resources) {
298403
298121
  if (typeof resources[m] === 'string' || Object.prototype.toString.apply(resources[m]) === '[object Array]') this.addResource(lng, ns, m, resources[m], {
298404
298122
  silent: true
@@ -298428,7 +298146,7 @@ function (_EventEmitter) {
298428
298146
  if (deep) {
298429
298147
  deepExtend(pack, resources, overwrite);
298430
298148
  } else {
298431
- pack = _objectSpread({}, pack, resources);
298149
+ pack = (0,objectSpread/* ["default"] */.A)({}, pack, resources);
298432
298150
  }
298433
298151
 
298434
298152
  setPath(this.data, path, pack);
@@ -298452,9 +298170,8 @@ function (_EventEmitter) {
298452
298170
  }, {
298453
298171
  key: "getResourceBundle",
298454
298172
  value: function getResourceBundle(lng, ns) {
298455
- if (!ns) ns = this.options.defaultNS; // COMPATIBILITY: remove extend in v2.1.0
298456
-
298457
- 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));
298458
298175
  return this.getResource(lng, ns);
298459
298176
  }
298460
298177
  }, {
@@ -298487,9 +298204,9 @@ var postProcessor = {
298487
298204
  }
298488
298205
  };
298489
298206
 
298490
- var i18next_Translator =
298491
- /*#__PURE__*/
298492
- function (_EventEmitter) {
298207
+ var checkedLoadedFor = {};
298208
+
298209
+ var i18next_Translator = function (_EventEmitter) {
298493
298210
  _inherits(Translator, _EventEmitter);
298494
298211
 
298495
298212
  function Translator(services) {
@@ -298497,12 +298214,15 @@ function (_EventEmitter) {
298497
298214
 
298498
298215
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
298499
298216
 
298500
- _classCallCheck(this, Translator);
298217
+ (0,classCallCheck/* ["default"] */.A)(this, Translator);
298501
298218
 
298502
298219
  _this = _possibleConstructorReturn(this, _getPrototypeOf(Translator).call(this));
298503
- i18next_EventEmitter.call(_assertThisInitialized(_this)); // <=IE10 fix (unable to call parent constructor)
298504
298220
 
298505
- 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));
298506
298226
  _this.options = options;
298507
298227
 
298508
298228
  if (_this.options.keySeparator === undefined) {
@@ -298513,7 +298233,7 @@ function (_EventEmitter) {
298513
298233
  return _this;
298514
298234
  }
298515
298235
 
298516
- _createClass(Translator, [{
298236
+ (0,createClass/* ["default"] */.A)(Translator, [{
298517
298237
  key: "changeLanguage",
298518
298238
  value: function changeLanguage(lng) {
298519
298239
  if (lng) this.language = lng;
@@ -298530,12 +298250,21 @@ function (_EventEmitter) {
298530
298250
  }, {
298531
298251
  key: "extractFromKey",
298532
298252
  value: function extractFromKey(key, options) {
298533
- var nsSeparator = options.nsSeparator || this.options.nsSeparator;
298253
+ var nsSeparator = options.nsSeparator !== undefined ? options.nsSeparator : this.options.nsSeparator;
298534
298254
  if (nsSeparator === undefined) nsSeparator = ':';
298535
298255
  var keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
298536
298256
  var namespaces = options.ns || this.options.defaultNS;
298537
298257
 
298538
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
+
298539
298268
  var parts = key.split(nsSeparator);
298540
298269
  if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();
298541
298270
  key = parts.join(keySeparator);
@@ -298549,27 +298278,23 @@ function (_EventEmitter) {
298549
298278
  }
298550
298279
  }, {
298551
298280
  key: "translate",
298552
- value: function translate(keys, options) {
298281
+ value: function translate(keys, options, lastKey) {
298553
298282
  var _this2 = this;
298554
298283
 
298555
- if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
298556
- /* eslint prefer-rest-params: 0 */
298284
+ if ((0,esm_typeof/* ["default"] */.A)(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
298557
298285
  options = this.options.overloadTranslationOptionHandler(arguments);
298558
298286
  }
298559
298287
 
298560
- if (!options) options = {}; // non valid keys handling
298561
-
298288
+ if (!options) options = {};
298562
298289
  if (keys === undefined || keys === null) return '';
298563
- if (!Array.isArray(keys)) keys = [String(keys)]; // separators
298564
-
298565
- 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;
298566
298292
 
298567
298293
  var _this$extractFromKey = this.extractFromKey(keys[keys.length - 1], options),
298568
298294
  key = _this$extractFromKey.key,
298569
298295
  namespaces = _this$extractFromKey.namespaces;
298570
298296
 
298571
- var namespace = namespaces[namespaces.length - 1]; // return key on CIMode
298572
-
298297
+ var namespace = namespaces[namespaces.length - 1];
298573
298298
  var lng = options.lng || this.language;
298574
298299
  var appendNamespaceToCIMode = options.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
298575
298300
 
@@ -298580,8 +298305,7 @@ function (_EventEmitter) {
298580
298305
  }
298581
298306
 
298582
298307
  return key;
298583
- } // resolve from store
298584
-
298308
+ }
298585
298309
 
298586
298310
  var resolved = this.resolve(keys, options);
298587
298311
  var res = resolved && resolved.res;
@@ -298589,8 +298313,7 @@ function (_EventEmitter) {
298589
298313
  var resExactUsedKey = resolved && resolved.exactUsedKey || key;
298590
298314
  var resType = Object.prototype.toString.apply(res);
298591
298315
  var noObject = ['[object Number]', '[object Function]', '[object RegExp]'];
298592
- var joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays; // object
298593
-
298316
+ var joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;
298594
298317
  var handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
298595
298318
  var handleAsObject = typeof res !== 'string' && typeof res !== 'boolean' && typeof res !== 'number';
298596
298319
 
@@ -298598,61 +298321,59 @@ function (_EventEmitter) {
298598
298321
  if (!options.returnObjects && !this.options.returnObjects) {
298599
298322
  this.logger.warn('accessing an object - but returnObjects options is not enabled!');
298600
298323
  return this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, res, options) : "key '".concat(key, " (").concat(this.language, ")' returned an object instead of string.");
298601
- } // if we got a separator we loop over children - else we just return object as is
298602
- // as having it set to false means no hierarchy so no lookup for nested values
298603
-
298324
+ }
298604
298325
 
298605
298326
  if (keySeparator) {
298606
298327
  var resTypeIsArray = resType === '[object Array]';
298607
- var copy$$1 = resTypeIsArray ? [] : {}; // apply child translation on a copy
298608
-
298609
- /* eslint no-restricted-syntax: 0 */
298610
-
298328
+ var copy = resTypeIsArray ? [] : {};
298611
298329
  var newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
298612
298330
 
298613
298331
  for (var m in res) {
298614
298332
  if (Object.prototype.hasOwnProperty.call(res, m)) {
298615
298333
  var deepKey = "".concat(newKeyToUse).concat(keySeparator).concat(m);
298616
- copy$$1[m] = this.translate(deepKey, _objectSpread({}, options, {
298334
+ copy[m] = this.translate(deepKey, (0,objectSpread/* ["default"] */.A)({}, options, {
298617
298335
  joinArrays: false,
298618
298336
  ns: namespaces
298619
298337
  }));
298620
- 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];
298621
298339
  }
298622
298340
  }
298623
298341
 
298624
- res = copy$$1;
298342
+ res = copy;
298625
298343
  }
298626
298344
  } else if (handleAsObjectInI18nFormat && typeof joinArrays === 'string' && resType === '[object Array]') {
298627
- // array special treatment
298628
298345
  res = res.join(joinArrays);
298629
- if (res) res = this.extendTranslation(res, keys, options);
298346
+ if (res) res = this.extendTranslation(res, keys, options, lastKey);
298630
298347
  } else {
298631
- // string, empty or null
298632
298348
  var usedDefault = false;
298633
- 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;
298634
298354
 
298635
- if (!this.isValidLookup(res) && options.defaultValue !== undefined) {
298355
+ if (!this.isValidLookup(res) && hasDefaultValue) {
298636
298356
  usedDefault = true;
298637
-
298638
- if (options.count !== undefined) {
298639
- var suffix = this.pluralResolver.getSuffix(lng, options.count);
298640
- res = options["defaultValue".concat(suffix)];
298641
- }
298642
-
298643
- if (!res) res = options.defaultValue;
298357
+ res = defaultValue;
298644
298358
  }
298645
298359
 
298646
298360
  if (!this.isValidLookup(res)) {
298647
298361
  usedKey = true;
298648
298362
  res = key;
298649
- } // save missing
298650
-
298363
+ }
298651
298364
 
298652
- var updateMissing = options.defaultValue && options.defaultValue !== res && this.options.updateMissing;
298365
+ var updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
298653
298366
 
298654
298367
  if (usedKey || usedDefault || updateMissing) {
298655
- 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
+
298656
298377
  var lngs = [];
298657
298378
  var fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, options.lng || this.language);
298658
298379
 
@@ -298666,47 +298387,39 @@ function (_EventEmitter) {
298666
298387
  lngs.push(options.lng || this.language);
298667
298388
  }
298668
298389
 
298669
- var send = function send(l, k) {
298390
+ var send = function send(l, k, fallbackValue) {
298670
298391
  if (_this2.options.missingKeyHandler) {
298671
- _this2.options.missingKeyHandler(l, namespace, k, updateMissing ? options.defaultValue : res, updateMissing, options);
298392
+ _this2.options.missingKeyHandler(l, namespace, k, updateMissing ? fallbackValue : res, updateMissing, options);
298672
298393
  } else if (_this2.backendConnector && _this2.backendConnector.saveMissing) {
298673
- _this2.backendConnector.saveMissing(l, namespace, k, updateMissing ? options.defaultValue : res, updateMissing, options);
298394
+ _this2.backendConnector.saveMissing(l, namespace, k, updateMissing ? fallbackValue : res, updateMissing, options);
298674
298395
  }
298675
298396
 
298676
298397
  _this2.emit('missingKey', l, namespace, k, res);
298677
298398
  };
298678
298399
 
298679
298400
  if (this.options.saveMissing) {
298680
- var needsPluralHandling = options.count !== undefined && typeof options.count !== 'string';
298681
-
298682
298401
  if (this.options.saveMissingPlurals && needsPluralHandling) {
298683
- lngs.forEach(function (l) {
298684
- var plurals = _this2.pluralResolver.getPluralFormsOfKey(l, key);
298685
-
298686
- plurals.forEach(function (p) {
298687
- 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);
298688
298405
  });
298689
298406
  });
298690
298407
  } else {
298691
- send(lngs, key);
298408
+ send(lngs, key, defaultValue);
298692
298409
  }
298693
298410
  }
298694
- } // extend
298695
-
298696
-
298697
- res = this.extendTranslation(res, keys, options, resolved); // append namespace if still key
298698
-
298699
- if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = "".concat(namespace, ":").concat(key); // parseMissingKeyHandler
298411
+ }
298700
298412
 
298413
+ res = this.extendTranslation(res, keys, options, resolved, lastKey);
298414
+ if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = "".concat(namespace, ":").concat(key);
298701
298415
  if (usedKey && this.options.parseMissingKeyHandler) res = this.options.parseMissingKeyHandler(res);
298702
- } // return
298703
-
298416
+ }
298704
298417
 
298705
298418
  return res;
298706
298419
  }
298707
298420
  }, {
298708
298421
  key: "extendTranslation",
298709
- value: function extendTranslation(res, key, options, resolved) {
298422
+ value: function extendTranslation(res, key, options, resolved, lastKey) {
298710
298423
  var _this3 = this;
298711
298424
 
298712
298425
  if (this.i18nFormat && this.i18nFormat.parse) {
@@ -298714,27 +298427,48 @@ function (_EventEmitter) {
298714
298427
  resolved: resolved
298715
298428
  });
298716
298429
  } else if (!options.skipInterpolation) {
298717
- // i18next.parsing
298718
- if (options.interpolation) this.interpolator.init(_objectSpread({}, options, {
298719
- interpolation: _objectSpread({}, this.options.interpolation, options.interpolation)
298720
- })); // 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
+ }
298721
298440
 
298722
298441
  var data = options.replace && typeof options.replace !== 'string' ? options.replace : options;
298723
- if (this.options.interpolation.defaultVariables) data = _objectSpread({}, this.options.interpolation.defaultVariables, data);
298724
- 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
+ }
298725
298450
 
298726
298451
  if (options.nest !== false) res = this.interpolator.nest(res, function () {
298727
- 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]));
298728
298463
  }, options);
298729
298464
  if (options.interpolation) this.interpolator.reset();
298730
- } // post process
298731
-
298465
+ }
298732
298466
 
298733
298467
  var postProcess = options.postProcess || this.options.postProcess;
298734
298468
  var postProcessorNames = typeof postProcess === 'string' ? [postProcess] : postProcess;
298735
298469
 
298736
298470
  if (res !== undefined && res !== null && postProcessorNames && postProcessorNames.length && options.applyPostProcessor !== false) {
298737
- 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)({
298738
298472
  i18nResolved: resolved
298739
298473
  }, options) : options, this);
298740
298474
  }
@@ -298748,14 +298482,11 @@ function (_EventEmitter) {
298748
298482
 
298749
298483
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
298750
298484
  var found;
298751
- var usedKey; // plain key
298752
-
298753
- var exactUsedKey; // key with context / plural
298754
-
298485
+ var usedKey;
298486
+ var exactUsedKey;
298755
298487
  var usedLng;
298756
298488
  var usedNS;
298757
- if (typeof keys === 'string') keys = [keys]; // forEach possible key
298758
-
298489
+ if (typeof keys === 'string') keys = [keys];
298759
298490
  keys.forEach(function (k) {
298760
298491
  if (_this4.isValidLookup(found)) return;
298761
298492
 
@@ -298772,8 +298503,10 @@ function (_EventEmitter) {
298772
298503
  if (_this4.isValidLookup(found)) return;
298773
298504
  usedNS = ns;
298774
298505
 
298775
- if (_this4.utils && _this4.utils.hasLoadedNamespace && !_this4.utils.hasLoadedNamespace(usedNS)) {
298776
- _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!!!');
298777
298510
  }
298778
298511
 
298779
298512
  codes.forEach(function (code) {
@@ -298786,18 +298519,13 @@ function (_EventEmitter) {
298786
298519
  _this4.i18nFormat.addLookupKeys(finalKeys, key, code, ns, options);
298787
298520
  } else {
298788
298521
  var pluralSuffix;
298789
- if (needsPluralHandling) pluralSuffix = _this4.pluralResolver.getSuffix(code, options.count); // fallback for plural if context not found
298790
-
298791
- if (needsPluralHandling && needsContextHandling) finalKeys.push(finalKey + pluralSuffix); // get key for context if needed
298792
-
298793
- if (needsContextHandling) finalKeys.push(finalKey += "".concat(_this4.options.contextSeparator).concat(options.context)); // get key for plural if needed
298794
-
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));
298795
298525
  if (needsPluralHandling) finalKeys.push(finalKey += pluralSuffix);
298796
- } // iterate over finalKeys starting with most specific pluralkey (-> contextkey only) -> singularkey only
298797
-
298526
+ }
298798
298527
 
298799
298528
  var possibleKey;
298800
- /* eslint no-cond-assign: 0 */
298801
298529
 
298802
298530
  while (possibleKey = finalKeys.pop()) {
298803
298531
  if (!_this4.isValidLookup(found)) {
@@ -298828,6 +298556,19 @@ function (_EventEmitter) {
298828
298556
  if (this.i18nFormat && this.i18nFormat.getResource) return this.i18nFormat.getResource(code, ns, key, options);
298829
298557
  return this.resourceStore.getResource(code, ns, key, options);
298830
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
+ }
298831
298572
  }]);
298832
298573
 
298833
298574
  return Translator;
@@ -298837,24 +298578,24 @@ function capitalize(string) {
298837
298578
  return string.charAt(0).toUpperCase() + string.slice(1);
298838
298579
  }
298839
298580
 
298840
- var i18next_LanguageUtil =
298841
- /*#__PURE__*/
298842
- function () {
298581
+ var i18next_LanguageUtil = function () {
298843
298582
  function LanguageUtil(options) {
298844
- _classCallCheck(this, LanguageUtil);
298583
+ (0,classCallCheck/* ["default"] */.A)(this, LanguageUtil);
298845
298584
 
298846
298585
  this.options = options;
298847
- this.whitelist = this.options.whitelist || false;
298586
+ this.whitelist = this.options.supportedLngs || false;
298587
+ this.supportedLngs = this.options.supportedLngs || false;
298848
298588
  this.logger = baseLogger.create('languageUtils');
298849
298589
  }
298850
298590
 
298851
- _createClass(LanguageUtil, [{
298591
+ (0,createClass/* ["default"] */.A)(LanguageUtil, [{
298852
298592
  key: "getScriptPartFromCode",
298853
298593
  value: function getScriptPartFromCode(code) {
298854
298594
  if (!code || code.indexOf('-') < 0) return null;
298855
298595
  var p = code.split('-');
298856
298596
  if (p.length === 2) return null;
298857
298597
  p.pop();
298598
+ if (p[p.length - 1].toLowerCase() === 'x') return null;
298858
298599
  return this.formatLanguageCode(p.join('-'));
298859
298600
  }
298860
298601
  }, {
@@ -298867,7 +298608,6 @@ function () {
298867
298608
  }, {
298868
298609
  key: "formatLanguageCode",
298869
298610
  value: function formatLanguageCode(code) {
298870
- // http://www.iana.org/assignments/language-tags/language-tags.xhtml
298871
298611
  if (typeof code === 'string' && code.indexOf('-') > -1) {
298872
298612
  var specialCases = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab'];
298873
298613
  var p = code.split('-');
@@ -298881,8 +298621,7 @@ function () {
298881
298621
  p[1] = p[1].toUpperCase();
298882
298622
  if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());
298883
298623
  } else if (p.length === 3) {
298884
- p[0] = p[0].toLowerCase(); // if lenght 2 guess it's a country
298885
-
298624
+ p[0] = p[0].toLowerCase();
298886
298625
  if (p[1].length === 2) p[1] = p[1].toUpperCase();
298887
298626
  if (p[0] !== 'sgn' && p[2].length === 2) p[2] = p[2].toUpperCase();
298888
298627
  if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase());
@@ -298897,30 +298636,68 @@ function () {
298897
298636
  }, {
298898
298637
  key: "isWhitelisted",
298899
298638
  value: function isWhitelisted(code) {
298900
- 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) {
298901
298646
  code = this.getLanguagePartFromCode(code);
298902
298647
  }
298903
298648
 
298904
- 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;
298905
298681
  }
298906
298682
  }, {
298907
298683
  key: "getFallbackCodes",
298908
298684
  value: function getFallbackCodes(fallbacks, code) {
298909
298685
  if (!fallbacks) return [];
298686
+ if (typeof fallbacks === 'function') fallbacks = fallbacks(code);
298910
298687
  if (typeof fallbacks === 'string') fallbacks = [fallbacks];
298911
298688
  if (Object.prototype.toString.apply(fallbacks) === '[object Array]') return fallbacks;
298912
- if (!code) return fallbacks["default"] || []; // asume we have an object defining fallbacks
298913
-
298689
+ if (!code) return fallbacks["default"] || [];
298914
298690
  var found = fallbacks[code];
298915
298691
  if (!found) found = fallbacks[this.getScriptPartFromCode(code)];
298916
298692
  if (!found) found = fallbacks[this.formatLanguageCode(code)];
298693
+ if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];
298917
298694
  if (!found) found = fallbacks["default"];
298918
298695
  return found || [];
298919
298696
  }
298920
298697
  }, {
298921
298698
  key: "toResolveHierarchy",
298922
298699
  value: function toResolveHierarchy(code, fallbackCode) {
298923
- var _this = this;
298700
+ var _this2 = this;
298924
298701
 
298925
298702
  var fallbackCodes = this.getFallbackCodes(fallbackCode || this.options.fallbackLng || [], code);
298926
298703
  var codes = [];
@@ -298928,10 +298705,10 @@ function () {
298928
298705
  var addCode = function addCode(c) {
298929
298706
  if (!c) return;
298930
298707
 
298931
- if (_this.isWhitelisted(c)) {
298708
+ if (_this2.isSupportedCode(c)) {
298932
298709
  codes.push(c);
298933
298710
  } else {
298934
- _this.logger.warn("rejecting non-whitelisted language code: ".concat(c));
298711
+ _this2.logger.warn("rejecting language code not found in supportedLngs: ".concat(c));
298935
298712
  }
298936
298713
  };
298937
298714
 
@@ -298944,7 +298721,7 @@ function () {
298944
298721
  }
298945
298722
 
298946
298723
  fallbackCodes.forEach(function (fc) {
298947
- if (codes.indexOf(fc) < 0) addCode(_this.formatLanguageCode(fc));
298724
+ if (codes.indexOf(fc) < 0) addCode(_this2.formatLanguageCode(fc));
298948
298725
  });
298949
298726
  return codes;
298950
298727
  }
@@ -298953,10 +298730,8 @@ function () {
298953
298730
  return LanguageUtil;
298954
298731
  }();
298955
298732
 
298956
- /* eslint-disable */
298957
-
298958
298733
  var sets = [{
298959
- 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'],
298960
298735
  nr: [1, 2],
298961
298736
  fc: 1
298962
298737
  }, {
@@ -298964,7 +298739,7 @@ var sets = [{
298964
298739
  nr: [1, 2],
298965
298740
  fc: 2
298966
298741
  }, {
298967
- 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'],
298968
298743
  nr: [1],
298969
298744
  fc: 3
298970
298745
  }, {
@@ -299044,7 +298819,7 @@ var sets = [{
299044
298819
  nr: [5, 1, 2, 3],
299045
298820
  fc: 21
299046
298821
  }, {
299047
- lngs: ['he'],
298822
+ lngs: ['he', 'iw'],
299048
298823
  nr: [1, 2, 20, 21],
299049
298824
  fc: 22
299050
298825
  }];
@@ -299062,7 +298837,7 @@ var _rulesPluralsTypes = {
299062
298837
  return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
299063
298838
  },
299064
298839
  5: function _(n) {
299065
- 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);
299066
298841
  },
299067
298842
  6: function _(n) {
299068
298843
  return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);
@@ -299098,25 +298873,24 @@ var _rulesPluralsTypes = {
299098
298873
  return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);
299099
298874
  },
299100
298875
  17: function _(n) {
299101
- return Number(n == 1 || n % 10 == 1 ? 0 : 1);
298876
+ return Number(n == 1 || n % 10 == 1 && n % 100 != 11 ? 0 : 1);
299102
298877
  },
299103
298878
  18: function _(n) {
299104
298879
  return Number(n == 0 ? 0 : n == 1 ? 1 : 2);
299105
298880
  },
299106
298881
  19: function _(n) {
299107
- 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);
299108
298883
  },
299109
298884
  20: function _(n) {
299110
- 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);
299111
298886
  },
299112
298887
  21: function _(n) {
299113
298888
  return Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);
299114
298889
  },
299115
298890
  22: function _(n) {
299116
- 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);
299117
298892
  }
299118
298893
  };
299119
- /* eslint-enable */
299120
298894
 
299121
298895
  function createRules() {
299122
298896
  var rules = {};
@@ -299131,13 +298905,11 @@ function createRules() {
299131
298905
  return rules;
299132
298906
  }
299133
298907
 
299134
- var i18next_PluralResolver =
299135
- /*#__PURE__*/
299136
- function () {
298908
+ var i18next_PluralResolver = function () {
299137
298909
  function PluralResolver(languageUtils) {
299138
298910
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
299139
298911
 
299140
- _classCallCheck(this, PluralResolver);
298912
+ (0,classCallCheck/* ["default"] */.A)(this, PluralResolver);
299141
298913
 
299142
298914
  this.languageUtils = languageUtils;
299143
298915
  this.options = options;
@@ -299145,7 +298917,7 @@ function () {
299145
298917
  this.rules = createRules();
299146
298918
  }
299147
298919
 
299148
- _createClass(PluralResolver, [{
298920
+ (0,createClass/* ["default"] */.A)(PluralResolver, [{
299149
298921
  key: "addRule",
299150
298922
  value: function addRule(lng, obj) {
299151
298923
  this.rules[lng] = obj;
@@ -299164,17 +298936,24 @@ function () {
299164
298936
  }, {
299165
298937
  key: "getPluralFormsOfKey",
299166
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) {
299167
298946
  var _this = this;
299168
298947
 
299169
- var ret = [];
299170
298948
  var rule = this.getRule(code);
299171
- if (!rule) return ret;
299172
- rule.numbers.forEach(function (n) {
299173
- var suffix = _this.getSuffix(code, n);
299174
298949
 
299175
- 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);
299176
298956
  });
299177
- return ret;
299178
298957
  }
299179
298958
  }, {
299180
298959
  key: "getSuffix",
@@ -299184,9 +298963,8 @@ function () {
299184
298963
  var rule = this.getRule(code);
299185
298964
 
299186
298965
  if (rule) {
299187
- // if (rule.numbers.length === 1) return ''; // only singular
299188
298966
  var idx = rule.noAbs ? rule.plurals(count) : rule.plurals(Math.abs(count));
299189
- var suffix = rule.numbers[idx]; // special treatment for lngs only having singular and plural
298967
+ var suffix = rule.numbers[idx];
299190
298968
 
299191
298969
  if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {
299192
298970
  if (suffix === 2) {
@@ -299198,21 +298976,15 @@ function () {
299198
298976
 
299199
298977
  var returnSuffix = function returnSuffix() {
299200
298978
  return _this2.options.prepend && suffix.toString() ? _this2.options.prepend + suffix.toString() : suffix.toString();
299201
- }; // COMPATIBILITY JSON
299202
- // v1
299203
-
298979
+ };
299204
298980
 
299205
298981
  if (this.options.compatibilityJSON === 'v1') {
299206
298982
  if (suffix === 1) return '';
299207
298983
  if (typeof suffix === 'number') return "_plural_".concat(suffix.toString());
299208
298984
  return returnSuffix();
299209
- } else if (
299210
- /* v2 */
299211
- this.options.compatibilityJSON === 'v2') {
298985
+ } else if (this.options.compatibilityJSON === 'v2') {
299212
298986
  return returnSuffix();
299213
- } else if (
299214
- /* v3 - gettext index */
299215
- 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) {
299216
298988
  return returnSuffix();
299217
298989
  }
299218
298990
 
@@ -299227,13 +298999,11 @@ function () {
299227
298999
  return PluralResolver;
299228
299000
  }();
299229
299001
 
299230
- var i18next_Interpolator =
299231
- /*#__PURE__*/
299232
- function () {
299002
+ var i18next_Interpolator = function () {
299233
299003
  function Interpolator() {
299234
299004
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
299235
299005
 
299236
- _classCallCheck(this, Interpolator);
299006
+ (0,classCallCheck/* ["default"] */.A)(this, Interpolator);
299237
299007
 
299238
299008
  this.logger = baseLogger.create('interpolator');
299239
299009
  this.options = options;
@@ -299244,10 +299014,8 @@ function () {
299244
299014
 
299245
299015
  this.init(options);
299246
299016
  }
299247
- /* eslint no-param-reassign: 0 */
299248
299017
 
299249
-
299250
- _createClass(Interpolator, [{
299018
+ (0,createClass/* ["default"] */.A)(Interpolator, [{
299251
299019
  key: "init",
299252
299020
  value: function init() {
299253
299021
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -299265,8 +299033,9 @@ function () {
299265
299033
  this.unescapeSuffix = this.unescapePrefix ? '' : iOpts.unescapeSuffix || '';
299266
299034
  this.nestingPrefix = iOpts.nestingPrefix ? regexEscape(iOpts.nestingPrefix) : iOpts.nestingPrefixEscaped || regexEscape('$t(');
299267
299035
  this.nestingSuffix = iOpts.nestingSuffix ? regexEscape(iOpts.nestingSuffix) : iOpts.nestingSuffixEscaped || regexEscape(')');
299268
- this.maxReplaces = iOpts.maxReplaces ? iOpts.maxReplaces : 1000; // the regexp
299269
-
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;
299270
299039
  this.resetRegExp();
299271
299040
  }
299272
299041
  }, {
@@ -299277,7 +299046,6 @@ function () {
299277
299046
  }, {
299278
299047
  key: "resetRegExp",
299279
299048
  value: function resetRegExp() {
299280
- // the regexp
299281
299049
  var regexpStr = "".concat(this.prefix, "(.+?)").concat(this.suffix);
299282
299050
  this.regexp = new RegExp(regexpStr, 'g');
299283
299051
  var regexpUnescapeStr = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
@@ -299301,123 +299069,125 @@ function () {
299301
299069
 
299302
299070
  var handleFormat = function handleFormat(key) {
299303
299071
  if (key.indexOf(_this.formatSeparator) < 0) {
299304
- return getPathWithDefaults(data, defaultData, key);
299072
+ var path = getPathWithDefaults(data, defaultData, key);
299073
+ return _this.alwaysFormat ? _this.format(path, undefined, lng) : path;
299305
299074
  }
299306
299075
 
299307
299076
  var p = key.split(_this.formatSeparator);
299308
299077
  var k = p.shift().trim();
299309
299078
  var f = p.join(_this.formatSeparator).trim();
299310
- return _this.format(getPathWithDefaults(data, defaultData, k), f, lng);
299079
+ return _this.format(getPathWithDefaults(data, defaultData, k), f, lng, options);
299311
299080
  };
299312
299081
 
299313
299082
  this.resetRegExp();
299314
299083
  var missingInterpolationHandler = options && options.missingInterpolationHandler || this.options.missingInterpolationHandler;
299315
- replaces = 0; // unescape if has unescapePrefix/Suffix
299316
-
299317
- /* eslint no-cond-assign: 0 */
299318
-
299319
- while (match = this.regexpUnescape.exec(str)) {
299320
- value = handleFormat(match[1].trim());
299321
-
299322
- if (value === undefined) {
299323
- if (typeof missingInterpolationHandler === 'function') {
299324
- var temp = missingInterpolationHandler(str, match, options);
299325
- value = typeof temp === 'string' ? temp : '';
299326
- } else {
299327
- this.logger.warn("missed to pass in variable ".concat(match[1], " for interpolating ").concat(str));
299328
- value = '';
299329
- }
299330
- } else if (typeof value !== 'string' && !this.useRawValueToEscape) {
299331
- 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);
299332
299089
  }
299333
-
299334
- str = str.replace(match[0], regexSafe(value));
299335
- this.regexpUnescape.lastIndex = 0;
299336
- replaces++;
299337
-
299338
- if (replaces >= this.maxReplaces) {
299339
- break;
299090
+ }, {
299091
+ regex: this.regexp,
299092
+ safeValue: function safeValue(val) {
299093
+ return _this.escapeValue ? regexSafe(_this.escape(val)) : regexSafe(val);
299340
299094
  }
299341
- }
299342
-
299343
- replaces = 0; // regular escape on demand
299344
-
299345
- while (match = this.regexp.exec(str)) {
299346
- value = handleFormat(match[1].trim());
299347
-
299348
- if (value === undefined) {
299349
- if (typeof missingInterpolationHandler === 'function') {
299350
- 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));
299351
299111
 
299352
- value = typeof _temp === 'string' ? _temp : '';
299353
- } else {
299354
- this.logger.warn("missed to pass in variable ".concat(match[1], " for interpolating ").concat(str));
299355
- value = '';
299112
+ value = '';
299113
+ }
299114
+ } else if (typeof value !== 'string' && !_this.useRawValueToEscape) {
299115
+ value = makeString(value);
299356
299116
  }
299357
- } else if (typeof value !== 'string' && !this.useRawValueToEscape) {
299358
- value = makeString(value);
299359
- }
299360
299117
 
299361
- value = this.escapeValue ? regexSafe(this.escape(value)) : regexSafe(value);
299362
- str = str.replace(match[0], value);
299363
- this.regexp.lastIndex = 0;
299364
- replaces++;
299118
+ str = str.replace(match[0], todo.safeValue(value));
299119
+ todo.regex.lastIndex = 0;
299120
+ replaces++;
299365
299121
 
299366
- if (replaces >= this.maxReplaces) {
299367
- break;
299122
+ if (replaces >= _this.maxReplaces) {
299123
+ break;
299124
+ }
299368
299125
  }
299369
- }
299370
-
299126
+ });
299371
299127
  return str;
299372
299128
  }
299373
299129
  }, {
299374
299130
  key: "nest",
299375
299131
  value: function nest(str, fc) {
299132
+ var _this2 = this;
299133
+
299376
299134
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
299377
299135
  var match;
299378
299136
  var value;
299379
299137
 
299380
- var clonedOptions = _objectSpread({}, options);
299138
+ var clonedOptions = (0,objectSpread/* ["default"] */.A)({}, options);
299381
299139
 
299382
- clonedOptions.applyPostProcessor = false; // avoid post processing on nested lookup
299383
-
299384
- delete clonedOptions.defaultValue; // assert we do not get a endless loop on interpolating defaultValue again and again
299385
- // if value is something like "myKey": "lorem $(anotherKey, { "count": {{aValueInOptions}} })"
299140
+ clonedOptions.applyPostProcessor = false;
299141
+ delete clonedOptions.defaultValue;
299386
299142
 
299387
299143
  function handleHasOptions(key, inheritedOptions) {
299388
- if (key.indexOf(',') < 0) return key;
299389
- var p = key.split(',');
299390
- key = p.shift();
299391
- 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];
299392
299149
  optionsString = this.interpolate(optionsString, clonedOptions);
299393
299150
  optionsString = optionsString.replace(/'/g, '"');
299394
299151
 
299395
299152
  try {
299396
299153
  clonedOptions = JSON.parse(optionsString);
299397
- if (inheritedOptions) clonedOptions = _objectSpread({}, inheritedOptions, clonedOptions);
299154
+ if (inheritedOptions) clonedOptions = (0,objectSpread/* ["default"] */.A)({}, inheritedOptions, clonedOptions);
299398
299155
  } catch (e) {
299399
- this.logger.error("failed parsing options string in nesting for key ".concat(key), e);
299400
- } // assert we do not get a endless loop on interpolating defaultValue again and again
299401
-
299156
+ this.logger.warn("failed parsing options string in nesting for key ".concat(key), e);
299157
+ return "".concat(key).concat(sep).concat(optionsString);
299158
+ }
299402
299159
 
299403
299160
  delete clonedOptions.defaultValue;
299404
299161
  return key;
299405
- } // regular escape on demand
299406
-
299162
+ }
299407
299163
 
299408
299164
  while (match = this.nestingRegexp.exec(str)) {
299409
- 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;
299410
299167
 
299411
- 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
+ }
299412
299176
 
299177
+ value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);
299178
+ if (value && match[0] === str && typeof value !== 'string') return value;
299413
299179
  if (typeof value !== 'string') value = makeString(value);
299414
299180
 
299415
299181
  if (!value) {
299416
299182
  this.logger.warn("missed to resolve ".concat(match[1], " for nesting ").concat(str));
299417
299183
  value = '';
299418
- } // Nested keys should not be escaped by default #854
299419
- // value = this.escapeValue ? regexSafe(utils.escape(value)) : regexSafe(value);
299184
+ }
299420
299185
 
299186
+ if (doReduce) {
299187
+ value = formatters.reduce(function (v, f) {
299188
+ return _this2.format(v, f, options.lng, options);
299189
+ }, value.trim());
299190
+ }
299421
299191
 
299422
299192
  str = str.replace(match[0], value);
299423
299193
  this.regexp.lastIndex = 0;
@@ -299439,9 +299209,7 @@ function remove(arr, what) {
299439
299209
  }
299440
299210
  }
299441
299211
 
299442
- var i18next_Connector =
299443
- /*#__PURE__*/
299444
- function (_EventEmitter) {
299212
+ var i18next_Connector = function (_EventEmitter) {
299445
299213
  _inherits(Connector, _EventEmitter);
299446
299214
 
299447
299215
  function Connector(backend, store, services) {
@@ -299449,10 +299217,13 @@ function (_EventEmitter) {
299449
299217
 
299450
299218
  var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
299451
299219
 
299452
- _classCallCheck(this, Connector);
299220
+ (0,classCallCheck/* ["default"] */.A)(this, Connector);
299453
299221
 
299454
299222
  _this = _possibleConstructorReturn(this, _getPrototypeOf(Connector).call(this));
299455
- 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
+ }
299456
299227
 
299457
299228
  _this.backend = backend;
299458
299229
  _this.store = store;
@@ -299470,12 +299241,11 @@ function (_EventEmitter) {
299470
299241
  return _this;
299471
299242
  }
299472
299243
 
299473
- _createClass(Connector, [{
299244
+ (0,createClass/* ["default"] */.A)(Connector, [{
299474
299245
  key: "queueLoad",
299475
299246
  value: function queueLoad(languages, namespaces, options, callback) {
299476
299247
  var _this2 = this;
299477
299248
 
299478
- // find what needs to be loaded
299479
299249
  var toLoad = [];
299480
299250
  var pending = [];
299481
299251
  var toLoadLanguages = [];
@@ -299486,12 +299256,11 @@ function (_EventEmitter) {
299486
299256
  var name = "".concat(lng, "|").concat(ns);
299487
299257
 
299488
299258
  if (!options.reload && _this2.store.hasResourceBundle(lng, ns)) {
299489
- _this2.state[name] = 2; // loaded
299259
+ _this2.state[name] = 2;
299490
299260
  } else if (_this2.state[name] < 0) ; else if (_this2.state[name] === 1) {
299491
299261
  if (pending.indexOf(name) < 0) pending.push(name);
299492
299262
  } else {
299493
- _this2.state[name] = 1; // pending
299494
-
299263
+ _this2.state[name] = 1;
299495
299264
  hasAllNamespaces = false;
299496
299265
  if (pending.indexOf(name) < 0) pending.push(name);
299497
299266
  if (toLoad.indexOf(name) < 0) toLoad.push(name);
@@ -299520,29 +299289,23 @@ function (_EventEmitter) {
299520
299289
  }, {
299521
299290
  key: "loaded",
299522
299291
  value: function loaded(name, err, data) {
299523
- var _name$split = name.split('|'),
299524
- _name$split2 = _slicedToArray(_name$split, 2),
299525
- lng = _name$split2[0],
299526
- ns = _name$split2[1];
299527
-
299292
+ var s = name.split('|');
299293
+ var lng = s[0];
299294
+ var ns = s[1];
299528
299295
  if (err) this.emit('failedLoading', lng, ns, err);
299529
299296
 
299530
299297
  if (data) {
299531
299298
  this.store.addResourceBundle(lng, ns, data);
299532
- } // set loaded
299533
-
299534
-
299535
- this.state[name] = err ? -1 : 2; // consolidated loading done in this run - only emit once for a loaded namespace
299536
-
299537
- var loaded = {}; // callback if ready
299299
+ }
299538
299300
 
299301
+ this.state[name] = err ? -1 : 2;
299302
+ var loaded = {};
299539
299303
  this.queue.forEach(function (q) {
299540
299304
  pushPath(q.loaded, [lng], ns);
299541
299305
  remove(q.pending, name);
299542
299306
  if (err) q.errors.push(err);
299543
299307
 
299544
299308
  if (q.pending.length === 0 && !q.done) {
299545
- // only do once per loaded -> this.emit('loaded', q.loaded);
299546
299309
  Object.keys(q.loaded).forEach(function (l) {
299547
299310
  if (!loaded[l]) loaded[l] = [];
299548
299311
 
@@ -299552,8 +299315,6 @@ function (_EventEmitter) {
299552
299315
  });
299553
299316
  }
299554
299317
  });
299555
- /* eslint no-param-reassign: 0 */
299556
-
299557
299318
  q.done = true;
299558
299319
 
299559
299320
  if (q.errors.length) {
@@ -299562,10 +299323,8 @@ function (_EventEmitter) {
299562
299323
  q.callback();
299563
299324
  }
299564
299325
  }
299565
- }); // emit consolidated loaded event
299566
-
299567
- this.emit('loaded', loaded); // remove done load requests
299568
-
299326
+ });
299327
+ this.emit('loaded', loaded);
299569
299328
  this.queue = this.queue.filter(function (q) {
299570
299329
  return !q.done;
299571
299330
  });
@@ -299576,14 +299335,11 @@ function (_EventEmitter) {
299576
299335
  var _this3 = this;
299577
299336
 
299578
299337
  var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
299579
- var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 250;
299338
+ var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 350;
299580
299339
  var callback = arguments.length > 5 ? arguments[5] : undefined;
299581
- if (!lng.length) return callback(null, {}); // noting to load
299582
-
299340
+ if (!lng.length) return callback(null, {});
299583
299341
  return this.backend[fcName](lng, ns, function (err, data) {
299584
- if (err && data
299585
- /* = retryFlag */
299586
- && tried < 5) {
299342
+ if (err && data && tried < 5) {
299587
299343
  setTimeout(function () {
299588
299344
  _this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
299589
299345
  }, wait);
@@ -299593,8 +299349,6 @@ function (_EventEmitter) {
299593
299349
  callback(err, data);
299594
299350
  });
299595
299351
  }
299596
- /* eslint consistent-return: 0 */
299597
-
299598
299352
  }, {
299599
299353
  key: "prepareLoading",
299600
299354
  value: function prepareLoading(languages, namespaces) {
@@ -299613,9 +299367,8 @@ function (_EventEmitter) {
299613
299367
  var toLoad = this.queueLoad(languages, namespaces, options, callback);
299614
299368
 
299615
299369
  if (!toLoad.toLoad.length) {
299616
- if (!toLoad.pending.length) callback(); // nothing to load and no pendings...callback now
299617
-
299618
- return null; // pendings will trigger callback
299370
+ if (!toLoad.pending.length) callback();
299371
+ return null;
299619
299372
  }
299620
299373
 
299621
299374
  toLoad.toLoad.forEach(function (name) {
@@ -299640,13 +299393,10 @@ function (_EventEmitter) {
299640
299393
  var _this5 = this;
299641
299394
 
299642
299395
  var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
299643
-
299644
- var _name$split3 = name.split('|'),
299645
- _name$split4 = _slicedToArray(_name$split3, 2),
299646
- lng = _name$split4[0],
299647
- ns = _name$split4[1];
299648
-
299649
- 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) {
299650
299400
  if (err) _this5.logger.warn("".concat(prefix, "loading namespace ").concat(ns, " for language ").concat(lng, " failed"), err);
299651
299401
  if (!err && data) _this5.logger.log("".concat(prefix, "loaded namespace ").concat(ns, " for language ").concat(lng), data);
299652
299402
 
@@ -299659,18 +299409,17 @@ function (_EventEmitter) {
299659
299409
  var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
299660
299410
 
299661
299411
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(namespace)) {
299662
- 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!!!');
299663
299413
  return;
299664
299414
  }
299665
299415
 
299416
+ if (key === undefined || key === null || key === '') return;
299417
+
299666
299418
  if (this.backend && this.backend.create) {
299667
- this.backend.create(languages, namespace, key, fallbackValue, null
299668
- /* unused callback */
299669
- , _objectSpread({}, options, {
299419
+ this.backend.create(languages, namespace, key, fallbackValue, null, (0,objectSpread/* ["default"] */.A)({}, options, {
299670
299420
  isUpdate: isUpdate
299671
299421
  }));
299672
- } // write to store to avoid resending
299673
-
299422
+ }
299674
299423
 
299675
299424
  if (!languages || !languages[0]) return;
299676
299425
  this.store.addResource(languages[0], namespace, key, fallbackValue);
@@ -299688,57 +299437,41 @@ function get() {
299688
299437
  defaultNS: ['translation'],
299689
299438
  fallbackLng: ['dev'],
299690
299439
  fallbackNS: false,
299691
- // string or array of namespaces
299692
299440
  whitelist: false,
299693
- // array with whitelisted languages
299694
299441
  nonExplicitWhitelist: false,
299442
+ supportedLngs: false,
299443
+ nonExplicitSupportedLngs: false,
299695
299444
  load: 'all',
299696
- // | currentOnly | languageOnly
299697
299445
  preload: false,
299698
- // array with preload languages
299699
299446
  simplifyPluralSuffix: true,
299700
299447
  keySeparator: '.',
299701
299448
  nsSeparator: ':',
299702
299449
  pluralSeparator: '_',
299703
299450
  contextSeparator: '_',
299704
299451
  partialBundledLanguages: false,
299705
- // allow bundling certain languages that are not remotely fetched
299706
299452
  saveMissing: false,
299707
- // enable to send missing values
299708
299453
  updateMissing: false,
299709
- // enable to update default values if different from translated value (only useful on initial development, or when keeping code as source of truth)
299710
299454
  saveMissingTo: 'fallback',
299711
- // 'current' || 'all'
299712
299455
  saveMissingPlurals: true,
299713
- // will save all forms not only singular key
299714
299456
  missingKeyHandler: false,
299715
- // function(lng, ns, key, fallbackValue) -> override if prefer on handling
299716
299457
  missingInterpolationHandler: false,
299717
- // function(str, match)
299718
299458
  postProcess: false,
299719
- // string or array of postProcessor names
299720
299459
  postProcessPassResolved: false,
299721
- // pass resolved object into 'options.i18nResolved' for postprocessor
299722
299460
  returnNull: true,
299723
- // allows null value as valid translation
299724
299461
  returnEmptyString: true,
299725
- // allows empty string value as valid translation
299726
299462
  returnObjects: false,
299727
299463
  joinArrays: false,
299728
- // or string to join array
299729
299464
  returnedObjectHandler: false,
299730
- // function(key, value, options) triggered if key returns object but returnObjects is set to false
299731
299465
  parseMissingKeyHandler: false,
299732
- // function(key) parsed a key that was not found in t() before returning
299733
299466
  appendNamespaceToMissingKey: false,
299734
299467
  appendNamespaceToCIMode: false,
299735
299468
  overloadTranslationOptionHandler: function handle(args) {
299736
299469
  var ret = {};
299737
- if (_typeof(args[1]) === 'object') ret = args[1];
299470
+ if ((0,esm_typeof/* ["default"] */.A)(args[1]) === 'object') ret = args[1];
299738
299471
  if (typeof args[1] === 'string') ret.defaultValue = args[1];
299739
299472
  if (typeof args[2] === 'string') ret.tDescription = args[2];
299740
299473
 
299741
- 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') {
299742
299475
  var options = args[3] || args[2];
299743
299476
  Object.keys(options).forEach(function (key) {
299744
299477
  ret[key] = options[key];
@@ -299749,36 +299482,40 @@ function get() {
299749
299482
  },
299750
299483
  interpolation: {
299751
299484
  escapeValue: true,
299752
- format: function format(value, _format, lng) {
299485
+ format: function format(value, _format, lng, options) {
299753
299486
  return value;
299754
299487
  },
299755
299488
  prefix: '{{',
299756
299489
  suffix: '}}',
299757
299490
  formatSeparator: ',',
299758
- // prefixEscaped: '{{',
299759
- // suffixEscaped: '}}',
299760
- // unescapeSuffix: '',
299761
299491
  unescapePrefix: '-',
299762
299492
  nestingPrefix: '$t(',
299763
299493
  nestingSuffix: ')',
299764
- // nestingPrefixEscaped: '$t(',
299765
- // nestingSuffixEscaped: ')',
299766
- // defaultVariables: undefined // object that can have values to interpolate on - extends passed in interpolation data
299767
- maxReplaces: 1000 // max replaces to prevent endless loop
299768
-
299494
+ nestingOptionsSeparator: ',',
299495
+ maxReplaces: 1000,
299496
+ skipOnVariables: false
299769
299497
  }
299770
299498
  };
299771
299499
  }
299772
- /* eslint no-param-reassign: 0 */
299773
-
299774
299500
  function transformOptions(options) {
299775
- // create namespace object if namespace is passed in as string
299776
299501
  if (typeof options.ns === 'string') options.ns = [options.ns];
299777
299502
  if (typeof options.fallbackLng === 'string') options.fallbackLng = [options.fallbackLng];
299778
- 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
+ }
299779
299516
 
299780
- if (options.whitelist && options.whitelist.indexOf('cimode') < 0) {
299781
- options.whitelist = options.whitelist.concat(['cimode']);
299517
+ if (options.supportedLngs && options.supportedLngs.indexOf('cimode') < 0) {
299518
+ options.supportedLngs = options.supportedLngs.concat(['cimode']);
299782
299519
  }
299783
299520
 
299784
299521
  return options;
@@ -299786,9 +299523,7 @@ function transformOptions(options) {
299786
299523
 
299787
299524
  function noop() {}
299788
299525
 
299789
- var i18next_I18n =
299790
- /*#__PURE__*/
299791
- function (_EventEmitter) {
299526
+ var i18next_I18n = function (_EventEmitter) {
299792
299527
  _inherits(I18n, _EventEmitter);
299793
299528
 
299794
299529
  function I18n() {
@@ -299797,10 +299532,13 @@ function (_EventEmitter) {
299797
299532
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
299798
299533
  var callback = arguments.length > 1 ? arguments[1] : undefined;
299799
299534
 
299800
- _classCallCheck(this, I18n);
299535
+ (0,classCallCheck/* ["default"] */.A)(this, I18n);
299801
299536
 
299802
299537
  _this = _possibleConstructorReturn(this, _getPrototypeOf(I18n).call(this));
299803
- 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
+ }
299804
299542
 
299805
299543
  _this.options = transformOptions(options);
299806
299544
  _this.services = {};
@@ -299810,11 +299548,10 @@ function (_EventEmitter) {
299810
299548
  };
299811
299549
 
299812
299550
  if (callback && !_this.isInitialized && !options.isClone) {
299813
- // https://github.com/i18next/i18next/issues/879
299814
299551
  if (!_this.options.initImmediate) {
299815
299552
  _this.init(options, callback);
299816
299553
 
299817
- return _possibleConstructorReturn(_this, _assertThisInitialized(_this));
299554
+ return _possibleConstructorReturn(_this, (0,assertThisInitialized/* ["default"] */.A)(_this));
299818
299555
  }
299819
299556
 
299820
299557
  setTimeout(function () {
@@ -299825,7 +299562,7 @@ function (_EventEmitter) {
299825
299562
  return _this;
299826
299563
  }
299827
299564
 
299828
- _createClass(I18n, [{
299565
+ (0,createClass/* ["default"] */.A)(I18n, [{
299829
299566
  key: "init",
299830
299567
  value: function init() {
299831
299568
  var _this2 = this;
@@ -299838,7 +299575,15 @@ function (_EventEmitter) {
299838
299575
  options = {};
299839
299576
  }
299840
299577
 
299841
- 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));
299842
299587
  this.format = this.options.interpolation.format;
299843
299588
  if (!callback) callback = noop;
299844
299589
 
@@ -299846,8 +299591,7 @@ function (_EventEmitter) {
299846
299591
  if (!ClassOrObject) return null;
299847
299592
  if (typeof ClassOrObject === 'function') return new ClassOrObject();
299848
299593
  return ClassOrObject;
299849
- } // init services
299850
-
299594
+ }
299851
299595
 
299852
299596
  if (!this.options.isClone) {
299853
299597
  if (this.modules.logger) {
@@ -299871,8 +299615,7 @@ function (_EventEmitter) {
299871
299615
  s.utils = {
299872
299616
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
299873
299617
  };
299874
- s.backendConnector = new i18next_Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options); // pipe events from backendConnector
299875
-
299618
+ s.backendConnector = new i18next_Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);
299876
299619
  s.backendConnector.on('*', function (event) {
299877
299620
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
299878
299621
  args[_key - 1] = arguments[_key];
@@ -299891,8 +299634,7 @@ function (_EventEmitter) {
299891
299634
  if (s.i18nFormat.init) s.i18nFormat.init(this);
299892
299635
  }
299893
299636
 
299894
- this.translator = new i18next_Translator(this.services, this.options); // pipe events from translator
299895
-
299637
+ this.translator = new i18next_Translator(this.services, this.options);
299896
299638
  this.translator.on('*', function (event) {
299897
299639
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
299898
299640
  args[_key2 - 1] = arguments[_key2];
@@ -299903,10 +299645,18 @@ function (_EventEmitter) {
299903
299645
  this.modules.external.forEach(function (m) {
299904
299646
  if (m.init) m.init(_this2);
299905
299647
  });
299906
- } // 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
+ }
299907
299654
 
299655
+ if (!this.services.languageDetector && !this.options.lng) {
299656
+ this.logger.warn('init: no languageDetector is used and no lng is defined');
299657
+ }
299908
299658
 
299909
- var storeApi = ['getResource', 'addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
299659
+ var storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
299910
299660
  storeApi.forEach(function (fcName) {
299911
299661
  _this2[fcName] = function () {
299912
299662
  var _this2$store;
@@ -299914,20 +299664,33 @@ function (_EventEmitter) {
299914
299664
  return (_this2$store = _this2.store)[fcName].apply(_this2$store, arguments);
299915
299665
  };
299916
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
+ });
299917
299677
  var deferred = defer();
299918
299678
 
299919
299679
  var load = function load() {
299920
- _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!');
299921
299682
  _this2.isInitialized = true;
299922
-
299923
- _this2.logger.log('initialized', _this2.options);
299683
+ if (!_this2.options.isClone) _this2.logger.log('initialized', _this2.options);
299924
299684
 
299925
299685
  _this2.emit('initialized', _this2.options);
299926
299686
 
299927
- deferred.resolve(t); // not rejecting on err (as err is only a loading translation failed warning)
299928
-
299687
+ deferred.resolve(t);
299929
299688
  callback(err, t);
299930
- });
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);
299931
299694
  };
299932
299695
 
299933
299696
  if (this.options.resources || !this.options.initImmediate) {
@@ -299938,18 +299701,18 @@ function (_EventEmitter) {
299938
299701
 
299939
299702
  return deferred;
299940
299703
  }
299941
- /* eslint consistent-return: 0 */
299942
-
299943
299704
  }, {
299944
299705
  key: "loadResources",
299945
- value: function loadResources() {
299706
+ value: function loadResources(language) {
299946
299707
  var _this3 = this;
299947
299708
 
299948
- 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;
299949
299713
 
299950
299714
  if (!this.options.resources || this.options.partialBundledLanguages) {
299951
- if (this.language && this.language.toLowerCase() === 'cimode') return callback(); // avoid loading resources for cimode
299952
-
299715
+ if (usedLng && usedLng.toLowerCase() === 'cimode') return usedCallback();
299953
299716
  var toLoad = [];
299954
299717
 
299955
299718
  var append = function append(lng) {
@@ -299962,14 +299725,13 @@ function (_EventEmitter) {
299962
299725
  });
299963
299726
  };
299964
299727
 
299965
- if (!this.language) {
299966
- // at least load fallbacks in this case
299728
+ if (!usedLng) {
299967
299729
  var fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
299968
299730
  fallbacks.forEach(function (l) {
299969
299731
  return append(l);
299970
299732
  });
299971
299733
  } else {
299972
- append(this.language);
299734
+ append(usedLng);
299973
299735
  }
299974
299736
 
299975
299737
  if (this.options.preload) {
@@ -299978,9 +299740,9 @@ function (_EventEmitter) {
299978
299740
  });
299979
299741
  }
299980
299742
 
299981
- this.services.backendConnector.load(toLoad, this.options.ns, callback);
299743
+ this.services.backendConnector.load(toLoad, this.options.ns, usedCallback);
299982
299744
  } else {
299983
- callback(null);
299745
+ usedCallback(null);
299984
299746
  }
299985
299747
  }
299986
299748
  }, {
@@ -299991,8 +299753,7 @@ function (_EventEmitter) {
299991
299753
  if (!ns) ns = this.options.ns;
299992
299754
  if (!callback) callback = noop;
299993
299755
  this.services.backendConnector.reload(lngs, ns, function (err) {
299994
- deferred.resolve(); // not rejecting on err (as err is only a loading translation failed warning)
299995
-
299756
+ deferred.resolve();
299996
299757
  callback(err);
299997
299758
  });
299998
299759
  return deferred;
@@ -300000,6 +299761,9 @@ function (_EventEmitter) {
300000
299761
  }, {
300001
299762
  key: "use",
300002
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
+
300003
299767
  if (module.type === 'backend') {
300004
299768
  this.modules.backend = module;
300005
299769
  }
@@ -300031,16 +299795,24 @@ function (_EventEmitter) {
300031
299795
  value: function changeLanguage(lng, callback) {
300032
299796
  var _this4 = this;
300033
299797
 
299798
+ this.isLanguageChangingTo = lng;
300034
299799
  var deferred = defer();
300035
299800
  this.emit('languageChanging', lng);
300036
299801
 
300037
299802
  var done = function done(err, l) {
300038
- _this4.translator.changeLanguage(l);
300039
-
300040
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
+
300041
299811
  _this4.emit('languageChanged', l);
300042
299812
 
300043
299813
  _this4.logger.log('languageChanged', l);
299814
+ } else {
299815
+ _this4.isLanguageChangingTo = undefined;
300044
299816
  }
300045
299817
 
300046
299818
  deferred.resolve(function () {
@@ -300051,15 +299823,20 @@ function (_EventEmitter) {
300051
299823
  });
300052
299824
  };
300053
299825
 
300054
- var setLng = function setLng(l) {
299826
+ var setLng = function setLng(lngs) {
299827
+ var l = typeof lngs === 'string' ? lngs : _this4.services.languageUtils.getBestMatchFromCodes(lngs);
299828
+
300055
299829
  if (l) {
300056
- _this4.language = l;
300057
- _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
+
300058
299835
  if (!_this4.translator.language) _this4.translator.changeLanguage(l);
300059
299836
  if (_this4.services.languageDetector) _this4.services.languageDetector.cacheUserLanguage(l);
300060
299837
  }
300061
299838
 
300062
- _this4.loadResources(function (err) {
299839
+ _this4.loadResources(l, function (err) {
300063
299840
  done(err, l);
300064
299841
  });
300065
299842
  };
@@ -300082,14 +299859,14 @@ function (_EventEmitter) {
300082
299859
  var fixedT = function fixedT(key, opts) {
300083
299860
  var options;
300084
299861
 
300085
- if (_typeof(opts) !== 'object') {
299862
+ if ((0,esm_typeof/* ["default"] */.A)(opts) !== 'object') {
300086
299863
  for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
300087
299864
  rest[_key3 - 2] = arguments[_key3];
300088
299865
  }
300089
299866
 
300090
299867
  options = _this5.options.overloadTranslationOptionHandler([key, opts].concat(rest));
300091
299868
  } else {
300092
- options = _objectSpread({}, opts);
299869
+ options = (0,objectSpread/* ["default"] */.A)({}, opts);
300093
299870
  }
300094
299871
 
300095
299872
  options.lng = options.lng || fixedT.lng;
@@ -300131,6 +299908,8 @@ function (_EventEmitter) {
300131
299908
  value: function hasLoadedNamespace(ns) {
300132
299909
  var _this6 = this;
300133
299910
 
299911
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
299912
+
300134
299913
  if (!this.isInitialized) {
300135
299914
  this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);
300136
299915
  return false;
@@ -300143,21 +299922,22 @@ function (_EventEmitter) {
300143
299922
 
300144
299923
  var lng = this.languages[0];
300145
299924
  var fallbackLng = this.options ? this.options.fallbackLng : false;
300146
- var lastLng = this.languages[this.languages.length - 1]; // we're in cimode so this shall pass
300147
-
299925
+ var lastLng = this.languages[this.languages.length - 1];
300148
299926
  if (lng.toLowerCase() === 'cimode') return true;
300149
299927
 
300150
299928
  var loadNotPending = function loadNotPending(l, n) {
300151
299929
  var loadState = _this6.services.backendConnector.state["".concat(l, "|").concat(n)];
300152
299930
 
300153
299931
  return loadState === -1 || loadState === 2;
300154
- }; // loaded -> SUCCESS
300155
-
300156
-
300157
- if (this.hasResourceBundle(lng, ns)) return true; // were not loading at all -> SEMI SUCCESS
299932
+ };
300158
299933
 
300159
- 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
+ }
300160
299938
 
299939
+ if (this.hasResourceBundle(lng, ns)) return true;
299940
+ if (!this.services.backendConnector.backend) return true;
300161
299941
  if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
300162
299942
  return false;
300163
299943
  }
@@ -300191,7 +299971,7 @@ function (_EventEmitter) {
300191
299971
  var preloaded = this.options.preload || [];
300192
299972
  var newLngs = lngs.filter(function (lng) {
300193
299973
  return preloaded.indexOf(lng) < 0;
300194
- }); // Exit early if all given languages are already preloaded
299974
+ });
300195
299975
 
300196
299976
  if (!newLngs.length) {
300197
299977
  if (callback) callback();
@@ -300210,11 +299990,9 @@ function (_EventEmitter) {
300210
299990
  value: function dir(lng) {
300211
299991
  if (!lng) lng = this.languages && this.languages.length > 0 ? this.languages[0] : this.language;
300212
299992
  if (!lng) return 'rtl';
300213
- 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'];
300214
299994
  return rtlLngs.indexOf(this.services.languageUtils.getLanguagePartFromCode(lng)) >= 0 ? 'rtl' : 'ltr';
300215
299995
  }
300216
- /* eslint class-methods-use-this: 0 */
300217
-
300218
299996
  }, {
300219
299997
  key: "createInstance",
300220
299998
  value: function createInstance() {
@@ -300230,7 +300008,7 @@ function (_EventEmitter) {
300230
300008
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
300231
300009
  var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
300232
300010
 
300233
- var mergedOptions = _objectSpread({}, this.options, options, {
300011
+ var mergedOptions = (0,objectSpread/* ["default"] */.A)({}, this.options, options, {
300234
300012
  isClone: true
300235
300013
  });
300236
300014
 
@@ -300239,6 +300017,10 @@ function (_EventEmitter) {
300239
300017
  membersToCopy.forEach(function (m) {
300240
300018
  clone[m] = _this8[m];
300241
300019
  });
300020
+ clone.services = (0,objectSpread/* ["default"] */.A)({}, this.services);
300021
+ clone.services.utils = {
300022
+ hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
300023
+ };
300242
300024
  clone.translator = new i18next_Translator(clone.services, clone.options);
300243
300025
  clone.translator.on('*', function (event) {
300244
300026
  for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
@@ -300248,8 +300030,10 @@ function (_EventEmitter) {
300248
300030
  clone.emit.apply(clone, [event].concat(args));
300249
300031
  });
300250
300032
  clone.init(mergedOptions, callback);
300251
- clone.translator.options = clone.options; // sync options
300252
-
300033
+ clone.translator.options = clone.options;
300034
+ clone.translator.backendConnector.services.utils = {
300035
+ hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
300036
+ };
300253
300037
  return clone;
300254
300038
  }
300255
300039
  }]);
@@ -302096,19 +301880,28 @@ function captureSegment (state, start, end, checkJson) {
302096
301880
  }
302097
301881
  }
302098
301882
 
301883
+ function chargeMergeWork (state) {
301884
+ state.totalMergeKeys++
301885
+
301886
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
301887
+ throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')')
301888
+ }
301889
+ }
301890
+
302099
301891
  function mergeMappings (state, destination, source, overridableKeys) {
302100
301892
  if (!common.isObject(source)) {
302101
301893
  throwError(state, 'cannot merge mappings; the provided source object is unacceptable')
302102
301894
  }
302103
301895
 
301896
+ // Count the source mapping itself to bound sequences of empty mappings.
301897
+ chargeMergeWork(state)
301898
+
302104
301899
  const sourceKeys = Object.keys(source)
302105
301900
 
302106
301901
  for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
302107
301902
  const key = sourceKeys[index]
302108
301903
 
302109
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
302110
- throwError(state, 'merge keys exceeded maxTotalMergeKeys (' + state.maxTotalMergeKeys + ')')
302111
- }
301904
+ chargeMergeWork(state)
302112
301905
 
302113
301906
  if (!_hasOwnProperty.call(destination, key)) {
302114
301907
  setProperty(destination, key, source[key])
@@ -302151,6 +301944,10 @@ function storeMappingPair (state, _result, overridableKeys, keyTag, keyNode, val
302151
301944
 
302152
301945
  if (keyTag === 'tag:yaml.org,2002:merge') {
302153
301946
  if (Array.isArray(valueNode)) {
301947
+ if (valueNode.length > 100) {
301948
+ throwError(state, 'abnormal merge sequence size')
301949
+ }
301950
+
302154
301951
  for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
302155
301952
  mergeMappings(state, _result, valueNode[index], overridableKeys)
302156
301953
  }
@@ -338167,33 +337964,234 @@ Object.defineProperty(exports, "YAMLWriter", ({ enumerable: true, get: function
338167
337964
  //# sourceMappingURL=index.js.map
338168
337965
 
338169
337966
  },
338170
- 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__) {
338171
338103
  "use strict";
338172
338104
 
338173
338105
  // EXPORTS
338174
338106
  __webpack_require__.d(__webpack_exports__, {
338175
- A: () => (/* binding */ _defineProperty)
338107
+ A: () => (/* binding */ _slicedToArray)
338176
338108
  });
338177
338109
 
338178
- ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
338179
- function _typeof(o) {
338180
- "@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
+ }
338181
338114
 
338182
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
338183
- return typeof o;
338184
- } : function (o) {
338185
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
338186
- }, _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.");
338164
+ }
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();
338187
338173
  }
338188
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);
338189
338187
  ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
338190
338188
 
338191
338189
  function toPrimitive(t, r) {
338192
- if ("object" != _typeof(t) || !t) return t;
338190
+ if ("object" != (0,esm_typeof/* ["default"] */.A)(t) || !t) return t;
338193
338191
  var e = t[Symbol.toPrimitive];
338194
338192
  if (void 0 !== e) {
338195
338193
  var i = e.call(t, r || "default");
338196
- if ("object" != _typeof(i)) return i;
338194
+ if ("object" != (0,esm_typeof/* ["default"] */.A)(i)) return i;
338197
338195
  throw new TypeError("@@toPrimitive must return a primitive value.");
338198
338196
  }
338199
338197
  return ("string" === r ? String : Number)(t);
@@ -338204,18 +338202,24 @@ function toPrimitive(t, r) {
338204
338202
 
338205
338203
  function toPropertyKey(t) {
338206
338204
  var i = toPrimitive(t, "string");
338207
- return "symbol" == _typeof(i) ? i : i + "";
338205
+ return "symbol" == (0,esm_typeof/* ["default"] */.A)(i) ? i : i + "";
338208
338206
  }
338209
338207
 
338210
- ;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
338211
338208
 
338212
- function _defineProperty(e, r, t) {
338213
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
338214
- value: t,
338215
- enumerable: !0,
338216
- configurable: !0,
338217
- writable: !0
338218
- }) : 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);
338219
338223
  }
338220
338224
 
338221
338225
 
@@ -406973,7 +406977,7 @@ function getLogger(...name) {
406973
406977
 
406974
406978
 
406975
406979
  },
406976
- 95913(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
406980
+ 19187(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
406977
406981
  "use strict";
406978
406982
 
406979
406983
  // EXPORTS
@@ -406992,7 +406996,7 @@ __webpack_require__.d(__webpack_exports__, {
406992
406996
 
406993
406997
  // UNUSED EXPORTS: autoPlacement, getOverflowAncestors, inline, platform
406994
406998
 
406995
- ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
406999
+ ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
406996
407000
  /**
406997
407001
  * Custom positioning reference element.
406998
407002
  * @see https://floating-ui.com/docs/virtual-elements
@@ -407133,7 +407137,7 @@ function floating_ui_utils_rectToClientRect(rect) {
407133
407137
 
407134
407138
 
407135
407139
 
407136
- ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
407140
+ ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/dom/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
407137
407141
 
407138
407142
 
407139
407143
 
@@ -408190,7 +408194,7 @@ const size = function (options) {
408190
408194
 
408191
408195
 
408192
408196
 
408193
- ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
408197
+ ;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
408194
408198
  function hasWindow() {
408195
408199
  return typeof window !== 'undefined';
408196
408200
  }
@@ -456695,7 +456699,7 @@ function divergingSqrt() {
456695
456699
 
456696
456700
 
456697
456701
  },
456698
- 75258(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
456702
+ 68852(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
456699
456703
  "use strict";
456700
456704
 
456701
456705
  // EXPORTS
@@ -456708,76 +456712,14 @@ __webpack_require__.d(__webpack_exports__, {
456708
456712
 
456709
456713
  // UNUSED EXPORTS: I18nContext, Trans, TransWithoutContext, Translation, composeInitialProps, date, getDefaults, getI18n, getInitialProps, number, plural, select, selectOrdinal, setDefaults, setI18n, time, useSSR, withSSR
456710
456714
 
456711
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/typeof.js
456712
- function typeof_typeof(o) {
456713
- "@babel/helpers - typeof";
456714
-
456715
- return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
456716
- return typeof o;
456717
- } : function (o) {
456718
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
456719
- }, typeof_typeof(o);
456720
- }
456721
-
456722
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
456723
-
456724
- function toPrimitive(t, r) {
456725
- if ("object" != typeof_typeof(t) || !t) return t;
456726
- var e = t[Symbol.toPrimitive];
456727
- if (void 0 !== e) {
456728
- var i = e.call(t, r || "default");
456729
- if ("object" != typeof_typeof(i)) return i;
456730
- throw new TypeError("@@toPrimitive must return a primitive value.");
456731
- }
456732
- return ("string" === r ? String : Number)(t);
456733
- }
456734
-
456735
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
456736
-
456737
-
456738
- function toPropertyKey(t) {
456739
- var i = toPrimitive(t, "string");
456740
- return "symbol" == typeof_typeof(i) ? i : i + "";
456741
- }
456742
-
456743
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/defineProperty.js
456744
-
456745
- function defineProperty_defineProperty(e, r, t) {
456746
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
456747
- value: t,
456748
- enumerable: !0,
456749
- configurable: !0,
456750
- writable: !0
456751
- }) : e[r] = t, e;
456752
- }
456753
-
456754
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
456755
- function _objectWithoutPropertiesLoose(r, e) {
456756
- if (null == r) return {};
456757
- var t = {};
456758
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
456759
- if (-1 !== e.indexOf(n)) continue;
456760
- t[n] = r[n];
456761
- }
456762
- return t;
456763
- }
456764
-
456765
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
456766
-
456767
- function objectWithoutProperties_objectWithoutProperties(e, t) {
456768
- if (null == e) return {};
456769
- var o,
456770
- r,
456771
- i = _objectWithoutPropertiesLoose(e, t);
456772
- if (Object.getOwnPropertySymbols) {
456773
- var n = Object.getOwnPropertySymbols(e);
456774
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
456775
- }
456776
- return i;
456777
- }
456778
-
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);
456779
456719
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
456780
456720
  var react = __webpack_require__(86326);
456721
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
456722
+ var esm_typeof = __webpack_require__(23224);
456781
456723
  // EXTERNAL MODULE: ../../../node_modules/void-elements/index.js
456782
456724
  var void_elements = __webpack_require__(39741);
456783
456725
  ;// CONCATENATED MODULE: ../../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
@@ -456917,7 +456859,7 @@ var unescape_unescape = function unescape(text) {
456917
456859
 
456918
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; }
456919
456861
 
456920
- 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; }
456921
456863
 
456922
456864
 
456923
456865
  var defaultOptions = {
@@ -457218,25 +457160,10 @@ function Trans(_ref) {
457218
457160
  var useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;
457219
457161
  return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
457220
457162
  }
457221
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
457222
- function _classCallCheck(a, n) {
457223
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
457224
- }
457225
-
457226
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/createClass.js
457227
-
457228
- function _defineProperties(e, r) {
457229
- for (var t = 0; t < r.length; t++) {
457230
- var o = r[t];
457231
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
457232
- }
457233
- }
457234
- function _createClass(e, r, t) {
457235
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
457236
- writable: !1
457237
- }), e;
457238
- }
457239
-
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);
457240
457167
  ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/dist/es/initReactI18next.js
457241
457168
 
457242
457169
 
@@ -457264,12 +457191,12 @@ function context_objectSpread(target) { for (var i = 1; i < arguments.length; i+
457264
457191
  var context_I18nContext = (0,react.createContext)();
457265
457192
  var context_ReportNamespaces = function () {
457266
457193
  function ReportNamespaces() {
457267
- _classCallCheck(this, ReportNamespaces);
457194
+ (0,classCallCheck/* ["default"] */.A)(this, ReportNamespaces);
457268
457195
 
457269
457196
  this.usedNamespaces = {};
457270
457197
  }
457271
457198
 
457272
- _createClass(ReportNamespaces, [{
457199
+ (0,createClass/* ["default"] */.A)(ReportNamespaces, [{
457273
457200
  key: "addUsedNamespaces",
457274
457201
  value: function addUsedNamespaces(namespaces) {
457275
457202
  var _this = this;
@@ -457369,71 +457296,8 @@ function Trans_Trans(_ref) {
457369
457296
  shouldUnescape: shouldUnescape
457370
457297
  }, additionalProps));
457371
457298
  }
457372
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
457373
- function _arrayWithHoles(r) {
457374
- if (Array.isArray(r)) return r;
457375
- }
457376
-
457377
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
457378
- function _iterableToArrayLimit(r, l) {
457379
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
457380
- if (null != t) {
457381
- var e,
457382
- n,
457383
- i,
457384
- u,
457385
- a = [],
457386
- f = !0,
457387
- o = !1;
457388
- try {
457389
- if (i = (t = t.call(r)).next, 0 === l) {
457390
- if (Object(t) !== t) return;
457391
- f = !1;
457392
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
457393
- } catch (r) {
457394
- o = !0, n = r;
457395
- } finally {
457396
- try {
457397
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
457398
- } finally {
457399
- if (o) throw n;
457400
- }
457401
- }
457402
- return a;
457403
- }
457404
- }
457405
-
457406
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
457407
- function _arrayLikeToArray(r, a) {
457408
- (null == a || a > r.length) && (a = r.length);
457409
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
457410
- return n;
457411
- }
457412
-
457413
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
457414
-
457415
- function _unsupportedIterableToArray(r, a) {
457416
- if (r) {
457417
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
457418
- var t = {}.toString.call(r).slice(8, -1);
457419
- 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;
457420
- }
457421
- }
457422
-
457423
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
457424
- function _nonIterableRest() {
457425
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
457426
- }
457427
-
457428
- ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
457429
-
457430
-
457431
-
457432
-
457433
- function slicedToArray_slicedToArray(r, e) {
457434
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
457435
- }
457436
-
457299
+ // EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 5 modules
457300
+ var slicedToArray = __webpack_require__(1682);
457437
457301
  ;// CONCATENATED MODULE: ../../../node_modules/react-i18next/dist/es/useTranslation.js
457438
457302
 
457439
457303
 
@@ -457441,7 +457305,7 @@ function slicedToArray_slicedToArray(r, e) {
457441
457305
 
457442
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; }
457443
457307
 
457444
- 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; }
457445
457309
 
457446
457310
 
457447
457311
 
@@ -457471,7 +457335,7 @@ function useTranslation_useTranslation(ns) {
457471
457335
 
457472
457336
  var notReadyT = function notReadyT(k, optsOrDefaultValue) {
457473
457337
  if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;
457474
- 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;
457475
457339
  return Array.isArray(k) ? k[k.length - 1] : k;
457476
457340
  };
457477
457341
 
@@ -457500,7 +457364,7 @@ function useTranslation_useTranslation(ns) {
457500
457364
  }
457501
457365
 
457502
457366
  var _useState = (0,react.useState)(getT),
457503
- _useState2 = slicedToArray_slicedToArray(_useState, 2),
457367
+ _useState2 = (0,slicedToArray/* ["default"] */.A)(_useState, 2),
457504
457368
  t = _useState2[0],
457505
457369
  setT = _useState2[1];
457506
457370
 
@@ -457579,7 +457443,7 @@ var withTranslation_excluded = ["forwardedRef"];
457579
457443
 
457580
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; }
457581
457445
 
457582
- 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; }
457583
457447
 
457584
457448
 
457585
457449
 
@@ -457589,12 +457453,12 @@ function withTranslation(ns) {
457589
457453
  return function Extend(WrappedComponent) {
457590
457454
  function I18nextWithTranslation(_ref) {
457591
457455
  var forwardedRef = _ref.forwardedRef,
457592
- rest = objectWithoutProperties_objectWithoutProperties(_ref, withTranslation_excluded);
457456
+ rest = (0,objectWithoutProperties/* ["default"] */.A)(_ref, withTranslation_excluded);
457593
457457
 
457594
457458
  var _useTranslation = useTranslation_useTranslation(ns, withTranslation_objectSpread(withTranslation_objectSpread({}, rest), {}, {
457595
457459
  keyPrefix: options.keyPrefix
457596
457460
  })),
457597
- _useTranslation2 = slicedToArray_slicedToArray(_useTranslation, 3),
457461
+ _useTranslation2 = (0,slicedToArray/* ["default"] */.A)(_useTranslation, 3),
457598
457462
  t = _useTranslation2[0],
457599
457463
  i18n = _useTranslation2[1],
457600
457464
  ready = _useTranslation2[2];
@@ -458271,7 +458135,7 @@ __webpack_require__.u = (chunkId) => {
458271
458135
  // return url for filenames not based on template
458272
458136
 
458273
458137
  // return url for filenames based on template
458274
- return "" + ({1644: "interpolation",6915: "histogram-worker",8547: "compute",8781: "polySeg",}[chunkId] || chunkId) + ".bundle." + {100: "93620cd5a7d73cec",1180: "bdab97766a233ec7",1206: "786e5b556f903028",1229: "f721ec472f3d61bf",1483: "59969cc3c412ca3e",1602: "776866c0ae47e2bc",1644: "fa54018d8628f8c0",1673: "76779c7722e8c6c0",2623: "44c0c8ec6fa40d03",2779: "848cf438813c9e1a",3500: "09b3e7f32c325d2b",3760: "fbc299e8e62a6dd2",4556: "93158ba1b65ea809",4683: "8688b43b36f34429",5189: "ae2e6c3b91f526f7",5302: "d6194babac4a763e",5406: "4dcfa7c697973300",5448: "ac180bf858959dd5",5696: "5ea29e0a81aae060",5731: "694bce33e168bf29",5910: "f969465957013c3e",6489: "95cb243641a61a2f",6495: "8e8306fedff44999",6749: "39d8f2c68cff280a",6915: "ec5f0cf05ce3909c",6938: "34415aaeea5935b3",7248: "faa6438cca2ceaf8",7463: "40668aa8d083d077",7499: "88867ec1d3ed6f9d",781: "9aeca4c33ef2ed2d",8097: "8ae6404ba94890a0",8423: "a1ac56b9812386f7",8478: "4520037e6185b95f",8492: "72bb70110ea19e02",8547: "609c93f9819406cd",8781: "75141812aebb86a0",8832: "d9101f1c00db8753",89: "d74d60cd3a177268",899: "3ea5c8d021b1e60d",9068: "e1d5946c370fd4ee",9116: "7a5b2dc22505d4a0",9290: "014b7808ead74b80",9383: "40008913697b48b8",9415: "06ab071cc84660b6",9437: "cb34ec039a3367e8",}[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"
458275
458139
  }
458276
458140
  })();
458277
458141
  // webpack/runtime/get mini-css chunk filename
@@ -458631,7 +458495,7 @@ chunkLoadingGlobal.push = __rspack_jsonp.bind(null, chunkLoadingGlobal.push.bind
458631
458495
  })();
458632
458496
  // webpack/runtime/chunk_prefetch_trigger
458633
458497
  (() => {
458634
- var chunkToChildrenMap = {"6214":[2623,2623],"3760":[2623,9068,1206],"3833":[2623,9068],"781":[2623,899],"9415":[2623,5448],"1602":[2623],"8832":[2623],"9116":[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]};
458635
458499
  __webpack_require__.f.prefetch = (chunkId, promises) => {
458636
458500
  Promise.all(promises).then(() => {
458637
458501
  var chunks = chunkToChildrenMap[chunkId];