@wix/blog 1.0.707 → 1.0.709

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 (31) hide show
  1. package/_sdk-exports/context-blog-feed/runtime.js +4 -4
  2. package/_sdk-exports/context-post/runtime.d.ts +36 -1
  3. package/_sdk-exports/context-post-by-id/runtime.js +4 -4
  4. package/_sdk-exports/context-post-by-slug/runtime.js +4 -4
  5. package/_sdk-exports/context-post-list-item/runtime.js +4 -4
  6. package/_sdk-exports/context-related-posts/runtime.js +4 -4
  7. package/build/cjs/context-blog-feed.js +972 -944
  8. package/build/cjs/context-blog-feed.js.map +1 -1
  9. package/build/cjs/context-post-by-id.js +1060 -1032
  10. package/build/cjs/context-post-by-id.js.map +1 -1
  11. package/build/cjs/context-post-by-slug.js +266 -238
  12. package/build/cjs/context-post-by-slug.js.map +1 -1
  13. package/build/cjs/context-post-list-item.js +260 -232
  14. package/build/cjs/context-post-list-item.js.map +1 -1
  15. package/build/cjs/context-post.d.ts +36 -1
  16. package/build/cjs/context-related-posts.js +263 -235
  17. package/build/cjs/context-related-posts.js.map +1 -1
  18. package/build/es/context-blog-feed.mjs +972 -944
  19. package/build/es/context-blog-feed.mjs.map +1 -1
  20. package/build/es/context-post-by-id.mjs +1060 -1032
  21. package/build/es/context-post-by-id.mjs.map +1 -1
  22. package/build/es/context-post-by-slug.mjs +266 -238
  23. package/build/es/context-post-by-slug.mjs.map +1 -1
  24. package/build/es/context-post-list-item.mjs +260 -232
  25. package/build/es/context-post-list-item.mjs.map +1 -1
  26. package/build/es/context-post.d.mts +36 -1
  27. package/build/es/context-related-posts.mjs +263 -235
  28. package/build/es/context-related-posts.mjs.map +1 -1
  29. package/build/internal/cjs/context-post.d.ts +36 -1
  30. package/build/internal/es/context-post.d.mts +36 -1
  31. package/package.json +3 -3
@@ -786,21 +786,21 @@ function ln(e6, t2) {
786
786
  function un(e6) {
787
787
  return isFinite(e6) ? e6 : e6.toString();
788
788
  }
789
- function dn(e6) {
789
+ function F(e6) {
790
790
  return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
791
791
  }
792
- function fn(e6) {
792
+ function dn(e6) {
793
793
  return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
794
794
  }
795
- var pn = `modulepreload`;
796
- var mn = function(e6, t2) {
795
+ var fn = `modulepreload`;
796
+ var pn = function(e6, t2) {
797
797
  return new URL(e6, t2).href;
798
798
  };
799
- var hn = {};
800
- var gn = function(e6) {
799
+ var mn = {};
800
+ var hn = function(e6) {
801
801
  return e6.pathname.endsWith(`.css`);
802
802
  };
803
- var _n = function(e6, t2, n2) {
803
+ var gn = function(e6, t2, n2) {
804
804
  if (t2 in e6) return e6[t2];
805
805
  let r2 = n2();
806
806
  if (!r2) {
@@ -814,7 +814,7 @@ var _n = function(e6, t2, n2) {
814
814
  });
815
815
  return e6[t2] = i2, i2;
816
816
  };
817
- var vn = function(e6, t2, n2) {
817
+ var _n = function(e6, t2, n2) {
818
818
  let r2 = Promise.resolve();
819
819
  if (t2 && t2.length > 0) {
820
820
  let o3 = function(e8) {
@@ -825,9 +825,9 @@ var vn = function(e6, t2, n2) {
825
825
  var o2 = o3, s2 = s3;
826
826
  let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
827
827
  r2 = o3(t2.map((t3) => {
828
- t3 = mn(t3, n2);
829
- let r3 = s3(t3), i4 = gn(r3);
830
- return _n(hn, r3.href, () => {
828
+ t3 = pn(t3, n2);
829
+ let r3 = s3(t3), i4 = hn(r3);
830
+ return gn(mn, r3.href, () => {
831
831
  if (e7 === void 0) {
832
832
  e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
833
833
  let t5 = document.getElementsByTagName(`link`);
@@ -838,7 +838,7 @@ var vn = function(e6, t2, n2) {
838
838
  }
839
839
  if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
840
840
  let t4 = document.createElement(`link`);
841
- if (t4.rel = i4 ? `stylesheet` : pn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
841
+ if (t4.rel = i4 ? `stylesheet` : fn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
842
842
  t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
843
843
  });
844
844
  });
@@ -853,30 +853,30 @@ var vn = function(e6, t2, n2) {
853
853
  return e6().catch(i2);
854
854
  });
855
855
  };
856
- var yn = `x-wix-linguist`;
857
- var bn = `00000000-0000-0000-0000-000000000000`;
858
- var xn = `false`;
859
- var Sn = () => {
860
- let e6 = Tn(`language`), t2 = Tn(`locale`);
861
- if (e6) return { [yn]: [e6, t2 || e6, xn, bn].join(`|`) };
856
+ var vn = `x-wix-linguist`;
857
+ var yn = `00000000-0000-0000-0000-000000000000`;
858
+ var bn = `false`;
859
+ var xn = () => {
860
+ let e6 = wn(`language`), t2 = wn(`locale`);
861
+ if (e6) return { [vn]: [e6, t2 || e6, bn, yn].join(`|`) };
862
862
  };
863
- function Cn() {
863
+ function Sn() {
864
864
  let e6 = null, t2 = null;
865
865
  return { promise: new Promise((n2, r2) => {
866
866
  e6 = n2, t2 = r2;
867
867
  }), resolve: e6, reject: t2 };
868
868
  }
869
- var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
870
- var Tn = (e6) => wn()?.[e6];
871
- var En = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
872
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = On();
873
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
874
- return Sn();
869
+ var Cn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
870
+ var wn = (e6) => Cn()?.[e6];
871
+ var Tn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
872
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = Dn();
873
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: wn(`language`), locale: wn(`locale`), get passThroughHeaders() {
874
+ return xn();
875
875
  } } };
876
876
  }, auth: (e7) => {
877
877
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
878
- !e7 && Dn() && (e7 = t2?.getAccessTokenFunction?.());
879
- let n2 = false, { resolve: r2, promise: i2 } = Cn();
878
+ !e7 && En() && (e7 = t2?.getAccessTokenFunction?.());
879
+ let n2 = false, { resolve: r2, promise: i2 } = Sn();
880
880
  return { getAuthHeaders: async () => {
881
881
  if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
882
882
  return { headers: { Authorization: await e7() } };
@@ -884,37 +884,37 @@ var En = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
884
884
  r2(e8);
885
885
  }) };
886
886
  } });
887
- function Dn() {
887
+ function En() {
888
888
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
889
889
  }
890
- function On() {
890
+ function Dn() {
891
891
  let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
892
892
  if (!e6) return;
893
893
  let t2 = new URL(e6);
894
894
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
895
895
  }
896
- var kn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
896
+ var On = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
897
897
  if (!e6) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
898
898
  return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
899
899
  }, getAccessToken: () => {
900
900
  throw Error(`Not implemented`);
901
901
  }, observeState: () => ({ disconnect: () => {
902
902
  } }) });
903
- var An = En({ createHost: function(e6) {
903
+ var kn = Tn({ createHost: function(e6) {
904
904
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
905
905
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
906
- return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
906
+ return { channel: On({ clientSdk: t2, applicationId: n2 }), close: () => {
907
907
  } };
908
908
  } });
909
- var jn = (e6, t2) => {
910
- let n2 = An.host({ applicationId: e6, componentId: t2 }), r2 = An.auth();
909
+ var An = (e6, t2) => {
910
+ let n2 = kn.host({ applicationId: e6, componentId: t2 }), r2 = kn.auth();
911
911
  return Je({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
912
912
  };
913
- var Mn = (e6) => jn(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
914
- function Nn() {
913
+ var jn = (e6) => An(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
914
+ function Mn() {
915
915
  let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
916
916
  if (e6) return { initWixModules(t3, n3) {
917
- return Pn(() => e6(t3, n3));
917
+ return Nn(() => e6(t3, n3));
918
918
  }, fetchWithAuth() {
919
919
  throw Error(`fetchWithAuth is not available in this context`);
920
920
  }, graphql() {
@@ -924,10 +924,10 @@ function Nn() {
924
924
  if (t2 || n2) return { initWixModules(e7, r2) {
925
925
  if (r2) {
926
926
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
927
- return Pn(() => n2.use(e7));
927
+ return Nn(() => n2.use(e7));
928
928
  }
929
929
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
930
- return Pn(() => t2.use(e7));
930
+ return Nn(() => t2.use(e7));
931
931
  }, fetchWithAuth: (e7, n3) => {
932
932
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
933
933
  return t2.fetchWithAuth(e7, n3);
@@ -939,7 +939,7 @@ function Nn() {
939
939
  return t2.graphql(e7, n3, r2);
940
940
  } };
941
941
  }
942
- function Pn(e6) {
942
+ function Nn(e6) {
943
943
  let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
944
944
  globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
945
945
  try {
@@ -948,17 +948,17 @@ function Pn(e6) {
948
948
  globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
949
949
  }
950
950
  }
951
- function Fn(e6, t2) {
951
+ function Pn(e6, t2) {
952
952
  return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
953
- let r2 = Nn();
953
+ let r2 = Mn();
954
954
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
955
955
  return r2.initWixModules(e6)[t3].apply(void 0, n2);
956
956
  }])) };
957
957
  }
958
- function In(e6) {
959
- return Fn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
958
+ function Fn(e6) {
959
+ return Pn({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
960
960
  }
961
- var Ln = class {
961
+ var In = class {
962
962
  constructor(e6) {
963
963
  this.message = e6, this.captureException = () => {
964
964
  console.error(this.message);
@@ -973,13 +973,13 @@ var Ln = class {
973
973
  };
974
974
  }
975
975
  };
976
- var Rn = (e6) => new Ln(e6);
977
- var zn = In({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Rn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
978
- function Bn(e6) {
976
+ var Ln = (e6) => new In(e6);
977
+ var Rn = Fn({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Ln(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
978
+ function zn(e6) {
979
979
  let t2 = Promise.resolve(e6);
980
980
  return t2.status = `fulfilled`, t2.value = e6, t2;
981
981
  }
982
- function Vn(e6) {
982
+ function Bn(e6) {
983
983
  if (e6.status === `fulfilled`) return e6.value;
984
984
  throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
985
985
  e6.status = `fulfilled`, e6.value = t2;
@@ -987,17 +987,17 @@ function Vn(e6) {
987
987
  e6.status = `rejected`, e6.reason = t2;
988
988
  })), e6);
989
989
  }
990
- var Hn = /* @__PURE__ */ new WeakMap();
991
- function Un(e6, t2, n2) {
992
- let r2 = Hn.get(e6);
993
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), Hn.set(e6, r2));
990
+ var Vn = /* @__PURE__ */ new WeakMap();
991
+ function Hn(e6, t2, n2) {
992
+ let r2 = Vn.get(e6);
993
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Vn.set(e6, r2));
994
994
  let i2 = r2.get(t2);
995
995
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
996
996
  let a2 = i2.get(n2);
997
997
  if (!a2) {
998
- if (e6.status === `fulfilled`) a2 = Bn(t2(e6.value));
998
+ if (e6.status === `fulfilled`) a2 = zn(t2(e6.value));
999
999
  else if (e6.status === `rejected`) try {
1000
- a2 = Bn(n2(e6.reason));
1000
+ a2 = zn(n2(e6.reason));
1001
1001
  } catch {
1002
1002
  a2 = e6.then(t2, n2);
1003
1003
  }
@@ -1006,36 +1006,36 @@ function Un(e6, t2, n2) {
1006
1006
  }
1007
1007
  return a2;
1008
1008
  }
1009
- function F(e6) {
1009
+ function I(e6) {
1010
1010
  return e6;
1011
1011
  }
1012
- var Wn = F(`@wix/site-service-rendering-context`);
1013
- var Gn = () => {
1012
+ var Un = I(`@wix/site-service-rendering-context`);
1013
+ var Wn = () => {
1014
1014
  try {
1015
- return m(Wn).SSR;
1015
+ return m(Un).SSR;
1016
1016
  } catch {
1017
1017
  return false;
1018
1018
  }
1019
1019
  };
1020
- var Kn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1021
- function qn(e6, t2) {
1020
+ var Gn = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
1021
+ function Kn(e6, t2) {
1022
1022
  let [n2, r2] = f(() => ({ deps: t2, value: e6() }));
1023
1023
  return l(() => {
1024
- if (Kn(n2.deps, t2)) return;
1024
+ if (Gn(n2.deps, t2)) return;
1025
1025
  let i2 = e6();
1026
1026
  o(() => r2({ deps: t2, value: i2 }));
1027
1027
  }, t2), n2.value;
1028
1028
  }
1029
- var Jn = F(`@wix/viewer-service-site-members`);
1030
- var Yn = () => {
1029
+ var qn = I(`@wix/viewer-service-site-members`);
1030
+ var Jn = () => {
1031
1031
  try {
1032
- return m(Jn);
1032
+ return m(qn);
1033
1033
  } catch {
1034
1034
  return;
1035
1035
  }
1036
1036
  };
1037
- var Xn = (e6, t2) => {
1038
- let n2 = Yn(), [r2, i2] = f(), a2 = !!e6.post?.preview;
1037
+ var Yn = (e6, t2) => {
1038
+ let n2 = Jn(), [r2, i2] = f(), a2 = !!e6.post?.preview;
1039
1039
  return l(() => {
1040
1040
  if (!a2) return;
1041
1041
  let e7 = true, r3 = () => {
@@ -1053,18 +1053,18 @@ var Xn = (e6, t2) => {
1053
1053
  };
1054
1054
  }, [a2, t2, n2]), u(() => a2 && r2 && r2._id === e6.post?._id ? { ...e6, post: r2, paywall: void 0 } : e6, [a2, r2, e6]);
1055
1055
  };
1056
- var Zn = F(`@wix/site-service-url`);
1057
- var Qn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1058
- var $n = `post`;
1059
- var er = `category`;
1060
- var tr = `builder-post`;
1061
- var nr = `__blog_unknown_section__`;
1062
- var rr = (e6) => {
1056
+ var Xn = I(`@wix/site-service-url`);
1057
+ var Zn = `14bcded7-0066-7c35-14d7-466cb3f09103`;
1058
+ var Qn = `post`;
1059
+ var $n = `category`;
1060
+ var er = `builder-post`;
1061
+ var tr = `__blog_unknown_section__`;
1062
+ var nr = (e6) => {
1063
1063
  let t2;
1064
1064
  try {
1065
- let n3 = e6.appSectionRelativeUrl(Qn, tr);
1066
- if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, nr) && !n3?.endsWith(`/post-page`)) return;
1067
- t2 = e6.appSectionRelativeUrl(Qn, tr, true);
1065
+ let n3 = e6.appSectionRelativeUrl(Zn, er);
1066
+ if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, tr) && !n3?.endsWith(`/post-page`)) return;
1067
+ t2 = e6.appSectionRelativeUrl(Zn, er, true);
1068
1068
  } catch {
1069
1069
  return;
1070
1070
  }
@@ -1072,12 +1072,12 @@ var rr = (e6) => {
1072
1072
  let n2 = t2.split(`/`).filter(Boolean);
1073
1073
  return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
1074
1074
  };
1075
- var ir = (e6) => `${e6}/${$n}`;
1076
- var ar = (e6) => {
1077
- let t2 = rr(e6);
1078
- if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${ir(t2)}`;
1075
+ var rr = (e6) => `${e6}/${Qn}`;
1076
+ var ir = (e6) => {
1077
+ let t2 = nr(e6);
1078
+ if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${rr(t2)}`;
1079
1079
  };
1080
- var or = (e6, t2) => {
1080
+ var ar = (e6, t2) => {
1081
1081
  if (!e6 || !t2) return;
1082
1082
  let n2;
1083
1083
  try {
@@ -1091,14 +1091,14 @@ var or = (e6, t2) => {
1091
1091
  if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
1092
1092
  }
1093
1093
  };
1094
- var sr = (e6) => {
1094
+ var or = (e6) => {
1095
1095
  if (!e6) return;
1096
1096
  if (typeof e6 == `string`) return e6;
1097
1097
  let { base: t2, path: n2 } = e6;
1098
1098
  return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
1099
1099
  };
1100
- var cr = (e6, t2) => {
1101
- let n2 = sr(e6.url), r2 = `/${$n}`;
1100
+ var sr = (e6, t2) => {
1101
+ let n2 = or(e6.url), r2 = `/${Qn}`;
1102
1102
  if (!n2 || !t2?.endsWith(r2)) return;
1103
1103
  let i2, a2;
1104
1104
  try {
@@ -1109,41 +1109,41 @@ var cr = (e6, t2) => {
1109
1109
  let o2 = a2.slice(0, -r2.length);
1110
1110
  return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
1111
1111
  };
1112
- var lr = (e6, t2) => {
1113
- let n2 = cr(e6, t2);
1112
+ var cr = (e6, t2) => {
1113
+ let n2 = sr(e6, t2);
1114
1114
  if (n2) return { href: n2, target: `_self` };
1115
1115
  if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
1116
- let r2 = sr(e6.url);
1116
+ let r2 = or(e6.url);
1117
1117
  return r2 ? { href: r2, target: `_self` } : void 0;
1118
1118
  };
1119
- var ur = (e6, t2) => {
1120
- let n2 = rr(e6);
1119
+ var lr = (e6, t2) => {
1120
+ let n2 = nr(e6);
1121
1121
  if (n2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${n2}/${t2}`;
1122
1122
  };
1123
- var dr = (e6) => {
1123
+ var ur = (e6) => {
1124
1124
  let t2;
1125
1125
  try {
1126
- t2 = m(Zn);
1126
+ t2 = m(Xn);
1127
1127
  } catch {
1128
1128
  return;
1129
1129
  }
1130
- return ar(t2) ?? or(t2.currentUrl, e6);
1130
+ return ir(t2) ?? ar(t2.currentUrl, e6);
1131
1131
  };
1132
- var fr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1133
- var pr = (e6) => `${e6} rendered`;
1134
- var mr = (e6, t2, n2) => {
1132
+ var dr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
1133
+ var fr = (e6) => `${e6} rendered`;
1134
+ var pr = (e6, t2, n2) => {
1135
1135
  l(() => {
1136
1136
  if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
1137
- performance.mark(pr(e6), { detail: { state: t2, compId: n2 } });
1137
+ performance.mark(fr(e6), { detail: { state: t2, compId: n2 } });
1138
1138
  } catch {
1139
1139
  }
1140
1140
  }, [e6, t2, n2]);
1141
1141
  };
1142
- var hr = F(`@wix/site-service-warmup-data`);
1143
- function gr() {
1144
- let e6 = Gn(), t2 = null;
1142
+ var mr = I(`@wix/site-service-warmup-data`);
1143
+ function hr() {
1144
+ let e6 = Wn(), t2 = null;
1145
1145
  try {
1146
- t2 = p()(hr);
1146
+ t2 = p()(mr);
1147
1147
  } catch {
1148
1148
  }
1149
1149
  return u(() => ({ isServer: e6, scope: t2 ?? void 0, get: async (n2) => {
@@ -1160,13 +1160,13 @@ function gr() {
1160
1160
  }
1161
1161
  } }), [e6, t2]);
1162
1162
  }
1163
- var _r = () => {
1163
+ var gr = () => {
1164
1164
  let e6 = /* @__PURE__ */ new Map();
1165
1165
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1166
1166
  e6.delete(t2);
1167
1167
  })), e6.get(t2)) };
1168
1168
  };
1169
- var vr = async (e6) => {
1169
+ var _r = async (e6) => {
1170
1170
  try {
1171
1171
  let { default: t2 } = await e6();
1172
1172
  return t2;
@@ -1174,9 +1174,9 @@ var vr = async (e6) => {
1174
1174
  return;
1175
1175
  }
1176
1176
  };
1177
- var yr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1178
- let r2 = _r(), i2 = async (r3) => {
1179
- let [i3, a2] = await Promise.all([vr(() => t2(r3)), !e6 || !n2 ? void 0 : vr(() => n2(r3))]);
1177
+ var vr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1178
+ let r2 = gr(), i2 = async (r3) => {
1179
+ let [i3, a2] = await Promise.all([_r(() => t2(r3)), !e6 || !n2 ? void 0 : _r(() => n2(r3))]);
1180
1180
  if (i3 && a2) return { ...i3, ...a2 };
1181
1181
  if (i3) return i3;
1182
1182
  if (a2) return a2;
@@ -1184,61 +1184,61 @@ var yr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1184
1184
  };
1185
1185
  return (e7) => r2.getOrInsert(e7, () => i2(e7));
1186
1186
  };
1187
- var I = (e6) => typeof e6 == `string`;
1188
- var L = () => {
1187
+ var L = (e6) => typeof e6 == `string`;
1188
+ var R = () => {
1189
1189
  let e6, t2, n2 = new Promise((n3, r2) => {
1190
1190
  e6 = n3, t2 = r2;
1191
1191
  });
1192
1192
  return n2.resolve = e6, n2.reject = t2, n2;
1193
1193
  };
1194
- var br = (e6) => e6 == null ? `` : String(e6);
1195
- var xr = (e6, t2, n2) => {
1194
+ var yr = (e6) => e6 == null ? `` : String(e6);
1195
+ var br = (e6, t2, n2) => {
1196
1196
  e6.forEach((e7) => {
1197
1197
  t2[e7] && (n2[e7] = t2[e7]);
1198
1198
  });
1199
1199
  };
1200
- var Sr = /###/g;
1201
- var Cr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Sr, `.`) : e6;
1202
- var wr = (e6) => !e6 || I(e6);
1203
- var R = (e6, t2, n2) => {
1204
- let r2 = I(t2) ? t2.split(`.`) : t2, i2 = 0;
1200
+ var xr = /###/g;
1201
+ var Sr = (e6) => e6 && e6.includes(`###`) ? e6.replace(xr, `.`) : e6;
1202
+ var Cr = (e6) => !e6 || L(e6);
1203
+ var z = (e6, t2, n2) => {
1204
+ let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1205
1205
  for (; i2 < r2.length - 1; ) {
1206
- if (wr(e6)) return {};
1207
- let t3 = Cr(r2[i2]);
1206
+ if (Cr(e6)) return {};
1207
+ let t3 = Sr(r2[i2]);
1208
1208
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1209
1209
  }
1210
- return wr(e6) ? {} : { obj: e6, k: Cr(r2[i2]) };
1210
+ return Cr(e6) ? {} : { obj: e6, k: Sr(r2[i2]) };
1211
1211
  };
1212
- var Tr = (e6, t2, n2) => {
1213
- let { obj: r2, k: i2 } = R(e6, t2, Object);
1212
+ var wr = (e6, t2, n2) => {
1213
+ let { obj: r2, k: i2 } = z(e6, t2, Object);
1214
1214
  if (r2 !== void 0 || t2.length === 1) {
1215
1215
  r2[i2] = n2;
1216
1216
  return;
1217
1217
  }
1218
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = R(e6, o2, Object);
1219
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = R(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1218
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = z(e6, o2, Object);
1219
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = z(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1220
1220
  s2.obj[`${s2.k}.${a2}`] = n2;
1221
1221
  };
1222
- var Er = (e6, t2, n2, r2) => {
1223
- let { obj: i2, k: a2 } = R(e6, t2, Object);
1222
+ var Tr = (e6, t2, n2, r2) => {
1223
+ let { obj: i2, k: a2 } = z(e6, t2, Object);
1224
1224
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1225
1225
  };
1226
- var Dr = (e6, t2) => {
1227
- let { obj: n2, k: r2 } = R(e6, t2);
1226
+ var Er = (e6, t2) => {
1227
+ let { obj: n2, k: r2 } = z(e6, t2);
1228
1228
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1229
1229
  };
1230
- var Or = (e6, t2, n2) => {
1231
- let r2 = Dr(e6, n2);
1232
- return r2 === void 0 ? Dr(t2, n2) : r2;
1230
+ var Dr = (e6, t2, n2) => {
1231
+ let r2 = Er(e6, n2);
1232
+ return r2 === void 0 ? Er(t2, n2) : r2;
1233
1233
  };
1234
- var kr = (e6, t2, n2) => {
1235
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? I(e6[r2]) || e6[r2] instanceof String || I(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : kr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1234
+ var Or = (e6, t2, n2) => {
1235
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? L(e6[r2]) || e6[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Or(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1236
1236
  return e6;
1237
1237
  };
1238
- var z = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1239
- var Ar = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1240
- var jr = (e6) => I(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Ar[e7]) : e6;
1241
- var Mr = class {
1238
+ var B = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1239
+ var kr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1240
+ var Ar = (e6) => L(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => kr[e7]) : e6;
1241
+ var jr = class {
1242
1242
  constructor(e6) {
1243
1243
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1244
1244
  }
@@ -1249,20 +1249,20 @@ var Mr = class {
1249
1249
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1250
1250
  }
1251
1251
  };
1252
- var Nr = [` `, `,`, `?`, `!`, `;`];
1253
- var Pr = new Mr(20);
1254
- var Fr = (e6, t2, n2) => {
1252
+ var Mr = [` `, `,`, `?`, `!`, `;`];
1253
+ var Nr = new jr(20);
1254
+ var Pr = (e6, t2, n2) => {
1255
1255
  t2 ||= ``, n2 ||= ``;
1256
- let r2 = Nr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1256
+ let r2 = Mr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1257
1257
  if (r2.length === 0) return true;
1258
- let i2 = Pr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1258
+ let i2 = Nr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1259
1259
  if (!a2) {
1260
1260
  let t3 = e6.indexOf(n2);
1261
1261
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1262
1262
  }
1263
1263
  return a2;
1264
1264
  };
1265
- var Ir = (e6, t2, n2 = `.`) => {
1265
+ var Fr = (e6, t2, n2 = `.`) => {
1266
1266
  if (!e6) return;
1267
1267
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1268
1268
  let r2 = t2.split(n2), i2 = e6;
@@ -1278,8 +1278,8 @@ var Ir = (e6, t2, n2 = `.`) => {
1278
1278
  }
1279
1279
  return i2;
1280
1280
  };
1281
- var B = (e6) => e6?.replace(/_/g, `-`);
1282
- var Lr = { type: `logger`, log(e6) {
1281
+ var V = (e6) => e6?.replace(/_/g, `-`);
1282
+ var Ir = { type: `logger`, log(e6) {
1283
1283
  this.output(`log`, e6);
1284
1284
  }, warn(e6) {
1285
1285
  this.output(`warn`, e6);
@@ -1288,12 +1288,12 @@ var Lr = { type: `logger`, log(e6) {
1288
1288
  }, output(e6, t2) {
1289
1289
  console?.[e6]?.apply?.(console, t2);
1290
1290
  } };
1291
- var V = new class e2 {
1291
+ var H = new class e2 {
1292
1292
  constructor(e6, t2 = {}) {
1293
1293
  this.init(e6, t2);
1294
1294
  }
1295
1295
  init(e6, t2 = {}) {
1296
- this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Lr, this.options = t2, this.debug = t2.debug;
1296
+ this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Ir, this.options = t2, this.debug = t2.debug;
1297
1297
  }
1298
1298
  log(...e6) {
1299
1299
  return this.forward(e6, `log`, ``, true);
@@ -1308,7 +1308,7 @@ var V = new class e2 {
1308
1308
  return this.forward(e6, `warn`, `WARNING DEPRECATED: `, true);
1309
1309
  }
1310
1310
  forward(e6, t2, n2, r2) {
1311
- return r2 && !this.debug ? null : (e6 = e6.map((e7) => I(e7) ? e7.replace(/[\r\n\x00-\x1F\x7F]/g, ` `) : e7), I(e6[0]) && (e6[0] = `${n2}${this.prefix} ${e6[0]}`), this.logger[t2](e6));
1311
+ return r2 && !this.debug ? null : (e6 = e6.map((e7) => L(e7) ? e7.replace(/[\r\n\x00-\x1F\x7F]/g, ` `) : e7), L(e6[0]) && (e6[0] = `${n2}${this.prefix} ${e6[0]}`), this.logger[t2](e6));
1312
1312
  }
1313
1313
  create(t2) {
1314
1314
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1317,7 +1317,7 @@ var V = new class e2 {
1317
1317
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1318
1318
  }
1319
1319
  }();
1320
- var Rr = class {
1320
+ var Lr = class {
1321
1321
  constructor() {
1322
1322
  this.observers = {};
1323
1323
  }
@@ -1345,8 +1345,8 @@ var Rr = class {
1345
1345
  });
1346
1346
  }
1347
1347
  };
1348
- var zr = /* @__PURE__ */ new WeakSet();
1349
- var Br = class extends Rr {
1348
+ var Rr = /* @__PURE__ */ new WeakSet();
1349
+ var zr = class extends Lr {
1350
1350
  constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1351
1351
  super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1352
1352
  }
@@ -1359,23 +1359,23 @@ var Br = class extends Rr {
1359
1359
  }
1360
1360
  getResource(e6, t2, n2, r2 = {}) {
1361
1361
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1362
- e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : I(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1363
- let s2 = Dr(this.data, o2);
1364
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !I(n2) ? s2 : Ir(this.data?.[e6]?.[t2], n2, i2);
1362
+ e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : L(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1363
+ let s2 = Er(this.data, o2);
1364
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : Fr(this.data?.[e6]?.[t2], n2, i2);
1365
1365
  }
1366
1366
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1367
1367
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1368
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Tr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1368
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), wr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1369
1369
  }
1370
1370
  addResources(e6, t2, n2, r2 = { silent: false }) {
1371
- for (let r3 in n2) (I(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1371
+ for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
1372
1372
  r2.silent || this.emit(`added`, e6, t2, n2);
1373
1373
  }
1374
1374
  addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1375
1375
  let o2 = [e6, t2];
1376
1376
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1377
- let s2 = Dr(this.data, o2) || {};
1378
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? kr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Tr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1377
+ let s2 = Er(this.data, o2) || {};
1378
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Or(s2, n2, i2) : s2 = { ...s2, ...n2 }, wr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1379
1379
  }
1380
1380
  removeResourceBundle(e6, t2) {
1381
1381
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1393,37 +1393,37 @@ var Br = class extends Rr {
1393
1393
  let t2 = this.getDataByLanguage(e6);
1394
1394
  return !!(t2 && Object.keys(t2) || []).find((e7) => {
1395
1395
  let n2 = t2[e7];
1396
- return zr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && zr.add(n2), true);
1396
+ return Rr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && Rr.add(n2), true);
1397
1397
  });
1398
1398
  }
1399
1399
  toJSON() {
1400
1400
  return this.data;
1401
1401
  }
1402
1402
  };
1403
- var Vr = { processors: {}, addPostProcessor(e6) {
1403
+ var Br = { processors: {}, addPostProcessor(e6) {
1404
1404
  this.processors[e6.name] = e6;
1405
1405
  }, handle(e6, t2, n2, r2, i2) {
1406
1406
  return e6.forEach((e7) => {
1407
1407
  t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
1408
1408
  }), t2;
1409
1409
  } };
1410
- var Hr = Symbol(`i18next/PATH_KEY`);
1411
- function Ur() {
1410
+ var Vr = Symbol(`i18next/PATH_KEY`);
1411
+ function Hr() {
1412
1412
  let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1413
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Hr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1413
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Vr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1414
1414
  }
1415
- function H(e6, t2) {
1416
- let { [Hr]: n2 } = e6(Ur()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1415
+ function U(e6, t2) {
1416
+ let { [Vr]: n2 } = e6(Hr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1417
1417
  if (n2.length > 1 && i2) {
1418
1418
  let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
1419
1419
  if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1420
1420
  }
1421
1421
  return n2.join(r2);
1422
1422
  }
1423
- var Wr = (e6) => !I(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1424
- var Gr = class e3 extends Rr {
1423
+ var Ur = (e6) => !L(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1424
+ var Wr = class e3 extends Lr {
1425
1425
  constructor(e6, t2 = {}) {
1426
- super(), xr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = V.create(`translator`), this.checkedLoadedFor = {};
1426
+ super(), br([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = H.create(`translator`), this.checkedLoadedFor = {};
1427
1427
  }
1428
1428
  changeLanguage(e6) {
1429
1429
  e6 && (this.language = e6);
@@ -1433,33 +1433,33 @@ var Gr = class e3 extends Rr {
1433
1433
  if (e6 == null) return false;
1434
1434
  let r2 = this.resolve(e6, n2);
1435
1435
  if (r2?.res === void 0) return false;
1436
- let i2 = Wr(r2.res);
1436
+ let i2 = Ur(r2.res);
1437
1437
  return !(n2.returnObjects === false && i2);
1438
1438
  }
1439
1439
  extractFromKey(e6, t2) {
1440
1440
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1441
1441
  n2 === void 0 && (n2 = `:`);
1442
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Fr(e6, n2, r2);
1442
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Pr(e6, n2, r2);
1443
1443
  if (a2 && !o2) {
1444
1444
  let t3 = e6.match(this.interpolator.nestingRegexp);
1445
- if (t3 && t3.length > 0) return { key: e6, namespaces: I(i2) ? [i2] : i2 };
1445
+ if (t3 && t3.length > 0) return { key: e6, namespaces: L(i2) ? [i2] : i2 };
1446
1446
  let a3 = e6.split(n2);
1447
1447
  (n2 !== r2 || n2 === r2 && this.options.ns.includes(a3[0])) && (i2 = a3.shift()), e6 = a3.join(r2);
1448
1448
  }
1449
- return { key: e6, namespaces: I(i2) ? [i2] : i2 };
1449
+ return { key: e6, namespaces: L(i2) ? [i2] : i2 };
1450
1450
  }
1451
1451
  translate(t2, n2, r2) {
1452
1452
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1453
1453
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1454
- typeof t2 == `function` && (t2 = H(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? H(e6, { ...this.options, ...i2 }) : String(e6));
1454
+ typeof t2 == `function` && (t2 = U(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? U(e6, { ...this.options, ...i2 }) : String(e6));
1455
1455
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1456
1456
  u2 === void 0 && (u2 = `:`);
1457
1457
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1458
1458
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1459
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !I(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1459
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !L(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1460
1460
  y2 && !m2 && x2 && (T2 = w2);
1461
- let te2 = Wr(T2), ne2 = Object.prototype.toString.apply(T2);
1462
- if (y2 && T2 && te2 && !_2.includes(ne2) && !(I(v2) && Array.isArray(T2))) {
1461
+ let te2 = Ur(T2), ne2 = Object.prototype.toString.apply(T2);
1462
+ if (y2 && T2 && te2 && !_2.includes(ne2) && !(L(v2) && Array.isArray(T2))) {
1463
1463
  if (!i2.returnObjects && !this.options.returnObjects) {
1464
1464
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1465
1465
  let e6 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, T2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1469,11 +1469,11 @@ var Gr = class e3 extends Rr {
1469
1469
  let e6 = Array.isArray(T2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
1470
1470
  for (let e7 in T2) if (Object.prototype.hasOwnProperty.call(T2, e7)) {
1471
1471
  let r3 = `${n3}${o2}${e7}`;
1472
- t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: Wr(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1472
+ t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: Ur(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1473
1473
  }
1474
1474
  m2 = t3;
1475
1475
  }
1476
- } else if (y2 && I(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1476
+ } else if (y2 && L(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1477
1477
  else {
1478
1478
  let e6 = false, n3 = false;
1479
1479
  !this.isValidLookup(m2) && x2 && (e6 = true, m2 = w2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1505,30 +1505,30 @@ var Gr = class e3 extends Rr {
1505
1505
  if (this.i18nFormat?.parse) e6 = this.i18nFormat.parse(e6, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1506
1506
  else if (!n2.skipInterpolation) {
1507
1507
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1508
- let a3 = I(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1508
+ let a3 = L(e6) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1509
1509
  if (a3) {
1510
1510
  let t3 = e6.match(this.interpolator.nestingRegexp);
1511
1511
  o3 = t3 && t3.length;
1512
1512
  }
1513
- let s2 = n2.replace && !I(n2.replace) ? n2.replace : n2;
1513
+ let s2 = n2.replace && !L(n2.replace) ? n2.replace : n2;
1514
1514
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e6 = this.interpolator.interpolate(e6, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1515
1515
  let t3 = e6.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1516
1516
  o3 < r3 && (n2.nest = false);
1517
1517
  }
1518
1518
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
1519
1519
  }
1520
- let a2 = n2.postProcess || this.options.postProcess, o2 = I(a2) ? [a2] : a2;
1521
- return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Vr.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1520
+ let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1521
+ return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Br.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1522
1522
  }
1523
1523
  resolve(e6, t2 = {}) {
1524
1524
  let n2, r2, i2, a2, o2;
1525
- return I(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? H(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1525
+ return L(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? U(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1526
1526
  if (this.isValidLookup(n2)) return;
1527
1527
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1528
1528
  r2 = c2;
1529
1529
  let l2 = s2.namespaces;
1530
1530
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1531
- let u2 = t2.count !== void 0 && !I(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (I(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1531
+ let u2 = t2.count !== void 0 && !L(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (L(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1532
1532
  l2.forEach((e8) => {
1533
1533
  this.isValidLookup(n2) || (o2 = e8, !this.checkedLoadedFor[`${p2[0]}-${e8}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (this.checkedLoadedFor[`${p2[0]}-${e8}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" 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!!!`)), p2.forEach((r3) => {
1534
1534
  if (this.isValidLookup(n2)) return;
@@ -1557,7 +1557,7 @@ var Gr = class e3 extends Rr {
1557
1557
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e6, t2, n2, r2) : this.resourceStore.getResource(e6, t2, n2, r2);
1558
1558
  }
1559
1559
  getUsedParamsDetails(e6 = {}) {
1560
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e6.replace && !I(e6.replace), r2 = n2 ? e6.replace : e6;
1560
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e6.replace && !L(e6.replace), r2 = n2 ? e6.replace : e6;
1561
1561
  if (n2 && e6.count !== void 0 && (r2 = { ...r2, count: e6.count }), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1562
1562
  r2 = { ...r2 };
1563
1563
  for (let e7 of t2) delete r2[e7];
@@ -1569,25 +1569,25 @@ var Gr = class e3 extends Rr {
1569
1569
  return false;
1570
1570
  }
1571
1571
  };
1572
- var Kr = class {
1572
+ var Gr = class {
1573
1573
  constructor(e6) {
1574
- this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = V.create(`languageUtils`), this.resolveHierarchyCache = {};
1574
+ this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = H.create(`languageUtils`), this.resolveHierarchyCache = {};
1575
1575
  }
1576
1576
  clearCache() {
1577
1577
  this.resolveHierarchyCache = {};
1578
1578
  }
1579
1579
  getScriptPartFromCode(e6) {
1580
- if (e6 = B(e6), !e6 || !e6.includes(`-`)) return null;
1580
+ if (e6 = V(e6), !e6 || !e6.includes(`-`)) return null;
1581
1581
  let t2 = e6.split(`-`);
1582
1582
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1583
1583
  }
1584
1584
  getLanguagePartFromCode(e6) {
1585
- if (e6 = B(e6), !e6 || !e6.includes(`-`)) return e6;
1585
+ if (e6 = V(e6), !e6 || !e6.includes(`-`)) return e6;
1586
1586
  let t2 = e6.split(`-`);
1587
1587
  return this.formatLanguageCode(t2[0]);
1588
1588
  }
1589
1589
  formatLanguageCode(e6) {
1590
- if (I(e6) && e6.includes(`-`)) {
1590
+ if (L(e6) && e6.includes(`-`)) {
1591
1591
  let t2;
1592
1592
  try {
1593
1593
  t2 = Intl.getCanonicalLocales(e6)[0];
@@ -1618,7 +1618,7 @@ var Kr = class {
1618
1618
  }
1619
1619
  getFallbackCodes(e6, t2) {
1620
1620
  if (!e6) return [];
1621
- if (typeof e6 == `function` && (e6 = e6(t2)), I(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1621
+ if (typeof e6 == `function` && (e6 = e6(t2)), L(e6) && (e6 = [e6]), Array.isArray(e6)) return e6;
1622
1622
  if (!t2) return e6.default || [];
1623
1623
  let n2 = e6[t2];
1624
1624
  return n2 ||= e6[this.getScriptPartFromCode(t2)], n2 ||= e6[this.formatLanguageCode(t2)], n2 ||= e6[this.getLanguagePartFromCode(t2)], n2 ||= e6.default, n2 || [];
@@ -1626,7 +1626,7 @@ var Kr = class {
1626
1626
  toResolveHierarchy(e6, t2) {
1627
1627
  let n2 = this.options.fallbackLng, r2 = Array.isArray(n2) ? n2.join(`|`) : n2;
1628
1628
  r2 !== this._cachedFallbackLng && (this.resolveHierarchyCache = {}, this._cachedFallbackLng = r2);
1629
- let i2 = t2 === void 0 || t2 === false || I(t2), a2 = t2 === void 0 && typeof this.options.fallbackLng == `function`, o2 = I(e6) && i2 && !a2, s2 = null;
1629
+ let i2 = t2 === void 0 || t2 === false || L(t2), a2 = t2 === void 0 && typeof this.options.fallbackLng == `function`, o2 = L(e6) && i2 && !a2, s2 = null;
1630
1630
  if (o2) {
1631
1631
  let n3;
1632
1632
  n3 = t2 === void 0 ? `undefined` : t2 === false ? `boolean:false` : `string:${t2}`, s2 = `${e6.length}:${e6}|${n3}`;
@@ -1638,29 +1638,30 @@ var Kr = class {
1638
1638
  let c2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e6), l2 = [], u2 = (e7) => {
1639
1639
  e7 && (this.isSupportedCode(e7) ? l2.push(e7) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e7}`));
1640
1640
  };
1641
- return I(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : I(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1642
- l2.includes(e7) || u2(this.formatLanguageCode(e7));
1641
+ return L(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : L(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1642
+ let t3 = this.formatLanguageCode(e7);
1643
+ l2.includes(t3) || u2(t3);
1643
1644
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1644
1645
  }
1645
1646
  };
1646
- var qr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1647
- var Jr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1648
- var Yr = class {
1647
+ var Kr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1648
+ var qr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1649
+ var Jr = class {
1649
1650
  constructor(e6, t2 = {}) {
1650
- this.languageUtils = e6, this.options = t2, this.logger = V.create(`pluralResolver`), this.pluralRulesCache = {};
1651
+ this.languageUtils = e6, this.options = t2, this.logger = H.create(`pluralResolver`), this.pluralRulesCache = {};
1651
1652
  }
1652
1653
  clearCache() {
1653
1654
  this.pluralRulesCache = {};
1654
1655
  }
1655
1656
  getRule(e6, t2 = {}) {
1656
- let n2 = B(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1657
+ let n2 = V(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1657
1658
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1658
1659
  let a2;
1659
1660
  try {
1660
1661
  a2 = new Intl.PluralRules(n2, { type: r2 });
1661
1662
  } catch {
1662
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Jr;
1663
- if (!e6.match(/-|_/)) return Jr;
1663
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), qr;
1664
+ if (!e6.match(/-|_/)) return qr;
1664
1665
  let n3 = this.languageUtils.getLanguagePartFromCode(e6);
1665
1666
  a2 = this.getRule(n3, t2);
1666
1667
  }
@@ -1675,26 +1676,26 @@ var Yr = class {
1675
1676
  }
1676
1677
  getSuffixes(e6, t2 = {}) {
1677
1678
  let n2 = this.getRule(e6, t2);
1678
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => qr[e7] - qr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1679
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => Kr[e7] - Kr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1679
1680
  }
1680
1681
  getSuffix(e6, t2, n2 = {}) {
1681
1682
  let r2 = this.getRule(e6, n2);
1682
1683
  return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e6}`), this.getSuffix(`dev`, t2, n2));
1683
1684
  }
1684
1685
  };
1685
- var Xr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1686
- let a2 = Or(e6, t2, n2);
1687
- return !a2 && i2 && I(n2) && (a2 = Ir(e6, n2, r2), a2 === void 0 && (a2 = Ir(t2, n2, r2))), a2;
1686
+ var Yr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1687
+ let a2 = Dr(e6, t2, n2);
1688
+ return !a2 && i2 && L(n2) && (a2 = Fr(e6, n2, r2), a2 === void 0 && (a2 = Fr(t2, n2, r2))), a2;
1688
1689
  };
1689
- var Zr = (e6) => e6.replace(/\$/g, `$$$$`);
1690
- var Qr = class {
1690
+ var Xr = (e6) => e6.replace(/\$/g, `$$$$`);
1691
+ var Zr = class {
1691
1692
  constructor(e6 = {}) {
1692
- this.logger = V.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1693
+ this.logger = H.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1693
1694
  }
1694
1695
  init(e6 = {}) {
1695
1696
  e6.interpolation ||= { escapeValue: true };
1696
1697
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e6.interpolation;
1697
- this.escape = t2 === void 0 ? jr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? z(i2) : a2 || `{{`, this.suffix = o2 ? z(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? z(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? z(l2) : ``, this.nestingPrefix = d2 ? z(d2) : f2 || z(`$t(`), this.nestingSuffix = p2 ? z(p2) : m2 || z(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1698
+ this.escape = t2 === void 0 ? Ar : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? B(i2) : a2 || `{{`, this.suffix = o2 ? B(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? B(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? B(l2) : ``, this.nestingPrefix = d2 ? B(d2) : f2 || B(`$t(`), this.nestingSuffix = p2 ? B(p2) : m2 || B(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1698
1699
  }
1699
1700
  reset() {
1700
1701
  this.options && this.init(this.options);
@@ -1706,11 +1707,11 @@ var Qr = class {
1706
1707
  interpolate(e6, t2, n2, r2) {
1707
1708
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
1708
1709
  if (!e7.includes(this.formatSeparator)) {
1709
- let i4 = Xr(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1710
+ let i4 = Yr(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1710
1711
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
1711
1712
  }
1712
1713
  let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1713
- return this.format(Xr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1714
+ return this.format(Yr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1714
1715
  };
1715
1716
  this.resetRegExp(), !this.escapeValue && typeof e6 == `string` && /\$t\([^)]*\{[^}]*\{\{/.test(e6) && this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);
1716
1717
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
@@ -1720,15 +1721,15 @@ var Qr = class {
1720
1721
  if (a2 = c2(n3), a2 === void 0) {
1721
1722
  if (typeof l2 == `function`) {
1722
1723
  let t4 = l2(e6, i2, r2);
1723
- a2 = I(t4) ? t4 : ``;
1724
+ a2 = L(t4) ? t4 : ``;
1724
1725
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1725
1726
  else if (u2) {
1726
1727
  a2 = i2[0];
1727
1728
  continue;
1728
1729
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1729
- } else !I(a2) && !this.useRawValueToEscape && (a2 = br(a2));
1730
+ } else !L(a2) && !this.useRawValueToEscape && (a2 = yr(a2));
1730
1731
  let s3 = t3.safeValue(a2);
1731
- if (e6 = e6.replace(i2[0], Zr(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1732
+ if (e6 = e6.replace(i2[0], Xr(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1732
1733
  }
1733
1734
  }), e6;
1734
1735
  }
@@ -1736,7 +1737,7 @@ var Qr = class {
1736
1737
  let r2, i2, a2, o2 = (e7, t3) => {
1737
1738
  let n3 = this.nestingOptionsSeparator;
1738
1739
  if (!e7.includes(n3)) return e7;
1739
- let r3 = e7.split(RegExp(`${z(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1740
+ let r3 = e7.split(RegExp(`${B(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1740
1741
  e7 = r3[0], i3 = this.interpolate(i3, a2);
1741
1742
  let o3 = i3.match(/'/g), s3 = i3.match(/"/g);
1742
1743
  ((o3?.length ?? 0) % 2 == 0 && !s3 || (s3?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1749,15 +1750,15 @@ var Qr = class {
1749
1750
  }, s2 = new RegExp(this.nestingRegexp), c2 = ``, l2 = 0;
1750
1751
  for (; r2 = s2.exec(e6); ) {
1751
1752
  let u2 = [];
1752
- a2 = { ...n2 }, a2 = a2.replace && !I(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1753
+ a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1753
1754
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1754
- if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !I(i2)) return i2;
1755
- I(i2) || (i2 = br(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + br(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1755
+ if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !L(i2)) return i2;
1756
+ L(i2) || (i2 = yr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + yr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1756
1757
  }
1757
1758
  return l2 ? c2 + e6.slice(l2) : e6;
1758
1759
  }
1759
1760
  };
1760
- var $r = (e6) => {
1761
+ var Qr = (e6) => {
1761
1762
  let t2 = e6.toLowerCase().trim(), n2 = {};
1762
1763
  if (e6.includes(`(`)) {
1763
1764
  let r2 = e6.split(`(`);
@@ -1772,23 +1773,23 @@ var $r = (e6) => {
1772
1773
  }
1773
1774
  return { formatName: t2, formatOptions: n2 };
1774
1775
  };
1775
- var ei = (e6) => {
1776
+ var $r = (e6) => {
1776
1777
  let t2 = {};
1777
1778
  return (n2, r2, i2) => {
1778
1779
  let a2 = i2;
1779
1780
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1780
1781
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1781
- return s2 || (s2 = e6(B(r2), i2), t2[o2] = s2), s2(n2);
1782
+ return s2 || (s2 = e6(V(r2), i2), t2[o2] = s2), s2(n2);
1782
1783
  };
1783
1784
  };
1784
- var ti = (e6) => (t2, n2, r2) => e6(B(n2), r2)(t2);
1785
- var ni = class {
1785
+ var ei = (e6) => (t2, n2, r2) => e6(V(n2), r2)(t2);
1786
+ var ti = class {
1786
1787
  constructor(e6 = {}) {
1787
- this.logger = V.create(`formatter`), this.options = e6, this.init(e6);
1788
+ this.logger = H.create(`formatter`), this.options = e6, this.init(e6);
1788
1789
  }
1789
1790
  init(e6, t2 = { interpolation: {} }) {
1790
1791
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1791
- let n2 = t2.cacheInBuiltFormats ? ei : ti;
1792
+ let n2 = t2.cacheInBuiltFormats ? $r : ei;
1792
1793
  this.formats = { number: n2((e7, t3) => {
1793
1794
  let n3 = new Intl.NumberFormat(e7, { ...t3 });
1794
1795
  return (e8) => n3.format(e8);
@@ -1810,7 +1811,7 @@ var ni = class {
1810
1811
  this.formats[e6.toLowerCase().trim()] = t2;
1811
1812
  }
1812
1813
  addCached(e6, t2) {
1813
- this.formats[e6.toLowerCase().trim()] = ei(t2);
1814
+ this.formats[e6.toLowerCase().trim()] = $r(t2);
1814
1815
  }
1815
1816
  format(e6, t2, n2, r2 = {}) {
1816
1817
  if (!t2 || e6 == null) return e6;
@@ -1821,7 +1822,7 @@ var ni = class {
1821
1822
  a2.push(t3);
1822
1823
  }
1823
1824
  return a2.reduce((e7, t3) => {
1824
- let { formatName: i3, formatOptions: a3 } = $r(t3);
1825
+ let { formatName: i3, formatOptions: a3 } = Qr(t3);
1825
1826
  if (this.formats[i3]) {
1826
1827
  let t4 = e7;
1827
1828
  try {
@@ -1836,12 +1837,12 @@ var ni = class {
1836
1837
  }, e6);
1837
1838
  }
1838
1839
  };
1839
- var ri = (e6, t2) => {
1840
+ var ni = (e6, t2) => {
1840
1841
  e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
1841
1842
  };
1842
- var ii = class extends Rr {
1843
+ var ri = class extends Lr {
1843
1844
  constructor(e6, t2, n2, r2 = {}) {
1844
- super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = V.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1845
+ super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = H.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1845
1846
  }
1846
1847
  queueLoad(e6, t2, n2, r2) {
1847
1848
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1858,7 +1859,7 @@ var ii = class extends Rr {
1858
1859
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e6] = t2 ? -1 : 2, t2 && n2 && (this.state[e6] = 0);
1859
1860
  let o2 = {};
1860
1861
  this.queue.forEach((n3) => {
1861
- Er(n3.loaded, [i2], a2), ri(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1862
+ Tr(n3.loaded, [i2], a2), ni(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1862
1863
  o2[e7] || (o2[e7] = {});
1863
1864
  let t3 = n3.loaded[e7];
1864
1865
  t3.length && t3.forEach((t4) => {
@@ -1893,7 +1894,7 @@ var ii = class extends Rr {
1893
1894
  }
1894
1895
  prepareLoading(e6, t2, n2 = {}, r2) {
1895
1896
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1896
- I(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), I(t2) && (t2 = [t2]);
1897
+ L(e6) && (e6 = this.languageUtils.toResolveHierarchy(e6)), L(t2) && (t2 = [t2]);
1897
1898
  let i2 = this.queueLoad(e6, t2, n2, r2);
1898
1899
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1899
1900
  i2.toLoad.forEach((e7) => {
@@ -1930,9 +1931,9 @@ var ii = class extends Rr {
1930
1931
  }
1931
1932
  }
1932
1933
  };
1933
- var ai = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
1934
+ var ii = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
1934
1935
  let t2 = {};
1935
- if (typeof e6[1] == `object` && (t2 = e6[1]), I(e6[1]) && (t2.defaultValue = e6[1]), I(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1936
+ if (typeof e6[1] == `object` && (t2 = e6[1]), L(e6[1]) && (t2.defaultValue = e6[1]), L(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1936
1937
  let n2 = e6[3] || e6[2];
1937
1938
  Object.keys(n2).forEach((e7) => {
1938
1939
  t2[e7] = n2[e7];
@@ -1940,17 +1941,17 @@ var ai = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1940
1941
  }
1941
1942
  return t2;
1942
1943
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1943
- var oi = (e6) => (I(e6.ns) && (e6.ns = [e6.ns]), I(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), I(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1944
- var si = () => {
1944
+ var ai = (e6) => (L(e6.ns) && (e6.ns = [e6.ns]), L(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), L(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1945
+ var oi = () => {
1945
1946
  };
1946
- var ci = (e6) => {
1947
+ var si = (e6) => {
1947
1948
  Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
1948
1949
  typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
1949
1950
  });
1950
1951
  };
1951
- var U = class e4 extends Rr {
1952
+ var W = class e4 extends Lr {
1952
1953
  constructor(e6 = {}, t2) {
1953
- if (super(), this.options = oi(e6), this.services = {}, this.logger = V, this.modules = { external: [] }, ci(this), t2 && !this.isInitialized && !e6.isClone) {
1954
+ if (super(), this.options = ai(e6), this.services = {}, this.logger = H, this.modules = { external: [] }, si(this), t2 && !this.isInitialized && !e6.isClone) {
1954
1955
  if (!this.options.initAsync) return this.init(e6, t2), this;
1955
1956
  setTimeout(() => {
1956
1957
  this.init(e6, t2);
@@ -1958,26 +1959,26 @@ var U = class e4 extends Rr {
1958
1959
  }
1959
1960
  }
1960
1961
  init(e6 = {}, t2) {
1961
- this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (I(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
1962
- let n2 = ai();
1963
- this.options = { ...n2, ...this.options, ...oi(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
1962
+ this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (L(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
1963
+ let n2 = ii();
1964
+ this.options = { ...n2, ...this.options, ...ai(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
1964
1965
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
1965
1966
  if (!this.options.isClone) {
1966
- this.modules.logger ? V.init(r2(this.modules.logger), this.options) : V.init(null, this.options);
1967
+ this.modules.logger ? H.init(r2(this.modules.logger), this.options) : H.init(null, this.options);
1967
1968
  let e7;
1968
- e7 = this.modules.formatter ? this.modules.formatter : ni;
1969
- let t3 = new Kr(this.options);
1970
- this.store = new Br(this.options.resources, this.options);
1969
+ e7 = this.modules.formatter ? this.modules.formatter : ti;
1970
+ let t3 = new Gr(this.options);
1971
+ this.store = new zr(this.options.resources, this.options);
1971
1972
  let n3 = this.services;
1972
- n3.logger = V, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Yr(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new Qr(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new ii(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
1973
+ n3.logger = H, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Jr(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new Zr(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new ri(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
1973
1974
  this.emit(e8, ...t4);
1974
- }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new Gr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
1975
+ }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new Wr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
1975
1976
  this.emit(e8, ...t4);
1976
1977
  }), this.modules.external.forEach((e8) => {
1977
1978
  e8.init && e8.init(this);
1978
1979
  });
1979
1980
  }
1980
- if (this.format = this.options.interpolation.format, t2 ||= si, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1981
+ if (this.format = this.options.interpolation.format, t2 ||= oi, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1981
1982
  let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1982
1983
  e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
1983
1984
  }
@@ -1986,7 +1987,7 @@ var U = class e4 extends Rr {
1986
1987
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
1987
1988
  this[e7] = (...t3) => (this.store[e7](...t3), this);
1988
1989
  });
1989
- let i2 = L(), a2 = () => {
1990
+ let i2 = R(), a2 = () => {
1990
1991
  let e7 = (e8, n3) => {
1991
1992
  this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e8, n3);
1992
1993
  };
@@ -1995,8 +1996,8 @@ var U = class e4 extends Rr {
1995
1996
  };
1996
1997
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
1997
1998
  }
1998
- loadResources(e6, t2 = si) {
1999
- let n2 = t2, r2 = I(e6) ? e6 : this.language;
1999
+ loadResources(e6, t2 = oi) {
2000
+ let n2 = t2, r2 = L(e6) ? e6 : this.language;
2000
2001
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2001
2002
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
2002
2003
  let e7 = [], t3 = (t4) => {
@@ -2010,15 +2011,15 @@ var U = class e4 extends Rr {
2010
2011
  } else n2(null);
2011
2012
  }
2012
2013
  reloadResources(e6, t2, n2) {
2013
- let r2 = L();
2014
- return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= si, this.services.backendConnector.reload(e6, t2, (e7) => {
2014
+ let r2 = R();
2015
+ return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= oi, this.services.backendConnector.reload(e6, t2, (e7) => {
2015
2016
  r2.resolve(), n2(e7);
2016
2017
  }), r2;
2017
2018
  }
2018
2019
  use(e6) {
2019
2020
  if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
2020
2021
  if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
2021
- return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && Vr.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2022
+ return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && Br.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2022
2023
  }
2023
2024
  setResolvedLanguage(e6) {
2024
2025
  if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
@@ -2034,7 +2035,7 @@ var U = class e4 extends Rr {
2034
2035
  }
2035
2036
  changeLanguage(e6, t2) {
2036
2037
  this.isLanguageChangingTo = e6;
2037
- let n2 = L();
2038
+ let n2 = R();
2038
2039
  this.emit(`languageChanging`, e6);
2039
2040
  let r2 = (e7) => {
2040
2041
  this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
@@ -2042,7 +2043,7 @@ var U = class e4 extends Rr {
2042
2043
  a3 ? this.isLanguageChangingTo === e6 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e7) => this.t(...e7)), t2 && t2(i3, (...e7) => this.t(...e7));
2043
2044
  }, a2 = (t3) => {
2044
2045
  !e6 && !t3 && this.services.languageDetector && (t3 = []);
2045
- let n3 = I(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(I(t3) ? [t3] : t3);
2046
+ let n3 = L(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(L(t3) ? [t3] : t3);
2046
2047
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e7) => {
2047
2048
  i2(e7, a3);
2048
2049
  });
@@ -2056,11 +2057,11 @@ var U = class e4 extends Rr {
2056
2057
  let s2 = o2.ns !== void 0 && o2.ns !== null;
2057
2058
  o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
2058
2059
  let c2 = { ...this.options, ...o2 };
2059
- Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = H(o2.keyPrefix, c2));
2060
+ Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = U(o2.keyPrefix, c2));
2060
2061
  let l2 = this.options.keySeparator || `.`, u2;
2061
- return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = H(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = H(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2062
+ return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = U(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = U(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2062
2063
  };
2063
- return I(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2064
+ return L(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2064
2065
  }
2065
2066
  t(...e6) {
2066
2067
  return this.translator?.translate(...e6);
@@ -2084,19 +2085,21 @@ var U = class e4 extends Rr {
2084
2085
  let e7 = t2.precheck(this, a2);
2085
2086
  if (e7 !== void 0) return e7;
2086
2087
  }
2087
- return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
2088
+ if (this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;
2089
+ let { languageUtils: o2 } = this.services, s2 = t2.lng ? o2.isSupportedCode(n2) && o2.toResolveHierarchy(n2, false)[0] : n2;
2090
+ return !(s2 && !a2(s2, e6) || r2 && !a2(i2, e6));
2088
2091
  }
2089
2092
  loadNamespaces(e6, t2) {
2090
- let n2 = L();
2091
- return this.options.ns ? (I(e6) && (e6 = [e6]), e6.forEach((e7) => {
2093
+ let n2 = R();
2094
+ return this.options.ns ? (L(e6) && (e6 = [e6]), e6.forEach((e7) => {
2092
2095
  this.options.ns.includes(e7) || this.options.ns.push(e7);
2093
2096
  }), this.loadResources((e7) => {
2094
2097
  n2.resolve(), t2 && t2(e7);
2095
2098
  }), n2) : (t2 && t2(), Promise.resolve());
2096
2099
  }
2097
2100
  loadLanguages(e6, t2) {
2098
- let n2 = L();
2099
- I(e6) && (e6 = [e6]);
2101
+ let n2 = R();
2102
+ L(e6) && (e6 = [e6]);
2100
2103
  let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
2101
2104
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
2102
2105
  n2.resolve(), t2 && t2(e7);
@@ -2112,24 +2115,24 @@ var U = class e4 extends Rr {
2112
2115
  }
2113
2116
  } catch {
2114
2117
  }
2115
- let t2 = `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.ckb`.split(`.`), n2 = this.services?.languageUtils || new Kr(ai());
2118
+ let t2 = `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.ckb`.split(`.`), n2 = this.services?.languageUtils || new Gr(ii());
2116
2119
  return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
2117
2120
  }
2118
2121
  static createInstance(t2 = {}, n2) {
2119
2122
  let r2 = new e4(t2, n2);
2120
2123
  return r2.createInstance = e4.createInstance, r2;
2121
2124
  }
2122
- cloneInstance(t2 = {}, n2 = si) {
2125
+ cloneInstance(t2 = {}, n2 = oi) {
2123
2126
  let r2 = t2.forkResourceStore;
2124
2127
  r2 && delete t2.forkResourceStore;
2125
- let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
2128
+ let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
2126
2129
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2127
2130
  a2[e6] = this[e6];
2128
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new Br(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2129
- let e6 = { ...ai().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2130
- a2.services.interpolator = new Qr(n3);
2131
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new zr(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2132
+ let e6 = { ...ii().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2133
+ a2.services.interpolator = new Zr(n3);
2131
2134
  }
2132
- return a2.translator = new Gr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2135
+ return a2.translator = new Wr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2133
2136
  a2.emit(e6, ...t3);
2134
2137
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
2135
2138
  }
@@ -2137,9 +2140,9 @@ var U = class e4 extends Rr {
2137
2140
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
2138
2141
  }
2139
2142
  }.createInstance();
2140
- U.createInstance, U.dir, U.init, U.loadResources, U.reloadResources, U.use, U.changeLanguage, U.getFixedT, U.t, U.exists, U.setDefaultNamespace, U.hasLoadedNamespace, U.loadNamespaces, U.loadLanguages;
2141
- var li = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2142
- let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = U.createInstance(i2 ? s2 : void 0);
2143
+ W.createInstance, W.dir, W.init, W.loadResources, W.reloadResources, W.use, W.changeLanguage, W.getFixedT, W.t, W.exists, W.setDefaultNamespace, W.hasLoadedNamespace, W.loadNamespaces, W.loadLanguages;
2144
+ var ci = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2145
+ let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = W.createInstance(i2 ? s2 : void 0);
2143
2146
  return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
2144
2147
  try {
2145
2148
  return r3(null, await t2(e7));
@@ -2148,75 +2151,38 @@ var li = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2148
2151
  }
2149
2152
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2150
2153
  };
2151
- var ui = [`__proto__`, `constructor`, `prototype`];
2152
- function di(e6, t2, n2) {
2153
- function r2(e7) {
2154
- return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
2155
- }
2156
- function i2() {
2157
- return !e6 || typeof e6 == `string`;
2158
- }
2159
- for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
2160
- if (i2()) return {};
2161
- var o2 = r2(a2.shift());
2162
- if (ui.indexOf(o2) > -1) return {};
2163
- !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
2164
- }
2165
- if (i2()) return {};
2166
- var s2 = r2(a2.shift());
2167
- return ui.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
2168
- }
2169
- function fi(e6, t2, n2) {
2170
- var r2 = di(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
2171
- i2 !== void 0 && (i2[a2] = n2);
2172
- }
2173
- function pi(e6, t2) {
2174
- var n2 = di(e6, t2), r2 = n2.obj, i2 = n2.k;
2175
- if (r2) return r2[i2];
2176
- }
2177
- var mi = [];
2178
- var hi = mi.forEach;
2179
- var gi = mi.slice;
2180
- function _i(e6) {
2181
- return hi.call(gi.call(arguments, 1), function(t2) {
2182
- if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
2183
- var i2 = r2[n2];
2184
- ui.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
2185
- }
2186
- }), e6;
2187
- }
2188
- function vi(e6, t2) {
2189
- let n2 = t2 && t2.cache ? t2.cache : Oi, r2 = t2 && t2.serializer ? t2.serializer : Ei;
2190
- return (t2 && t2.strategy ? t2.strategy : Ci)(e6, { cache: n2, serializer: r2 });
2154
+ function li(e6, t2) {
2155
+ let n2 = t2 && t2.cache ? t2.cache : yi, r2 = t2 && t2.serializer ? t2.serializer : _i;
2156
+ return (t2 && t2.strategy ? t2.strategy : mi)(e6, { cache: n2, serializer: r2 });
2191
2157
  }
2192
- function yi(e6) {
2158
+ function ui(e6) {
2193
2159
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2194
2160
  }
2195
- function bi(e6, t2, n2, r2) {
2196
- let i2 = yi(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2161
+ function di(e6, t2, n2, r2) {
2162
+ let i2 = ui(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2197
2163
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2198
2164
  }
2199
- function xi(e6, t2, n2) {
2165
+ function fi(e6, t2, n2) {
2200
2166
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2201
2167
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2202
2168
  }
2203
- function Si(e6, t2, n2, r2, i2) {
2169
+ function pi(e6, t2, n2, r2, i2) {
2204
2170
  return n2.bind(t2, e6, r2, i2);
2205
2171
  }
2206
- function Ci(e6, t2) {
2207
- let n2 = e6.length === 1 ? bi : xi;
2208
- return Si(e6, this, n2, t2.cache.create(), t2.serializer);
2172
+ function mi(e6, t2) {
2173
+ let n2 = e6.length === 1 ? di : fi;
2174
+ return pi(e6, this, n2, t2.cache.create(), t2.serializer);
2209
2175
  }
2210
- function wi(e6, t2) {
2211
- return Si(e6, this, xi, t2.cache.create(), t2.serializer);
2176
+ function hi(e6, t2) {
2177
+ return pi(e6, this, fi, t2.cache.create(), t2.serializer);
2212
2178
  }
2213
- function Ti(e6, t2) {
2214
- return Si(e6, this, bi, t2.cache.create(), t2.serializer);
2179
+ function gi(e6, t2) {
2180
+ return pi(e6, this, di, t2.cache.create(), t2.serializer);
2215
2181
  }
2216
- var Ei = function() {
2182
+ var _i = function() {
2217
2183
  return JSON.stringify(arguments);
2218
2184
  };
2219
- var Di = class {
2185
+ var vi = class {
2220
2186
  constructor() {
2221
2187
  this.cache = /* @__PURE__ */ Object.create(null);
2222
2188
  }
@@ -2227,14 +2193,14 @@ var Di = class {
2227
2193
  this.cache[e6] = t2;
2228
2194
  }
2229
2195
  };
2230
- var Oi = { create: function() {
2231
- return new Di();
2196
+ var yi = { create: function() {
2197
+ return new vi();
2232
2198
  } };
2233
- var ki = { variadic: wi, monadic: Ti };
2234
- var Ai = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2235
- function ji(e6) {
2199
+ var bi = { variadic: hi, monadic: gi };
2200
+ var xi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2201
+ function Si(e6) {
2236
2202
  let t2 = {};
2237
- return e6.replace(Ai, (e7) => {
2203
+ return e6.replace(xi, (e7) => {
2238
2204
  let n2 = e7.length;
2239
2205
  switch (e7[0]) {
2240
2206
  case `G`:
@@ -2321,10 +2287,10 @@ function ji(e6) {
2321
2287
  return ``;
2322
2288
  }), t2;
2323
2289
  }
2324
- var Mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2325
- function Ni(e6) {
2290
+ var Ci = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2291
+ function wi(e6) {
2326
2292
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2327
- let t2 = e6.split(Mi).filter((e7) => e7.length > 0), n2 = [];
2293
+ let t2 = e6.split(Ci).filter((e7) => e7.length > 0), n2 = [];
2328
2294
  for (let e7 of t2) {
2329
2295
  let t3 = e7.split(`/`);
2330
2296
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2334,20 +2300,20 @@ function Ni(e6) {
2334
2300
  }
2335
2301
  return n2;
2336
2302
  }
2337
- function Pi(e6) {
2303
+ function Ti(e6) {
2338
2304
  return e6.replace(/^(.*?)-/, ``);
2339
2305
  }
2340
- var Fi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2341
- var Ii = /^(@+)?(\+|#+)?[rs]?$/g;
2342
- var Li = /(\*)(0+)|(#+)(0+)|(0+)/g;
2343
- var Ri = /^(0+)$/;
2344
- function zi(e6) {
2306
+ var Ei = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2307
+ var Di = /^(@+)?(\+|#+)?[rs]?$/g;
2308
+ var Oi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2309
+ var ki = /^(0+)$/;
2310
+ function Ai(e6) {
2345
2311
  let t2 = {};
2346
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Ii, function(e7, n2, r2) {
2312
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Di, function(e7, n2, r2) {
2347
2313
  return typeof r2 == `string` ? r2 === `+` ? t2.minimumSignificantDigits = n2.length : n2[0] === `#` ? t2.maximumSignificantDigits = n2.length : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length + (typeof r2 == `string` ? r2.length : 0)) : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length), ``;
2348
2314
  }), t2;
2349
2315
  }
2350
- function Bi(e6) {
2316
+ function ji(e6) {
2351
2317
  switch (e6) {
2352
2318
  case `sign-auto`:
2353
2319
  return { signDisplay: `auto` };
@@ -2371,19 +2337,19 @@ function Bi(e6) {
2371
2337
  return { signDisplay: `never` };
2372
2338
  }
2373
2339
  }
2374
- function Vi(e6) {
2340
+ function Mi(e6) {
2375
2341
  let t2;
2376
2342
  if (e6[0] === `E` && e6[1] === `E` ? (t2 = { notation: `engineering` }, e6 = e6.slice(2)) : e6[0] === `E` && (t2 = { notation: `scientific` }, e6 = e6.slice(1)), t2) {
2377
2343
  let n2 = e6.slice(0, 2);
2378
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Ri.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2344
+ if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !ki.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2379
2345
  t2.minimumIntegerDigits = e6.length;
2380
2346
  }
2381
2347
  return t2;
2382
2348
  }
2383
- function Hi(e6) {
2384
- return Bi(e6) || {};
2349
+ function Ni(e6) {
2350
+ return ji(e6) || {};
2385
2351
  }
2386
- function Ui(e6) {
2352
+ function Pi(e6) {
2387
2353
  let t2 = {};
2388
2354
  for (let n2 of e6) {
2389
2355
  switch (n2.stem) {
@@ -2407,7 +2373,7 @@ function Ui(e6) {
2407
2373
  continue;
2408
2374
  case `measure-unit`:
2409
2375
  case `unit`:
2410
- t2.style = `unit`, t2.unit = Pi(n2.options[0]);
2376
+ t2.style = `unit`, t2.unit = Ti(n2.options[0]);
2411
2377
  continue;
2412
2378
  case `compact-short`:
2413
2379
  case `K`:
@@ -2418,10 +2384,10 @@ function Ui(e6) {
2418
2384
  t2.notation = `compact`, t2.compactDisplay = `long`;
2419
2385
  continue;
2420
2386
  case `scientific`:
2421
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Hi(t3) }), {}) };
2387
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Ni(t3) }), {}) };
2422
2388
  continue;
2423
2389
  case `engineering`:
2424
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Hi(t3) }), {}) };
2390
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Ni(t3) }), {}) };
2425
2391
  continue;
2426
2392
  case `notation-simple`:
2427
2393
  t2.notation = `standard`;
@@ -2464,7 +2430,7 @@ function Ui(e6) {
2464
2430
  continue;
2465
2431
  case `integer-width`:
2466
2432
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2467
- n2.options[0].replace(Li, function(e8, n3, r3, i2, a2, o2) {
2433
+ n2.options[0].replace(Oi, function(e8, n3, r3, i2, a2, o2) {
2468
2434
  if (n3) t2.minimumIntegerDigits = r3.length;
2469
2435
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2470
2436
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2472,83 +2438,83 @@ function Ui(e6) {
2472
2438
  });
2473
2439
  continue;
2474
2440
  }
2475
- if (Ri.test(n2.stem)) {
2441
+ if (ki.test(n2.stem)) {
2476
2442
  t2.minimumIntegerDigits = n2.stem.length;
2477
2443
  continue;
2478
2444
  }
2479
- if (Fi.test(n2.stem)) {
2445
+ if (Ei.test(n2.stem)) {
2480
2446
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2481
- n2.stem.replace(Fi, function(e9, n3, r3, i2, a2, o2) {
2447
+ n2.stem.replace(Ei, function(e9, n3, r3, i2, a2, o2) {
2482
2448
  return r3 === `*` ? t2.minimumFractionDigits = n3.length : i2 && i2[0] === `#` ? t2.maximumFractionDigits = i2.length : a2 && o2 ? (t2.minimumFractionDigits = a2.length, t2.maximumFractionDigits = a2.length + o2.length) : (t2.minimumFractionDigits = n3.length, t2.maximumFractionDigits = n3.length), ``;
2483
2449
  });
2484
2450
  let e8 = n2.options[0];
2485
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...zi(e8) });
2451
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Ai(e8) });
2486
2452
  continue;
2487
2453
  }
2488
- if (Ii.test(n2.stem)) {
2489
- t2 = { ...t2, ...zi(n2.stem) };
2454
+ if (Di.test(n2.stem)) {
2455
+ t2 = { ...t2, ...Ai(n2.stem) };
2490
2456
  continue;
2491
2457
  }
2492
- let e7 = Bi(n2.stem);
2458
+ let e7 = ji(n2.stem);
2493
2459
  e7 && (t2 = { ...t2, ...e7 });
2494
- let r2 = Vi(n2.stem);
2460
+ let r2 = Mi(n2.stem);
2495
2461
  r2 && (t2 = { ...t2, ...r2 });
2496
2462
  }
2497
2463
  return t2;
2498
2464
  }
2499
- var Wi = function(e6) {
2465
+ var Fi = function(e6) {
2500
2466
  return e6[e6.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e6[e6.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e6[e6.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e6[e6.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e6[e6.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e6[e6.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e6[e6.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e6[e6.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e6[e6.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e6[e6.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e6[e6.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e6[e6.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e6[e6.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e6[e6.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e6[e6.INVALID_TAG = 23] = `INVALID_TAG`, e6[e6.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e6[e6.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e6[e6.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`, e6;
2501
2467
  }({});
2502
- function Gi(e6) {
2468
+ function Ii(e6) {
2503
2469
  return e6.type === 0;
2504
2470
  }
2505
- function Ki(e6) {
2471
+ function Li(e6) {
2506
2472
  return e6.type === 1;
2507
2473
  }
2508
- function qi(e6) {
2474
+ function Ri(e6) {
2509
2475
  return e6.type === 2;
2510
2476
  }
2511
- function Ji(e6) {
2477
+ function zi(e6) {
2512
2478
  return e6.type === 3;
2513
2479
  }
2514
- function Yi(e6) {
2480
+ function Bi(e6) {
2515
2481
  return e6.type === 4;
2516
2482
  }
2517
- function Xi(e6) {
2483
+ function Vi(e6) {
2518
2484
  return e6.type === 5;
2519
2485
  }
2520
- function Zi(e6) {
2486
+ function Hi(e6) {
2521
2487
  return e6.type === 6;
2522
2488
  }
2523
- function Qi(e6) {
2489
+ function Ui(e6) {
2524
2490
  return e6.type === 7;
2525
2491
  }
2526
- function $i(e6) {
2492
+ function Wi(e6) {
2527
2493
  return e6.type === 8;
2528
2494
  }
2529
- function ea(e6) {
2495
+ function Gi(e6) {
2530
2496
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2531
2497
  }
2532
- function ta(e6) {
2498
+ function Ki(e6) {
2533
2499
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2534
2500
  }
2535
- var na = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2536
- var W = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2537
- function ra(e6, t2) {
2501
+ var qi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2502
+ var G = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2503
+ function Ji(e6, t2) {
2538
2504
  let n2 = ``;
2539
2505
  for (let r2 = 0; r2 < e6.length; r2++) {
2540
2506
  let i2 = e6.charAt(r2);
2541
2507
  if (i2 === `j`) {
2542
2508
  let a2 = 0;
2543
2509
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2544
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ia(t2);
2510
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = Yi(t2);
2545
2511
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2546
2512
  for (; o2-- > 0; ) n2 = c2 + n2;
2547
2513
  } else n2 += i2 === `J` ? `H` : i2;
2548
2514
  }
2549
2515
  return n2;
2550
2516
  }
2551
- function ia(e6) {
2517
+ function Yi(e6) {
2552
2518
  let t2 = e6.hourCycle;
2553
2519
  if (t2 === void 0) {
2554
2520
  let n3 = e6;
@@ -2567,36 +2533,36 @@ function ia(e6) {
2567
2533
  throw Error(`Invalid hourCycle`);
2568
2534
  }
2569
2535
  let n2 = e6.language, r2;
2570
- return n2 !== `root` && (r2 = e6.maximize().region), (W[`${n2}-${r2}`] || W[r2 || ``] || W[n2 || ``] || W[`${n2}-001`] || W[`001`])[0].charAt(0);
2536
+ return n2 !== `root` && (r2 = e6.maximize().region), (G[`${n2}-${r2}`] || G[r2 || ``] || G[n2 || ``] || G[`${n2}-001`] || G[`001`])[0].charAt(0);
2571
2537
  }
2572
- var aa = RegExp(`^${na.source}*`);
2573
- var oa = RegExp(`${na.source}*$`);
2574
- function G(e6, t2) {
2538
+ var Xi = RegExp(`^${qi.source}*`);
2539
+ var Zi = RegExp(`${qi.source}*$`);
2540
+ function K(e6, t2) {
2575
2541
  return { start: e6, end: t2 };
2576
2542
  }
2577
- var sa = !!Object.fromEntries;
2578
- var ca = !!String.prototype.trimStart;
2579
- var la = !!String.prototype.trimEnd;
2580
- var ua = sa ? Object.fromEntries : function(e6) {
2543
+ var Qi = !!Object.fromEntries;
2544
+ var $i = !!String.prototype.trimStart;
2545
+ var ea = !!String.prototype.trimEnd;
2546
+ var ta = Qi ? Object.fromEntries : function(e6) {
2581
2547
  let t2 = {};
2582
2548
  for (let [n2, r2] of e6) t2[n2] = r2;
2583
2549
  return t2;
2584
2550
  };
2585
- var da = ca ? function(e6) {
2551
+ var na = $i ? function(e6) {
2586
2552
  return e6.trimStart();
2587
2553
  } : function(e6) {
2588
- return e6.replace(aa, ``);
2554
+ return e6.replace(Xi, ``);
2589
2555
  };
2590
- var fa = la ? function(e6) {
2556
+ var ra = ea ? function(e6) {
2591
2557
  return e6.trimEnd();
2592
2558
  } : function(e6) {
2593
- return e6.replace(oa, ``);
2559
+ return e6.replace(Zi, ``);
2594
2560
  };
2595
- var pa = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2596
- function ma(e6, t2) {
2597
- return pa.lastIndex = t2, pa.exec(e6)[1] ?? ``;
2561
+ var ia = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2562
+ function aa(e6, t2) {
2563
+ return ia.lastIndex = t2, ia.exec(e6)[1] ?? ``;
2598
2564
  }
2599
- function ha(e6) {
2565
+ function oa(e6) {
2600
2566
  if (e6.length === 0) return null;
2601
2567
  let t2 = 1, n2 = 1;
2602
2568
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2617,7 +2583,7 @@ function ha(e6) {
2617
2583
  }
2618
2584
  return { offset: e6.length, line: t2, column: n2 };
2619
2585
  }
2620
- var ga = class {
2586
+ var sa = class {
2621
2587
  constructor(e6, t2 = {}) {
2622
2588
  this.message = e6, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!t2.ignoreTag, this.locale = t2.locale, this.requiresOtherClause = !!t2.requiresOtherClause, this.shouldParseSkeletons = !!t2.shouldParseSkeletons;
2623
2589
  }
@@ -2626,10 +2592,10 @@ var ga = class {
2626
2592
  if (this.message.length > 0) {
2627
2593
  let e6 = this.message.charCodeAt(0);
2628
2594
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2629
- let e7 = ha(this.message);
2595
+ let e7 = oa(this.message);
2630
2596
  if (e7) {
2631
2597
  let t2 = this.clonePosition();
2632
- return this.position = e7, { val: [{ type: 0, value: this.message, location: G(t2, this.clonePosition()) }], err: null };
2598
+ return this.position = e7, { val: [{ type: 0, value: this.message, location: K(t2, this.clonePosition()) }], err: null };
2633
2599
  }
2634
2600
  }
2635
2601
  }
@@ -2646,11 +2612,11 @@ var ga = class {
2646
2612
  } else if (i2 === 125 && e6 > 0) break;
2647
2613
  else if (i2 === 35 && (t2 === `plural` || t2 === `selectordinal`)) {
2648
2614
  let e7 = this.clonePosition();
2649
- this.bump(), r2.push({ type: 7, location: G(e7, this.clonePosition()) });
2615
+ this.bump(), r2.push({ type: 7, location: K(e7, this.clonePosition()) });
2650
2616
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2651
2617
  if (n2) break;
2652
- return this.error(26, G(this.clonePosition(), this.clonePosition()));
2653
- } else if (i2 === 60 && !this.ignoreTag && _a(this.peek() || 0)) {
2618
+ return this.error(26, K(this.clonePosition(), this.clonePosition()));
2619
+ } else if (i2 === 60 && !this.ignoreTag && ca(this.peek() || 0)) {
2654
2620
  let n3 = this.parseTag(e6, t2);
2655
2621
  if (n3.err) return n3;
2656
2622
  r2.push(n3.val);
@@ -2666,23 +2632,23 @@ var ga = class {
2666
2632
  let n2 = this.clonePosition();
2667
2633
  this.bump();
2668
2634
  let r2 = this.parseTagName();
2669
- if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: G(n2, this.clonePosition()) }, err: null };
2635
+ if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: K(n2, this.clonePosition()) }, err: null };
2670
2636
  if (this.bumpIf(`>`)) {
2671
2637
  let i2 = this.parseMessage(e6 + 1, t2, true);
2672
2638
  if (i2.err) return i2;
2673
2639
  let a2 = i2.val, o2 = this.clonePosition();
2674
2640
  if (this.bumpIf(`</`)) {
2675
- if (this.isEOF() || !_a(this.char())) return this.error(23, G(o2, this.clonePosition()));
2641
+ if (this.isEOF() || !ca(this.char())) return this.error(23, K(o2, this.clonePosition()));
2676
2642
  let e7 = this.clonePosition();
2677
- return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: G(n2, this.clonePosition()) }, err: null } : this.error(23, G(o2, this.clonePosition()))) : this.error(26, G(e7, this.clonePosition()));
2643
+ return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: K(n2, this.clonePosition()) }, err: null } : this.error(23, K(o2, this.clonePosition()))) : this.error(26, K(e7, this.clonePosition()));
2678
2644
  }
2679
- return this.error(27, G(n2, this.clonePosition()));
2645
+ return this.error(27, K(n2, this.clonePosition()));
2680
2646
  }
2681
- return this.error(23, G(n2, this.clonePosition()));
2647
+ return this.error(23, K(n2, this.clonePosition()));
2682
2648
  }
2683
2649
  parseTagName() {
2684
2650
  let e6 = this.offset();
2685
- for (this.bump(); !this.isEOF() && ya(this.char()); ) this.bump();
2651
+ for (this.bump(); !this.isEOF() && ua(this.char()); ) this.bump();
2686
2652
  return this.message.slice(e6, this.offset());
2687
2653
  }
2688
2654
  parseLiteral(e6, t2) {
@@ -2702,11 +2668,11 @@ var ga = class {
2702
2668
  if (a2) r2 += a2;
2703
2669
  else break;
2704
2670
  }
2705
- let i2 = G(n2, this.clonePosition());
2671
+ let i2 = K(n2, this.clonePosition());
2706
2672
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2707
2673
  }
2708
2674
  tryParseLeftAngleBracket() {
2709
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !va(this.peek() || 0)) ? (this.bump(), `<`) : null;
2675
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !la(this.peek() || 0)) ? (this.bump(), `<`) : null;
2710
2676
  }
2711
2677
  tryParseQuote(e6) {
2712
2678
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2746,29 +2712,29 @@ var ga = class {
2746
2712
  }
2747
2713
  parseArgument(e6, t2) {
2748
2714
  let n2 = this.clonePosition();
2749
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, G(n2, this.clonePosition()));
2750
- if (this.char() === 125) return this.bump(), this.error(2, G(n2, this.clonePosition()));
2715
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, K(n2, this.clonePosition()));
2716
+ if (this.char() === 125) return this.bump(), this.error(2, K(n2, this.clonePosition()));
2751
2717
  let r2 = this.parseIdentifierIfPossible().value;
2752
- if (!r2) return this.error(3, G(n2, this.clonePosition()));
2753
- if (this.bumpSpace(), this.isEOF()) return this.error(1, G(n2, this.clonePosition()));
2718
+ if (!r2) return this.error(3, K(n2, this.clonePosition()));
2719
+ if (this.bumpSpace(), this.isEOF()) return this.error(1, K(n2, this.clonePosition()));
2754
2720
  switch (this.char()) {
2755
2721
  case 125:
2756
- return this.bump(), { val: { type: 1, value: r2, location: G(n2, this.clonePosition()) }, err: null };
2722
+ return this.bump(), { val: { type: 1, value: r2, location: K(n2, this.clonePosition()) }, err: null };
2757
2723
  case 44:
2758
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, G(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2724
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, K(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2759
2725
  default:
2760
- return this.error(3, G(n2, this.clonePosition()));
2726
+ return this.error(3, K(n2, this.clonePosition()));
2761
2727
  }
2762
2728
  }
2763
2729
  parseIdentifierIfPossible() {
2764
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = ma(this.message, t2), r2 = t2 + n2.length;
2765
- return this.bumpTo(r2), { value: n2, location: G(e6, this.clonePosition()) };
2730
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = aa(this.message, t2), r2 = t2 + n2.length;
2731
+ return this.bumpTo(r2), { value: n2, location: K(e6, this.clonePosition()) };
2766
2732
  }
2767
2733
  parseArgumentOptions(e6, t2, n2, r2) {
2768
2734
  let i2 = this.clonePosition(), a2 = this.parseIdentifierIfPossible().value, o2 = this.clonePosition();
2769
2735
  switch (a2) {
2770
2736
  case ``:
2771
- return this.error(4, G(i2, o2));
2737
+ return this.error(4, K(i2, o2));
2772
2738
  case `number`:
2773
2739
  case `date`:
2774
2740
  case `time`: {
@@ -2778,15 +2744,15 @@ var ga = class {
2778
2744
  this.bumpSpace();
2779
2745
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2780
2746
  if (n3.err) return n3;
2781
- let r3 = fa(n3.val);
2782
- if (r3.length === 0) return this.error(6, G(this.clonePosition(), this.clonePosition()));
2783
- e7 = { style: r3, styleLocation: G(t4, this.clonePosition()) };
2747
+ let r3 = ra(n3.val);
2748
+ if (r3.length === 0) return this.error(6, K(this.clonePosition(), this.clonePosition()));
2749
+ e7 = { style: r3, styleLocation: K(t4, this.clonePosition()) };
2784
2750
  }
2785
2751
  let t3 = this.tryParseArgumentClose(r2);
2786
2752
  if (t3.err) return t3;
2787
- let i3 = G(r2, this.clonePosition());
2753
+ let i3 = K(r2, this.clonePosition());
2788
2754
  if (e7 && e7.style.startsWith(`::`)) {
2789
- let t4 = da(e7.style.slice(2));
2755
+ let t4 = na(e7.style.slice(2));
2790
2756
  if (a2 === `number`) {
2791
2757
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
2792
2758
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -2794,8 +2760,8 @@ var ga = class {
2794
2760
  {
2795
2761
  if (t4.length === 0) return this.error(10, i3);
2796
2762
  let r3 = t4;
2797
- this.locale && (r3 = ra(t4, this.locale));
2798
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? ji(r3) : {} };
2763
+ this.locale && (r3 = Ji(t4, this.locale));
2764
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Si(r3) : {} };
2799
2765
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
2800
2766
  }
2801
2767
  }
@@ -2805,11 +2771,11 @@ var ga = class {
2805
2771
  case `selectordinal`:
2806
2772
  case `select`: {
2807
2773
  let i3 = this.clonePosition();
2808
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, G(i3, { ...i3 }));
2774
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, K(i3, { ...i3 }));
2809
2775
  this.bumpSpace();
2810
2776
  let o3 = this.parseIdentifierIfPossible(), s2 = 0;
2811
2777
  if (a2 !== `select` && o3.value === `offset`) {
2812
- if (!this.bumpIf(`:`)) return this.error(13, G(this.clonePosition(), this.clonePosition()));
2778
+ if (!this.bumpIf(`:`)) return this.error(13, K(this.clonePosition(), this.clonePosition()));
2813
2779
  this.bumpSpace();
2814
2780
  let e7 = this.tryParseDecimalInteger(13, 14);
2815
2781
  if (e7.err) return e7;
@@ -2819,15 +2785,15 @@ var ga = class {
2819
2785
  if (c2.err) return c2;
2820
2786
  let l2 = this.tryParseArgumentClose(r2);
2821
2787
  if (l2.err) return l2;
2822
- let u2 = G(r2, this.clonePosition());
2823
- return a2 === `select` ? { val: { type: 5, value: n2, options: ua(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: ua(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2788
+ let u2 = K(r2, this.clonePosition());
2789
+ return a2 === `select` ? { val: { type: 5, value: n2, options: ta(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: ta(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2824
2790
  }
2825
2791
  default:
2826
- return this.error(5, G(i2, o2));
2792
+ return this.error(5, K(i2, o2));
2827
2793
  }
2828
2794
  }
2829
2795
  tryParseArgumentClose(e6) {
2830
- return this.isEOF() || this.char() !== 125 ? this.error(1, G(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2796
+ return this.isEOF() || this.char() !== 125 ? this.error(1, K(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2831
2797
  }
2832
2798
  parseSimpleArgStyleIfPossible() {
2833
2799
  let e6 = 0, t2 = this.clonePosition();
@@ -2835,7 +2801,7 @@ var ga = class {
2835
2801
  case 39: {
2836
2802
  this.bump();
2837
2803
  let e7 = this.clonePosition();
2838
- if (!this.bumpUntil(`'`)) return this.error(11, G(e7, this.clonePosition()));
2804
+ if (!this.bumpUntil(`'`)) return this.error(11, K(e7, this.clonePosition()));
2839
2805
  this.bump();
2840
2806
  break;
2841
2807
  }
@@ -2854,11 +2820,11 @@ var ga = class {
2854
2820
  parseNumberSkeletonFromString(e6, t2) {
2855
2821
  let n2 = [];
2856
2822
  try {
2857
- n2 = Ni(e6);
2823
+ n2 = wi(e6);
2858
2824
  } catch {
2859
2825
  return this.error(7, t2);
2860
2826
  }
2861
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Ui(n2) : {} }, err: null };
2827
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Pi(n2) : {} }, err: null };
2862
2828
  }
2863
2829
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
2864
2830
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -2868,20 +2834,20 @@ var ga = class {
2868
2834
  if (t2 !== `select` && this.bumpIf(`=`)) {
2869
2835
  let t3 = this.tryParseDecimalInteger(16, 19);
2870
2836
  if (t3.err) return t3;
2871
- c2 = G(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
2837
+ c2 = K(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
2872
2838
  } else break;
2873
2839
  }
2874
2840
  if (o2.has(s2)) return this.error(t2 === `select` ? 21 : 20, c2);
2875
2841
  s2 === `other` && (i2 = true), this.bumpSpace();
2876
2842
  let r3 = this.clonePosition();
2877
- if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, G(this.clonePosition(), this.clonePosition()));
2843
+ if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, K(this.clonePosition(), this.clonePosition()));
2878
2844
  let l2 = this.parseMessage(e6 + 1, t2, n2);
2879
2845
  if (l2.err) return l2;
2880
2846
  let u2 = this.tryParseArgumentClose(r3);
2881
2847
  if (u2.err) return u2;
2882
- a2.push([s2, { value: l2.val, location: G(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
2848
+ a2.push([s2, { value: l2.val, location: K(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
2883
2849
  }
2884
- return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, G(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, G(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
2850
+ return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, K(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, K(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
2885
2851
  }
2886
2852
  tryParseDecimalInteger(e6, t2) {
2887
2853
  let n2 = 1, r2 = this.clonePosition();
@@ -2892,7 +2858,7 @@ var ga = class {
2892
2858
  if (e7 >= 48 && e7 <= 57) i2 = true, a2 = a2 * 10 + (e7 - 48), this.bump();
2893
2859
  else break;
2894
2860
  }
2895
- let o2 = G(r2, this.clonePosition());
2861
+ let o2 = K(r2, this.clonePosition());
2896
2862
  return i2 ? (a2 *= n2, Number.isSafeInteger(a2) ? { val: a2, err: null } : this.error(t2, o2)) : this.error(e6, o2);
2897
2863
  }
2898
2864
  offset() {
@@ -2940,7 +2906,7 @@ var ga = class {
2940
2906
  }
2941
2907
  }
2942
2908
  bumpSpace() {
2943
- for (; !this.isEOF() && ba(this.char()); ) this.bump();
2909
+ for (; !this.isEOF() && da(this.char()); ) this.bump();
2944
2910
  }
2945
2911
  peek() {
2946
2912
  if (this.isEOF()) return null;
@@ -2948,34 +2914,34 @@ var ga = class {
2948
2914
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
2949
2915
  }
2950
2916
  };
2951
- function _a(e6) {
2917
+ function ca(e6) {
2952
2918
  return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
2953
2919
  }
2954
- function va(e6) {
2955
- return _a(e6) || e6 === 47;
2920
+ function la(e6) {
2921
+ return ca(e6) || e6 === 47;
2956
2922
  }
2957
- function ya(e6) {
2923
+ function ua(e6) {
2958
2924
  return e6 === 45 || e6 === 46 || e6 >= 48 && e6 <= 57 || e6 === 95 || e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90 || e6 == 183 || e6 >= 192 && e6 <= 214 || e6 >= 216 && e6 <= 246 || e6 >= 248 && e6 <= 893 || e6 >= 895 && e6 <= 8191 || e6 >= 8204 && e6 <= 8205 || e6 >= 8255 && e6 <= 8256 || e6 >= 8304 && e6 <= 8591 || e6 >= 11264 && e6 <= 12271 || e6 >= 12289 && e6 <= 55295 || e6 >= 63744 && e6 <= 64975 || e6 >= 65008 && e6 <= 65533 || e6 >= 65536 && e6 <= 983039;
2959
2925
  }
2960
- function ba(e6) {
2926
+ function da(e6) {
2961
2927
  return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
2962
2928
  }
2963
- function xa(e6) {
2929
+ function fa(e6) {
2964
2930
  e6.forEach((e7) => {
2965
- if (delete e7.location, Xi(e7) || Zi(e7)) for (let t2 in e7.options) delete e7.options[t2].location, xa(e7.options[t2].value);
2966
- else qi(e7) && ea(e7.style) || (Ji(e7) || Yi(e7)) && ta(e7.style) ? delete e7.style.location : $i(e7) && xa(e7.children);
2931
+ if (delete e7.location, Vi(e7) || Hi(e7)) for (let t2 in e7.options) delete e7.options[t2].location, fa(e7.options[t2].value);
2932
+ else Ri(e7) && Gi(e7.style) || (zi(e7) || Bi(e7)) && Ki(e7.style) ? delete e7.style.location : Wi(e7) && fa(e7.children);
2967
2933
  });
2968
2934
  }
2969
- function Sa(e6, t2 = {}) {
2935
+ function pa(e6, t2 = {}) {
2970
2936
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
2971
- let n2 = new ga(e6, t2).parse();
2937
+ let n2 = new sa(e6, t2).parse();
2972
2938
  if (n2.err) {
2973
- let e7 = SyntaxError(Wi[n2.err.kind]);
2939
+ let e7 = SyntaxError(Fi[n2.err.kind]);
2974
2940
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
2975
2941
  }
2976
- return t2?.captureLocation || xa(n2.val), n2.val;
2942
+ return t2?.captureLocation || fa(n2.val), n2.val;
2977
2943
  }
2978
- var Ca = class extends Error {
2944
+ var ma = class extends Error {
2979
2945
  constructor(e6, t2, n2) {
2980
2946
  super(e6), this.code = t2, this.originalMessage = n2;
2981
2947
  }
@@ -2983,54 +2949,54 @@ var Ca = class extends Error {
2983
2949
  return `[formatjs Error: ${this.code}] ${this.message}`;
2984
2950
  }
2985
2951
  };
2986
- var wa = class extends Ca {
2952
+ var ha = class extends ma {
2987
2953
  constructor(e6, t2, n2, r2) {
2988
2954
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
2989
2955
  }
2990
2956
  };
2991
- var Ta = class extends Ca {
2957
+ var ga = class extends ma {
2992
2958
  constructor(e6, t2, n2) {
2993
2959
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
2994
2960
  }
2995
2961
  };
2996
- var Ea = class extends Ca {
2962
+ var _a = class extends ma {
2997
2963
  constructor(e6, t2) {
2998
2964
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
2999
2965
  }
3000
2966
  };
3001
- function Da(e6) {
2967
+ function va(e6) {
3002
2968
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3003
2969
  let n2 = e7[e7.length - 1];
3004
2970
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3005
2971
  }, []);
3006
2972
  }
3007
- function Oa(e6) {
2973
+ function ya(e6) {
3008
2974
  return typeof e6 == `function`;
3009
2975
  }
3010
- function ka(e6, t2, n2, r2, i2, a2, o2) {
3011
- if (e6.length === 1 && Gi(e6[0])) return [{ type: 0, value: e6[0].value }];
2976
+ function ba(e6, t2, n2, r2, i2, a2, o2) {
2977
+ if (e6.length === 1 && Ii(e6[0])) return [{ type: 0, value: e6[0].value }];
3012
2978
  let s2 = [];
3013
2979
  for (let c2 of e6) {
3014
- if (Gi(c2)) {
2980
+ if (Ii(c2)) {
3015
2981
  s2.push({ type: 0, value: c2.value });
3016
2982
  continue;
3017
2983
  }
3018
- if (Qi(c2)) {
2984
+ if (Ui(c2)) {
3019
2985
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3020
2986
  continue;
3021
2987
  }
3022
2988
  let { value: e7 } = c2;
3023
- if (!(i2 && e7 in i2)) throw new Ea(e7, o2);
2989
+ if (!(i2 && e7 in i2)) throw new _a(e7, o2);
3024
2990
  let l2 = i2[e7];
3025
- if (Ki(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3026
- else if (Ji(c2)) {
3027
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ta(c2.style) ? c2.style.parsedOptions : void 0;
2991
+ if (Li(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
2992
+ else if (zi(c2)) {
2993
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : Ki(c2.style) ? c2.style.parsedOptions : void 0;
3028
2994
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3029
- } else if (Yi(c2)) {
3030
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ta(c2.style) ? c2.style.parsedOptions : r2.time.medium;
2995
+ } else if (Bi(c2)) {
2996
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : Ki(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3031
2997
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3032
- } else if (qi(c2)) {
3033
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ea(c2.style) ? c2.style.parsedOptions : void 0;
2998
+ } else if (Ri(c2)) {
2999
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : Gi(c2.style) ? c2.style.parsedOptions : void 0;
3034
3000
  if (e8 && e8.scale) {
3035
3001
  let t3 = e8.scale || 1;
3036
3002
  if (typeof l2 == `bigint`) {
@@ -3040,40 +3006,40 @@ function ka(e6, t2, n2, r2, i2, a2, o2) {
3040
3006
  }
3041
3007
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3042
3008
  } else {
3043
- if ($i(c2)) {
3009
+ if (Wi(c2)) {
3044
3010
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3045
- if (!Oa(u2)) throw new Ta(l3, `function`, o2);
3046
- let d2 = u2(ka(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3011
+ if (!ya(u2)) throw new ga(l3, `function`, o2);
3012
+ let d2 = u2(ba(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3047
3013
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3048
3014
  }
3049
- if (Xi(c2)) {
3015
+ if (Vi(c2)) {
3050
3016
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3051
- if (!a3) throw new wa(c2.value, l2, Object.keys(c2.options), o2);
3052
- s2.push(...ka(a3.value, t2, n2, r2, i2));
3053
- } else if (Zi(c2)) {
3017
+ if (!a3) throw new ha(c2.value, l2, Object.keys(c2.options), o2);
3018
+ s2.push(...ba(a3.value, t2, n2, r2, i2));
3019
+ } else if (Hi(c2)) {
3054
3020
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3055
3021
  if (!a3) {
3056
- if (!Intl.PluralRules) throw new Ca(`Intl.PluralRules is not available in this environment.
3022
+ if (!Intl.PluralRules) throw new ma(`Intl.PluralRules is not available in this environment.
3057
3023
  Try polyfilling it using "@formatjs/intl-pluralrules"
3058
3024
  `, `MISSING_INTL_API`, o2);
3059
3025
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3060
3026
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3061
3027
  }
3062
- if (!a3) throw new wa(c2.value, l2, Object.keys(c2.options), o2);
3028
+ if (!a3) throw new ha(c2.value, l2, Object.keys(c2.options), o2);
3063
3029
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3064
- s2.push(...ka(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3030
+ s2.push(...ba(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3065
3031
  }
3066
3032
  }
3067
3033
  }
3068
- return Da(s2);
3034
+ return va(s2);
3069
3035
  }
3070
- function Aa(e6, t2) {
3036
+ function xa(e6, t2) {
3071
3037
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3072
3038
  }
3073
- function ja(e6, t2) {
3074
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Aa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3039
+ function Sa(e6, t2) {
3040
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = xa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3075
3041
  }
3076
- function Ma(e6) {
3042
+ function Ca(e6) {
3077
3043
  return { create() {
3078
3044
  return { get(t2) {
3079
3045
  return e6[t2];
@@ -3082,23 +3048,23 @@ function Ma(e6) {
3082
3048
  } };
3083
3049
  } };
3084
3050
  }
3085
- function Na(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3086
- return { getNumberFormat: vi((...e7) => new Intl.NumberFormat(...e7), { cache: Ma(e6.number), strategy: ki.variadic }), getDateTimeFormat: vi((...e7) => new Intl.DateTimeFormat(...e7), { cache: Ma(e6.dateTime), strategy: ki.variadic }), getPluralRules: vi((...e7) => new Intl.PluralRules(...e7), { cache: Ma(e6.pluralRules), strategy: ki.variadic }) };
3051
+ function wa(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3052
+ return { getNumberFormat: li((...e7) => new Intl.NumberFormat(...e7), { cache: Ca(e6.number), strategy: bi.variadic }), getDateTimeFormat: li((...e7) => new Intl.DateTimeFormat(...e7), { cache: Ca(e6.dateTime), strategy: bi.variadic }), getPluralRules: li((...e7) => new Intl.PluralRules(...e7), { cache: Ca(e6.pluralRules), strategy: bi.variadic }) };
3087
3053
  }
3088
- var Pa = class e5 {
3054
+ var Ta = class e5 {
3089
3055
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3090
3056
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3091
3057
  let t3 = this.formatToParts(e6);
3092
3058
  if (t3.length === 1) return t3[0].value;
3093
3059
  let n3 = t3.reduce((e7, t4) => (!e7.length || t4.type !== 0 || typeof e7[e7.length - 1] != `string` ? e7.push(t4.value) : e7[e7.length - 1] += t4.value, e7), []);
3094
3060
  return n3.length <= 1 ? n3[0] || `` : n3;
3095
- }, this.formatToParts = (e6) => ka(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3061
+ }, this.formatToParts = (e6) => ba(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3096
3062
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3097
3063
  let { ...n3 } = i2 || {};
3098
3064
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3099
3065
  } else this.ast = t2;
3100
3066
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3101
- this.formats = ja(e5.formats, r2), this.formatters = i2 && i2.formatters || Na(this.formatterCache);
3067
+ this.formats = Sa(e5.formats, r2), this.formatters = i2 && i2.formatters || wa(this.formatterCache);
3102
3068
  }
3103
3069
  static {
3104
3070
  this.memoizedDefaultLocale = null;
@@ -3114,32 +3080,66 @@ var Pa = class e5 {
3114
3080
  };
3115
3081
  }
3116
3082
  static {
3117
- this.__parse = Sa;
3083
+ this.__parse = pa;
3118
3084
  }
3119
3085
  static {
3120
3086
  this.formats = { number: { integer: { maximumFractionDigits: 0 }, currency: { style: `currency` }, percent: { style: `percent` } }, date: { short: { month: `numeric`, day: `numeric`, year: `2-digit` }, medium: { month: `short`, day: `numeric`, year: `numeric` }, long: { month: `long`, day: `numeric`, year: `numeric` }, full: { weekday: `long`, month: `long`, day: `numeric`, year: `numeric` } }, time: { short: { hour: `numeric`, minute: `numeric` }, medium: { hour: `numeric`, minute: `numeric`, second: `numeric` }, long: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` }, full: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` } } };
3121
3087
  }
3122
3088
  };
3123
- function Fa(e6, t2) {
3124
- return Ba(e6) || za(e6, t2) || La(e6, t2) || Ia();
3089
+ var Ea = [`__proto__`, `constructor`, `prototype`];
3090
+ function Da(e6, t2, n2) {
3091
+ function r2(e7) {
3092
+ return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
3093
+ }
3094
+ function i2() {
3095
+ return !e6 || typeof e6 == `string`;
3096
+ }
3097
+ for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
3098
+ if (i2()) return {};
3099
+ var o2 = r2(a2.shift());
3100
+ if (Ea.indexOf(o2) > -1) return {};
3101
+ !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
3102
+ }
3103
+ if (i2()) return {};
3104
+ var s2 = r2(a2.shift());
3105
+ return Ea.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3106
+ }
3107
+ function Oa(e6, t2, n2) {
3108
+ var r2 = Da(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3109
+ i2 !== void 0 && (i2[a2] = n2);
3110
+ }
3111
+ function ka(e6, t2) {
3112
+ var n2 = Da(e6, t2), r2 = n2.obj, i2 = n2.k;
3113
+ if (r2) return r2[i2];
3125
3114
  }
3126
- function Ia() {
3115
+ function Aa(e6) {
3116
+ return [...arguments].slice(1).forEach(function(t2) {
3117
+ if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
3118
+ var i2 = r2[n2];
3119
+ Ea.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3120
+ }
3121
+ }), e6;
3122
+ }
3123
+ function ja(e6, t2) {
3124
+ return Ia(e6) || Fa(e6, t2) || Na(e6, t2) || Ma();
3125
+ }
3126
+ function Ma() {
3127
3127
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3128
3128
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3129
3129
  }
3130
- function La(e6, t2) {
3130
+ function Na(e6, t2) {
3131
3131
  if (e6) {
3132
- if (typeof e6 == `string`) return Ra(e6, t2);
3132
+ if (typeof e6 == `string`) return Pa(e6, t2);
3133
3133
  var n2 = {}.toString.call(e6).slice(8, -1);
3134
- return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? Ra(e6, t2) : void 0;
3134
+ return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? Pa(e6, t2) : void 0;
3135
3135
  }
3136
3136
  }
3137
- function Ra(e6, t2) {
3137
+ function Pa(e6, t2) {
3138
3138
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3139
3139
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3140
3140
  return r2;
3141
3141
  }
3142
- function za(e6, t2) {
3142
+ function Fa(e6, t2) {
3143
3143
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3144
3144
  if (n2 != null) {
3145
3145
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3160,18 +3160,10 @@ function za(e6, t2) {
3160
3160
  return s2;
3161
3161
  }
3162
3162
  }
3163
- function Ba(e6) {
3163
+ function Ia(e6) {
3164
3164
  if (Array.isArray(e6)) return e6;
3165
3165
  }
3166
- function K(e6) {
3167
- "@babel/helpers - typeof";
3168
- return K = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3169
- return typeof e7;
3170
- } : function(e7) {
3171
- return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3172
- }, K(e6);
3173
- }
3174
- function Va(e6, t2) {
3166
+ function La(e6, t2) {
3175
3167
  var n2 = Object.keys(e6);
3176
3168
  if (Object.getOwnPropertySymbols) {
3177
3169
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3181,105 +3173,141 @@ function Va(e6, t2) {
3181
3173
  }
3182
3174
  return n2;
3183
3175
  }
3184
- function Ha(e6) {
3176
+ function Ra(e6) {
3185
3177
  for (var t2 = 1; t2 < arguments.length; t2++) {
3186
3178
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3187
- t2 % 2 ? Va(Object(n2), true).forEach(function(t3) {
3188
- Ua(e6, t3, n2[t3]);
3189
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : Va(Object(n2)).forEach(function(t3) {
3179
+ t2 % 2 ? La(Object(n2), true).forEach(function(t3) {
3180
+ za(e6, t3, n2[t3]);
3181
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : La(Object(n2)).forEach(function(t3) {
3190
3182
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3191
3183
  });
3192
3184
  }
3193
3185
  return e6;
3194
3186
  }
3195
- function Ua(e6, t2, n2) {
3196
- return (t2 = qa(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3187
+ function za(e6, t2, n2) {
3188
+ return (t2 = Ua(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3197
3189
  }
3198
- function Wa(e6, t2) {
3190
+ function Ba(e6, t2) {
3199
3191
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3200
3192
  }
3201
- function Ga(e6, t2) {
3193
+ function Va(e6, t2) {
3202
3194
  for (var n2 = 0; n2 < t2.length; n2++) {
3203
3195
  var r2 = t2[n2];
3204
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, qa(r2.key), r2);
3196
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, Ua(r2.key), r2);
3205
3197
  }
3206
3198
  }
3207
- function Ka(e6, t2, n2) {
3208
- return t2 && Ga(e6.prototype, t2), n2 && Ga(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3199
+ function Ha(e6, t2, n2) {
3200
+ return t2 && Va(e6.prototype, t2), n2 && Va(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3209
3201
  }
3210
- function qa(e6) {
3211
- var t2 = Ja(e6, `string`);
3212
- return K(t2) == `symbol` ? t2 : t2 + ``;
3202
+ function Ua(e6) {
3203
+ var t2 = Wa(e6, `string`);
3204
+ return q(t2) == `symbol` ? t2 : t2 + ``;
3213
3205
  }
3214
- function Ja(e6, t2) {
3215
- if (K(e6) != `object` || !e6) return e6;
3206
+ function Wa(e6, t2) {
3207
+ if (q(e6) != `object` || !e6) return e6;
3216
3208
  var n2 = e6[Symbol.toPrimitive];
3217
3209
  if (n2 !== void 0) {
3218
3210
  var r2 = n2.call(e6, t2 || `default`);
3219
- if (K(r2) != `object`) return r2;
3211
+ if (q(r2) != `object`) return r2;
3220
3212
  throw TypeError(`@@toPrimitive must return a primitive value.`);
3221
3213
  }
3222
3214
  return (t2 === `string` ? String : Number)(e6);
3223
3215
  }
3224
- function Ya() {
3216
+ function q(e6) {
3217
+ "@babel/helpers - typeof";
3218
+ return q = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3219
+ return typeof e7;
3220
+ } : function(e7) {
3221
+ return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3222
+ }, q(e6);
3223
+ }
3224
+ var Ga = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3225
+ var Ka = [`zero`, `one`, `two`, `few`, `many`, `other`];
3226
+ function qa() {
3225
3227
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3226
3228
  return n2;
3227
3229
  }, parseLngForICU: function(e6) {
3228
3230
  return e6;
3229
3231
  }, escapeVariables: false };
3230
3232
  }
3231
- var Xa = function() {
3233
+ function Ja(e6, t2, n2, r2) {
3234
+ return n2 && t2 && q(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
3235
+ }
3236
+ var Ya = function() {
3232
3237
  function e6(t2) {
3233
- Wa(this, e6), this.type = `i18nFormat`, this.mem = {}, this.init(null, t2);
3238
+ Ba(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3234
3239
  }
3235
- return Ka(e6, [{ key: `init`, value: function(e7, t2) {
3240
+ return Ha(e6, [{ key: `init`, value: function(e7, t2) {
3236
3241
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3237
- if (this.options = _i(r2, t2, this.options || {}, Ya()), this.formats = this.options.formats, e7) {
3242
+ if (this.options = Aa(r2, t2, this.options || {}, qa()), this.formats = this.options.formats, e7) {
3238
3243
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3239
- e7.IntlMessageFormat = Pa, e7.ICU = this, s2 && (a2 && e7.on(a2, function() {
3244
+ e7.IntlMessageFormat = Ta, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
3240
3245
  return n2.clearCache();
3241
3246
  }), o2 && e7.store.on(o2, function() {
3242
3247
  return n2.clearCache();
3243
3248
  }));
3244
3249
  }
3245
3250
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3246
- this.formats = this.formats ? Ha(Ha({}, this.formats), e7) : e7;
3251
+ this.formats = this.formats ? Ra(Ra({}, this.formats), e7) : e7, this.clearCache();
3247
3252
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3248
- var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && `${n2}.${r2}.${i2.replace(/\./g, `###`)}`, c2;
3249
- this.options.memoize && (c2 = pi(this.mem, s2));
3253
+ var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
3254
+ if (this.options.memoize) {
3255
+ var l2 = ka(this.mem, s2);
3256
+ l2 && l2.res === e7 && (c2 = l2.fc);
3257
+ }
3250
3258
  try {
3251
- return c2 || (c2 = new Pa(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && fi(this.mem, s2, c2)), c2.format(this.escapeVariableValues(t2));
3252
- } catch (n3) {
3253
- return this.options.parseErrorHandler(n3, i2, e7, t2);
3259
+ c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Ta(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Oa(this.mem, s2, { res: e7, fc: c2 }));
3260
+ var u2 = t2 && t2.replace && q(t2.replace) === `object` ? Ra(Ra({}, t2), t2.replace) : t2;
3261
+ return c2.format(this.escapeVariableValues(u2));
3262
+ } catch (a3) {
3263
+ return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(Ja(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3254
3264
  }
3255
3265
  } }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
3256
- return e7;
3266
+ return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
3267
+ } }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
3268
+ var i2 = r2.count, a2 = r2.context, o2 = this.i18next.options, s2 = o2.pluralSeparator, c2 = s2 === void 0 ? `_` : s2, l2 = o2.contextSeparator, u2 = l2 === void 0 ? `_` : l2, d2 = this.i18next.services.resourceStore, f2 = `key "${e7}" (${t2}/${n2})`;
3269
+ if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
3270
+ var p2 = Ka.concat(Ka.map(function(e8) {
3271
+ return `ordinal${c2}${e8}`;
3272
+ })).map(function(t3) {
3273
+ return `${e7}${c2}${t3}`;
3274
+ }).filter(function(e8) {
3275
+ return d2.getResource(t2, n2, e8) !== void 0;
3276
+ });
3277
+ p2.length && this.warn(`${f2} was called with count, but i18next-icu does not look up plural suffix keys (${p2.join(`, `)}). Put the plural into the message: {count, plural, one {# item} other {# items}}.`);
3278
+ }
3279
+ var m2 = `${e7}${u2}${a2}`;
3280
+ a2 !== void 0 && a2 !== `` && this.firstTime(`context ${t2} ${n2} ${m2}`) && d2.getResource(t2, n2, m2) !== void 0 && this.warn(`${f2} was called with context "${a2}", but i18next-icu does not look up context keys (${m2}). Use a select in the message: {context, select, ${a2} {...} other {...}}.`);
3281
+ } }, { key: `firstTime`, value: function(e7) {
3282
+ return !this.warned.has(e7) && (this.warned.add(e7), true);
3283
+ } }, { key: `warn`, value: function(e7) {
3284
+ this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${Ga}`);
3257
3285
  } }, { key: `clearCache`, value: function() {
3258
3286
  this.mem = {};
3259
3287
  } }, { key: `escapeVariableValues`, value: function(e7) {
3260
- if (!this.options.escapeVariables || !e7 || K(e7) !== `object`) return e7;
3288
+ if (!this.options.escapeVariables || !e7 || q(e7) !== `object`) return e7;
3261
3289
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3262
- var i2 = Fa(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3290
+ var i2 = ja(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3263
3291
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3264
3292
  }
3265
3293
  return t2;
3266
3294
  } }]), e6;
3267
3295
  }();
3268
- Xa.type = `i18nFormat`;
3269
- function Za({ icuOptions: e6 = {}, ...t2 }) {
3296
+ Ya.type = `i18nFormat`;
3297
+ function Xa({ icuOptions: e6 = {}, ...t2 }) {
3270
3298
  let { parseErrorHandler: n2 = void 0 } = t2;
3271
- return li(t2, { icu: new Xa({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3299
+ return ci(t2, { icu: new Ya({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3272
3300
  }
3273
- var Qa = (e6, t2, n2, r2) => {
3301
+ var Za = (e6, t2, n2, r2) => {
3274
3302
  let i2 = [n2, { code: t2, ...r2 || {} }];
3275
3303
  if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
3276
- q(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3304
+ J(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3277
3305
  };
3278
- var $a = {};
3279
- var eo = (e6, t2, n2, r2) => {
3280
- q(n2) && $a[n2] || (q(n2) && ($a[n2] = /* @__PURE__ */ new Date()), Qa(e6, t2, n2, r2));
3306
+ var Qa = {};
3307
+ var $a = (e6, t2, n2, r2) => {
3308
+ J(n2) && Qa[n2] || (J(n2) && (Qa[n2] = /* @__PURE__ */ new Date()), Za(e6, t2, n2, r2));
3281
3309
  };
3282
- var to = (e6, t2) => () => {
3310
+ var eo = (e6, t2) => () => {
3283
3311
  if (e6.isInitialized) t2();
3284
3312
  else {
3285
3313
  let n2 = () => {
@@ -3290,29 +3318,29 @@ var to = (e6, t2) => () => {
3290
3318
  e6.on(`initialized`, n2);
3291
3319
  }
3292
3320
  };
3293
- var no = (e6, t2, n2) => {
3294
- e6.loadNamespaces(t2, to(e6, n2));
3321
+ var to = (e6, t2, n2) => {
3322
+ e6.loadNamespaces(t2, eo(e6, n2));
3295
3323
  };
3296
- var ro = (e6, t2, n2, r2) => {
3297
- if (q(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return no(e6, n2, r2);
3324
+ var no = (e6, t2, n2, r2) => {
3325
+ if (J(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return to(e6, n2, r2);
3298
3326
  n2.forEach((t3) => {
3299
3327
  e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
3300
- }), e6.loadLanguages(t2, to(e6, r2));
3328
+ }), e6.loadLanguages(t2, eo(e6, r2));
3301
3329
  };
3302
- var io = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (eo(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3330
+ var ro = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? ($a(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3303
3331
  if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
3304
3332
  } });
3305
- var q = (e6) => typeof e6 == `string`;
3306
- var ao = (e6) => typeof e6 == `object` && !!e6;
3307
- var oo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3308
- var so = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
3309
- var co = (e6) => so[e6];
3310
- var lo = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(oo, co) };
3311
- var uo = () => lo;
3312
- var fo;
3313
- var po = () => fo;
3314
- var mo = i();
3315
- var ho = class {
3333
+ var J = (e6) => typeof e6 == `string`;
3334
+ var io = (e6) => typeof e6 == `object` && !!e6;
3335
+ var ao = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3336
+ var oo = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
3337
+ var so = (e6) => oo[e6];
3338
+ var co = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(ao, so) };
3339
+ var lo = () => co;
3340
+ var uo;
3341
+ var fo = () => uo;
3342
+ var po = i();
3343
+ var mo = class {
3316
3344
  constructor() {
3317
3345
  this.usedNamespaces = {};
3318
3346
  }
@@ -3325,32 +3353,32 @@ var ho = class {
3325
3353
  return Object.keys(this.usedNamespaces);
3326
3354
  }
3327
3355
  };
3328
- var go = (e6, t2) => {
3356
+ var ho = (e6, t2) => {
3329
3357
  let n2 = d();
3330
3358
  return l(() => {
3331
3359
  n2.current = t2 ? n2.current : e6;
3332
3360
  }, [e6, t2]), n2.current;
3333
3361
  };
3334
- var _o = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3335
- var vo = (e6, t2, n2, r2) => s(_o(e6, t2, n2, r2), [e6, t2, n2, r2]);
3336
- var yo = (e6, t2 = {}) => {
3337
- let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = c(mo) || {}, a2 = n2 || r2 || po();
3338
- if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new ho()), !a2) {
3339
- eo(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3340
- let e7 = (e8, t4) => q(t4) ? t4 : ao(t4) && q(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3362
+ var go = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3363
+ var _o = (e6, t2, n2, r2) => s(go(e6, t2, n2, r2), [e6, t2, n2, r2]);
3364
+ var vo = (e6, t2 = {}) => {
3365
+ let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = c(po) || {}, a2 = n2 || r2 || fo();
3366
+ if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new mo()), !a2) {
3367
+ $a(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3368
+ let e7 = (e8, t4) => J(t4) ? t4 : io(t4) && J(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3341
3369
  return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
3342
3370
  }
3343
- a2.options.react?.wait && eo(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3344
- let o2 = { ...uo(), ...a2.options.react, ...t2 }, { useSuspense: s2, keyPrefix: u2 } = o2, p2 = e6 || i2 || a2.options?.defaultNS;
3345
- p2 = q(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3346
- let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => io(e7, a2, o2)), h2 = vo(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), g2 = () => h2, _2 = () => _o(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), [v2, y2] = f(g2), b2 = p2.join();
3371
+ a2.options.react?.wait && $a(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3372
+ let o2 = { ...lo(), ...a2.options.react, ...t2 }, { useSuspense: s2, keyPrefix: u2 } = o2, p2 = e6 || i2 || a2.options?.defaultNS;
3373
+ p2 = J(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3374
+ let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => ro(e7, a2, o2)), h2 = _o(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), g2 = () => h2, _2 = () => go(a2, t2.lng || null, o2.nsMode === `fallback` ? p2 : p2[0], u2), [v2, y2] = f(g2), b2 = p2.join();
3347
3375
  t2.lng && (b2 = `${t2.lng}${b2}`);
3348
- let x2 = go(b2), S2 = d(true);
3376
+ let x2 = ho(b2), S2 = d(true);
3349
3377
  l(() => {
3350
3378
  let { bindI18n: e7, bindI18nStore: n3 } = o2;
3351
- S2.current = true, !m2 && !s2 && (t2.lng ? ro(a2, t2.lng, p2, () => {
3379
+ S2.current = true, !m2 && !s2 && (t2.lng ? no(a2, t2.lng, p2, () => {
3352
3380
  S2.current && y2(_2);
3353
- }) : no(a2, p2, () => {
3381
+ }) : to(a2, p2, () => {
3354
3382
  S2.current && y2(_2);
3355
3383
  })), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
3356
3384
  let r3 = () => {
@@ -3365,134 +3393,134 @@ var yo = (e6, t2 = {}) => {
3365
3393
  let C2 = [v2, a2, m2];
3366
3394
  if (C2.t = v2, C2.i18n = a2, C2.ready = m2, m2 || !m2 && !s2) return C2;
3367
3395
  throw new Promise((e7) => {
3368
- t2.lng ? ro(a2, t2.lng, p2, () => e7()) : no(a2, p2, () => e7());
3396
+ t2.lng ? no(a2, t2.lng, p2, () => e7()) : to(a2, p2, () => e7());
3369
3397
  });
3370
3398
  };
3371
- function bo({ i18n: e6, defaultNS: t2, children: n2 }) {
3399
+ function yo({ i18n: e6, defaultNS: t2, children: n2 }) {
3372
3400
  let r2 = u(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3373
- return a(mo.Provider, { value: r2 }, n2);
3401
+ return a(po.Provider, { value: r2 }, n2);
3374
3402
  }
3375
- var xo = F(`@wix/site-service-locale`);
3376
- var So = F(`@wix/site-service-renderer-configuration`);
3377
- var Co = () => {
3403
+ var bo = I(`@wix/site-service-locale`);
3404
+ var xo = I(`@wix/site-service-renderer-configuration`);
3405
+ var So = () => {
3378
3406
  let e6, t2;
3379
3407
  try {
3380
- e6 = m(So).languageCode;
3408
+ e6 = m(xo).languageCode;
3381
3409
  } catch {
3382
3410
  }
3383
3411
  try {
3384
- t2 = m(xo).language;
3412
+ t2 = m(bo).language;
3385
3413
  } catch {
3386
3414
  }
3387
3415
  return e6 || t2;
3388
3416
  };
3389
- var wo = `wix-warmup-data`;
3390
- var To = null;
3391
- function Eo(e6) {
3417
+ var Co = `wix-warmup-data`;
3418
+ var wo = null;
3419
+ function To(e6) {
3392
3420
  if (typeof document < `u`) try {
3393
- let t2 = document.getElementById(wo)?.textContent;
3394
- return t2 ? (To?.text !== t2 && (To = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), To.data[e6] ?? void 0) : void 0;
3421
+ let t2 = document.getElementById(Co)?.textContent;
3422
+ return t2 ? (wo?.text !== t2 && (wo = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), wo.data[e6] ?? void 0) : void 0;
3395
3423
  } catch {
3396
3424
  return;
3397
3425
  }
3398
3426
  }
3399
- var Do = 5e3;
3400
- var Oo = 100;
3401
- var ko = {};
3402
- var Ao = /* @__PURE__ */ new WeakMap();
3403
- var jo = (e6) => {
3404
- let t2 = e6.scope ?? ko, n2 = Ao.get(t2);
3405
- return n2 || (n2 = /* @__PURE__ */ new Map(), Ao.set(t2, n2)), n2;
3427
+ var Eo = 5e3;
3428
+ var Do = 100;
3429
+ var Oo = {};
3430
+ var ko = /* @__PURE__ */ new WeakMap();
3431
+ var Ao = (e6) => {
3432
+ let t2 = e6.scope ?? Oo, n2 = ko.get(t2);
3433
+ return n2 || (n2 = /* @__PURE__ */ new Map(), ko.set(t2, n2)), n2;
3406
3434
  };
3407
- function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
3435
+ function jo({ key: e6, warmupData: t2, fetchData: n2 }) {
3408
3436
  if (e6 === null) return n2();
3409
3437
  if (t2.isServer) return n2().then((n3) => (t2.set(e6, n3), n3));
3410
- let r2 = jo(t2), i2 = Date.now();
3438
+ let r2 = Ao(t2), i2 = Date.now();
3411
3439
  for (let [e7, t3] of r2) t3.expiresAt <= i2 && r2.delete(e7);
3412
3440
  let a2 = r2.get(e6);
3413
3441
  if (a2) return a2.promise;
3414
- let o2 = Eo(e6);
3442
+ let o2 = To(e6);
3415
3443
  if (o2 !== void 0) {
3416
- let t3 = Bn(o2);
3417
- return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
3444
+ let t3 = zn(o2);
3445
+ return r2.set(e6, { promise: t3, expiresAt: i2 + Eo }), t3;
3418
3446
  }
3419
3447
  let s2 = (async () => await t2.get(e6) ?? n2())();
3420
- r2.size >= Oo && r2.delete(r2.keys().next().value);
3448
+ r2.size >= Do && r2.delete(r2.keys().next().value);
3421
3449
  let c2 = { promise: s2, expiresAt: 1 / 0 };
3422
3450
  return r2.set(e6, c2), s2.then(() => {
3423
- c2.expiresAt = Date.now() + Do;
3451
+ c2.expiresAt = Date.now() + Eo;
3424
3452
  }, () => {
3425
3453
  r2.get(e6) === c2 && r2.delete(e6);
3426
3454
  }), s2;
3427
3455
  }
3428
- var No = `blog-builder:i18n`;
3429
- var Po = `translation`;
3430
- var Fo = () => Eo(No);
3431
- var Io = /* @__PURE__ */ new Map();
3432
- function Lo(e6, t2) {
3433
- let n2 = Io.get(e6);
3456
+ var Mo = `blog-builder:i18n`;
3457
+ var No = `translation`;
3458
+ var Po = () => To(Mo);
3459
+ var Fo = /* @__PURE__ */ new Map();
3460
+ function Io(e6, t2) {
3461
+ let n2 = Fo.get(e6);
3434
3462
  if (n2) return n2;
3435
- let r2 = Fo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = Za({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3436
- return Io.set(e6, a2), a2;
3463
+ let r2 = Po(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = Xa({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3464
+ return Fo.set(e6, a2), a2;
3437
3465
  }
3438
- function Ro(e6) {
3439
- let t2 = () => e6.loadNamespaces(Po).then(() => void 0, () => void 0);
3466
+ function Lo(e6) {
3467
+ let t2 = () => e6.loadNamespaces(No).then(() => void 0, () => void 0);
3440
3468
  return e6.isInitialized ? t2() : new Promise((n2) => {
3441
3469
  e6.on(`initialized`, () => void t2().then(n2));
3442
3470
  });
3443
3471
  }
3444
- function zo(e6, t2) {
3472
+ function Ro(e6, t2) {
3445
3473
  return e6.getResourceBundle(t2, `translation`) ?? e6.getResourceBundle(`en`, `translation`);
3446
3474
  }
3447
- var Bo = (e6, t2, n2) => {
3475
+ var zo = (e6, t2, n2) => {
3448
3476
  let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
3449
3477
  return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
3450
3478
  (typeof queueMicrotask == `function` ? queueMicrotask : setTimeout)(r3.bind(null, Error(`Unknown variable dynamic import: ` + t2 + (t2.split(`/`).length === n2 ? `` : `. Note that variables only represent file names one level deep.`))));
3451
3479
  });
3452
3480
  };
3453
- var Vo = (e6) => e6.split(`-`)[0] ?? e6;
3454
- yr({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import.meta.url), "../assets/locale/messages_en.json": () => vn(() => Promise.resolve().then(() => Jo), void 0, import.meta.url) }), `../assets/locale/messages_${Vo(e6)}.json`, 4), loadDevMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => vn(() => Promise.resolve().then(() => Ko), void 0, import.meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3455
- var Ho = /* @__PURE__ */ new WeakMap();
3456
- function Uo(e6) {
3457
- let t2 = Ho.get(e6);
3458
- return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
3481
+ var Bo = (e6) => e6.split(`-`)[0] ?? e6;
3482
+ vr({ isDev: false, loadMessages: (e6) => zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => _n(() => Promise.resolve().then(() => Go), void 0, import.meta.url), "../assets/locale/messages_en.json": () => _n(() => Promise.resolve().then(() => qo), void 0, import.meta.url) }), `../assets/locale/messages_${Bo(e6)}.json`, 4), loadDevMessages: (e6) => zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => _n(() => Promise.resolve().then(() => Go), void 0, import.meta.url) }), `../assets/locale/messages_${Bo(e6)}.dev.json`, 4) });
3483
+ var Vo = /* @__PURE__ */ new WeakMap();
3484
+ function Ho(e6) {
3485
+ let t2 = Vo.get(e6);
3486
+ return t2 || (t2 = Lo(e6).finally(() => Vo.delete(e6)), Vo.set(e6, t2)), t2;
3459
3487
  }
3460
- function Wo({ i18n: e6, locale: t2 }) {
3461
- let n2 = Gn(), r2 = gr();
3488
+ function Uo({ i18n: e6, locale: t2 }) {
3489
+ let n2 = Wn(), r2 = hr();
3462
3490
  if (!n2) return null;
3463
- if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
3464
- let i2 = zo(e6, t2);
3465
- return i2 && r2.set(No, { locale: t2, messages: i2 }), null;
3466
- }
3467
- function Go(e6) {
3468
- let t2 = Co(), n2 = Fo()?.locale ?? t2 ?? `en`;
3469
- return { i18n: Lo(n2, e6), locale: n2 };
3470
- }
3471
- var Ko = v({ default: () => qo });
3472
- var qo = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3473
- var Jo = v({ default: () => Xo, title: () => Yo });
3474
- var Yo = `My App`;
3475
- var Xo = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: Yo, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3476
- var Zo = Object.assign({ "../assets/locale/messages_en.dev.json": Ko, "../assets/locale/messages_en.json": Jo });
3477
- var Qo = (e6, t2) => {
3478
- let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
3491
+ if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Ho(e6);
3492
+ let i2 = Ro(e6, t2);
3493
+ return i2 && r2.set(Mo, { locale: t2, messages: i2 }), null;
3494
+ }
3495
+ function Wo(e6) {
3496
+ let t2 = So(), n2 = Po()?.locale ?? t2 ?? `en`;
3497
+ return { i18n: Io(n2, e6), locale: n2 };
3498
+ }
3499
+ var Go = v({ default: () => Ko });
3500
+ var Ko = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3501
+ var qo = v({ default: () => Yo, title: () => Jo });
3502
+ var Jo = `My App`;
3503
+ var Yo = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: Jo, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3504
+ var Xo = Object.assign({ "../assets/locale/messages_en.dev.json": Go, "../assets/locale/messages_en.json": qo });
3505
+ var Zo = (e6, t2) => {
3506
+ let n2 = Xo[`../assets/locale/messages_${Bo(e6)}${t2}.json`];
3479
3507
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3480
3508
  };
3481
- var $o = yr({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3482
- var es = [{ path: `richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `richContent.nodes.galleryData.items.image.media.duration` }, { path: `richContent.nodes.galleryData.items.video.media.duration` }, { path: `richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `richContent.nodes.galleryData.options.item.ratio` }, { path: `richContent.nodes.imageData.image.duration` }, { path: `richContent.nodes.imageData.crop.x` }, { path: `richContent.nodes.imageData.crop.y` }, { path: `richContent.nodes.imageData.crop.width` }, { path: `richContent.nodes.imageData.crop.height` }, { path: `richContent.nodes.mapData.mapSettings.lat` }, { path: `richContent.nodes.mapData.mapSettings.lng` }, { path: `richContent.nodes.pollData.poll.image.duration` }, { path: `richContent.nodes.pollData.poll.options.image.duration` }, { path: `richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.nodes.appEmbedData.image.duration` }, { path: `richContent.nodes.videoData.video.duration` }, { path: `richContent.nodes.videoData.thumbnail.duration` }, { path: `richContent.nodes.audioData.audio.duration` }, { path: `richContent.nodes.audioData.coverImage.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.background.gradient.centerX` }, { path: `richContent.nodes.layoutData.background.gradient.centerY` }, { path: `richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `richContent.nodes.shapeData.shape.duration` }, { path: `richContent.nodes.cardData.background.gradient.centerX` }, { path: `richContent.nodes.cardData.background.gradient.centerY` }, { path: `richContent.nodes.cardData.background.gradient.stops.position` }, { path: `richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.tocData.fontSize` }, { path: `richContent.nodes.tocData.itemSpacing` }, { path: `richContent.nodes.smartBlockCellData.shape.duration` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3483
- var ts = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
3484
- function ns(e6) {
3509
+ var Qo = vr({ isDev: false, loadMessages: (e6) => Zo(e6, ``), loadDevMessages: (e6) => Zo(e6, `.dev`) });
3510
+ var $o = [{ path: `richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `richContent.nodes.galleryData.items.image.media.duration` }, { path: `richContent.nodes.galleryData.items.video.media.duration` }, { path: `richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `richContent.nodes.galleryData.options.item.ratio` }, { path: `richContent.nodes.imageData.image.duration` }, { path: `richContent.nodes.imageData.crop.x` }, { path: `richContent.nodes.imageData.crop.y` }, { path: `richContent.nodes.imageData.crop.width` }, { path: `richContent.nodes.imageData.crop.height` }, { path: `richContent.nodes.mapData.mapSettings.lat` }, { path: `richContent.nodes.mapData.mapSettings.lng` }, { path: `richContent.nodes.pollData.poll.image.duration` }, { path: `richContent.nodes.pollData.poll.options.image.duration` }, { path: `richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.nodes.appEmbedData.image.duration` }, { path: `richContent.nodes.videoData.video.duration` }, { path: `richContent.nodes.videoData.thumbnail.duration` }, { path: `richContent.nodes.audioData.audio.duration` }, { path: `richContent.nodes.audioData.coverImage.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.layoutData.background.gradient.centerX` }, { path: `richContent.nodes.layoutData.background.gradient.centerY` }, { path: `richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `richContent.nodes.shapeData.shape.duration` }, { path: `richContent.nodes.cardData.background.gradient.centerX` }, { path: `richContent.nodes.cardData.background.gradient.centerY` }, { path: `richContent.nodes.cardData.background.gradient.stops.position` }, { path: `richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `richContent.nodes.tocData.fontSize` }, { path: `richContent.nodes.tocData.itemSpacing` }, { path: `richContent.nodes.smartBlockCellData.shape.duration` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3511
+ var es = [{ path: `richContent.metadata.createdTimestamp` }, { path: `richContent.metadata.updatedTimestamp` }];
3512
+ function ts(e6) {
3485
3513
  return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], _: [{ srcPath: `/_api/blog-paywall-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/blog-paywall-service/v1/post-paywalls`, destPath: `/v1/post-paywalls` }] } }));
3486
3514
  }
3487
- var rs = `@wix/auto_sdk_blog_post-paywalls`;
3488
- function is(e6) {
3515
+ var ns = `@wix/auto_sdk_blog_post-paywalls`;
3516
+ function rs(e6) {
3489
3517
  function t2({ host: t3 }) {
3490
- return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: rs, migrationOptions: { optInTransformResponse: true }, url: ns({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: dn, paths: es }, { transformFn: k, paths: ts }]) };
3518
+ return { entityFqdn: `wix.blog.blog_paywall_service.v1.post_paywall`, method: `GET`, methodFqn: `wix.blog.blog_paywall_service.v1.PostPaywallService.GetPostPaywall`, packageName: ns, migrationOptions: { optInTransformResponse: true }, url: ts({ protoPath: `/v1/post-paywalls/{postFqdn}/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: $o }, { transformFn: k, paths: es }]) };
3491
3519
  }
3492
3520
  return t2;
3493
3521
  }
3494
- async function as(e6, t2) {
3495
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = is(D({ postFqdn: e6?.postFqdn, postId: e6?.postId, language: t2?.language }, []));
3522
+ async function is(e6, t2) {
3523
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = rs(D({ postFqdn: e6?.postFqdn, postId: e6?.postId, language: t2?.language }, []));
3496
3524
  r2?.onSiteCall?.();
3497
3525
  try {
3498
3526
  let e7 = await n2.request(i2);
@@ -3502,29 +3530,29 @@ async function as(e6, t2) {
3502
3530
  throw r2?.onError?.(e7), t3;
3503
3531
  }
3504
3532
  }
3505
- function os(e6) {
3506
- return (t2, n2) => as(t2, n2, { httpClient: e6 });
3533
+ function as(e6) {
3534
+ return (t2, n2) => is(t2, n2, { httpClient: e6 });
3507
3535
  }
3508
- var ss = M(os);
3509
- function cs(e6) {
3536
+ var os = M(as);
3537
+ function ss(e6) {
3510
3538
  return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
3511
3539
  }
3512
- function ls(e6) {
3540
+ function cs(e6) {
3513
3541
  return Object.keys(e6).length === 1 && `$or` in e6 && Array.isArray(e6.$or);
3514
3542
  }
3515
- function us(e6) {
3543
+ function ls(e6) {
3516
3544
  return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
3517
3545
  }
3518
- function J(e6, t2) {
3519
- return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...cs(e6) ? e6.$and : [e6], ...cs(t2) ? t2.$and : [t2]] };
3546
+ function Y(e6, t2) {
3547
+ return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...ss(e6) ? e6.$and : [e6], ...ss(t2) ? t2.$and : [t2]] };
3520
3548
  }
3521
- function ds(e6, t2) {
3522
- return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...ls(e6) ? e6.$or : [e6], ...ls(t2) ? t2.$or : [t2]] };
3549
+ function us(e6, t2) {
3550
+ return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...cs(e6) ? e6.$or : [e6], ...cs(t2) ? t2.$or : [t2]] };
3523
3551
  }
3524
- function fs(e6) {
3525
- if (e6 !== void 0 && Object.keys(e6).length !== 0) return us(e6) ? e6.$not : { $not: e6 };
3552
+ function ds(e6) {
3553
+ if (e6 !== void 0 && Object.keys(e6).length !== 0) return ls(e6) ? e6.$not : { $not: e6 };
3526
3554
  }
3527
- var ps = class {
3555
+ var fs = class {
3528
3556
  _items;
3529
3557
  _fetchNextPage;
3530
3558
  _fetchPrevPage;
@@ -3554,7 +3582,7 @@ var ps = class {
3554
3582
  return await this._fetchPrevPage();
3555
3583
  }
3556
3584
  };
3557
- var ms = class extends ps {
3585
+ var ps = class extends fs {
3558
3586
  _nextCursor;
3559
3587
  _prevCursor;
3560
3588
  cursors;
@@ -3568,7 +3596,7 @@ var ms = class extends ps {
3568
3596
  return !!this._prevCursor;
3569
3597
  }
3570
3598
  };
3571
- var hs = class extends ps {
3599
+ var ms = class extends fs {
3572
3600
  _totalCount;
3573
3601
  _offset;
3574
3602
  _tooManyToCount;
@@ -3591,76 +3619,76 @@ var hs = class extends ps {
3591
3619
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
3592
3620
  }
3593
3621
  };
3594
- function gs(e6) {
3622
+ function hs(e6) {
3595
3623
  let t2 = (n2) => ({ query: n2, async find() {
3596
3624
  try {
3597
3625
  let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Qe]: a2, [$e]: o2 } = e6.responseTransformer(i2);
3598
3626
  if (e6.pagingMethod === `OFFSET`) {
3599
3627
  let e7 = n2;
3600
- return new hs({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
3628
+ return new ms({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
3601
3629
  }
3602
3630
  let s2 = n2.cursorPaging;
3603
- return new ms({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
3631
+ return new ps({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
3604
3632
  } catch (t3) {
3605
3633
  throw e6.errorTransformer(t3);
3606
3634
  }
3607
3635
  }, skipTo(e7) {
3608
3636
  return t2({ ...n2, cursorPaging: { cursor: e7, limit: n2.cursorPaging.limit } });
3609
3637
  }, eq(r2, i2) {
3610
- let a2 = i2 === void 0 ? null : i2, o2 = { [Y(e6.transformationPaths, r2)]: a2 };
3611
- return t2({ ...n2, filter: J(n2.filter, o2) });
3638
+ let a2 = i2 === void 0 ? null : i2, o2 = { [X(e6.transformationPaths, r2)]: a2 };
3639
+ return t2({ ...n2, filter: Y(n2.filter, o2) });
3612
3640
  }, ne(r2, i2) {
3613
- let a2 = i2 === void 0 ? null : i2, o2 = { [Y(e6.transformationPaths, r2)]: { $ne: a2 } };
3614
- return t2({ ...n2, filter: J(n2.filter, o2) });
3641
+ let a2 = i2 === void 0 ? null : i2, o2 = { [X(e6.transformationPaths, r2)]: { $ne: a2 } };
3642
+ return t2({ ...n2, filter: Y(n2.filter, o2) });
3615
3643
  }, ge(r2, i2) {
3616
- let a2 = { [Y(e6.transformationPaths, r2)]: { $gte: i2 } };
3617
- return t2({ ...n2, filter: J(n2.filter, a2) });
3644
+ let a2 = { [X(e6.transformationPaths, r2)]: { $gte: i2 } };
3645
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3618
3646
  }, gt(r2, i2) {
3619
- let a2 = { [Y(e6.transformationPaths, r2)]: { $gt: i2 } };
3620
- return t2({ ...n2, filter: J(n2.filter, a2) });
3647
+ let a2 = { [X(e6.transformationPaths, r2)]: { $gt: i2 } };
3648
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3621
3649
  }, le(r2, i2) {
3622
- let a2 = { [Y(e6.transformationPaths, r2)]: { $lte: i2 } };
3623
- return t2({ ...n2, filter: J(n2.filter, a2) });
3650
+ let a2 = { [X(e6.transformationPaths, r2)]: { $lte: i2 } };
3651
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3624
3652
  }, lt(r2, i2) {
3625
- let a2 = { [Y(e6.transformationPaths, r2)]: { $lt: i2 } };
3626
- return t2({ ...n2, filter: J(n2.filter, a2) });
3653
+ let a2 = { [X(e6.transformationPaths, r2)]: { $lt: i2 } };
3654
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3627
3655
  }, isNotEmpty(e7) {
3628
3656
  return this.ne(e7, null);
3629
3657
  }, isEmpty(e7) {
3630
3658
  return this.eq(e7, null);
3631
3659
  }, startsWith(r2, i2) {
3632
- let a2 = { [Y(e6.transformationPaths, r2)]: { $startsWith: i2 } };
3633
- return t2({ ...n2, filter: J(n2.filter, a2) });
3660
+ let a2 = { [X(e6.transformationPaths, r2)]: { $startsWith: i2 } };
3661
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3634
3662
  }, endsWith(r2, i2) {
3635
- let a2 = { [Y(e6.transformationPaths, r2)]: { $endsWith: i2 } };
3636
- return t2({ ...n2, filter: J(n2.filter, a2) });
3663
+ let a2 = { [X(e6.transformationPaths, r2)]: { $endsWith: i2 } };
3664
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3637
3665
  }, contains(r2, i2) {
3638
- let a2 = { [Y(e6.transformationPaths, r2)]: { $contains: i2 } };
3639
- return t2({ ...n2, filter: J(n2.filter, a2) });
3666
+ let a2 = { [X(e6.transformationPaths, r2)]: { $contains: i2 } };
3667
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3640
3668
  }, hasSome(r2, ...i2) {
3641
- let a2 = { [Y(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
3642
- return t2({ ...n2, filter: J(n2.filter, a2) });
3669
+ let a2 = { [X(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
3670
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3643
3671
  }, hasAll(r2, ...i2) {
3644
- let a2 = { [Y(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
3645
- return t2({ ...n2, filter: J(n2.filter, a2) });
3672
+ let a2 = { [X(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
3673
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3646
3674
  }, between(e7, t3, n3) {
3647
3675
  return this.ge(e7, t3).lt(e7, n3);
3648
3676
  }, in(r2, i2) {
3649
- let a2 = { [Y(e6.transformationPaths, r2)]: { $in: i2 } };
3650
- return t2({ ...n2, filter: J(n2.filter, a2) });
3677
+ let a2 = { [X(e6.transformationPaths, r2)]: { $in: i2 } };
3678
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3651
3679
  }, exists(r2, i2 = true) {
3652
- let a2 = { [Y(e6.transformationPaths, r2)]: { $exists: i2 } };
3653
- return t2({ ...n2, filter: J(n2.filter, a2) });
3680
+ let a2 = { [X(e6.transformationPaths, r2)]: { $exists: i2 } };
3681
+ return t2({ ...n2, filter: Y(n2.filter, a2) });
3654
3682
  }, or(e7) {
3655
- return t2({ ...n2, filter: ds(n2.filter, e7.query.filter) });
3683
+ return t2({ ...n2, filter: us(n2.filter, e7.query.filter) });
3656
3684
  }, and(e7) {
3657
- return t2({ ...n2, filter: J(n2.filter, e7.query.filter) });
3685
+ return t2({ ...n2, filter: Y(n2.filter, e7.query.filter) });
3658
3686
  }, not(e7) {
3659
- return t2({ ...n2, filter: fs(e7.query.filter) });
3687
+ return t2({ ...n2, filter: ds(e7.query.filter) });
3660
3688
  }, ascending(...r2) {
3661
- return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Y(e6.transformationPaths, t3), order: `ASC` }))] });
3689
+ return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: X(e6.transformationPaths, t3), order: `ASC` }))] });
3662
3690
  }, descending(...r2) {
3663
- return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Y(e6.transformationPaths, t3), order: `DESC` }))] });
3691
+ return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: X(e6.transformationPaths, t3), order: `DESC` }))] });
3664
3692
  }, skip(e7) {
3665
3693
  return t2({ ...n2, paging: { offset: e7, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
3666
3694
  }, limit(r2) {
@@ -3673,71 +3701,71 @@ function gs(e6) {
3673
3701
  } });
3674
3702
  return t2({ filter: {}, ...e6.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
3675
3703
  }
3676
- function Y(e6, t2) {
3704
+ function X(e6, t2) {
3677
3705
  let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
3678
3706
  return n2 ? t2.replace(n2, e6[n2]) : tt(t2, { ...e6, ...et });
3679
3707
  }
3680
- var _s = `filter`;
3681
- var vs = `sort`;
3682
- var ys = `cursorPaging`;
3683
- var bs = `paging`;
3684
- var xs = [_s, vs, ys];
3685
- var Ss = [_s, vs, bs];
3686
- function Cs(e6, t2) {
3708
+ var gs = `filter`;
3709
+ var _s = `sort`;
3710
+ var vs = `cursorPaging`;
3711
+ var ys = `paging`;
3712
+ var bs = [gs, _s, vs];
3713
+ var xs = [gs, _s, ys];
3714
+ function Ss(e6, t2) {
3687
3715
  return !e6 || typeof e6 != `object` ? false : t2.some((t3) => e6.hasOwnProperty(t3));
3688
3716
  }
3717
+ function Cs(e6) {
3718
+ return Ss(e6, bs);
3719
+ }
3689
3720
  function ws(e6) {
3690
- return Cs(e6, xs);
3721
+ return Ss(e6, xs);
3691
3722
  }
3692
3723
  function Ts(e6) {
3693
- return Cs(e6, Ss);
3694
- }
3695
- function Es(e6) {
3696
3724
  let { hasOptionsParameter: t2 } = e6;
3697
3725
  return function(...n2) {
3698
- return t2 ? Os(n2, e6) : Ds(n2, e6);
3726
+ return t2 ? Ds(n2, e6) : Es(n2, e6);
3699
3727
  };
3700
3728
  }
3701
- function Ds(e6, t2) {
3729
+ function Es(e6, t2) {
3702
3730
  return e6.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e6[0]);
3703
3731
  }
3704
- function Os(e6, t2) {
3732
+ function Ds(e6, t2) {
3705
3733
  switch (e6.length) {
3706
3734
  case 0:
3707
3735
  return t2.builderQueryFunction();
3708
3736
  case 1:
3709
- return ws(e6[0]) || Ts(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
3737
+ return Cs(e6[0]) || ws(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
3710
3738
  default:
3711
3739
  return t2.typedQueryFunction(e6[0], e6[1]);
3712
3740
  }
3713
3741
  }
3714
- var ks = [{ path: `like.createdDate` }];
3715
- var As = [{ path: `likes.createdDate` }];
3716
- function js(e6) {
3742
+ var Os = [{ path: `like.createdDate` }];
3743
+ var ks = [{ path: `likes.createdDate` }];
3744
+ function As(e6) {
3717
3745
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/blog-like-service`, destPath: `` }], "social-blog._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/blog-like-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/blog/v1/likes`, destPath: `/v1/likes` }], "*.dev.wix-code.com": [{ srcPath: `/blog/v1/likes`, destPath: `/v1/likes` }] } }));
3718
3746
  }
3719
- var Ms = `@wix/auto_sdk_blog_likes`;
3720
- function Ns(e6) {
3747
+ var js = `@wix/auto_sdk_blog_likes`;
3748
+ function Ms(e6) {
3721
3749
  function t2({ host: t3 }) {
3722
- let n2 = A(e6, [{ transformFn: ot, paths: ks }]);
3723
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: ks }]) };
3750
+ let n2 = A(e6, [{ transformFn: ot, paths: Os }]);
3751
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: js, migrationOptions: { optInTransformResponse: true }, url: As({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Os }]) };
3724
3752
  }
3725
3753
  return t2;
3726
3754
  }
3727
- function Ps(e6) {
3755
+ function Ns(e6) {
3728
3756
  function t2({ host: t3 }) {
3729
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: As }]) };
3757
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: js, migrationOptions: { optInTransformResponse: true }, url: As({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: ks }]) };
3730
3758
  }
3731
3759
  return t2;
3732
3760
  }
3733
- function Fs(e6) {
3761
+ function Ps(e6) {
3734
3762
  function t2({ host: t3 }) {
3735
- return { entityFqdn: `wix.blog.v1.like`, method: `DELETE`, methodFqn: `wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v1/likes/fqdn/{fqdn}/entity-id/{entityId}`, data: e6, host: t3 }), params: N(e6) };
3763
+ return { entityFqdn: `wix.blog.v1.like`, method: `DELETE`, methodFqn: `wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId`, packageName: js, migrationOptions: { optInTransformResponse: true }, url: As({ protoPath: `/v1/likes/fqdn/{fqdn}/entity-id/{entityId}`, data: e6, host: t3 }), params: N(e6) };
3736
3764
  }
3737
3765
  return t2;
3738
3766
  }
3739
- async function Is(e6) {
3740
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ns(D({ like: e6?.like }));
3767
+ async function Fs(e6) {
3768
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ms(D({ like: e6?.like }));
3741
3769
  n2?.onSiteCall?.();
3742
3770
  try {
3743
3771
  let e7 = await t2.request(r2);
@@ -3747,10 +3775,10 @@ async function Is(e6) {
3747
3775
  throw n2?.onError?.(e7), t3;
3748
3776
  }
3749
3777
  }
3750
- function Ls() {
3778
+ function Is() {
3751
3779
  let { httpClient: e6, sideEffects: t2 } = arguments[0];
3752
- return gs({ func: async (n2) => {
3753
- let r2 = Ps(n2);
3780
+ return hs({ func: async (n2) => {
3781
+ let r2 = Ns(n2);
3754
3782
  t2?.onSiteCall?.();
3755
3783
  try {
3756
3784
  let n3 = await e6.request(r2);
@@ -3768,8 +3796,8 @@ function Ls() {
3768
3796
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3769
3797
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3770
3798
  }
3771
- async function Rs(e6) {
3772
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ps(D({ query: e6 }));
3799
+ async function Ls(e6) {
3800
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ns(D({ query: e6 }));
3773
3801
  n2?.onSiteCall?.();
3774
3802
  try {
3775
3803
  let e7 = await t2.request(r2);
@@ -3779,8 +3807,8 @@ async function Rs(e6) {
3779
3807
  throw n2?.onError?.(e7), t3;
3780
3808
  }
3781
3809
  }
3782
- async function zs(e6) {
3783
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Fs(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
3810
+ async function Rs(e6) {
3811
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ps(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
3784
3812
  n2?.onSiteCall?.();
3785
3813
  try {
3786
3814
  let e7 = await t2.request(r2);
@@ -3790,66 +3818,66 @@ async function zs(e6) {
3790
3818
  throw n2?.onError?.(e7), t3;
3791
3819
  }
3792
3820
  }
3821
+ function zs(e6) {
3822
+ return (t2) => Fs(t2, { httpClient: e6 });
3823
+ }
3793
3824
  function Bs(e6) {
3794
- return (t2) => Is(t2, { httpClient: e6 });
3825
+ return () => Is({ httpClient: e6 });
3795
3826
  }
3796
3827
  function Vs(e6) {
3797
- return () => Ls({ httpClient: e6 });
3828
+ return (t2) => Ls(t2, { httpClient: e6 });
3798
3829
  }
3799
3830
  function Hs(e6) {
3800
3831
  return (t2) => Rs(t2, { httpClient: e6 });
3801
3832
  }
3802
3833
  function Us(e6) {
3803
- return (t2) => zs(t2, { httpClient: e6 });
3804
- }
3805
- function Ws(e6) {
3806
- let t2 = Es({ builderQueryFunction: () => Vs(e6)(), typedQueryFunction: (t3) => Hs(e6)(t3), hasOptionsParameter: false });
3834
+ let t2 = Ts({ builderQueryFunction: () => Bs(e6)(), typedQueryFunction: (t3) => Vs(e6)(t3), hasOptionsParameter: false });
3807
3835
  function n2(e7) {
3808
3836
  return t2(...arguments);
3809
3837
  }
3810
3838
  return n2;
3811
3839
  }
3812
- var Gs = M(Bs);
3840
+ var Ws = M(zs);
3841
+ var Gs = M(Hs);
3813
3842
  var Ks = M(Us);
3814
- var qs = M(Ws);
3815
- function Js(e6) {
3843
+ function qs(e6) {
3816
3844
  if (!e6) return;
3817
3845
  let t2 = ``;
3818
3846
  return (e6.filename || e6.altText) && (t2 = `/${encodeURIComponent(e6.filename || e6.altText)}`), e6.id ? `wix:image://v1/${e6.id}${t2}#originWidth=${e6.width}&originHeight=${e6.height}` : e6.url;
3819
3847
  }
3820
- function Ys(e6) {
3848
+ function Js(e6) {
3821
3849
  if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
3822
3850
  }
3823
- var Xs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3824
- var Zs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3825
- function Qs(e6) {
3851
+ var Ys = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3852
+ var Xs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3853
+ function Zs(e6) {
3826
3854
  return P(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
3827
3855
  }
3828
- var $s = `@wix/auto_sdk_blog_categories`;
3829
- function ec(e6) {
3856
+ var Qs = `@wix/auto_sdk_blog_categories`;
3857
+ function $s(e6) {
3830
3858
  function t2({ host: t3 }) {
3831
- return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: $s, migrationOptions: { optInTransformResponse: true }, url: Qs({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Xs }, { transformFn: dn, paths: Zs }]) };
3859
+ return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Qs, migrationOptions: { optInTransformResponse: true }, url: Zs({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ys }, { transformFn: F, paths: Xs }]) };
3832
3860
  }
3833
3861
  return t2;
3834
3862
  }
3835
- var tc = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3836
- var nc = [{ path: `categories.coverImage` }];
3837
- async function rc(e6) {
3838
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ec(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3863
+ var ec = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3864
+ var tc = [{ path: `categories.coverImage` }];
3865
+ async function nc(e6) {
3866
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = $s(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3839
3867
  n2?.onSiteCall?.();
3840
3868
  try {
3841
3869
  let e7 = await t2.request(r2);
3842
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: tc }, { transformFn: Js, paths: nc }]));
3870
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Js, paths: ec }, { transformFn: qs, paths: tc }]));
3843
3871
  } catch (e7) {
3844
3872
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
3845
3873
  throw n2?.onError?.(e7), t3;
3846
3874
  }
3847
3875
  }
3848
- function ic(e6) {
3849
- return (t2) => rc(t2, { httpClient: e6 });
3876
+ function rc(e6) {
3877
+ return (t2) => nc(t2, { httpClient: e6 });
3850
3878
  }
3851
- var ac = M(ic);
3852
- function oc(e6) {
3879
+ var ic = M(rc);
3880
+ function ac(e6) {
3853
3881
  if (!e6) return;
3854
3882
  let t2 = ``;
3855
3883
  e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
@@ -3864,43 +3892,43 @@ function oc(e6) {
3864
3892
  }
3865
3893
  return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
3866
3894
  }
3867
- var sc = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3868
- var cc = [{ path: `post.richContentCompressed` }];
3869
- var lc = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3870
- var uc = [{ path: `metrics.averageRating` }];
3871
- function dc(e6) {
3895
+ var oc = [{ path: `post.firstPublishedDate` }, { path: `post.lastPublishedDate` }, { path: `post.expirationDate` }, { path: `post.heroImage.urlExpirationDate` }, { path: `post.richContent.metadata.createdTimestamp` }, { path: `post.richContent.metadata.updatedTimestamp` }, { path: `post.moderationDetails.submittedDate` }, { path: `post.moderationDetails.moderationDate` }, { path: `post.media.wixMedia.image.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `post.media.wixMedia.videoV2.posters.urlExpirationDate` }];
3896
+ var sc = [{ path: `post.richContentCompressed` }];
3897
+ var cc = [{ path: `post.heroImage.focalPoint.x` }, { path: `post.heroImage.focalPoint.y` }, { path: `post.media.wixMedia.image.focalPoint.x` }, { path: `post.media.wixMedia.image.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `post.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `post.metrics.averageRating` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `post.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `post.richContent.nodes.galleryData.items.image.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.media.duration` }, { path: `post.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `post.richContent.nodes.galleryData.options.item.ratio` }, { path: `post.richContent.nodes.imageData.image.duration` }, { path: `post.richContent.nodes.imageData.crop.x` }, { path: `post.richContent.nodes.imageData.crop.y` }, { path: `post.richContent.nodes.imageData.crop.width` }, { path: `post.richContent.nodes.imageData.crop.height` }, { path: `post.richContent.nodes.mapData.mapSettings.lat` }, { path: `post.richContent.nodes.mapData.mapSettings.lng` }, { path: `post.richContent.nodes.pollData.poll.image.duration` }, { path: `post.richContent.nodes.pollData.poll.options.image.duration` }, { path: `post.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.nodes.appEmbedData.image.duration` }, { path: `post.richContent.nodes.videoData.video.duration` }, { path: `post.richContent.nodes.videoData.thumbnail.duration` }, { path: `post.richContent.nodes.audioData.audio.duration` }, { path: `post.richContent.nodes.audioData.coverImage.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `post.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `post.richContent.nodes.shapeData.shape.duration` }, { path: `post.richContent.nodes.cardData.background.gradient.centerX` }, { path: `post.richContent.nodes.cardData.background.gradient.centerY` }, { path: `post.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `post.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `post.richContent.nodes.tocData.fontSize` }, { path: `post.richContent.nodes.tocData.itemSpacing` }, { path: `post.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
3898
+ var lc = [{ path: `metrics.averageRating` }];
3899
+ function uc(e6) {
3872
3900
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
3873
3901
  }
3874
- var fc = `@wix/auto_sdk_blog_posts`;
3875
- function pc(e6) {
3902
+ var dc = `@wix/auto_sdk_blog_posts`;
3903
+ function fc(e6) {
3876
3904
  function t2({ host: t3 }) {
3877
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/posts/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: sc }, { transformFn: fn, paths: cc }, { transformFn: dn, paths: lc }]) };
3905
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v3/posts/{postId}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: oc }, { transformFn: dn, paths: sc }, { transformFn: F, paths: cc }]) };
3878
3906
  }
3879
3907
  return t2;
3880
3908
  }
3881
- function mc(e6) {
3909
+ function pc(e6) {
3882
3910
  function t2({ host: t3 }) {
3883
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: dn, paths: uc }]) };
3911
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: dc, migrationOptions: { optInTransformResponse: true }, url: uc({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: F, paths: lc }]) };
3884
3912
  }
3885
3913
  return t2;
3886
3914
  }
3887
- var hc = [{ path: `post.url` }, { path: `post.translations.url` }];
3888
- var gc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3889
- var _c = [{ path: `post.media.wixMedia.videoV2` }];
3890
- var X = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(X || {});
3891
- async function vc(e6, t2) {
3892
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = pc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3915
+ var mc = [{ path: `post.url` }, { path: `post.translations.url` }];
3916
+ var hc = [{ path: `post.heroImage` }, { path: `post.media.wixMedia.image` }];
3917
+ var gc = [{ path: `post.media.wixMedia.videoV2` }];
3918
+ var Z = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(Z || {});
3919
+ async function _c(e6, t2) {
3920
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = fc(D({ postId: e6, fieldsets: t2?.fieldsets }, []));
3893
3921
  r2?.onSiteCall?.();
3894
3922
  try {
3895
3923
  let e7 = await n2.request(i2);
3896
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: hc }, { transformFn: Js, paths: gc }, { transformFn: oc, paths: _c }]), [`post.richContent`, `post.rich_content`]);
3924
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Js, paths: mc }, { transformFn: qs, paths: hc }, { transformFn: ac, paths: gc }]), [`post.richContent`, `post.rich_content`]);
3897
3925
  } catch (e7) {
3898
3926
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]`, fieldsets: `$[1].fieldsets` }, singleArgumentUnchanged: false }, [`postId`, `options`]);
3899
3927
  throw r2?.onError?.(e7), t3;
3900
3928
  }
3901
3929
  }
3902
- async function yc(e6) {
3903
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = mc(D({ postId: e6 }, []));
3930
+ async function vc(e6) {
3931
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = pc(D({ postId: e6 }, []));
3904
3932
  n2?.onSiteCall?.();
3905
3933
  try {
3906
3934
  let e7 = await t2.request(r2);
@@ -3910,32 +3938,32 @@ async function yc(e6) {
3910
3938
  throw n2?.onError?.(e7), t3;
3911
3939
  }
3912
3940
  }
3913
- function bc(e6) {
3914
- return (t2, n2) => vc(t2, n2, { httpClient: e6 });
3941
+ function yc(e6) {
3942
+ return (t2, n2) => _c(t2, n2, { httpClient: e6 });
3915
3943
  }
3916
- function xc(e6) {
3917
- return (t2) => yc(t2, { httpClient: e6 });
3944
+ function bc(e6) {
3945
+ return (t2) => vc(t2, { httpClient: e6 });
3918
3946
  }
3947
+ var xc = M(yc);
3919
3948
  var Sc = M(bc);
3920
- var Cc = M(xc);
3921
- var wc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3922
- var Tc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3923
- function Ec(e6) {
3949
+ var Cc = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3950
+ var wc = [{ path: `tags.createdDate` }, { path: `tags.updatedDate` }];
3951
+ function Tc(e6) {
3924
3952
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www.wixapis.com": [{ srcPath: `/v3/tags`, destPath: `/v3/tags` }, { srcPath: `/blog/v3/tags`, destPath: `/v3/tags` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v2/tags`, destPath: `/v2/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tag`, destPath: `/v3/bulk/tag` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tags`, destPath: `/v3/bulk/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }] } }));
3925
3953
  }
3926
- var Dc = `@wix/auto_sdk_blog_tags`;
3927
- function Oc(e6) {
3954
+ var Ec = `@wix/auto_sdk_blog_tags`;
3955
+ function Dc(e6) {
3928
3956
  function t2({ host: t3 }) {
3929
- let n2 = A(e6, [{ transformFn: un, paths: wc }]);
3930
- return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: Dc, migrationOptions: { optInTransformResponse: true }, url: Ec({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Tc }]) };
3957
+ let n2 = A(e6, [{ transformFn: un, paths: Cc }]);
3958
+ return { entityFqdn: `wix.blog.v3.tag`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.QueryTags`, packageName: Ec, migrationOptions: { optInTransformResponse: true }, url: Tc({ protoPath: `/v3/tags/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: wc }]) };
3931
3959
  }
3932
3960
  return t2;
3933
3961
  }
3934
- var kc = [{ path: `tags.url` }];
3935
- function Ac(e6) {
3962
+ var Oc = [{ path: `tags.url` }];
3963
+ function kc(e6) {
3936
3964
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3937
- return gs({ func: async (r2) => {
3938
- let i2 = Oc({ ...r2, ...e6 ?? {} });
3965
+ return hs({ func: async (r2) => {
3966
+ let i2 = Dc({ ...r2, ...e6 ?? {} });
3939
3967
  n2?.onSiteCall?.();
3940
3968
  try {
3941
3969
  let e7 = await t2.request(i2);
@@ -3947,57 +3975,57 @@ function Ac(e6) {
3947
3975
  let n3 = [t3, e6];
3948
3976
  return D({ ...n3?.[1], query: n3?.[0] });
3949
3977
  }, responseTransformer: ({ data: e7 }) => {
3950
- let t3 = O(A(e7, [{ transformFn: Ys, paths: kc }]));
3978
+ let t3 = O(A(e7, [{ transformFn: Js, paths: Oc }]));
3951
3979
  return { items: t3?.tags, pagingMetadata: t3?.pagingMetadata };
3952
3980
  }, errorTransformer: (e7) => {
3953
3981
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3954
3982
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
3955
3983
  }
3956
- async function jc(e6, t2) {
3957
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oc(D({ query: e6, ...t2 }));
3984
+ async function Ac(e6, t2) {
3985
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Dc(D({ query: e6, ...t2 }));
3958
3986
  r2?.onSiteCall?.();
3959
3987
  try {
3960
3988
  let e7 = await n2.request(i2);
3961
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Ys, paths: kc }]));
3989
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Js, paths: Oc }]));
3962
3990
  } catch (e7) {
3963
3991
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3964
3992
  throw r2?.onError?.(e7), t3;
3965
3993
  }
3966
3994
  }
3995
+ function jc(e6) {
3996
+ return (t2) => kc(t2, { httpClient: e6 });
3997
+ }
3967
3998
  function Mc(e6) {
3968
- return (t2) => Ac(t2, { httpClient: e6 });
3999
+ return (t2, n2) => Ac(t2, n2, { httpClient: e6 });
3969
4000
  }
3970
4001
  function Nc(e6) {
3971
- return (t2, n2) => jc(t2, n2, { httpClient: e6 });
3972
- }
3973
- function Pc(e6) {
3974
- let t2 = Es({ builderQueryFunction: (t3) => Mc(e6)(t3), typedQueryFunction: (t3, n3) => Nc(e6)(t3, n3), hasOptionsParameter: true });
4002
+ let t2 = Ts({ builderQueryFunction: (t3) => jc(e6)(t3), typedQueryFunction: (t3, n3) => Mc(e6)(t3, n3), hasOptionsParameter: true });
3975
4003
  function n2(e7, n3) {
3976
4004
  return t2(...arguments);
3977
4005
  }
3978
4006
  return n2;
3979
4007
  }
3980
- var Fc = M(Pc);
3981
- var Ic = (e6) => O(A(e6, [{ transformFn: Ys, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: Js, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: oc, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
3982
- var Lc = `https://blog.wixsite.com/blog-demo-posts`;
4008
+ var Pc = M(Nc);
4009
+ var Fc = (e6) => O(A(e6, [{ transformFn: Js, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: qs, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: ac, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
4010
+ var Ic = `https://blog.wixsite.com/blog-demo-posts`;
3983
4011
  M((e6) => async (t2) => {
3984
4012
  let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${N(t2)}`);
3985
4013
  if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
3986
- return Ic(await n2.json()).filter((e7) => !e7.url?.startsWith(Lc));
4014
+ return Fc(await n2.json()).filter((e7) => !e7.url?.startsWith(Ic));
3987
4015
  });
3988
- var Rc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
3989
- function zc(e6) {
4016
+ var Lc = [{ path: `member.createdDate` }, { path: `member.updatedDate` }, { path: `member.lastLoginDate` }];
4017
+ function Rc(e6) {
3990
4018
  return P(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
3991
4019
  }
3992
- var Bc = `@wix/auto_sdk_members_members`;
3993
- function Vc(e6) {
4020
+ var zc = `@wix/auto_sdk_members_members`;
4021
+ function Bc(e6) {
3994
4022
  function t2({ host: t3 }) {
3995
- return { entityFqdn: `wix.members.v1.member`, method: `GET`, methodFqn: `com.wixpress.members.api.Members.GetMember`, packageName: Bc, migrationOptions: { optInTransformResponse: true }, url: zc({ protoPath: `/v1/members/{id}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Rc }]) };
4023
+ return { entityFqdn: `wix.members.v1.member`, method: `GET`, methodFqn: `com.wixpress.members.api.Members.GetMember`, packageName: zc, migrationOptions: { optInTransformResponse: true }, url: Rc({ protoPath: `/v1/members/{id}`, data: e6, host: t3 }), params: N(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Lc }]) };
3996
4024
  }
3997
4025
  return t2;
3998
4026
  }
3999
- async function Hc(e6, t2) {
4000
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Vc(D({ id: e6, fieldsets: t2?.fieldsets }));
4027
+ async function Vc(e6, t2) {
4028
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Bc(D({ id: e6, fieldsets: t2?.fieldsets }));
4001
4029
  r2?.onSiteCall?.();
4002
4030
  try {
4003
4031
  let e7 = await n2.request(i2);
@@ -4007,70 +4035,70 @@ async function Hc(e6, t2) {
4007
4035
  throw r2?.onError?.(e7), t3;
4008
4036
  }
4009
4037
  }
4010
- function Uc(e6) {
4011
- return (t2, n2) => Hc(t2, n2, { httpClient: e6 });
4038
+ function Hc(e6) {
4039
+ return (t2, n2) => Vc(t2, n2, { httpClient: e6 });
4012
4040
  }
4013
- var Wc = M(Uc);
4014
- var Gc = async (e6) => {
4041
+ var Uc = M(Hc);
4042
+ var Wc = async (e6) => {
4015
4043
  try {
4016
- return await Wc(e6, { fieldsets: [`PUBLIC`] });
4044
+ return await Uc(e6, { fieldsets: [`PUBLIC`] });
4017
4045
  } catch {
4018
4046
  return;
4019
4047
  }
4020
4048
  };
4021
- var Kc = `wix.blog.v4.post`;
4022
- var qc = async (e6, t2) => {
4023
- let n2 = await ss({ postFqdn: Kc, postId: e6 }, t2 ? { language: t2 } : void 0);
4049
+ var Gc = `wix.blog.v4.post`;
4050
+ var Kc = async (e6, t2) => {
4051
+ let n2 = await os({ postFqdn: Gc, postId: e6 }, t2 ? { language: t2 } : void 0);
4024
4052
  if (typeof n2 != `object` || !n2) throw Error(`No Wix SDK context for the post paywall read`);
4025
4053
  let { richContent: r2 } = n2;
4026
4054
  return D(r2);
4027
4055
  };
4028
- var Jc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4029
- var Yc = `membership_plan_picker_tpa`;
4030
- var Xc = (e6) => {
4056
+ var qc = `1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`;
4057
+ var Jc = `membership_plan_picker_tpa`;
4058
+ var Yc = (e6) => {
4031
4059
  let t2;
4032
4060
  try {
4033
- t2 = e6.appSectionRelativeUrl(Jc, Yc);
4061
+ t2 = e6.appSectionRelativeUrl(qc, Jc);
4034
4062
  } catch {
4035
4063
  return;
4036
4064
  }
4037
4065
  if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${t2.replace(/^\/+/, ``)}`;
4038
4066
  };
4039
- var Zc = (e6, t2) => e6.flatMap((e7) => {
4040
- let n2 = e7.nodes ? { ...e7, nodes: Zc(e7.nodes, t2) } : e7;
4067
+ var Xc = (e6, t2) => e6.flatMap((e7) => {
4068
+ let n2 = e7.nodes ? { ...e7, nodes: Xc(e7.nodes, t2) } : e7;
4041
4069
  return e7.type !== `BUTTON` || e7.buttonData?.type !== `ACTION` ? [n2] : t2 ? [{ ...n2, buttonData: { ...e7.buttonData, type: `LINK`, link: { url: t2, target: `SELF`, rel: { nofollow: true } } } }] : [];
4042
4070
  });
4043
- var Qc = (e6, t2, n2) => {
4071
+ var Zc = (e6, t2, n2) => {
4044
4072
  if (!t2?.nodes?.length) return e6;
4045
- let r2 = Zc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4073
+ let r2 = Xc(t2.nodes.map((e7) => e7.layoutData ? { ...e7, layoutData: { ...e7.layoutData, banner: void 0 } } : e7), n2);
4046
4074
  return { ...e6, nodes: [...e6.nodes ?? [], ...r2] };
4047
4075
  };
4048
- var $c = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4049
- var el = [{ path: `posts.richContentCompressed` }];
4050
- var tl = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4051
- var nl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4052
- function rl(e6) {
4076
+ var Qc = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
4077
+ var $c = [{ path: `posts.richContentCompressed` }];
4078
+ var el = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
4079
+ var tl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
4080
+ function nl(e6) {
4053
4081
  return P(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
4054
4082
  }
4055
- var il = `@wix/auto_sdk_blog_posts`;
4056
- function al(e6) {
4083
+ var rl = `@wix/auto_sdk_blog_posts`;
4084
+ function il(e6) {
4057
4085
  function t2({ host: t3 }) {
4058
- let n2 = A(e6, [{ transformFn: un, paths: nl }]);
4059
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: il, migrationOptions: { optInTransformResponse: true }, url: rl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: $c }, { transformFn: fn, paths: el }, { transformFn: dn, paths: tl }]) };
4086
+ let n2 = A(e6, [{ transformFn: un, paths: tl }]);
4087
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: rl, migrationOptions: { optInTransformResponse: true }, url: nl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Qc }, { transformFn: dn, paths: $c }, { transformFn: F, paths: el }]) };
4060
4088
  }
4061
4089
  return t2;
4062
4090
  }
4063
- function ol() {
4064
- let e6 = al({});
4091
+ function al() {
4092
+ let e6 = il({});
4065
4093
  return { getUrl: (t2) => {
4066
4094
  let { url: n2 } = e6(t2);
4067
4095
  return n2;
4068
4096
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
4069
4097
  }
4070
- var sl = ol();
4071
- var cl = (e6) => (t2) => ({ method: `POST`, url: sl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4072
- var ll = M((e6) => async (t2) => {
4073
- let { data: n2 } = await e6.request(cl(t2)), r2 = {};
4098
+ var ol = al();
4099
+ var sl = (e6) => (t2) => ({ method: `POST`, url: ol.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
4100
+ var cl = M((e6) => async (t2) => {
4101
+ let { data: n2 } = await e6.request(sl(t2)), r2 = {};
4074
4102
  for (let e7 of n2.posts ?? []) {
4075
4103
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
4076
4104
  if (!t3 || !n3?.length) continue;
@@ -4079,125 +4107,125 @@ var ll = M((e6) => async (t2) => {
4079
4107
  }
4080
4108
  return r2;
4081
4109
  });
4082
- var ul = async (e6) => {
4110
+ var ll = async (e6) => {
4083
4111
  if (e6.length === 0) return {};
4084
4112
  try {
4085
- return await ll(e6);
4113
+ return await cl(e6);
4086
4114
  } catch {
4087
4115
  return {};
4088
4116
  }
4089
4117
  };
4090
- var dl = class extends Error {
4118
+ var ul = class extends Error {
4091
4119
  constructor(e6, t2) {
4092
4120
  super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
4093
4121
  }
4094
4122
  };
4095
- var fl = (e6, t2, n2) => {
4123
+ var dl = (e6, t2, n2) => {
4096
4124
  let r2, i2 = new Promise((e7, i3) => {
4097
- r2 = setTimeout(() => i3(new dl(n2, t2)), t2);
4125
+ r2 = setTimeout(() => i3(new ul(n2, t2)), t2);
4098
4126
  });
4099
4127
  return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
4100
4128
  };
4101
- X.RICH_CONTENT, X.SEO, X.URL, X.CONTENT_TEXT;
4102
- var pl = [X.RICH_CONTENT, X.URL];
4103
- X.URL, X.METRICS;
4104
- var ml = (e6) => {
4129
+ Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT;
4130
+ var fl = [Z.RICH_CONTENT, Z.URL];
4131
+ Z.URL, Z.METRICS;
4132
+ var pl = (e6) => {
4105
4133
  let { status: t2, details: n2 } = e6 ?? {};
4106
4134
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
4107
4135
  };
4108
- var hl = (e6, t2) => {
4109
- if (t2 && !ml(e6)) throw e6;
4136
+ var ml = (e6, t2) => {
4137
+ if (t2 && !pl(e6)) throw e6;
4110
4138
  };
4111
- var gl = (e6) => ul(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4112
- var _l = async (e6) => {
4139
+ var hl = (e6) => ll(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4140
+ var gl = async (e6) => {
4113
4141
  try {
4114
- let { metrics: t2 } = await Cc(e6);
4142
+ let { metrics: t2 } = await Sc(e6);
4115
4143
  return t2;
4116
4144
  } catch {
4117
4145
  return;
4118
4146
  }
4119
4147
  };
4120
- var vl = 100;
4121
- var yl = async () => {
4148
+ var _l = 100;
4149
+ var vl = async () => {
4122
4150
  try {
4123
- let { categories: e6 } = await ac({ paging: { limit: vl } });
4151
+ let { categories: e6 } = await ic({ paging: { limit: _l } });
4124
4152
  return e6 ?? [];
4125
4153
  } catch {
4126
4154
  return [];
4127
4155
  }
4128
4156
  };
4129
- var bl = (e6, t2) => {
4157
+ var yl = (e6, t2) => {
4130
4158
  let { categoryIds: n2 } = e6 ?? {};
4131
4159
  if (!n2?.length) return [];
4132
4160
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4133
4161
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4134
4162
  };
4135
- var xl = 30;
4136
- var Sl = async (e6) => {
4163
+ var bl = 30;
4164
+ var xl = async (e6) => {
4137
4165
  if (!e6?.length) return [];
4138
4166
  try {
4139
- let { items: t2 } = await Fc().in(`_id`, e6).limit(xl).find();
4167
+ let { items: t2 } = await Pc().in(`_id`, e6).limit(bl).find();
4140
4168
  return t2 ?? [];
4141
4169
  } catch {
4142
4170
  return [];
4143
4171
  }
4144
4172
  };
4145
- var Cl = (e6, t2) => {
4173
+ var Sl = (e6, t2) => {
4146
4174
  let { tagIds: n2 } = e6 ?? {};
4147
4175
  if (!n2?.length) return [];
4148
4176
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4149
4177
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4150
4178
  };
4179
+ var Cl = 1e3;
4151
4180
  var wl = 1e3;
4152
- var Tl = 1e3;
4153
- var El = async (e6, t2 = false) => {
4181
+ var Tl = async (e6, t2 = false) => {
4154
4182
  try {
4155
- return (await Sc(e6, { fieldsets: pl })).post;
4183
+ return (await xc(e6, { fieldsets: fl })).post;
4156
4184
  } catch (e7) {
4157
- hl(e7, t2);
4185
+ ml(e7, t2);
4158
4186
  return;
4159
4187
  }
4160
4188
  };
4161
- var Dl = async (e6, t2 = false) => {
4162
- let n2 = yl();
4163
- return Ol(await El(e6, t2), n2);
4189
+ var El = async (e6, t2 = false) => {
4190
+ let n2 = vl();
4191
+ return Dl(await Tl(e6, t2), n2);
4164
4192
  };
4165
- var Ol = async (e6, t2) => {
4166
- let { _id: n2, memberId: r2, tagIds: i2, preview: a2 } = e6 ?? {}, [o2, s2, c2, l2, u2, d2] = await Promise.all([r2 ? Gc(r2) : void 0, n2 ? _l(n2) : void 0, t2, Sl(i2), a2 && n2 ? fl(qc(n2, e6?.language ?? void 0), wl, `post-paywall`).catch(() => void 0) : void 0, fl(gl(e6 ? [e6] : []), Tl, `post-video`).catch(() => ({}))]), f2 = n2 ? d2[n2] : void 0;
4167
- return { post: e6, author: o2, metrics: s2, categories: bl(e6, c2), tags: Cl(e6, l2), ...u2 && { paywall: u2 }, ...f2 && { videoSources: f2 } };
4193
+ var Dl = async (e6, t2) => {
4194
+ let { _id: n2, memberId: r2, tagIds: i2, preview: a2 } = e6 ?? {}, [o2, s2, c2, l2, u2, d2] = await Promise.all([r2 ? Wc(r2) : void 0, n2 ? gl(n2) : void 0, t2, xl(i2), a2 && n2 ? dl(Kc(n2, e6?.language ?? void 0), Cl, `post-paywall`).catch(() => void 0) : void 0, dl(hl(e6 ? [e6] : []), wl, `post-video`).catch(() => ({}))]), f2 = n2 ? d2[n2] : void 0;
4195
+ return { post: e6, author: o2, metrics: s2, categories: yl(e6, c2), tags: Sl(e6, l2), ...u2 && { paywall: u2 }, ...f2 && { videoSources: f2 } };
4168
4196
  };
4169
- var kl = (e6) => {
4197
+ var Ol = (e6) => {
4170
4198
  let { _id: t2, categoryIds: n2, relatedPostIds: r2 } = e6 ?? {};
4171
4199
  return { currentPostId: t2 ?? void 0, categoryIds: n2, relatedPostIds: r2 };
4172
4200
  };
4173
- var Al = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4174
- var jl = (e6) => {
4201
+ var kl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4202
+ var Al = (e6) => {
4175
4203
  try {
4176
4204
  return e6.getMonitoringClient?.() ?? null;
4177
4205
  } catch {
4178
4206
  return null;
4179
4207
  }
4180
4208
  };
4181
- var Ml = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4182
- function Nl(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4183
- let o2 = Ml(e6, `captureException`);
4209
+ var jl = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4210
+ function Ml(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4211
+ let o2 = jl(e6, `captureException`);
4184
4212
  if (!o2) return;
4185
4213
  let s2 = t2 instanceof Error ? t2 : Error(String(t2));
4186
4214
  o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
4187
4215
  }
4188
- function Pl(e6, t2, { feature: n2, tags: r2 }, i2) {
4189
- let a2 = Ml(e6, `startSpanManual`);
4216
+ function Nl(e6, t2, { feature: n2, tags: r2 }, i2) {
4217
+ let a2 = jl(e6, `startSpanManual`);
4190
4218
  if (!a2) return i2;
4191
4219
  let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
4192
4220
  return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
4193
4221
  }
4194
- var Fl = class extends n {
4222
+ var Pl = class extends n {
4195
4223
  state = { error: void 0 };
4196
4224
  static getDerivedStateFromError(e6) {
4197
4225
  return { error: e6 ?? Error(`Unknown render error`) };
4198
4226
  }
4199
4227
  componentDidCatch(e6, t2) {
4200
- Nl(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4228
+ Ml(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4201
4229
  }
4202
4230
  render() {
4203
4231
  if (this.state.error === void 0) return this.props.children;
@@ -4205,64 +4233,64 @@ var Fl = class extends n {
4205
4233
  return this.props.fallback;
4206
4234
  }
4207
4235
  };
4208
- var Il = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4209
- var Ll = (e6) => {
4236
+ var Fl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4237
+ var Il = (e6) => {
4210
4238
  if (e6 && typeof e6 == `object`) return (typeof e6.$eq == `string` ? e6.$eq : Array.isArray(e6.$in) ? e6.$in.find((e7) => typeof e7 == `string` && e7.trim() !== ``) : void 0)?.trim() || void 0;
4211
4239
  };
4212
- var Rl = `postId`;
4213
- var zl = (e6) => Ll(e6?.[Rl]);
4214
- var Bl = (e6) => {
4240
+ var Ll = `postId`;
4241
+ var Rl = (e6) => Il(e6?.[Ll]);
4242
+ var zl = (e6) => {
4215
4243
  let t2;
4216
4244
  try {
4217
- t2 = m(Zn);
4245
+ t2 = m(Xn);
4218
4246
  } catch {
4219
4247
  return;
4220
4248
  }
4221
- return ur(t2, e6);
4249
+ return lr(t2, e6);
4222
4250
  };
4223
- var Vl = 1e4;
4224
- function Hl(e6) {
4251
+ var Bl = 1e4;
4252
+ function Vl(e6) {
4225
4253
  let [t2, n2] = f(void 0);
4226
4254
  return l(() => {
4227
4255
  let t3 = Date.now();
4228
- t3 - e6 > Vl && o(() => n2(t3));
4256
+ t3 - e6 > Bl && o(() => n2(t3));
4229
4257
  }, []), t2 ?? e6;
4230
4258
  }
4231
- var Ul = `wix.blog.v3.post`;
4232
- var Wl = async (e6) => {
4233
- await Gs({ like: { entityId: e6, fqdn: Ul } });
4259
+ var Hl = `wix.blog.v3.post`;
4260
+ var Ul = async (e6) => {
4261
+ await Ws({ like: { entityId: e6, fqdn: Hl } });
4234
4262
  };
4235
- var Gl = async (e6) => {
4236
- await Ks({ fqdn: Ul, entityId: e6 });
4263
+ var Wl = async (e6) => {
4264
+ await Gs({ fqdn: Hl, entityId: e6 });
4237
4265
  };
4238
- var Kl = (e6) => typeof e6 == `number` ? e6 : void 0;
4239
- var ql = async (e6) => {
4240
- let [t2, n2] = await Promise.allSettled([qs().eq(`fqdn`, Ul).eq(`entityId`, e6).limit(1).find(), Cc(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
4241
- return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Kl(r2?.likes), viewCount: Kl(r2?.views), commentCount: Kl(r2?.comments) };
4266
+ var Gl = (e6) => typeof e6 == `number` ? e6 : void 0;
4267
+ var Kl = async (e6) => {
4268
+ let [t2, n2] = await Promise.allSettled([Ks().eq(`fqdn`, Hl).eq(`entityId`, e6).limit(1).find(), Sc(e6)]), r2 = n2.status === `fulfilled` ? n2.value.metrics : void 0;
4269
+ return { liked: t2.status === `fulfilled` && t2.value.items.length > 0, likeCount: Gl(r2?.likes), viewCount: Gl(r2?.views), commentCount: Gl(r2?.comments) };
4242
4270
  };
4243
- var Jl = F(`@wix/site-service-editor-context`);
4244
- var Yl = () => {
4271
+ var ql = I(`@wix/site-service-editor-context`);
4272
+ var Jl = () => {
4245
4273
  try {
4246
- return !!m(Jl).previewMode;
4274
+ return !!m(ql).previewMode;
4247
4275
  } catch {
4248
4276
  return false;
4249
4277
  }
4250
4278
  };
4251
- var Xl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4252
- var Zl = `wix-blog:post-like-toggled`;
4253
- var Ql = () => {
4279
+ var Yl = { liked: false, baselineLiked: false, freshLikeCount: void 0, viewCount: void 0, commentCount: void 0, isLikeCountLoaded: false };
4280
+ var Xl = `wix-blog:post-like-toggled`;
4281
+ var Zl = () => {
4254
4282
  let e6 = window;
4255
- return e6[Zl] ??= /* @__PURE__ */ new Map();
4283
+ return e6[Xl] ??= /* @__PURE__ */ new Map();
4256
4284
  };
4257
- var $l = (e6) => {
4258
- Ql().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Zl, { detail: e6 }));
4285
+ var Ql = (e6) => {
4286
+ Zl().set(e6.postId, e6.liked), window.dispatchEvent(new CustomEvent(Xl, { detail: e6 }));
4259
4287
  };
4260
- var eu = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
4261
- var tu = (e6, t2, n2 = false, r2) => {
4262
- let i2 = Yl() || n2, [a2, c2] = f(Xl), p2 = d(Xl), m2 = d(t2), h2 = d(/* @__PURE__ */ new Set()), g2 = d(false), _2 = d(false), v2 = d(void 0), y2 = Yn(), [b2, x2] = f(0);
4288
+ var $l = (e6, t2) => ({ isLiked: e6.liked, likeCount: Math.max(0, (e6.freshLikeCount ?? t2) + Number(e6.liked) - Number(e6.baselineLiked)), isLikeCountLoaded: e6.isLikeCountLoaded, viewCount: e6.viewCount, commentCount: e6.commentCount });
4289
+ var eu = (e6, t2, n2 = false, r2) => {
4290
+ let i2 = Jl() || n2, [a2, c2] = f(Yl), p2 = d(Yl), m2 = d(t2), h2 = d(/* @__PURE__ */ new Set()), g2 = d(false), _2 = d(false), v2 = d(void 0), y2 = Jn(), [b2, x2] = f(0);
4263
4291
  l(() => {
4264
4292
  let e7 = y2?.addMemberLoginListener?.(() => {
4265
- Ql().clear(), x2((e8) => e8 + 1);
4293
+ Zl().clear(), x2((e8) => e8 + 1);
4266
4294
  });
4267
4295
  return () => {
4268
4296
  e7 !== void 0 && y2?.removeMemberLoginListener?.(e7);
@@ -4271,21 +4299,21 @@ var tu = (e6, t2, n2 = false, r2) => {
4271
4299
  let S2 = s((e7) => {
4272
4300
  let t3 = p2.current, n3 = { ...t3, ...e7 };
4273
4301
  Object.keys(n3).every((e8) => n3[e8] === t3[e8]) || (p2.current = n3, h2.current.forEach((e8) => e8()), o(() => c2(n3)));
4274
- }, []), C2 = u(() => ({ get: () => eu(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4302
+ }, []), C2 = u(() => ({ get: () => $l(p2.current, m2.current), subscribe: (e7) => (h2.current.add(e7), () => {
4275
4303
  h2.current.delete(e7);
4276
4304
  }) }), []);
4277
4305
  l(() => {
4278
4306
  m2.current !== t2 && (m2.current = t2, h2.current.forEach((e7) => e7()));
4279
4307
  }, [t2]), l(() => {
4280
- if (v2.current !== e6 && (v2.current = e6, S2(Xl)), _2.current = false, !e6 || i2) {
4308
+ if (v2.current !== e6 && (v2.current = e6, S2(Yl)), _2.current = false, !e6 || i2) {
4281
4309
  S2({ isLikeCountLoaded: true });
4282
4310
  return;
4283
4311
  }
4284
4312
  let t3 = false;
4285
- return ql(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4313
+ return Kl(e6).then(({ liked: e7, likeCount: n3, viewCount: r3, commentCount: i3 }) => {
4286
4314
  t3 || S2({ isLikeCountLoaded: true, viewCount: r3, commentCount: i3, baselineLiked: e7, freshLikeCount: n3, ...!_2.current && { liked: e7 } });
4287
4315
  }).catch((n3) => {
4288
- t3 || S2({ isLikeCountLoaded: true }), Nl(r2, n3, { feature: Al.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4316
+ t3 || S2({ isLikeCountLoaded: true }), Ml(r2, n3, { feature: kl.likes, action: `read-like-state`, level: `warning`, contexts: { likes: { postId: e6 } } });
4289
4317
  }), () => {
4290
4318
  t3 = true;
4291
4319
  };
@@ -4293,216 +4321,216 @@ var tu = (e6, t2, n2 = false, r2) => {
4293
4321
  if (!e6) return;
4294
4322
  let t3 = (e7) => {
4295
4323
  _2.current = true, S2({ liked: e7 });
4296
- }, n3 = Ql().get(e6);
4324
+ }, n3 = Zl().get(e6);
4297
4325
  n3 !== void 0 && t3(n3);
4298
4326
  let r3 = (n4) => {
4299
4327
  let { detail: r4 } = n4;
4300
4328
  r4.postId === e6 && t3(r4.liked);
4301
4329
  };
4302
- return window.addEventListener(Zl, r3), () => window.removeEventListener(Zl, r3);
4330
+ return window.addEventListener(Xl, r3), () => window.removeEventListener(Xl, r3);
4303
4331
  }, [e6, S2]);
4304
4332
  let ee2 = s(async (t3) => {
4305
4333
  if (!e6 || g2.current) return;
4306
4334
  _2.current = true;
4307
4335
  let n3 = !p2.current.liked;
4308
- if (S2({ liked: n3 }), $l({ postId: e6, liked: n3 }), !i2) {
4336
+ if (S2({ liked: n3 }), Ql({ postId: e6, liked: n3 }), !i2) {
4309
4337
  g2.current = true;
4310
4338
  try {
4311
- await (n3 ? Wl(e6) : Gl(e6));
4339
+ await (n3 ? Ul(e6) : Wl(e6));
4312
4340
  } catch (t4) {
4313
- S2({ liked: !n3 }), $l({ postId: e6, liked: !n3 }), Nl(r2, t4, { feature: Al.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4341
+ S2({ liked: !n3 }), Ql({ postId: e6, liked: !n3 }), Ml(r2, t4, { feature: kl.likes, action: n3 ? `like-post` : `unlike-post`, contexts: { likes: { postId: e6 } } });
4314
4342
  } finally {
4315
4343
  g2.current = false;
4316
4344
  }
4317
4345
  }
4318
4346
  }, [e6, i2, r2, S2]);
4319
- return { ...eu(a2, t2), toggleLike: ee2, liveLikes: C2 };
4347
+ return { ...$l(a2, t2), toggleLike: ee2, liveLikes: C2 };
4320
4348
  };
4321
- var nu = () => {
4349
+ var tu = () => {
4322
4350
  try {
4323
- let { locale: e6, language: t2 } = m(xo);
4351
+ let { locale: e6, language: t2 } = m(bo);
4324
4352
  return e6 || t2;
4325
4353
  } catch {
4326
4354
  return;
4327
4355
  }
4328
4356
  };
4329
- var ru = () => {
4357
+ var nu = () => {
4330
4358
  try {
4331
- return Xc(m(Zn));
4359
+ return Yc(m(Xn));
4332
4360
  } catch {
4333
4361
  return;
4334
4362
  }
4335
4363
  };
4336
- var iu = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
4337
- var Z = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
4338
- var au = (e6, t2) => {
4339
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: iu(r2, `full`, t2) });
4340
- return { timeToRead: (t3) => e6(Z.timeToRead, { count: t3 }), viewCount: n2(Z.viewCount), commentCount: n2(Z.commentCount), likeCount: n2(Z.likeCount), noPostsEmptyState: () => ({ title: e6(Z.noPostsTitle), description: e6(Z.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Z.noRelatedPostsTitle), description: e6(Z.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Z.canvasPostTitle), authorName: () => e6(Z.canvasAuthorName), excerpt: () => e6(Z.canvasExcerpt), content: () => e6(Z.canvasContent), category: () => e6(Z.canvasCategory), categoryNumbered: (t3) => e6(Z.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Z.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Z.canvasCoverAlt), authorPhotoAlt: () => e6(Z.canvasAuthorPhotoAlt) } };
4364
+ var ru = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
4365
+ var Q = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
4366
+ var iu = (e6, t2) => {
4367
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: ru(r2, `full`, t2) });
4368
+ return { timeToRead: (t3) => e6(Q.timeToRead, { count: t3 }), viewCount: n2(Q.viewCount), commentCount: n2(Q.commentCount), likeCount: n2(Q.likeCount), noPostsEmptyState: () => ({ title: e6(Q.noPostsTitle), description: e6(Q.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Q.noRelatedPostsTitle), description: e6(Q.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Q.canvasPostTitle), authorName: () => e6(Q.canvasAuthorName), excerpt: () => e6(Q.canvasExcerpt), content: () => e6(Q.canvasContent), category: () => e6(Q.canvasCategory), categoryNumbered: (t3) => e6(Q.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Q.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Q.canvasCoverAlt), authorPhotoAlt: () => e6(Q.canvasAuthorPhotoAlt) } };
4341
4369
  };
4342
- var ou = i({ isEditor: false, isPreview: false });
4343
- var su = () => c(ou);
4344
- var cu = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4345
- var lu = () => {
4370
+ var au = i({ isEditor: false, isPreview: false });
4371
+ var ou = () => c(au);
4372
+ var su = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4373
+ var cu = () => {
4346
4374
  try {
4347
- let { SSR: e6, SEO: t2 } = m(Wn);
4375
+ let { SSR: e6, SEO: t2 } = m(Un);
4348
4376
  return e6 || t2;
4349
4377
  } catch {
4350
4378
  return false;
4351
4379
  }
4352
4380
  };
4353
- var uu = () => {
4354
- let e6 = lu();
4355
- return cu(su()) && !e6;
4381
+ var lu = () => {
4382
+ let e6 = cu();
4383
+ return su(ou()) && !e6;
4356
4384
  };
4357
- var du = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4358
- var fu = (e6) => {
4385
+ var uu = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4386
+ var du = (e6) => {
4359
4387
  if (!e6) return;
4360
4388
  let t2 = e6 instanceof Date ? e6 : new Date(e6);
4361
4389
  return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4362
4390
  };
4363
- var pu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4364
- var mu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4365
- var Q = (e6) => ({ text: e6, html: `<p>${mu(e6)}</p>`, linkList: [] });
4366
- var hu = 6e4;
4367
- var gu = hu * 60;
4368
- var _u = gu * 24;
4369
- var vu = _u * 7;
4370
- var yu = (e6) => e6 < hu ? [`second`, e6 / 1e3] : e6 < gu ? [`minute`, e6 / hu] : e6 < _u ? [`hour`, e6 / gu] : [`day`, e6 / _u];
4371
- var bu = (e6, t2, n2 = Date.now()) => {
4391
+ var fu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4392
+ var pu = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4393
+ var $ = (e6) => ({ text: e6, html: `<p>${pu(e6)}</p>`, linkList: [] });
4394
+ var mu = 6e4;
4395
+ var hu = mu * 60;
4396
+ var gu = hu * 24;
4397
+ var _u = gu * 7;
4398
+ var vu = (e6) => e6 < mu ? [`second`, e6 / 1e3] : e6 < hu ? [`minute`, e6 / mu] : e6 < gu ? [`hour`, e6 / hu] : [`day`, e6 / gu];
4399
+ var yu = (e6, t2, n2 = Date.now()) => {
4372
4400
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4373
- if (i2 >= 0 && i2 < vu) {
4374
- let [e7, n3] = yu(i2);
4401
+ if (i2 >= 0 && i2 < _u) {
4402
+ let [e7, n3] = vu(i2);
4375
4403
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4376
4404
  }
4377
4405
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4378
4406
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4379
4407
  };
4380
- var xu = `https://static.wixstatic.com/media/`;
4381
- var Su = 100;
4382
- var Cu = (e6, t2 = ``) => {
4408
+ var bu = `https://static.wixstatic.com/media/`;
4409
+ var xu = 100;
4410
+ var Su = (e6, t2 = ``) => {
4383
4411
  let n2 = e6?.profile?.photo;
4384
4412
  if (!n2?.url) return;
4385
- let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(xu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4386
- return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Su, height: n2.height || Su, alt: r2 ?? t2 };
4387
- };
4388
- var wu = `https://static.wixstatic.com/media/`;
4389
- var Tu = `wix:image://`;
4390
- var Eu = 1200;
4391
- var Du = 800;
4392
- var Ou = (e6) => {
4413
+ let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(bu) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4414
+ return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || xu, height: n2.height || xu, alt: r2 ?? t2 };
4415
+ };
4416
+ var Cu = `https://static.wixstatic.com/media/`;
4417
+ var wu = `wix:image://`;
4418
+ var Tu = 1200;
4419
+ var Eu = 800;
4420
+ var Du = (e6) => {
4393
4421
  if (!e6) return;
4394
4422
  let t2 = Number.parseInt(e6, 10);
4395
4423
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4396
4424
  };
4397
- var ku = (e6) => {
4398
- if (!e6.startsWith(Tu)) {
4425
+ var Ou = (e6) => {
4426
+ if (!e6.startsWith(wu)) {
4399
4427
  let t3 = e6.split(/[?#]/)[0];
4400
4428
  return t3 ? { uri: t3 } : void 0;
4401
4429
  }
4402
4430
  let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
4403
4431
  if (!r2) return;
4404
4432
  let a2 = new URLSearchParams(n2 ?? ``);
4405
- return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Ou(a2.get(`originWidth`)), height: Ou(a2.get(`originHeight`)) };
4433
+ return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Du(a2.get(`originWidth`)), height: Du(a2.get(`originHeight`)) };
4406
4434
  };
4407
- var Au = (e6, t2) => {
4435
+ var ku = (e6, t2) => {
4408
4436
  if (!e6) return;
4409
- let n2 = ku(e6);
4437
+ let n2 = Ou(e6);
4410
4438
  if (!n2) return;
4411
4439
  let r2 = n2.name ?? n2.uri;
4412
- return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: t2 ?? r2 };
4440
+ return { uri: n2.uri, url: `${Cu}${n2.uri}`, name: r2, width: n2.width ?? Tu, height: n2.height ?? Eu, alt: t2 ?? r2 };
4413
4441
  };
4414
- var ju = (e6) => {
4442
+ var Au = (e6) => {
4415
4443
  let t2 = e6?.media?.wixMedia?.image;
4416
4444
  if (!t2) return;
4417
- let n2 = ku(t2);
4445
+ let n2 = Ou(t2);
4418
4446
  if (!n2) return;
4419
4447
  let r2 = n2.name ?? n2.uri;
4420
- return { uri: n2.uri, url: `${wu}${n2.uri}`, name: r2, width: n2.width ?? Eu, height: n2.height ?? Du, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4448
+ return { uri: n2.uri, url: `${Cu}${n2.uri}`, name: r2, width: n2.width ?? Tu, height: n2.height ?? Eu, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4421
4449
  };
4422
- var Mu = `https://static.wixstatic.com/media/`;
4423
- var Nu = `wix:video://`;
4424
- var Pu = (e6) => {
4450
+ var ju = `https://static.wixstatic.com/media/`;
4451
+ var Mu = `wix:video://`;
4452
+ var Nu = (e6) => {
4425
4453
  if (!e6) return;
4426
4454
  let t2 = Number.parseInt(e6, 10);
4427
4455
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4428
4456
  };
4429
- var Fu = (e6) => {
4430
- if (!e6.startsWith(Nu)) return;
4457
+ var Pu = (e6) => {
4458
+ if (!e6.startsWith(Mu)) return;
4431
4459
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4432
4460
  if (!r2) return;
4433
4461
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4434
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Mu}${a2}` : void 0, posterWidth: Pu(i2.get(`posterWidth`)), posterHeight: Pu(i2.get(`posterHeight`)) };
4462
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${ju}${a2}` : void 0, posterWidth: Nu(i2.get(`posterWidth`)), posterHeight: Nu(i2.get(`posterHeight`)) };
4435
4463
  };
4436
- var Iu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4437
- var Lu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4438
- var Ru = (e6, t2) => {
4464
+ var Fu = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4465
+ var Iu = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4466
+ var Lu = (e6, t2) => {
4439
4467
  for (let n2 of e6) {
4440
4468
  let e7 = n2.exec(t2);
4441
4469
  if (e7) return e7[1];
4442
4470
  }
4443
4471
  };
4444
- var zu = (e6) => {
4445
- let t2 = Ru(Iu, e6);
4472
+ var Ru = (e6) => {
4473
+ let t2 = Lu(Fu, e6);
4446
4474
  if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4447
- let n2 = Ru(Lu, e6);
4475
+ let n2 = Lu(Iu, e6);
4448
4476
  return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4449
4477
  };
4450
- var Bu = (e6, t2 = []) => {
4478
+ var zu = (e6, t2 = []) => {
4451
4479
  let n2 = e6?.media;
4452
4480
  if (!n2 || n2.displayed === false) return;
4453
- let r2 = ju(e6);
4481
+ let r2 = Au(e6);
4454
4482
  if (r2) return { kind: `image`, image: r2 };
4455
- let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Fu(n2.wixMedia.videoV2) : void 0;
4483
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Pu(n2.wixMedia.videoV2) : void 0;
4456
4484
  if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4457
4485
  let o2 = n2.embedMedia?.video?.url;
4458
4486
  if (o2) {
4459
4487
  let { thumbnail: e7 } = n2.embedMedia ?? {};
4460
- return { kind: `embed`, videoUrl: o2, ...zu(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4488
+ return { kind: `embed`, videoUrl: o2, ...Ru(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4461
4489
  }
4462
4490
  };
4463
- var Vu = (e6) => {
4464
- let t2 = ju(e6), n2 = e6?.media?.wixMedia?.videoV2;
4491
+ var Bu = (e6) => {
4492
+ let t2 = Au(e6), n2 = e6?.media?.wixMedia?.videoV2;
4465
4493
  if (t2 || !n2) return t2;
4466
- let r2 = Fu(n2), i2 = Au(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4494
+ let r2 = Pu(n2), i2 = ku(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4467
4495
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4468
4496
  };
4469
- var Hu = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4470
- var Uu = (e6, t2) => {
4471
- let n2 = Hu(e6, t2);
4497
+ var Vu = (e6, t2) => e6 && t2 ? `${e6}/${encodeURIComponent(t2)}` : void 0;
4498
+ var Hu = (e6, t2) => {
4499
+ let n2 = Vu(e6, t2);
4472
4500
  return n2 ? { href: n2, target: `_self` } : void 0;
4473
4501
  };
4474
- var Wu = { href: `#`, target: `_self` };
4475
- var Gu = (e6, t2) => {
4502
+ var Uu = { href: `#`, target: `_self` };
4503
+ var Wu = (e6, t2) => {
4476
4504
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4477
- return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: Q(a2), itemCategoryLink: Uu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4505
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemCategoryLabel: $(a2), itemCategoryLink: Hu(t2, i2 ?? ``), categoryItem: { label: a2, slug: i2 ?? `` } };
4478
4506
  };
4479
- var Ku = 2;
4480
- var qu = (e6) => Array.from({ length: Ku }, (t2, n2) => {
4507
+ var Gu = 2;
4508
+ var Ku = (e6) => Array.from({ length: Gu }, (t2, n2) => {
4481
4509
  let r2 = e6.canvas.categoryNumbered(n2 + 1);
4482
- return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: Q(r2), itemCategoryLink: Wu, categoryItem: { label: r2, slug: `` } };
4510
+ return { _id: `placeholder-category-${n2}`, label: r2, itemCategoryLabel: $(r2), itemCategoryLink: Uu, categoryItem: { label: r2, slug: `` } };
4483
4511
  });
4484
- var Ju = (e6, t2) => {
4512
+ var qu = (e6, t2) => {
4485
4513
  let { _id: n2, label: r2, slug: i2 } = e6, a2 = r2 ?? ``;
4486
- return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: Q(a2), itemTagLink: Uu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4514
+ return { _id: n2 ?? i2 ?? ``, label: a2, itemTagLabel: $(a2), itemTagLink: Hu(t2, i2 ?? ``), tagItem: { label: a2, slug: i2 ?? `` } };
4487
4515
  };
4488
- var Yu = 3;
4489
- var Xu = (e6) => Array.from({ length: Yu }, (t2, n2) => {
4516
+ var Ju = 3;
4517
+ var Yu = (e6) => Array.from({ length: Ju }, (t2, n2) => {
4490
4518
  let r2 = e6.canvas.tagNumbered(n2 + 1);
4491
- return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: Q(r2), itemTagLink: Wu, tagItem: { label: r2, slug: `` } };
4519
+ return { _id: `placeholder-tag-${n2}`, label: r2, itemTagLabel: $(r2), itemTagLink: Uu, tagItem: { label: r2, slug: `` } };
4492
4520
  });
4493
- var Zu = 1;
4494
- var $ = { views: 120, comments: 4, likes: 12 };
4521
+ var Xu = 1;
4522
+ var Zu = { views: 120, comments: 4, likes: 12 };
4495
4523
  var Qu = (e6) => ({ nodes: [{ type: `PARAGRAPH`, nodes: [{ type: `TEXT`, nodes: [], textData: { text: e6, decorations: [] } }] }] });
4496
- var $u = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4524
+ var $u = (e6, t2, n2, r2) => $(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4497
4525
  var ed = (e6, t2, n2) => e6 ?? (n2 ? t2 : void 0);
4498
4526
  var td = { nodes: [] };
4499
- var nd = () => ({ title: Q(``), excerpt: Q(``), coverImage: void 0, coverMedia: void 0, richContent: td, authorName: Q(``), authorImage: void 0, timeToRead: Q(``), publishedDate: Q(``), viewCount: Q(``), commentCount: Q(``), likeCount: Q(``), postCategories: [], itemCategoryLabel: Q(``), postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
4500
- var rd = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? nd() : { title: Q(e6?.title ?? o2.canvas.postTitle()), excerpt: Q(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: Vu(e6), coverMedia: Bu(e6, a2), richContent: e6?.richContent ?? Qu(o2.canvas.content()), authorName: Q(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage: Cu(t2, o2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? o2.timeToRead(e6.minutesToRead) : c2 ? o2.timeToRead(Zu) : ``), publishedDate: Q(bu(e6?.firstPublishedDate ?? new Date(l2), s2, l2)), viewCount: $u(n2?.views, $.views, c2, o2.viewCount), commentCount: $u(n2?.comments, $.comments, c2, o2.commentCount), likeCount: $u(n2?.likes, $.likes, c2, o2.likeCount), postCategories: r2.length === 0 && c2 ? qu(o2) : r2.map((e7) => Gu(e7, u2.category)), itemCategoryLabel: Q(r2[0]?.label ?? (c2 ? o2.canvas.category() : ``)), postTags: i2.length === 0 && c2 ? Xu(o2) : i2.map((e7) => Ju(e7, u2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && Vu(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: fu(e6?.firstPublishedDate) ?? (c2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: pu(e6?.minutesToRead) ?? (c2 ? Zu : void 0), viewCountValue: ed(n2?.views, $.views, c2), commentCountValue: ed(n2?.comments, $.comments, c2) };
4527
+ var nd = () => ({ title: $(``), excerpt: $(``), coverImage: void 0, coverMedia: void 0, richContent: td, authorName: $(``), authorImage: void 0, timeToRead: $(``), publishedDate: $(``), viewCount: $(``), commentCount: $(``), likeCount: $(``), postCategories: [], itemCategoryLabel: $(``), postTags: [], hasCoverImage: false, hasExcerpt: false, hasTags: false, publishedDateValue: void 0, minutesToReadValue: void 0, viewCountValue: void 0, commentCountValue: void 0 });
4528
+ var rd = ({ post: e6, author: t2, metrics: n2, categories: r2, tags: i2, videoSources: a2 }, o2, s2, c2 = false, l2 = Date.now(), u2 = {}) => !e6 && !c2 ? nd() : { title: $(e6?.title ?? o2.canvas.postTitle()), excerpt: $(e6?.excerpt ?? o2.canvas.excerpt()), coverImage: Bu(e6), coverMedia: zu(e6, a2), richContent: e6?.richContent ?? Qu(o2.canvas.content()), authorName: $(t2?.profile?.nickname ?? o2.canvas.authorName()), authorImage: Su(t2, o2.canvas.authorPhotoAlt()), timeToRead: $(typeof e6?.minutesToRead == `number` && e6.minutesToRead > 0 ? o2.timeToRead(e6.minutesToRead) : c2 ? o2.timeToRead(Xu) : ``), publishedDate: $(yu(e6?.firstPublishedDate ?? new Date(l2), s2, l2)), viewCount: $u(n2?.views, Zu.views, c2, o2.viewCount), commentCount: $u(n2?.comments, Zu.comments, c2, o2.commentCount), likeCount: $u(n2?.likes, Zu.likes, c2, o2.likeCount), postCategories: r2.length === 0 && c2 ? Ku(o2) : r2.map((e7) => Wu(e7, u2.category)), itemCategoryLabel: $(r2[0]?.label ?? (c2 ? o2.canvas.category() : ``)), postTags: i2.length === 0 && c2 ? Yu(o2) : i2.map((e7) => qu(e7, u2.tag)), hasCoverImage: !e6 || e6.media?.displayed !== false && Bu(e6) !== void 0, hasExcerpt: !e6 || !!e6.excerpt?.trim(), hasTags: !e6 || i2.length > 0, publishedDateValue: du(e6?.firstPublishedDate) ?? (c2 ? `2026-05-12T12:00:00.000Z` : void 0), minutesToReadValue: fu(e6?.minutesToRead) ?? (c2 ? Xu : void 0), viewCountValue: ed(n2?.views, Zu.views, c2), commentCountValue: ed(n2?.comments, Zu.comments, c2) };
4501
4529
  var id = ({ postWithAuthor: e6, hasError: t2, monitoringClient: n2, isPostInPreview: r2, postPageBase: i2 }) => {
4502
- let { t: a2 } = yo(), o2 = nu(), s2 = u(() => au(a2, o2), [a2, o2]), c2 = Hl(e6.fetchedAt), l2 = uu(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = tu(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = Bl(er), y2 = Bl(`tag`), b2 = u(() => kl(e6.post), [e6]), x2 = ru(), S2 = u(() => e6.post?.richContent && e6.paywall ? Qc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4530
+ let { t: a2 } = vo(), o2 = tu(), s2 = u(() => iu(a2, o2), [a2, o2]), c2 = Vl(e6.fetchedAt), l2 = lu(), { isLiked: d2, likeCount: f2, isLikeCountLoaded: p2, viewCount: m2, commentCount: h2, toggleLike: g2, liveLikes: _2 } = eu(e6.post?._id ?? void 0, e6.metrics?.likes ?? 0, r2, n2), v2 = zl($n), y2 = zl(`tag`), b2 = u(() => Ol(e6.post), [e6]), x2 = nu(), S2 = u(() => e6.post?.richContent && e6.paywall ? Zc(e6.post.richContent, e6.paywall, x2) : void 0, [e6, x2]);
4503
4531
  return u(() => {
4504
- let n3 = rd(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 : lr(e6.post, i2), u2 = a3 ?? (l2 ? du(i2) : void 0);
4505
- return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, itemLink: u2, postUrl: a3?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: Q(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4532
+ let n3 = rd(!e6.post && l2 && e6.demoPost ? { ...e6, post: e6.demoPost } : e6, s2, o2, l2, c2, { category: v2, tag: y2 }), a3 = r2 || !e6.post ? void 0 : cr(e6.post, i2), u2 = a3 ?? (l2 ? uu(i2) : void 0);
4533
+ return { ...n3, ...S2 && { richContent: S2 }, relatedPostsSource: b2, commentingEnabled: e6.post?.commentingEnabled ?? void 0, viewCountValue: m2 ?? n3.viewCountValue, commentCountValue: h2 ?? n3.commentCountValue, itemLink: u2, postUrl: a3?.href, ...e6.post && (e6.metrics?.likes !== void 0 || p2) ? { likeCount: $(s2.likeCount(f2)) } : {}, isLiked: d2, likeCountValue: f2, isLikeCountLoaded: p2, toggleLike: g2, liveLikes: _2, clockValue: c2, isLoadingPost: false, hasError: t2, isEmpty: !e6.post && !l2 };
4506
4534
  }, [e6, t2, b2, S2, s2, o2, c2, f2, d2, p2, m2, h2, g2, _2, l2, r2, i2, v2, y2]);
4507
4535
  };
4508
4536
  var ad = (e6) => ({ post: e6, hasError: false });
@@ -4516,17 +4544,17 @@ var ld = { ...cd, isLoadingPost: false, hasError: true, isEmpty: true };
4516
4544
  var ud = 2500;
4517
4545
  var dd = Promise.resolve(ad({ post: void 0, author: void 0, metrics: void 0, categories: [], tags: [], fetchedAt: 0 }));
4518
4546
  var fd = ({ children: t2, postId: n2, postLoadPromise: r2, monitoringClient: i2 }) => {
4519
- let { post: a2, hasError: o2 } = Vn(r2), c2 = Xn(a2, s(() => n2 ? El(n2) : Promise.resolve(void 0), [n2])), l2 = id({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: dr() });
4520
- return mr(fr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), h(e, { value: l2, children: t2 });
4547
+ let { post: a2, hasError: o2 } = Bn(r2), c2 = Yn(a2, s(() => n2 ? Tl(n2) : Promise.resolve(void 0), [n2])), l2 = id({ postWithAuthor: c2, hasError: o2, monitoringClient: i2, isPostInPreview: false, postPageBase: ur() });
4548
+ return pr(dr.postByIdProvider, o2 ? `error` : c2.post ? `data` : `empty`), h(e, { value: l2, children: t2 });
4521
4549
  };
4522
4550
  function pd({ children: t2, postPicker: n2 }) {
4523
- let i2 = zl(n2), a2 = Gn(), o2 = gr(), s2 = u(() => jl(zn), []), { i18n: c2, locale: l2 } = Go($o), d2 = qn(() => i2 ? Un(Mo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4524
- let e6 = Dl(i2, a2);
4525
- return Il(Pl(s2, `post-by-id-read`, { feature: Al.post }, a2 ? fl(e6, ud, `post-by-id`) : e6));
4551
+ let i2 = Rl(n2), a2 = Wn(), o2 = hr(), s2 = u(() => Al(Rn), []), { i18n: c2, locale: l2 } = Wo(Qo), d2 = Kn(() => i2 ? Hn(jo({ key: `blog-builder:post-by-id:${i2}`, warmupData: o2, fetchData: () => {
4552
+ let e6 = El(i2, a2);
4553
+ return Fl(Nl(s2, `post-by-id-read`, { feature: kl.post }, a2 ? dl(e6, ud, `post-by-id`) : e6));
4526
4554
  } }), ad, a2 ? sd : od) : dd, [i2, a2, o2, s2]);
4527
- return h(bo, { i18n: c2, children: g(r, { fallback: h(e, { value: cd, children: t2 }), children: [h(Wo, { i18n: c2, locale: l2 }), h(Fl, { fallback: h(e, { value: ld, children: t2 }), feature: Al.post, monitoringClient: s2, rethrow: a2, children: h(fd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4555
+ return h(yo, { i18n: c2, children: g(r, { fallback: h(e, { value: cd, children: t2 }), children: [h(Uo, { i18n: c2, locale: l2 }), h(Pl, { fallback: h(e, { value: ld, children: t2 }), feature: kl.post, monitoringClient: s2, rethrow: a2, children: h(fd, { postId: i2, postLoadPromise: d2, monitoringClient: s2, children: t2 }, i2 ?? ``) })] }) });
4528
4556
  }
4529
- var md = Mn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4557
+ var md = jn(`474ee948-702b-4c0f-970e-b5319eff6d8b`);
4530
4558
  export {
4531
4559
  pd as PostByIdProvider,
4532
4560
  pd as default,