@wix/blog 1.0.697 → 1.0.698

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.
@@ -1203,60 +1203,60 @@ var br = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1203
1203
  return (e7) => r2.getOrInsert(e7, () => i2(e7));
1204
1204
  };
1205
1205
  var F = (e6) => typeof e6 == `string`;
1206
- var I = () => {
1206
+ var xr = () => {
1207
1207
  let e6, t2, n2 = new Promise((n3, r2) => {
1208
1208
  e6 = n3, t2 = r2;
1209
1209
  });
1210
1210
  return n2.resolve = e6, n2.reject = t2, n2;
1211
1211
  };
1212
- var xr = (e6) => e6 == null ? `` : String(e6);
1213
- var Sr = (e6, t2, n2) => {
1212
+ var Sr = (e6) => e6 == null ? `` : String(e6);
1213
+ var Cr = (e6, t2, n2) => {
1214
1214
  e6.forEach((e7) => {
1215
1215
  t2[e7] && (n2[e7] = t2[e7]);
1216
1216
  });
1217
1217
  };
1218
- var Cr = /###/g;
1219
- var wr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Cr, `.`) : e6;
1220
- var Tr = (e6) => !e6 || F(e6);
1221
- var Er = (e6, t2, n2) => {
1218
+ var wr = /###/g;
1219
+ var Tr = (e6) => e6 && e6.includes(`###`) ? e6.replace(wr, `.`) : e6;
1220
+ var Er = (e6) => !e6 || F(e6);
1221
+ var Dr = (e6, t2, n2) => {
1222
1222
  let r2 = F(t2) ? t2.split(`.`) : t2, i2 = 0;
1223
1223
  for (; i2 < r2.length - 1; ) {
1224
- if (Tr(e6)) return {};
1225
- let t3 = wr(r2[i2]);
1224
+ if (Er(e6)) return {};
1225
+ let t3 = Tr(r2[i2]);
1226
1226
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1227
1227
  }
1228
- return Tr(e6) ? {} : { obj: e6, k: wr(r2[i2]) };
1228
+ return Er(e6) ? {} : { obj: e6, k: Tr(r2[i2]) };
1229
1229
  };
1230
- var Dr = (e6, t2, n2) => {
1231
- let { obj: r2, k: i2 } = Er(e6, t2, Object);
1230
+ var Or = (e6, t2, n2) => {
1231
+ let { obj: r2, k: i2 } = Dr(e6, t2, Object);
1232
1232
  if (r2 !== void 0 || t2.length === 1) {
1233
1233
  r2[i2] = n2;
1234
1234
  return;
1235
1235
  }
1236
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Er(e6, o2, Object);
1237
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Er(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1236
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Dr(e6, o2, Object);
1237
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Dr(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1238
1238
  s2.obj[`${s2.k}.${a2}`] = n2;
1239
1239
  };
1240
- var Or = (e6, t2, n2, r2) => {
1241
- let { obj: i2, k: a2 } = Er(e6, t2, Object);
1240
+ var kr = (e6, t2, n2, r2) => {
1241
+ let { obj: i2, k: a2 } = Dr(e6, t2, Object);
1242
1242
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1243
1243
  };
1244
- var kr = (e6, t2) => {
1245
- let { obj: n2, k: r2 } = Er(e6, t2);
1244
+ var Ar = (e6, t2) => {
1245
+ let { obj: n2, k: r2 } = Dr(e6, t2);
1246
1246
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1247
1247
  };
1248
- var Ar = (e6, t2, n2) => {
1249
- let r2 = kr(e6, n2);
1250
- return r2 === void 0 ? kr(t2, n2) : r2;
1251
- };
1252
1248
  var jr = (e6, t2, n2) => {
1253
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? F(e6[r2]) || e6[r2] instanceof String || F(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : jr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1249
+ let r2 = Ar(e6, n2);
1250
+ return r2 === void 0 ? Ar(t2, n2) : r2;
1251
+ };
1252
+ var Mr = (e6, t2, n2) => {
1253
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? F(e6[r2]) || e6[r2] instanceof String || F(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Mr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1254
1254
  return e6;
1255
1255
  };
1256
- var L = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1257
- var Mr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1258
- var Nr = (e6) => F(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Mr[e7]) : e6;
1259
- var Pr = class {
1256
+ var I = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1257
+ var Nr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1258
+ var Pr = (e6) => F(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Nr[e7]) : e6;
1259
+ var Fr = class {
1260
1260
  constructor(e6) {
1261
1261
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1262
1262
  }
@@ -1267,20 +1267,20 @@ var Pr = class {
1267
1267
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1268
1268
  }
1269
1269
  };
1270
- var Fr = [` `, `,`, `?`, `!`, `;`];
1271
- var Ir = new Pr(20);
1272
- var Lr = (e6, t2, n2) => {
1270
+ var Ir = [` `, `,`, `?`, `!`, `;`];
1271
+ var Lr = new Fr(20);
1272
+ var Rr = (e6, t2, n2) => {
1273
1273
  t2 ||= ``, n2 ||= ``;
1274
- let r2 = Fr.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1274
+ let r2 = Ir.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1275
1275
  if (r2.length === 0) return true;
1276
- let i2 = Ir.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1276
+ let i2 = Lr.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1277
1277
  if (!a2) {
1278
1278
  let t3 = e6.indexOf(n2);
1279
1279
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1280
1280
  }
1281
1281
  return a2;
1282
1282
  };
1283
- var Rr = (e6, t2, n2 = `.`) => {
1283
+ var zr = (e6, t2, n2 = `.`) => {
1284
1284
  if (!e6) return;
1285
1285
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1286
1286
  let r2 = t2.split(n2), i2 = e6;
@@ -1296,8 +1296,8 @@ var Rr = (e6, t2, n2 = `.`) => {
1296
1296
  }
1297
1297
  return i2;
1298
1298
  };
1299
- var R = (e6) => e6?.replace(/_/g, `-`);
1300
- var zr = { type: `logger`, log(e6) {
1299
+ var L = (e6) => e6?.replace(/_/g, `-`);
1300
+ var Br = { type: `logger`, log(e6) {
1301
1301
  this.output(`log`, e6);
1302
1302
  }, warn(e6) {
1303
1303
  this.output(`warn`, e6);
@@ -1306,12 +1306,12 @@ var zr = { type: `logger`, log(e6) {
1306
1306
  }, output(e6, t2) {
1307
1307
  console?.[e6]?.apply?.(console, t2);
1308
1308
  } };
1309
- var z = new class e2 {
1309
+ var R = new class e2 {
1310
1310
  constructor(e6, t2 = {}) {
1311
1311
  this.init(e6, t2);
1312
1312
  }
1313
1313
  init(e6, t2 = {}) {
1314
- this.prefix = t2.prefix || `i18next:`, this.logger = e6 || zr, this.options = t2, this.debug = t2.debug;
1314
+ this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Br, this.options = t2, this.debug = t2.debug;
1315
1315
  }
1316
1316
  log(...e6) {
1317
1317
  return this.forward(e6, `log`, ``, true);
@@ -1335,7 +1335,7 @@ var z = new class e2 {
1335
1335
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1336
1336
  }
1337
1337
  }();
1338
- var Br = class {
1338
+ var Vr = class {
1339
1339
  constructor() {
1340
1340
  this.observers = {};
1341
1341
  }
@@ -1363,8 +1363,8 @@ var Br = class {
1363
1363
  });
1364
1364
  }
1365
1365
  };
1366
- var Vr = /* @__PURE__ */ new WeakSet();
1367
- var Hr = class extends Br {
1366
+ var Hr = /* @__PURE__ */ new WeakSet();
1367
+ var Ur = class extends Vr {
1368
1368
  constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1369
1369
  super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1370
1370
  }
@@ -1378,12 +1378,12 @@ var Hr = class extends Br {
1378
1378
  getResource(e6, t2, n2, r2 = {}) {
1379
1379
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1380
1380
  e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : F(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1381
- let s2 = kr(this.data, o2);
1382
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 : Rr(this.data?.[e6]?.[t2], n2, i2);
1381
+ let s2 = Ar(this.data, o2);
1382
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 : zr(this.data?.[e6]?.[t2], n2, i2);
1383
1383
  }
1384
1384
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1385
1385
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1386
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Dr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1386
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Or(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1387
1387
  }
1388
1388
  addResources(e6, t2, n2, r2 = { silent: false }) {
1389
1389
  for (let r3 in n2) (F(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
@@ -1392,8 +1392,8 @@ var Hr = class extends Br {
1392
1392
  addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1393
1393
  let o2 = [e6, t2];
1394
1394
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1395
- let s2 = kr(this.data, o2) || {};
1396
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? jr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Dr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1395
+ let s2 = Ar(this.data, o2) || {};
1396
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Mr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Or(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1397
1397
  }
1398
1398
  removeResourceBundle(e6, t2) {
1399
1399
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1411,37 +1411,37 @@ var Hr = class extends Br {
1411
1411
  let t2 = this.getDataByLanguage(e6);
1412
1412
  return !!(t2 && Object.keys(t2) || []).find((e7) => {
1413
1413
  let n2 = t2[e7];
1414
- return Vr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && Vr.add(n2), true);
1414
+ return Hr.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && Hr.add(n2), true);
1415
1415
  });
1416
1416
  }
1417
1417
  toJSON() {
1418
1418
  return this.data;
1419
1419
  }
1420
1420
  };
1421
- var Ur = { processors: {}, addPostProcessor(e6) {
1421
+ var Wr = { processors: {}, addPostProcessor(e6) {
1422
1422
  this.processors[e6.name] = e6;
1423
1423
  }, handle(e6, t2, n2, r2, i2) {
1424
1424
  return e6.forEach((e7) => {
1425
1425
  t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
1426
1426
  }), t2;
1427
1427
  } };
1428
- var Wr = Symbol(`i18next/PATH_KEY`);
1429
- function Gr() {
1428
+ var Gr = Symbol(`i18next/PATH_KEY`);
1429
+ function Kr() {
1430
1430
  let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1431
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Wr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1431
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Gr ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1432
1432
  }
1433
- function B(e6, t2) {
1434
- let { [Wr]: n2 } = e6(Gr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1433
+ function z(e6, t2) {
1434
+ let { [Gr]: n2 } = e6(Kr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1435
1435
  if (n2.length > 1 && i2) {
1436
1436
  let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
1437
1437
  if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1438
1438
  }
1439
1439
  return n2.join(r2);
1440
1440
  }
1441
- var Kr = (e6) => !F(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1442
- var qr = class e3 extends Br {
1441
+ var qr = (e6) => !F(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1442
+ var Jr = class e3 extends Vr {
1443
1443
  constructor(e6, t2 = {}) {
1444
- super(), Sr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = z.create(`translator`), this.checkedLoadedFor = {};
1444
+ super(), Cr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = R.create(`translator`), this.checkedLoadedFor = {};
1445
1445
  }
1446
1446
  changeLanguage(e6) {
1447
1447
  e6 && (this.language = e6);
@@ -1451,13 +1451,13 @@ var qr = class e3 extends Br {
1451
1451
  if (e6 == null) return false;
1452
1452
  let r2 = this.resolve(e6, n2);
1453
1453
  if (r2?.res === void 0) return false;
1454
- let i2 = Kr(r2.res);
1454
+ let i2 = qr(r2.res);
1455
1455
  return !(n2.returnObjects === false && i2);
1456
1456
  }
1457
1457
  extractFromKey(e6, t2) {
1458
1458
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1459
1459
  n2 === void 0 && (n2 = `:`);
1460
- 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 && !Lr(e6, n2, r2);
1460
+ 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 && !Rr(e6, n2, r2);
1461
1461
  if (a2 && !o2) {
1462
1462
  let t3 = e6.match(this.interpolator.nestingRegexp);
1463
1463
  if (t3 && t3.length > 0) return { key: e6, namespaces: F(i2) ? [i2] : i2 };
@@ -1469,14 +1469,14 @@ var qr = class e3 extends Br {
1469
1469
  translate(t2, n2, r2) {
1470
1470
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1471
1471
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1472
- typeof t2 == `function` && (t2 = B(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? B(e6, { ...this.options, ...i2 }) : String(e6));
1472
+ typeof t2 == `function` && (t2 = z(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? z(e6, { ...this.options, ...i2 }) : String(e6));
1473
1473
  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;
1474
1474
  u2 === void 0 && (u2 = `:`);
1475
1475
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1476
1476
  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;
1477
1477
  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 && !F(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;
1478
1478
  y2 && !m2 && x2 && (T2 = w2);
1479
- let te2 = Kr(T2), ne2 = Object.prototype.toString.apply(T2);
1479
+ let te2 = qr(T2), ne2 = Object.prototype.toString.apply(T2);
1480
1480
  if (y2 && T2 && te2 && !_2.includes(ne2) && !(F(v2) && Array.isArray(T2))) {
1481
1481
  if (!i2.returnObjects && !this.options.returnObjects) {
1482
1482
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
@@ -1487,7 +1487,7 @@ var qr = class e3 extends Br {
1487
1487
  let e6 = Array.isArray(T2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
1488
1488
  for (let e7 in T2) if (Object.prototype.hasOwnProperty.call(T2, e7)) {
1489
1489
  let r3 = `${n3}${o2}${e7}`;
1490
- t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: Kr(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1490
+ t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: qr(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1491
1491
  }
1492
1492
  m2 = t3;
1493
1493
  }
@@ -1536,11 +1536,11 @@ var qr = class e3 extends Br {
1536
1536
  !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();
1537
1537
  }
1538
1538
  let a2 = n2.postProcess || this.options.postProcess, o2 = F(a2) ? [a2] : a2;
1539
- return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Ur.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1539
+ return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = Wr.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1540
1540
  }
1541
1541
  resolve(e6, t2 = {}) {
1542
1542
  let n2, r2, i2, a2, o2;
1543
- return F(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? B(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1543
+ return F(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? z(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1544
1544
  if (this.isValidLookup(n2)) return;
1545
1545
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1546
1546
  r2 = c2;
@@ -1587,20 +1587,20 @@ var qr = class e3 extends Br {
1587
1587
  return false;
1588
1588
  }
1589
1589
  };
1590
- var Jr = class {
1590
+ var Yr = class {
1591
1591
  constructor(e6) {
1592
- this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = z.create(`languageUtils`), this.resolveHierarchyCache = {};
1592
+ this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = R.create(`languageUtils`), this.resolveHierarchyCache = {};
1593
1593
  }
1594
1594
  clearCache() {
1595
1595
  this.resolveHierarchyCache = {};
1596
1596
  }
1597
1597
  getScriptPartFromCode(e6) {
1598
- if (e6 = R(e6), !e6 || !e6.includes(`-`)) return null;
1598
+ if (e6 = L(e6), !e6 || !e6.includes(`-`)) return null;
1599
1599
  let t2 = e6.split(`-`);
1600
1600
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1601
1601
  }
1602
1602
  getLanguagePartFromCode(e6) {
1603
- if (e6 = R(e6), !e6 || !e6.includes(`-`)) return e6;
1603
+ if (e6 = L(e6), !e6 || !e6.includes(`-`)) return e6;
1604
1604
  let t2 = e6.split(`-`);
1605
1605
  return this.formatLanguageCode(t2[0]);
1606
1606
  }
@@ -1661,24 +1661,24 @@ var Jr = class {
1661
1661
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1662
1662
  }
1663
1663
  };
1664
- var Yr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1665
- var Xr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1666
- var Zr = class {
1664
+ var Xr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1665
+ var Zr = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1666
+ var Qr = class {
1667
1667
  constructor(e6, t2 = {}) {
1668
- this.languageUtils = e6, this.options = t2, this.logger = z.create(`pluralResolver`), this.pluralRulesCache = {};
1668
+ this.languageUtils = e6, this.options = t2, this.logger = R.create(`pluralResolver`), this.pluralRulesCache = {};
1669
1669
  }
1670
1670
  clearCache() {
1671
1671
  this.pluralRulesCache = {};
1672
1672
  }
1673
1673
  getRule(e6, t2 = {}) {
1674
- let n2 = R(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1674
+ let n2 = L(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1675
1675
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1676
1676
  let a2;
1677
1677
  try {
1678
1678
  a2 = new Intl.PluralRules(n2, { type: r2 });
1679
1679
  } catch {
1680
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Xr;
1681
- if (!e6.match(/-|_/)) return Xr;
1680
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Zr;
1681
+ if (!e6.match(/-|_/)) return Zr;
1682
1682
  let n3 = this.languageUtils.getLanguagePartFromCode(e6);
1683
1683
  a2 = this.getRule(n3, t2);
1684
1684
  }
@@ -1693,26 +1693,26 @@ var Zr = class {
1693
1693
  }
1694
1694
  getSuffixes(e6, t2 = {}) {
1695
1695
  let n2 = this.getRule(e6, t2);
1696
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => Yr[e7] - Yr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1696
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => Xr[e7] - Xr[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1697
1697
  }
1698
1698
  getSuffix(e6, t2, n2 = {}) {
1699
1699
  let r2 = this.getRule(e6, n2);
1700
1700
  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));
1701
1701
  }
1702
1702
  };
1703
- var Qr = (e6, t2, n2, r2 = `.`, i2 = true) => {
1704
- let a2 = Ar(e6, t2, n2);
1705
- return !a2 && i2 && F(n2) && (a2 = Rr(e6, n2, r2), a2 === void 0 && (a2 = Rr(t2, n2, r2))), a2;
1703
+ var $r = (e6, t2, n2, r2 = `.`, i2 = true) => {
1704
+ let a2 = jr(e6, t2, n2);
1705
+ return !a2 && i2 && F(n2) && (a2 = zr(e6, n2, r2), a2 === void 0 && (a2 = zr(t2, n2, r2))), a2;
1706
1706
  };
1707
- var $r = (e6) => e6.replace(/\$/g, `$$$$`);
1708
- var ei = class {
1707
+ var ei = (e6) => e6.replace(/\$/g, `$$$$`);
1708
+ var ti = class {
1709
1709
  constructor(e6 = {}) {
1710
- this.logger = z.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1710
+ this.logger = R.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1711
1711
  }
1712
1712
  init(e6 = {}) {
1713
1713
  e6.interpolation ||= { escapeValue: true };
1714
1714
  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;
1715
- this.escape = t2 === void 0 ? Nr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? L(i2) : a2 || `{{`, this.suffix = o2 ? L(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? L(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? L(l2) : ``, this.nestingPrefix = d2 ? L(d2) : f2 || L(`$t(`), this.nestingSuffix = p2 ? L(p2) : m2 || L(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1715
+ this.escape = t2 === void 0 ? Pr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? I(i2) : a2 || `{{`, this.suffix = o2 ? I(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? I(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? I(l2) : ``, this.nestingPrefix = d2 ? I(d2) : f2 || I(`$t(`), this.nestingSuffix = p2 ? I(p2) : m2 || I(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1716
1716
  }
1717
1717
  reset() {
1718
1718
  this.options && this.init(this.options);
@@ -1724,11 +1724,11 @@ var ei = class {
1724
1724
  interpolate(e6, t2, n2, r2) {
1725
1725
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
1726
1726
  if (!e7.includes(this.formatSeparator)) {
1727
- let i4 = Qr(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1727
+ let i4 = $r(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1728
1728
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
1729
1729
  }
1730
1730
  let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1731
- return this.format(Qr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1731
+ return this.format($r(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1732
1732
  };
1733
1733
  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.`);
1734
1734
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
@@ -1744,9 +1744,9 @@ var ei = class {
1744
1744
  a2 = i2[0];
1745
1745
  continue;
1746
1746
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1747
- } else !F(a2) && !this.useRawValueToEscape && (a2 = xr(a2));
1747
+ } else !F(a2) && !this.useRawValueToEscape && (a2 = Sr(a2));
1748
1748
  let s3 = t3.safeValue(a2);
1749
- if (e6 = e6.replace(i2[0], $r(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1749
+ if (e6 = e6.replace(i2[0], ei(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1750
1750
  }
1751
1751
  }), e6;
1752
1752
  }
@@ -1754,7 +1754,7 @@ var ei = class {
1754
1754
  let r2, i2, a2, o2 = (e7, t3) => {
1755
1755
  let n3 = this.nestingOptionsSeparator;
1756
1756
  if (!e7.includes(n3)) return e7;
1757
- let r3 = e7.split(RegExp(`${L(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1757
+ let r3 = e7.split(RegExp(`${I(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1758
1758
  e7 = r3[0], i3 = this.interpolate(i3, a2);
1759
1759
  let o3 = i3.match(/'/g), s3 = i3.match(/"/g);
1760
1760
  ((o3?.length ?? 0) % 2 == 0 && !s3 || (s3?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1770,12 +1770,12 @@ var ei = class {
1770
1770
  a2 = { ...n2 }, a2 = a2.replace && !F(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1771
1771
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1772
1772
  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 && !F(i2)) return i2;
1773
- F(i2) || (i2 = xr(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) + xr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1773
+ F(i2) || (i2 = Sr(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) + Sr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1774
1774
  }
1775
1775
  return l2 ? c2 + e6.slice(l2) : e6;
1776
1776
  }
1777
1777
  };
1778
- var ti = (e6) => {
1778
+ var ni = (e6) => {
1779
1779
  let t2 = e6.toLowerCase().trim(), n2 = {};
1780
1780
  if (e6.includes(`(`)) {
1781
1781
  let r2 = e6.split(`(`);
@@ -1790,23 +1790,23 @@ var ti = (e6) => {
1790
1790
  }
1791
1791
  return { formatName: t2, formatOptions: n2 };
1792
1792
  };
1793
- var ni = (e6) => {
1793
+ var ri = (e6) => {
1794
1794
  let t2 = {};
1795
1795
  return (n2, r2, i2) => {
1796
1796
  let a2 = i2;
1797
1797
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1798
1798
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1799
- return s2 || (s2 = e6(R(r2), i2), t2[o2] = s2), s2(n2);
1799
+ return s2 || (s2 = e6(L(r2), i2), t2[o2] = s2), s2(n2);
1800
1800
  };
1801
1801
  };
1802
- var ri = (e6) => (t2, n2, r2) => e6(R(n2), r2)(t2);
1803
- var ii = class {
1802
+ var ii = (e6) => (t2, n2, r2) => e6(L(n2), r2)(t2);
1803
+ var ai = class {
1804
1804
  constructor(e6 = {}) {
1805
- this.logger = z.create(`formatter`), this.options = e6, this.init(e6);
1805
+ this.logger = R.create(`formatter`), this.options = e6, this.init(e6);
1806
1806
  }
1807
1807
  init(e6, t2 = { interpolation: {} }) {
1808
1808
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1809
- let n2 = t2.cacheInBuiltFormats ? ni : ri;
1809
+ let n2 = t2.cacheInBuiltFormats ? ri : ii;
1810
1810
  this.formats = { number: n2((e7, t3) => {
1811
1811
  let n3 = new Intl.NumberFormat(e7, { ...t3 });
1812
1812
  return (e8) => n3.format(e8);
@@ -1828,7 +1828,7 @@ var ii = class {
1828
1828
  this.formats[e6.toLowerCase().trim()] = t2;
1829
1829
  }
1830
1830
  addCached(e6, t2) {
1831
- this.formats[e6.toLowerCase().trim()] = ni(t2);
1831
+ this.formats[e6.toLowerCase().trim()] = ri(t2);
1832
1832
  }
1833
1833
  format(e6, t2, n2, r2 = {}) {
1834
1834
  if (!t2 || e6 == null) return e6;
@@ -1839,7 +1839,7 @@ var ii = class {
1839
1839
  a2.push(t3);
1840
1840
  }
1841
1841
  return a2.reduce((e7, t3) => {
1842
- let { formatName: i3, formatOptions: a3 } = ti(t3);
1842
+ let { formatName: i3, formatOptions: a3 } = ni(t3);
1843
1843
  if (this.formats[i3]) {
1844
1844
  let t4 = e7;
1845
1845
  try {
@@ -1854,12 +1854,12 @@ var ii = class {
1854
1854
  }, e6);
1855
1855
  }
1856
1856
  };
1857
- var ai = (e6, t2) => {
1857
+ var oi = (e6, t2) => {
1858
1858
  e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
1859
1859
  };
1860
- var oi = class extends Br {
1860
+ var si = class extends Vr {
1861
1861
  constructor(e6, t2, n2, r2 = {}) {
1862
- super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = z.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);
1862
+ super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = R.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);
1863
1863
  }
1864
1864
  queueLoad(e6, t2, n2, r2) {
1865
1865
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1876,7 +1876,7 @@ var oi = class extends Br {
1876
1876
  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);
1877
1877
  let o2 = {};
1878
1878
  this.queue.forEach((n3) => {
1879
- Or(n3.loaded, [i2], a2), ai(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1879
+ kr(n3.loaded, [i2], a2), oi(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
1880
1880
  o2[e7] || (o2[e7] = {});
1881
1881
  let t3 = n3.loaded[e7];
1882
1882
  t3.length && t3.forEach((t4) => {
@@ -1948,7 +1948,7 @@ var oi = class extends Br {
1948
1948
  }
1949
1949
  }
1950
1950
  };
1951
- var si = () => ({ 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) => {
1951
+ var ci = () => ({ 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) => {
1952
1952
  let t2 = {};
1953
1953
  if (typeof e6[1] == `object` && (t2 = e6[1]), F(e6[1]) && (t2.defaultValue = e6[1]), F(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
1954
1954
  let n2 = e6[3] || e6[2];
@@ -1958,17 +1958,17 @@ var si = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1958
1958
  }
1959
1959
  return t2;
1960
1960
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1961
- var ci = (e6) => (F(e6.ns) && (e6.ns = [e6.ns]), F(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), F(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1962
- var li = () => {
1961
+ var li = (e6) => (F(e6.ns) && (e6.ns = [e6.ns]), F(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), F(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
1962
+ var ui = () => {
1963
1963
  };
1964
- var ui = (e6) => {
1964
+ var di = (e6) => {
1965
1965
  Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
1966
1966
  typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
1967
1967
  });
1968
1968
  };
1969
- var V = class e4 extends Br {
1969
+ var B = class e4 extends Vr {
1970
1970
  constructor(e6 = {}, t2) {
1971
- if (super(), this.options = ci(e6), this.services = {}, this.logger = z, this.modules = { external: [] }, ui(this), t2 && !this.isInitialized && !e6.isClone) {
1971
+ if (super(), this.options = li(e6), this.services = {}, this.logger = R, this.modules = { external: [] }, di(this), t2 && !this.isInitialized && !e6.isClone) {
1972
1972
  if (!this.options.initAsync) return this.init(e6, t2), this;
1973
1973
  setTimeout(() => {
1974
1974
  this.init(e6, t2);
@@ -1977,25 +1977,25 @@ var V = class e4 extends Br {
1977
1977
  }
1978
1978
  init(e6 = {}, t2) {
1979
1979
  this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (F(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
1980
- let n2 = si();
1981
- this.options = { ...n2, ...this.options, ...ci(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);
1980
+ let n2 = ci();
1981
+ this.options = { ...n2, ...this.options, ...li(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);
1982
1982
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
1983
1983
  if (!this.options.isClone) {
1984
- this.modules.logger ? z.init(r2(this.modules.logger), this.options) : z.init(null, this.options);
1984
+ this.modules.logger ? R.init(r2(this.modules.logger), this.options) : R.init(null, this.options);
1985
1985
  let e7;
1986
- e7 = this.modules.formatter ? this.modules.formatter : ii;
1987
- let t3 = new Jr(this.options);
1988
- this.store = new Hr(this.options.resources, this.options);
1986
+ e7 = this.modules.formatter ? this.modules.formatter : ai;
1987
+ let t3 = new Yr(this.options);
1988
+ this.store = new Ur(this.options.resources, this.options);
1989
1989
  let n3 = this.services;
1990
- n3.logger = z, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Zr(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 ei(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new oi(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
1990
+ n3.logger = R, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new Qr(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 ti(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new si(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
1991
1991
  this.emit(e8, ...t4);
1992
- }), 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 qr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
1992
+ }), 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 Jr(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
1993
1993
  this.emit(e8, ...t4);
1994
1994
  }), this.modules.external.forEach((e8) => {
1995
1995
  e8.init && e8.init(this);
1996
1996
  });
1997
1997
  }
1998
- if (this.format = this.options.interpolation.format, t2 ||= li, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1998
+ if (this.format = this.options.interpolation.format, t2 ||= ui, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1999
1999
  let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2000
2000
  e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
2001
2001
  }
@@ -2004,7 +2004,7 @@ var V = class e4 extends Br {
2004
2004
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
2005
2005
  this[e7] = (...t3) => (this.store[e7](...t3), this);
2006
2006
  });
2007
- let i2 = I(), a2 = () => {
2007
+ let i2 = xr(), a2 = () => {
2008
2008
  let e7 = (e8, n3) => {
2009
2009
  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);
2010
2010
  };
@@ -2013,7 +2013,7 @@ var V = class e4 extends Br {
2013
2013
  };
2014
2014
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
2015
2015
  }
2016
- loadResources(e6, t2 = li) {
2016
+ loadResources(e6, t2 = ui) {
2017
2017
  let n2 = t2, r2 = F(e6) ? e6 : this.language;
2018
2018
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2019
2019
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
@@ -2028,15 +2028,15 @@ var V = class e4 extends Br {
2028
2028
  } else n2(null);
2029
2029
  }
2030
2030
  reloadResources(e6, t2, n2) {
2031
- let r2 = I();
2032
- 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 ||= li, this.services.backendConnector.reload(e6, t2, (e7) => {
2031
+ let r2 = xr();
2032
+ 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 ||= ui, this.services.backendConnector.reload(e6, t2, (e7) => {
2033
2033
  r2.resolve(), n2(e7);
2034
2034
  }), r2;
2035
2035
  }
2036
2036
  use(e6) {
2037
2037
  if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
2038
2038
  if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
2039
- 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` && Ur.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2039
+ 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` && Wr.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2040
2040
  }
2041
2041
  setResolvedLanguage(e6) {
2042
2042
  if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
@@ -2052,7 +2052,7 @@ var V = class e4 extends Br {
2052
2052
  }
2053
2053
  changeLanguage(e6, t2) {
2054
2054
  this.isLanguageChangingTo = e6;
2055
- let n2 = I();
2055
+ let n2 = xr();
2056
2056
  this.emit(`languageChanging`, e6);
2057
2057
  let r2 = (e7) => {
2058
2058
  this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
@@ -2074,9 +2074,9 @@ var V = class e4 extends Br {
2074
2074
  let s2 = o2.ns !== void 0 && o2.ns !== null;
2075
2075
  o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
2076
2076
  let c2 = { ...this.options, ...o2 };
2077
- Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = B(o2.keyPrefix, c2));
2077
+ Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = z(o2.keyPrefix, c2));
2078
2078
  let l2 = this.options.keySeparator || `.`, u2;
2079
- return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = B(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = B(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2079
+ return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = z(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = z(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2080
2080
  };
2081
2081
  return F(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2082
2082
  }
@@ -2105,7 +2105,7 @@ var V = class e4 extends Br {
2105
2105
  return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
2106
2106
  }
2107
2107
  loadNamespaces(e6, t2) {
2108
- let n2 = I();
2108
+ let n2 = xr();
2109
2109
  return this.options.ns ? (F(e6) && (e6 = [e6]), e6.forEach((e7) => {
2110
2110
  this.options.ns.includes(e7) || this.options.ns.push(e7);
2111
2111
  }), this.loadResources((e7) => {
@@ -2113,7 +2113,7 @@ var V = class e4 extends Br {
2113
2113
  }), n2) : (t2 && t2(), Promise.resolve());
2114
2114
  }
2115
2115
  loadLanguages(e6, t2) {
2116
- let n2 = I();
2116
+ let n2 = xr();
2117
2117
  F(e6) && (e6 = [e6]);
2118
2118
  let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
2119
2119
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
@@ -2130,24 +2130,24 @@ var V = class e4 extends Br {
2130
2130
  }
2131
2131
  } catch {
2132
2132
  }
2133
- 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 Jr(si());
2133
+ 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 Yr(ci());
2134
2134
  return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
2135
2135
  }
2136
2136
  static createInstance(t2 = {}, n2) {
2137
2137
  let r2 = new e4(t2, n2);
2138
2138
  return r2.createInstance = e4.createInstance, r2;
2139
2139
  }
2140
- cloneInstance(t2 = {}, n2 = li) {
2140
+ cloneInstance(t2 = {}, n2 = ui) {
2141
2141
  let r2 = t2.forkResourceStore;
2142
2142
  r2 && delete t2.forkResourceStore;
2143
2143
  let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
2144
2144
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2145
2145
  a2[e6] = this[e6];
2146
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new Hr(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) {
2147
- let e6 = { ...si().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2148
- a2.services.interpolator = new ei(n3);
2146
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new Ur(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) {
2147
+ let e6 = { ...ci().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2148
+ a2.services.interpolator = new ti(n3);
2149
2149
  }
2150
- return a2.translator = new qr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2150
+ return a2.translator = new Jr(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2151
2151
  a2.emit(e6, ...t3);
2152
2152
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
2153
2153
  }
@@ -2155,9 +2155,9 @@ var V = class e4 extends Br {
2155
2155
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
2156
2156
  }
2157
2157
  }.createInstance();
2158
- V.createInstance, V.dir, V.init, V.loadResources, V.reloadResources, V.use, V.changeLanguage, V.getFixedT, V.t, V.exists, V.setDefaultNamespace, V.hasLoadedNamespace, V.loadNamespaces, V.loadLanguages;
2159
- var di = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2160
- let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = V.createInstance(i2 ? s2 : void 0);
2158
+ B.createInstance, B.dir, B.init, B.loadResources, B.reloadResources, B.use, B.changeLanguage, B.getFixedT, B.t, B.exists, B.setDefaultNamespace, B.hasLoadedNamespace, B.loadNamespaces, B.loadLanguages;
2159
+ var fi = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2160
+ let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = B.createInstance(i2 ? s2 : void 0);
2161
2161
  return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
2162
2162
  try {
2163
2163
  return r3(null, await t2(e7));
@@ -2166,8 +2166,8 @@ var di = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2166
2166
  }
2167
2167
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2168
2168
  };
2169
- var fi = [`__proto__`, `constructor`, `prototype`];
2170
- function pi(e6, t2, n2) {
2169
+ var pi = [`__proto__`, `constructor`, `prototype`];
2170
+ function mi(e6, t2, n2) {
2171
2171
  function r2(e7) {
2172
2172
  return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
2173
2173
  }
@@ -2177,64 +2177,64 @@ function pi(e6, t2, n2) {
2177
2177
  for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
2178
2178
  if (i2()) return {};
2179
2179
  var o2 = r2(a2.shift());
2180
- if (fi.indexOf(o2) > -1) return {};
2180
+ if (pi.indexOf(o2) > -1) return {};
2181
2181
  !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
2182
2182
  }
2183
2183
  if (i2()) return {};
2184
2184
  var s2 = r2(a2.shift());
2185
- return fi.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
2185
+ return pi.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
2186
2186
  }
2187
- function mi(e6, t2, n2) {
2188
- var r2 = pi(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
2187
+ function hi(e6, t2, n2) {
2188
+ var r2 = mi(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
2189
2189
  i2 !== void 0 && (i2[a2] = n2);
2190
2190
  }
2191
- function hi(e6, t2) {
2192
- var n2 = pi(e6, t2), r2 = n2.obj, i2 = n2.k;
2191
+ function gi(e6, t2) {
2192
+ var n2 = mi(e6, t2), r2 = n2.obj, i2 = n2.k;
2193
2193
  if (r2) return r2[i2];
2194
2194
  }
2195
- var gi = [];
2196
- var _i = gi.forEach;
2197
- var vi = gi.slice;
2198
- function yi(e6) {
2199
- return _i.call(vi.call(arguments, 1), function(t2) {
2195
+ var _i = [];
2196
+ var vi = _i.forEach;
2197
+ var yi = _i.slice;
2198
+ function bi(e6) {
2199
+ return vi.call(yi.call(arguments, 1), function(t2) {
2200
2200
  if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
2201
2201
  var i2 = r2[n2];
2202
- fi.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
2202
+ pi.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
2203
2203
  }
2204
2204
  }), e6;
2205
2205
  }
2206
- function bi(e6, t2) {
2207
- let n2 = t2 && t2.cache ? t2.cache : Ai, r2 = t2 && t2.serializer ? t2.serializer : Oi;
2208
- return (t2 && t2.strategy ? t2.strategy : Ti)(e6, { cache: n2, serializer: r2 });
2206
+ function xi(e6, t2) {
2207
+ let n2 = t2 && t2.cache ? t2.cache : ji, r2 = t2 && t2.serializer ? t2.serializer : ki;
2208
+ return (t2 && t2.strategy ? t2.strategy : Ei)(e6, { cache: n2, serializer: r2 });
2209
2209
  }
2210
- function xi(e6) {
2210
+ function Si(e6) {
2211
2211
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2212
2212
  }
2213
- function Si(e6, t2, n2, r2) {
2214
- let i2 = xi(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2213
+ function Ci(e6, t2, n2, r2) {
2214
+ let i2 = Si(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2215
2215
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2216
2216
  }
2217
- function Ci(e6, t2, n2) {
2217
+ function wi(e6, t2, n2) {
2218
2218
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2219
2219
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2220
2220
  }
2221
- function wi(e6, t2, n2, r2, i2) {
2221
+ function Ti(e6, t2, n2, r2, i2) {
2222
2222
  return n2.bind(t2, e6, r2, i2);
2223
2223
  }
2224
- function Ti(e6, t2) {
2225
- let n2 = e6.length === 1 ? Si : Ci;
2226
- return wi(e6, this, n2, t2.cache.create(), t2.serializer);
2227
- }
2228
2224
  function Ei(e6, t2) {
2229
- return wi(e6, this, Ci, t2.cache.create(), t2.serializer);
2225
+ let n2 = e6.length === 1 ? Ci : wi;
2226
+ return Ti(e6, this, n2, t2.cache.create(), t2.serializer);
2230
2227
  }
2231
2228
  function Di(e6, t2) {
2232
- return wi(e6, this, Si, t2.cache.create(), t2.serializer);
2229
+ return Ti(e6, this, wi, t2.cache.create(), t2.serializer);
2233
2230
  }
2234
- var Oi = function() {
2231
+ function Oi(e6, t2) {
2232
+ return Ti(e6, this, Ci, t2.cache.create(), t2.serializer);
2233
+ }
2234
+ var ki = function() {
2235
2235
  return JSON.stringify(arguments);
2236
2236
  };
2237
- var ki = class {
2237
+ var Ai = class {
2238
2238
  constructor() {
2239
2239
  this.cache = /* @__PURE__ */ Object.create(null);
2240
2240
  }
@@ -2245,14 +2245,14 @@ var ki = class {
2245
2245
  this.cache[e6] = t2;
2246
2246
  }
2247
2247
  };
2248
- var Ai = { create: function() {
2249
- return new ki();
2248
+ var ji = { create: function() {
2249
+ return new Ai();
2250
2250
  } };
2251
- var ji = { variadic: Ei, monadic: Di };
2252
- var Mi = /(?:[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;
2253
- function Ni(e6) {
2251
+ var Mi = { variadic: Di, monadic: Oi };
2252
+ var Ni = /(?:[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;
2253
+ function Pi(e6) {
2254
2254
  let t2 = {};
2255
- return e6.replace(Mi, (e7) => {
2255
+ return e6.replace(Ni, (e7) => {
2256
2256
  let n2 = e7.length;
2257
2257
  switch (e7[0]) {
2258
2258
  case `G`:
@@ -2339,10 +2339,10 @@ function Ni(e6) {
2339
2339
  return ``;
2340
2340
  }), t2;
2341
2341
  }
2342
- var Pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2343
- function Fi(e6) {
2342
+ var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2343
+ function Ii(e6) {
2344
2344
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2345
- let t2 = e6.split(Pi).filter((e7) => e7.length > 0), n2 = [];
2345
+ let t2 = e6.split(Fi).filter((e7) => e7.length > 0), n2 = [];
2346
2346
  for (let e7 of t2) {
2347
2347
  let t3 = e7.split(`/`);
2348
2348
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2352,20 +2352,20 @@ function Fi(e6) {
2352
2352
  }
2353
2353
  return n2;
2354
2354
  }
2355
- function Ii(e6) {
2355
+ function Li(e6) {
2356
2356
  return e6.replace(/^(.*?)-/, ``);
2357
2357
  }
2358
- var Li = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2359
- var Ri = /^(@+)?(\+|#+)?[rs]?$/g;
2360
- var zi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2361
- var Bi = /^(0+)$/;
2362
- function Vi(e6) {
2358
+ var Ri = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2359
+ var zi = /^(@+)?(\+|#+)?[rs]?$/g;
2360
+ var Bi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2361
+ var Vi = /^(0+)$/;
2362
+ function Hi(e6) {
2363
2363
  let t2 = {};
2364
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Ri, function(e7, n2, r2) {
2364
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(zi, function(e7, n2, r2) {
2365
2365
  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), ``;
2366
2366
  }), t2;
2367
2367
  }
2368
- function Hi(e6) {
2368
+ function Ui(e6) {
2369
2369
  switch (e6) {
2370
2370
  case `sign-auto`:
2371
2371
  return { signDisplay: `auto` };
@@ -2389,19 +2389,19 @@ function Hi(e6) {
2389
2389
  return { signDisplay: `never` };
2390
2390
  }
2391
2391
  }
2392
- function Ui(e6) {
2392
+ function Wi(e6) {
2393
2393
  let t2;
2394
2394
  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) {
2395
2395
  let n2 = e6.slice(0, 2);
2396
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Bi.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2396
+ if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Vi.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2397
2397
  t2.minimumIntegerDigits = e6.length;
2398
2398
  }
2399
2399
  return t2;
2400
2400
  }
2401
- function Wi(e6) {
2402
- return Hi(e6) || {};
2403
- }
2404
2401
  function Gi(e6) {
2402
+ return Ui(e6) || {};
2403
+ }
2404
+ function Ki(e6) {
2405
2405
  let t2 = {};
2406
2406
  for (let n2 of e6) {
2407
2407
  switch (n2.stem) {
@@ -2425,7 +2425,7 @@ function Gi(e6) {
2425
2425
  continue;
2426
2426
  case `measure-unit`:
2427
2427
  case `unit`:
2428
- t2.style = `unit`, t2.unit = Ii(n2.options[0]);
2428
+ t2.style = `unit`, t2.unit = Li(n2.options[0]);
2429
2429
  continue;
2430
2430
  case `compact-short`:
2431
2431
  case `K`:
@@ -2436,10 +2436,10 @@ function Gi(e6) {
2436
2436
  t2.notation = `compact`, t2.compactDisplay = `long`;
2437
2437
  continue;
2438
2438
  case `scientific`:
2439
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Wi(t3) }), {}) };
2439
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Gi(t3) }), {}) };
2440
2440
  continue;
2441
2441
  case `engineering`:
2442
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Wi(t3) }), {}) };
2442
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Gi(t3) }), {}) };
2443
2443
  continue;
2444
2444
  case `notation-simple`:
2445
2445
  t2.notation = `standard`;
@@ -2482,7 +2482,7 @@ function Gi(e6) {
2482
2482
  continue;
2483
2483
  case `integer-width`:
2484
2484
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2485
- n2.options[0].replace(zi, function(e8, n3, r3, i2, a2, o2) {
2485
+ n2.options[0].replace(Bi, function(e8, n3, r3, i2, a2, o2) {
2486
2486
  if (n3) t2.minimumIntegerDigits = r3.length;
2487
2487
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2488
2488
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2490,83 +2490,83 @@ function Gi(e6) {
2490
2490
  });
2491
2491
  continue;
2492
2492
  }
2493
- if (Bi.test(n2.stem)) {
2493
+ if (Vi.test(n2.stem)) {
2494
2494
  t2.minimumIntegerDigits = n2.stem.length;
2495
2495
  continue;
2496
2496
  }
2497
- if (Li.test(n2.stem)) {
2497
+ if (Ri.test(n2.stem)) {
2498
2498
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2499
- n2.stem.replace(Li, function(e9, n3, r3, i2, a2, o2) {
2499
+ n2.stem.replace(Ri, function(e9, n3, r3, i2, a2, o2) {
2500
2500
  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), ``;
2501
2501
  });
2502
2502
  let e8 = n2.options[0];
2503
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Vi(e8) });
2503
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Hi(e8) });
2504
2504
  continue;
2505
2505
  }
2506
- if (Ri.test(n2.stem)) {
2507
- t2 = { ...t2, ...Vi(n2.stem) };
2506
+ if (zi.test(n2.stem)) {
2507
+ t2 = { ...t2, ...Hi(n2.stem) };
2508
2508
  continue;
2509
2509
  }
2510
- let e7 = Hi(n2.stem);
2510
+ let e7 = Ui(n2.stem);
2511
2511
  e7 && (t2 = { ...t2, ...e7 });
2512
- let r2 = Ui(n2.stem);
2512
+ let r2 = Wi(n2.stem);
2513
2513
  r2 && (t2 = { ...t2, ...r2 });
2514
2514
  }
2515
2515
  return t2;
2516
2516
  }
2517
- var Ki = function(e6) {
2517
+ var qi = function(e6) {
2518
2518
  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;
2519
2519
  }({});
2520
- function qi(e6) {
2520
+ function Ji(e6) {
2521
2521
  return e6.type === 0;
2522
2522
  }
2523
- function Ji(e6) {
2523
+ function Yi(e6) {
2524
2524
  return e6.type === 1;
2525
2525
  }
2526
- function Yi(e6) {
2526
+ function Xi(e6) {
2527
2527
  return e6.type === 2;
2528
2528
  }
2529
- function Xi(e6) {
2529
+ function Zi(e6) {
2530
2530
  return e6.type === 3;
2531
2531
  }
2532
- function Zi(e6) {
2532
+ function Qi(e6) {
2533
2533
  return e6.type === 4;
2534
2534
  }
2535
- function Qi(e6) {
2535
+ function $i(e6) {
2536
2536
  return e6.type === 5;
2537
2537
  }
2538
- function $i(e6) {
2538
+ function ea(e6) {
2539
2539
  return e6.type === 6;
2540
2540
  }
2541
- function ea(e6) {
2541
+ function ta(e6) {
2542
2542
  return e6.type === 7;
2543
2543
  }
2544
- function ta(e6) {
2544
+ function na(e6) {
2545
2545
  return e6.type === 8;
2546
2546
  }
2547
- function na(e6) {
2547
+ function ra(e6) {
2548
2548
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2549
2549
  }
2550
- function ra(e6) {
2550
+ function ia(e6) {
2551
2551
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2552
2552
  }
2553
- var ia = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2554
- var H = { "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`] };
2555
- function aa(e6, t2) {
2553
+ var aa = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2554
+ var V = { "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`] };
2555
+ function oa(e6, t2) {
2556
2556
  let n2 = ``;
2557
2557
  for (let r2 = 0; r2 < e6.length; r2++) {
2558
2558
  let i2 = e6.charAt(r2);
2559
2559
  if (i2 === `j`) {
2560
2560
  let a2 = 0;
2561
2561
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2562
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = oa(t2);
2562
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = sa(t2);
2563
2563
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2564
2564
  for (; o2-- > 0; ) n2 = c2 + n2;
2565
2565
  } else n2 += i2 === `J` ? `H` : i2;
2566
2566
  }
2567
2567
  return n2;
2568
2568
  }
2569
- function oa(e6) {
2569
+ function sa(e6) {
2570
2570
  let t2 = e6.hourCycle;
2571
2571
  if (t2 === void 0) {
2572
2572
  let n3 = e6;
@@ -2585,36 +2585,36 @@ function oa(e6) {
2585
2585
  throw Error(`Invalid hourCycle`);
2586
2586
  }
2587
2587
  let n2 = e6.language, r2;
2588
- return n2 !== `root` && (r2 = e6.maximize().region), (H[`${n2}-${r2}`] || H[r2 || ``] || H[n2 || ``] || H[`${n2}-001`] || H[`001`])[0].charAt(0);
2588
+ return n2 !== `root` && (r2 = e6.maximize().region), (V[`${n2}-${r2}`] || V[r2 || ``] || V[n2 || ``] || V[`${n2}-001`] || V[`001`])[0].charAt(0);
2589
2589
  }
2590
- var sa = RegExp(`^${ia.source}*`);
2591
- var ca = RegExp(`${ia.source}*$`);
2592
- function U(e6, t2) {
2590
+ var ca = RegExp(`^${aa.source}*`);
2591
+ var la = RegExp(`${aa.source}*$`);
2592
+ function H(e6, t2) {
2593
2593
  return { start: e6, end: t2 };
2594
2594
  }
2595
- var la = !!Object.fromEntries;
2596
- var ua = !!String.prototype.trimStart;
2597
- var da = !!String.prototype.trimEnd;
2598
- var fa = la ? Object.fromEntries : function(e6) {
2595
+ var ua = !!Object.fromEntries;
2596
+ var da = !!String.prototype.trimStart;
2597
+ var fa = !!String.prototype.trimEnd;
2598
+ var pa = ua ? Object.fromEntries : function(e6) {
2599
2599
  let t2 = {};
2600
2600
  for (let [n2, r2] of e6) t2[n2] = r2;
2601
2601
  return t2;
2602
2602
  };
2603
- var pa = ua ? function(e6) {
2603
+ var ma = da ? function(e6) {
2604
2604
  return e6.trimStart();
2605
2605
  } : function(e6) {
2606
- return e6.replace(sa, ``);
2606
+ return e6.replace(ca, ``);
2607
2607
  };
2608
- var ma = da ? function(e6) {
2608
+ var ha = fa ? function(e6) {
2609
2609
  return e6.trimEnd();
2610
2610
  } : function(e6) {
2611
- return e6.replace(ca, ``);
2611
+ return e6.replace(la, ``);
2612
2612
  };
2613
- var ha = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2614
- function ga(e6, t2) {
2615
- return ha.lastIndex = t2, ha.exec(e6)[1] ?? ``;
2613
+ var ga = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2614
+ function _a(e6, t2) {
2615
+ return ga.lastIndex = t2, ga.exec(e6)[1] ?? ``;
2616
2616
  }
2617
- function _a(e6) {
2617
+ function va(e6) {
2618
2618
  if (e6.length === 0) return null;
2619
2619
  let t2 = 1, n2 = 1;
2620
2620
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2635,7 +2635,7 @@ function _a(e6) {
2635
2635
  }
2636
2636
  return { offset: e6.length, line: t2, column: n2 };
2637
2637
  }
2638
- var va = class {
2638
+ var ya = class {
2639
2639
  constructor(e6, t2 = {}) {
2640
2640
  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;
2641
2641
  }
@@ -2644,10 +2644,10 @@ var va = class {
2644
2644
  if (this.message.length > 0) {
2645
2645
  let e6 = this.message.charCodeAt(0);
2646
2646
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2647
- let e7 = _a(this.message);
2647
+ let e7 = va(this.message);
2648
2648
  if (e7) {
2649
2649
  let t2 = this.clonePosition();
2650
- return this.position = e7, { val: [{ type: 0, value: this.message, location: U(t2, this.clonePosition()) }], err: null };
2650
+ return this.position = e7, { val: [{ type: 0, value: this.message, location: H(t2, this.clonePosition()) }], err: null };
2651
2651
  }
2652
2652
  }
2653
2653
  }
@@ -2664,11 +2664,11 @@ var va = class {
2664
2664
  } else if (i2 === 125 && e6 > 0) break;
2665
2665
  else if (i2 === 35 && (t2 === `plural` || t2 === `selectordinal`)) {
2666
2666
  let e7 = this.clonePosition();
2667
- this.bump(), r2.push({ type: 7, location: U(e7, this.clonePosition()) });
2667
+ this.bump(), r2.push({ type: 7, location: H(e7, this.clonePosition()) });
2668
2668
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2669
2669
  if (n2) break;
2670
- return this.error(26, U(this.clonePosition(), this.clonePosition()));
2671
- } else if (i2 === 60 && !this.ignoreTag && ya(this.peek() || 0)) {
2670
+ return this.error(26, H(this.clonePosition(), this.clonePosition()));
2671
+ } else if (i2 === 60 && !this.ignoreTag && ba(this.peek() || 0)) {
2672
2672
  let n3 = this.parseTag(e6, t2);
2673
2673
  if (n3.err) return n3;
2674
2674
  r2.push(n3.val);
@@ -2684,23 +2684,23 @@ var va = class {
2684
2684
  let n2 = this.clonePosition();
2685
2685
  this.bump();
2686
2686
  let r2 = this.parseTagName();
2687
- if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: U(n2, this.clonePosition()) }, err: null };
2687
+ if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: H(n2, this.clonePosition()) }, err: null };
2688
2688
  if (this.bumpIf(`>`)) {
2689
2689
  let i2 = this.parseMessage(e6 + 1, t2, true);
2690
2690
  if (i2.err) return i2;
2691
2691
  let a2 = i2.val, o2 = this.clonePosition();
2692
2692
  if (this.bumpIf(`</`)) {
2693
- if (this.isEOF() || !ya(this.char())) return this.error(23, U(o2, this.clonePosition()));
2693
+ if (this.isEOF() || !ba(this.char())) return this.error(23, H(o2, this.clonePosition()));
2694
2694
  let e7 = this.clonePosition();
2695
- return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: U(n2, this.clonePosition()) }, err: null } : this.error(23, U(o2, this.clonePosition()))) : this.error(26, U(e7, this.clonePosition()));
2695
+ return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: H(n2, this.clonePosition()) }, err: null } : this.error(23, H(o2, this.clonePosition()))) : this.error(26, H(e7, this.clonePosition()));
2696
2696
  }
2697
- return this.error(27, U(n2, this.clonePosition()));
2697
+ return this.error(27, H(n2, this.clonePosition()));
2698
2698
  }
2699
- return this.error(23, U(n2, this.clonePosition()));
2699
+ return this.error(23, H(n2, this.clonePosition()));
2700
2700
  }
2701
2701
  parseTagName() {
2702
2702
  let e6 = this.offset();
2703
- for (this.bump(); !this.isEOF() && xa(this.char()); ) this.bump();
2703
+ for (this.bump(); !this.isEOF() && Sa(this.char()); ) this.bump();
2704
2704
  return this.message.slice(e6, this.offset());
2705
2705
  }
2706
2706
  parseLiteral(e6, t2) {
@@ -2720,11 +2720,11 @@ var va = class {
2720
2720
  if (a2) r2 += a2;
2721
2721
  else break;
2722
2722
  }
2723
- let i2 = U(n2, this.clonePosition());
2723
+ let i2 = H(n2, this.clonePosition());
2724
2724
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2725
2725
  }
2726
2726
  tryParseLeftAngleBracket() {
2727
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !ba(this.peek() || 0)) ? (this.bump(), `<`) : null;
2727
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !xa(this.peek() || 0)) ? (this.bump(), `<`) : null;
2728
2728
  }
2729
2729
  tryParseQuote(e6) {
2730
2730
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2764,29 +2764,29 @@ var va = class {
2764
2764
  }
2765
2765
  parseArgument(e6, t2) {
2766
2766
  let n2 = this.clonePosition();
2767
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, U(n2, this.clonePosition()));
2768
- if (this.char() === 125) return this.bump(), this.error(2, U(n2, this.clonePosition()));
2767
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, H(n2, this.clonePosition()));
2768
+ if (this.char() === 125) return this.bump(), this.error(2, H(n2, this.clonePosition()));
2769
2769
  let r2 = this.parseIdentifierIfPossible().value;
2770
- if (!r2) return this.error(3, U(n2, this.clonePosition()));
2771
- if (this.bumpSpace(), this.isEOF()) return this.error(1, U(n2, this.clonePosition()));
2770
+ if (!r2) return this.error(3, H(n2, this.clonePosition()));
2771
+ if (this.bumpSpace(), this.isEOF()) return this.error(1, H(n2, this.clonePosition()));
2772
2772
  switch (this.char()) {
2773
2773
  case 125:
2774
- return this.bump(), { val: { type: 1, value: r2, location: U(n2, this.clonePosition()) }, err: null };
2774
+ return this.bump(), { val: { type: 1, value: r2, location: H(n2, this.clonePosition()) }, err: null };
2775
2775
  case 44:
2776
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, U(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2776
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, H(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2777
2777
  default:
2778
- return this.error(3, U(n2, this.clonePosition()));
2778
+ return this.error(3, H(n2, this.clonePosition()));
2779
2779
  }
2780
2780
  }
2781
2781
  parseIdentifierIfPossible() {
2782
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = ga(this.message, t2), r2 = t2 + n2.length;
2783
- return this.bumpTo(r2), { value: n2, location: U(e6, this.clonePosition()) };
2782
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = _a(this.message, t2), r2 = t2 + n2.length;
2783
+ return this.bumpTo(r2), { value: n2, location: H(e6, this.clonePosition()) };
2784
2784
  }
2785
2785
  parseArgumentOptions(e6, t2, n2, r2) {
2786
2786
  let i2 = this.clonePosition(), a2 = this.parseIdentifierIfPossible().value, o2 = this.clonePosition();
2787
2787
  switch (a2) {
2788
2788
  case ``:
2789
- return this.error(4, U(i2, o2));
2789
+ return this.error(4, H(i2, o2));
2790
2790
  case `number`:
2791
2791
  case `date`:
2792
2792
  case `time`: {
@@ -2796,15 +2796,15 @@ var va = class {
2796
2796
  this.bumpSpace();
2797
2797
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2798
2798
  if (n3.err) return n3;
2799
- let r3 = ma(n3.val);
2800
- if (r3.length === 0) return this.error(6, U(this.clonePosition(), this.clonePosition()));
2801
- e7 = { style: r3, styleLocation: U(t4, this.clonePosition()) };
2799
+ let r3 = ha(n3.val);
2800
+ if (r3.length === 0) return this.error(6, H(this.clonePosition(), this.clonePosition()));
2801
+ e7 = { style: r3, styleLocation: H(t4, this.clonePosition()) };
2802
2802
  }
2803
2803
  let t3 = this.tryParseArgumentClose(r2);
2804
2804
  if (t3.err) return t3;
2805
- let i3 = U(r2, this.clonePosition());
2805
+ let i3 = H(r2, this.clonePosition());
2806
2806
  if (e7 && e7.style.startsWith(`::`)) {
2807
- let t4 = pa(e7.style.slice(2));
2807
+ let t4 = ma(e7.style.slice(2));
2808
2808
  if (a2 === `number`) {
2809
2809
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
2810
2810
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -2812,8 +2812,8 @@ var va = class {
2812
2812
  {
2813
2813
  if (t4.length === 0) return this.error(10, i3);
2814
2814
  let r3 = t4;
2815
- this.locale && (r3 = aa(t4, this.locale));
2816
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ni(r3) : {} };
2815
+ this.locale && (r3 = oa(t4, this.locale));
2816
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Pi(r3) : {} };
2817
2817
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
2818
2818
  }
2819
2819
  }
@@ -2823,11 +2823,11 @@ var va = class {
2823
2823
  case `selectordinal`:
2824
2824
  case `select`: {
2825
2825
  let i3 = this.clonePosition();
2826
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, U(i3, { ...i3 }));
2826
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, H(i3, { ...i3 }));
2827
2827
  this.bumpSpace();
2828
2828
  let o3 = this.parseIdentifierIfPossible(), s2 = 0;
2829
2829
  if (a2 !== `select` && o3.value === `offset`) {
2830
- if (!this.bumpIf(`:`)) return this.error(13, U(this.clonePosition(), this.clonePosition()));
2830
+ if (!this.bumpIf(`:`)) return this.error(13, H(this.clonePosition(), this.clonePosition()));
2831
2831
  this.bumpSpace();
2832
2832
  let e7 = this.tryParseDecimalInteger(13, 14);
2833
2833
  if (e7.err) return e7;
@@ -2837,15 +2837,15 @@ var va = class {
2837
2837
  if (c2.err) return c2;
2838
2838
  let l2 = this.tryParseArgumentClose(r2);
2839
2839
  if (l2.err) return l2;
2840
- let u2 = U(r2, this.clonePosition());
2841
- return a2 === `select` ? { val: { type: 5, value: n2, options: fa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: fa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2840
+ let u2 = H(r2, this.clonePosition());
2841
+ return a2 === `select` ? { val: { type: 5, value: n2, options: pa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: pa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2842
2842
  }
2843
2843
  default:
2844
- return this.error(5, U(i2, o2));
2844
+ return this.error(5, H(i2, o2));
2845
2845
  }
2846
2846
  }
2847
2847
  tryParseArgumentClose(e6) {
2848
- return this.isEOF() || this.char() !== 125 ? this.error(1, U(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2848
+ return this.isEOF() || this.char() !== 125 ? this.error(1, H(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
2849
2849
  }
2850
2850
  parseSimpleArgStyleIfPossible() {
2851
2851
  let e6 = 0, t2 = this.clonePosition();
@@ -2853,7 +2853,7 @@ var va = class {
2853
2853
  case 39: {
2854
2854
  this.bump();
2855
2855
  let e7 = this.clonePosition();
2856
- if (!this.bumpUntil(`'`)) return this.error(11, U(e7, this.clonePosition()));
2856
+ if (!this.bumpUntil(`'`)) return this.error(11, H(e7, this.clonePosition()));
2857
2857
  this.bump();
2858
2858
  break;
2859
2859
  }
@@ -2872,11 +2872,11 @@ var va = class {
2872
2872
  parseNumberSkeletonFromString(e6, t2) {
2873
2873
  let n2 = [];
2874
2874
  try {
2875
- n2 = Fi(e6);
2875
+ n2 = Ii(e6);
2876
2876
  } catch {
2877
2877
  return this.error(7, t2);
2878
2878
  }
2879
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Gi(n2) : {} }, err: null };
2879
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Ki(n2) : {} }, err: null };
2880
2880
  }
2881
2881
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
2882
2882
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -2886,20 +2886,20 @@ var va = class {
2886
2886
  if (t2 !== `select` && this.bumpIf(`=`)) {
2887
2887
  let t3 = this.tryParseDecimalInteger(16, 19);
2888
2888
  if (t3.err) return t3;
2889
- c2 = U(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
2889
+ c2 = H(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
2890
2890
  } else break;
2891
2891
  }
2892
2892
  if (o2.has(s2)) return this.error(t2 === `select` ? 21 : 20, c2);
2893
2893
  s2 === `other` && (i2 = true), this.bumpSpace();
2894
2894
  let r3 = this.clonePosition();
2895
- if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, U(this.clonePosition(), this.clonePosition()));
2895
+ if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, H(this.clonePosition(), this.clonePosition()));
2896
2896
  let l2 = this.parseMessage(e6 + 1, t2, n2);
2897
2897
  if (l2.err) return l2;
2898
2898
  let u2 = this.tryParseArgumentClose(r3);
2899
2899
  if (u2.err) return u2;
2900
- a2.push([s2, { value: l2.val, location: U(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
2900
+ a2.push([s2, { value: l2.val, location: H(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
2901
2901
  }
2902
- return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, U(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, U(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
2902
+ return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, H(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
2903
2903
  }
2904
2904
  tryParseDecimalInteger(e6, t2) {
2905
2905
  let n2 = 1, r2 = this.clonePosition();
@@ -2910,7 +2910,7 @@ var va = class {
2910
2910
  if (e7 >= 48 && e7 <= 57) i2 = true, a2 = a2 * 10 + (e7 - 48), this.bump();
2911
2911
  else break;
2912
2912
  }
2913
- let o2 = U(r2, this.clonePosition());
2913
+ let o2 = H(r2, this.clonePosition());
2914
2914
  return i2 ? (a2 *= n2, Number.isSafeInteger(a2) ? { val: a2, err: null } : this.error(t2, o2)) : this.error(e6, o2);
2915
2915
  }
2916
2916
  offset() {
@@ -2958,7 +2958,7 @@ var va = class {
2958
2958
  }
2959
2959
  }
2960
2960
  bumpSpace() {
2961
- for (; !this.isEOF() && Sa(this.char()); ) this.bump();
2961
+ for (; !this.isEOF() && Ca(this.char()); ) this.bump();
2962
2962
  }
2963
2963
  peek() {
2964
2964
  if (this.isEOF()) return null;
@@ -2966,34 +2966,34 @@ var va = class {
2966
2966
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
2967
2967
  }
2968
2968
  };
2969
- function ya(e6) {
2970
- return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
2971
- }
2972
2969
  function ba(e6) {
2973
- return ya(e6) || e6 === 47;
2970
+ return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
2974
2971
  }
2975
2972
  function xa(e6) {
2976
- 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;
2973
+ return ba(e6) || e6 === 47;
2977
2974
  }
2978
2975
  function Sa(e6) {
2979
- return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
2976
+ 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;
2980
2977
  }
2981
2978
  function Ca(e6) {
2979
+ return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
2980
+ }
2981
+ function wa(e6) {
2982
2982
  e6.forEach((e7) => {
2983
- if (delete e7.location, Qi(e7) || $i(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Ca(e7.options[t2].value);
2984
- else Yi(e7) && na(e7.style) || (Xi(e7) || Zi(e7)) && ra(e7.style) ? delete e7.style.location : ta(e7) && Ca(e7.children);
2983
+ if (delete e7.location, $i(e7) || ea(e7)) for (let t2 in e7.options) delete e7.options[t2].location, wa(e7.options[t2].value);
2984
+ else Xi(e7) && ra(e7.style) || (Zi(e7) || Qi(e7)) && ia(e7.style) ? delete e7.style.location : na(e7) && wa(e7.children);
2985
2985
  });
2986
2986
  }
2987
- function wa(e6, t2 = {}) {
2987
+ function Ta(e6, t2 = {}) {
2988
2988
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
2989
- let n2 = new va(e6, t2).parse();
2989
+ let n2 = new ya(e6, t2).parse();
2990
2990
  if (n2.err) {
2991
- let e7 = SyntaxError(Ki[n2.err.kind]);
2991
+ let e7 = SyntaxError(qi[n2.err.kind]);
2992
2992
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
2993
2993
  }
2994
- return t2?.captureLocation || Ca(n2.val), n2.val;
2994
+ return t2?.captureLocation || wa(n2.val), n2.val;
2995
2995
  }
2996
- var Ta = class extends Error {
2996
+ var Ea = class extends Error {
2997
2997
  constructor(e6, t2, n2) {
2998
2998
  super(e6), this.code = t2, this.originalMessage = n2;
2999
2999
  }
@@ -3001,54 +3001,54 @@ var Ta = class extends Error {
3001
3001
  return `[formatjs Error: ${this.code}] ${this.message}`;
3002
3002
  }
3003
3003
  };
3004
- var Ea = class extends Ta {
3004
+ var Da = class extends Ea {
3005
3005
  constructor(e6, t2, n2, r2) {
3006
3006
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
3007
3007
  }
3008
3008
  };
3009
- var Da = class extends Ta {
3009
+ var Oa = class extends Ea {
3010
3010
  constructor(e6, t2, n2) {
3011
3011
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
3012
3012
  }
3013
3013
  };
3014
- var Oa = class extends Ta {
3014
+ var ka = class extends Ea {
3015
3015
  constructor(e6, t2) {
3016
3016
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
3017
3017
  }
3018
3018
  };
3019
- function ka(e6) {
3019
+ function Aa(e6) {
3020
3020
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3021
3021
  let n2 = e7[e7.length - 1];
3022
3022
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3023
3023
  }, []);
3024
3024
  }
3025
- function Aa(e6) {
3025
+ function ja(e6) {
3026
3026
  return typeof e6 == `function`;
3027
3027
  }
3028
- function ja(e6, t2, n2, r2, i2, a2, o2) {
3029
- if (e6.length === 1 && qi(e6[0])) return [{ type: 0, value: e6[0].value }];
3028
+ function Ma(e6, t2, n2, r2, i2, a2, o2) {
3029
+ if (e6.length === 1 && Ji(e6[0])) return [{ type: 0, value: e6[0].value }];
3030
3030
  let s2 = [];
3031
3031
  for (let c2 of e6) {
3032
- if (qi(c2)) {
3032
+ if (Ji(c2)) {
3033
3033
  s2.push({ type: 0, value: c2.value });
3034
3034
  continue;
3035
3035
  }
3036
- if (ea(c2)) {
3036
+ if (ta(c2)) {
3037
3037
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3038
3038
  continue;
3039
3039
  }
3040
3040
  let { value: e7 } = c2;
3041
- if (!(i2 && e7 in i2)) throw new Oa(e7, o2);
3041
+ if (!(i2 && e7 in i2)) throw new ka(e7, o2);
3042
3042
  let l2 = i2[e7];
3043
- if (Ji(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 });
3044
- else if (Xi(c2)) {
3045
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ra(c2.style) ? c2.style.parsedOptions : void 0;
3043
+ if (Yi(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 });
3044
+ else if (Zi(c2)) {
3045
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ia(c2.style) ? c2.style.parsedOptions : void 0;
3046
3046
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3047
- } else if (Zi(c2)) {
3048
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ra(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3047
+ } else if (Qi(c2)) {
3048
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ia(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3049
3049
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3050
- } else if (Yi(c2)) {
3051
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : na(c2.style) ? c2.style.parsedOptions : void 0;
3050
+ } else if (Xi(c2)) {
3051
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ra(c2.style) ? c2.style.parsedOptions : void 0;
3052
3052
  if (e8 && e8.scale) {
3053
3053
  let t3 = e8.scale || 1;
3054
3054
  if (typeof l2 == `bigint`) {
@@ -3058,40 +3058,40 @@ function ja(e6, t2, n2, r2, i2, a2, o2) {
3058
3058
  }
3059
3059
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3060
3060
  } else {
3061
- if (ta(c2)) {
3061
+ if (na(c2)) {
3062
3062
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3063
- if (!Aa(u2)) throw new Da(l3, `function`, o2);
3064
- let d2 = u2(ja(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3063
+ if (!ja(u2)) throw new Oa(l3, `function`, o2);
3064
+ let d2 = u2(Ma(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3065
3065
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3066
3066
  }
3067
- if (Qi(c2)) {
3067
+ if ($i(c2)) {
3068
3068
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3069
- if (!a3) throw new Ea(c2.value, l2, Object.keys(c2.options), o2);
3070
- s2.push(...ja(a3.value, t2, n2, r2, i2));
3071
- } else if ($i(c2)) {
3069
+ if (!a3) throw new Da(c2.value, l2, Object.keys(c2.options), o2);
3070
+ s2.push(...Ma(a3.value, t2, n2, r2, i2));
3071
+ } else if (ea(c2)) {
3072
3072
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3073
3073
  if (!a3) {
3074
- if (!Intl.PluralRules) throw new Ta(`Intl.PluralRules is not available in this environment.
3074
+ if (!Intl.PluralRules) throw new Ea(`Intl.PluralRules is not available in this environment.
3075
3075
  Try polyfilling it using "@formatjs/intl-pluralrules"
3076
3076
  `, `MISSING_INTL_API`, o2);
3077
3077
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3078
3078
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3079
3079
  }
3080
- if (!a3) throw new Ea(c2.value, l2, Object.keys(c2.options), o2);
3080
+ if (!a3) throw new Da(c2.value, l2, Object.keys(c2.options), o2);
3081
3081
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3082
- s2.push(...ja(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3082
+ s2.push(...Ma(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3083
3083
  }
3084
3084
  }
3085
3085
  }
3086
- return ka(s2);
3086
+ return Aa(s2);
3087
3087
  }
3088
- function Ma(e6, t2) {
3088
+ function Na(e6, t2) {
3089
3089
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3090
3090
  }
3091
- function Na(e6, t2) {
3092
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Ma(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3091
+ function Pa(e6, t2) {
3092
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Na(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3093
3093
  }
3094
- function Pa(e6) {
3094
+ function Fa(e6) {
3095
3095
  return { create() {
3096
3096
  return { get(t2) {
3097
3097
  return e6[t2];
@@ -3100,23 +3100,23 @@ function Pa(e6) {
3100
3100
  } };
3101
3101
  } };
3102
3102
  }
3103
- function Fa(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3104
- return { getNumberFormat: bi((...e7) => new Intl.NumberFormat(...e7), { cache: Pa(e6.number), strategy: ji.variadic }), getDateTimeFormat: bi((...e7) => new Intl.DateTimeFormat(...e7), { cache: Pa(e6.dateTime), strategy: ji.variadic }), getPluralRules: bi((...e7) => new Intl.PluralRules(...e7), { cache: Pa(e6.pluralRules), strategy: ji.variadic }) };
3103
+ function Ia(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3104
+ return { getNumberFormat: xi((...e7) => new Intl.NumberFormat(...e7), { cache: Fa(e6.number), strategy: Mi.variadic }), getDateTimeFormat: xi((...e7) => new Intl.DateTimeFormat(...e7), { cache: Fa(e6.dateTime), strategy: Mi.variadic }), getPluralRules: xi((...e7) => new Intl.PluralRules(...e7), { cache: Fa(e6.pluralRules), strategy: Mi.variadic }) };
3105
3105
  }
3106
- var Ia = class e5 {
3106
+ var La = class e5 {
3107
3107
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3108
3108
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3109
3109
  let t3 = this.formatToParts(e6);
3110
3110
  if (t3.length === 1) return t3[0].value;
3111
3111
  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), []);
3112
3112
  return n3.length <= 1 ? n3[0] || `` : n3;
3113
- }, this.formatToParts = (e6) => ja(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`) {
3113
+ }, this.formatToParts = (e6) => Ma(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`) {
3114
3114
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3115
3115
  let { ...n3 } = i2 || {};
3116
3116
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3117
3117
  } else this.ast = t2;
3118
3118
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3119
- this.formats = Na(e5.formats, r2), this.formatters = i2 && i2.formatters || Fa(this.formatterCache);
3119
+ this.formats = Pa(e5.formats, r2), this.formatters = i2 && i2.formatters || Ia(this.formatterCache);
3120
3120
  }
3121
3121
  static {
3122
3122
  this.memoizedDefaultLocale = null;
@@ -3132,32 +3132,32 @@ var Ia = class e5 {
3132
3132
  };
3133
3133
  }
3134
3134
  static {
3135
- this.__parse = wa;
3135
+ this.__parse = Ta;
3136
3136
  }
3137
3137
  static {
3138
3138
  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` } } };
3139
3139
  }
3140
3140
  };
3141
- function La(e6, t2) {
3142
- return Ha(e6) || Va(e6, t2) || za(e6, t2) || Ra();
3141
+ function Ra(e6, t2) {
3142
+ return Ua(e6) || Ha(e6, t2) || Ba(e6, t2) || za();
3143
3143
  }
3144
- function Ra() {
3144
+ function za() {
3145
3145
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3146
3146
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3147
3147
  }
3148
- function za(e6, t2) {
3148
+ function Ba(e6, t2) {
3149
3149
  if (e6) {
3150
- if (typeof e6 == `string`) return Ba(e6, t2);
3150
+ if (typeof e6 == `string`) return Va(e6, t2);
3151
3151
  var n2 = {}.toString.call(e6).slice(8, -1);
3152
- 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) ? Ba(e6, t2) : void 0;
3152
+ 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) ? Va(e6, t2) : void 0;
3153
3153
  }
3154
3154
  }
3155
- function Ba(e6, t2) {
3155
+ function Va(e6, t2) {
3156
3156
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3157
3157
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3158
3158
  return r2;
3159
3159
  }
3160
- function Va(e6, t2) {
3160
+ function Ha(e6, t2) {
3161
3161
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3162
3162
  if (n2 != null) {
3163
3163
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3178,18 +3178,18 @@ function Va(e6, t2) {
3178
3178
  return s2;
3179
3179
  }
3180
3180
  }
3181
- function Ha(e6) {
3181
+ function Ua(e6) {
3182
3182
  if (Array.isArray(e6)) return e6;
3183
3183
  }
3184
- function W(e6) {
3184
+ function U(e6) {
3185
3185
  "@babel/helpers - typeof";
3186
- return W = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3186
+ return U = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3187
3187
  return typeof e7;
3188
3188
  } : function(e7) {
3189
3189
  return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3190
- }, W(e6);
3190
+ }, U(e6);
3191
3191
  }
3192
- function Ua(e6, t2) {
3192
+ function Wa(e6, t2) {
3193
3193
  var n2 = Object.keys(e6);
3194
3194
  if (Object.getOwnPropertySymbols) {
3195
3195
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3199,74 +3199,74 @@ function Ua(e6, t2) {
3199
3199
  }
3200
3200
  return n2;
3201
3201
  }
3202
- function Wa(e6) {
3202
+ function Ga(e6) {
3203
3203
  for (var t2 = 1; t2 < arguments.length; t2++) {
3204
3204
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3205
- t2 % 2 ? Ua(Object(n2), true).forEach(function(t3) {
3206
- Ga(e6, t3, n2[t3]);
3207
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : Ua(Object(n2)).forEach(function(t3) {
3205
+ t2 % 2 ? Wa(Object(n2), true).forEach(function(t3) {
3206
+ Ka(e6, t3, n2[t3]);
3207
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : Wa(Object(n2)).forEach(function(t3) {
3208
3208
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3209
3209
  });
3210
3210
  }
3211
3211
  return e6;
3212
3212
  }
3213
- function Ga(e6, t2, n2) {
3214
- return (t2 = Ya(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3213
+ function Ka(e6, t2, n2) {
3214
+ return (t2 = Xa(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3215
3215
  }
3216
- function Ka(e6, t2) {
3216
+ function qa(e6, t2) {
3217
3217
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3218
3218
  }
3219
- function qa(e6, t2) {
3219
+ function Ja(e6, t2) {
3220
3220
  for (var n2 = 0; n2 < t2.length; n2++) {
3221
3221
  var r2 = t2[n2];
3222
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, Ya(r2.key), r2);
3222
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, Xa(r2.key), r2);
3223
3223
  }
3224
3224
  }
3225
- function Ja(e6, t2, n2) {
3226
- return t2 && qa(e6.prototype, t2), n2 && qa(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3225
+ function Ya(e6, t2, n2) {
3226
+ return t2 && Ja(e6.prototype, t2), n2 && Ja(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3227
3227
  }
3228
- function Ya(e6) {
3229
- var t2 = Xa(e6, `string`);
3230
- return W(t2) == `symbol` ? t2 : t2 + ``;
3228
+ function Xa(e6) {
3229
+ var t2 = Za(e6, `string`);
3230
+ return U(t2) == `symbol` ? t2 : t2 + ``;
3231
3231
  }
3232
- function Xa(e6, t2) {
3233
- if (W(e6) != `object` || !e6) return e6;
3232
+ function Za(e6, t2) {
3233
+ if (U(e6) != `object` || !e6) return e6;
3234
3234
  var n2 = e6[Symbol.toPrimitive];
3235
3235
  if (n2 !== void 0) {
3236
3236
  var r2 = n2.call(e6, t2 || `default`);
3237
- if (W(r2) != `object`) return r2;
3237
+ if (U(r2) != `object`) return r2;
3238
3238
  throw TypeError(`@@toPrimitive must return a primitive value.`);
3239
3239
  }
3240
3240
  return (t2 === `string` ? String : Number)(e6);
3241
3241
  }
3242
- function Za() {
3242
+ function Qa() {
3243
3243
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3244
3244
  return n2;
3245
3245
  }, parseLngForICU: function(e6) {
3246
3246
  return e6;
3247
3247
  }, escapeVariables: false };
3248
3248
  }
3249
- var Qa = function() {
3249
+ var $a = function() {
3250
3250
  function e6(t2) {
3251
- Ka(this, e6), this.type = `i18nFormat`, this.mem = {}, this.init(null, t2);
3251
+ qa(this, e6), this.type = `i18nFormat`, this.mem = {}, this.init(null, t2);
3252
3252
  }
3253
- return Ja(e6, [{ key: `init`, value: function(e7, t2) {
3253
+ return Ya(e6, [{ key: `init`, value: function(e7, t2) {
3254
3254
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3255
- if (this.options = yi(r2, t2, this.options || {}, Za()), this.formats = this.options.formats, e7) {
3255
+ if (this.options = bi(r2, t2, this.options || {}, Qa()), this.formats = this.options.formats, e7) {
3256
3256
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3257
- e7.IntlMessageFormat = Ia, e7.ICU = this, s2 && (a2 && e7.on(a2, function() {
3257
+ e7.IntlMessageFormat = La, e7.ICU = this, s2 && (a2 && e7.on(a2, function() {
3258
3258
  return n2.clearCache();
3259
3259
  }), o2 && e7.store.on(o2, function() {
3260
3260
  return n2.clearCache();
3261
3261
  }));
3262
3262
  }
3263
3263
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3264
- this.formats = this.formats ? Wa(Wa({}, this.formats), e7) : e7;
3264
+ this.formats = this.formats ? Ga(Ga({}, this.formats), e7) : e7;
3265
3265
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3266
3266
  var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && `${n2}.${r2}.${i2.replace(/\./g, `###`)}`, c2;
3267
- this.options.memoize && (c2 = hi(this.mem, s2));
3267
+ this.options.memoize && (c2 = gi(this.mem, s2));
3268
3268
  try {
3269
- return c2 || (c2 = new Ia(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && mi(this.mem, s2, c2)), c2.format(this.escapeVariableValues(t2));
3269
+ return c2 || (c2 = new La(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && hi(this.mem, s2, c2)), c2.format(this.escapeVariableValues(t2));
3270
3270
  } catch (n3) {
3271
3271
  return this.options.parseErrorHandler(n3, i2, e7, t2);
3272
3272
  }
@@ -3275,29 +3275,29 @@ var Qa = function() {
3275
3275
  } }, { key: `clearCache`, value: function() {
3276
3276
  this.mem = {};
3277
3277
  } }, { key: `escapeVariableValues`, value: function(e7) {
3278
- if (!this.options.escapeVariables || !e7 || W(e7) !== `object`) return e7;
3278
+ if (!this.options.escapeVariables || !e7 || U(e7) !== `object`) return e7;
3279
3279
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3280
- var i2 = La(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3280
+ var i2 = Ra(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3281
3281
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3282
3282
  }
3283
3283
  return t2;
3284
3284
  } }]), e6;
3285
3285
  }();
3286
- Qa.type = `i18nFormat`;
3287
- function $a({ icuOptions: e6 = {}, ...t2 }) {
3286
+ $a.type = `i18nFormat`;
3287
+ function eo({ icuOptions: e6 = {}, ...t2 }) {
3288
3288
  let { parseErrorHandler: n2 = void 0 } = t2;
3289
- return di(t2, { icu: new Qa({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3289
+ return fi(t2, { icu: new $a({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3290
3290
  }
3291
- var eo = (e6, t2, n2, r2) => {
3291
+ var to = (e6, t2, n2, r2) => {
3292
3292
  let i2 = [n2, { code: t2, ...r2 || {} }];
3293
3293
  if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
3294
- G(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3294
+ W(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3295
3295
  };
3296
- var to = {};
3297
- var no = (e6, t2, n2, r2) => {
3298
- G(n2) && to[n2] || (G(n2) && (to[n2] = /* @__PURE__ */ new Date()), eo(e6, t2, n2, r2));
3296
+ var no = {};
3297
+ var ro = (e6, t2, n2, r2) => {
3298
+ W(n2) && no[n2] || (W(n2) && (no[n2] = /* @__PURE__ */ new Date()), to(e6, t2, n2, r2));
3299
3299
  };
3300
- var ro = (e6, t2) => () => {
3300
+ var io = (e6, t2) => () => {
3301
3301
  if (e6.isInitialized) t2();
3302
3302
  else {
3303
3303
  let n2 = () => {
@@ -3308,29 +3308,29 @@ var ro = (e6, t2) => () => {
3308
3308
  e6.on(`initialized`, n2);
3309
3309
  }
3310
3310
  };
3311
- var io = (e6, t2, n2) => {
3312
- e6.loadNamespaces(t2, ro(e6, n2));
3311
+ var ao = (e6, t2, n2) => {
3312
+ e6.loadNamespaces(t2, io(e6, n2));
3313
3313
  };
3314
- var ao = (e6, t2, n2, r2) => {
3315
- if (G(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return io(e6, n2, r2);
3314
+ var oo = (e6, t2, n2, r2) => {
3315
+ if (W(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return ao(e6, n2, r2);
3316
3316
  n2.forEach((t3) => {
3317
3317
  e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
3318
- }), e6.loadLanguages(t2, ro(e6, r2));
3318
+ }), e6.loadLanguages(t2, io(e6, r2));
3319
3319
  };
3320
- var oo = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (no(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3320
+ var so = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (ro(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3321
3321
  if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
3322
3322
  } });
3323
- var G = (e6) => typeof e6 == `string`;
3324
- var so = (e6) => typeof e6 == `object` && !!e6;
3325
- var co = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3326
- var lo = { "&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;": `/` };
3327
- var uo = (e6) => lo[e6];
3328
- var fo = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(co, uo) };
3329
- var po = () => fo;
3330
- var mo;
3331
- var ho = () => mo;
3332
- var go = n();
3333
- var _o = class {
3323
+ var W = (e6) => typeof e6 == `string`;
3324
+ var co = (e6) => typeof e6 == `object` && !!e6;
3325
+ var lo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3326
+ var uo = { "&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;": `/` };
3327
+ var fo = (e6) => uo[e6];
3328
+ var po = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(lo, fo) };
3329
+ var mo = () => po;
3330
+ var ho;
3331
+ var go = () => ho;
3332
+ var _o = n();
3333
+ var vo = class {
3334
3334
  constructor() {
3335
3335
  this.usedNamespaces = {};
3336
3336
  }
@@ -3343,32 +3343,32 @@ var _o = class {
3343
3343
  return Object.keys(this.usedNamespaces);
3344
3344
  }
3345
3345
  };
3346
- var vo = (e6, t2) => {
3346
+ var yo = (e6, t2) => {
3347
3347
  let n2 = l();
3348
3348
  return s(() => {
3349
3349
  n2.current = t2 ? n2.current : e6;
3350
3350
  }, [e6, t2]), n2.current;
3351
3351
  };
3352
- var yo = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3353
- var bo = (e6, t2, n2, r2) => a(yo(e6, t2, n2, r2), [e6, t2, n2, r2]);
3354
- var xo = (e6, t2 = {}) => {
3355
- let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = o(go) || {}, a2 = n2 || r2 || ho();
3356
- if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new _o()), !a2) {
3357
- no(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3358
- let e7 = (e8, t4) => G(t4) ? t4 : so(t4) && G(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3352
+ var bo = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3353
+ var xo = (e6, t2, n2, r2) => a(bo(e6, t2, n2, r2), [e6, t2, n2, r2]);
3354
+ var So = (e6, t2 = {}) => {
3355
+ let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = o(_o) || {}, a2 = n2 || r2 || go();
3356
+ if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new vo()), !a2) {
3357
+ ro(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3358
+ let e7 = (e8, t4) => W(t4) ? t4 : co(t4) && W(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3359
3359
  return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
3360
3360
  }
3361
- a2.options.react?.wait && no(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3362
- let c2 = { ...po(), ...a2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = c2, p2 = e6 || i2 || a2.options?.defaultNS;
3363
- p2 = G(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3364
- let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => oo(e7, a2, c2)), h2 = bo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => yo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = u(g2), b2 = p2.join();
3361
+ a2.options.react?.wait && ro(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3362
+ let c2 = { ...mo(), ...a2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = c2, p2 = e6 || i2 || a2.options?.defaultNS;
3363
+ p2 = W(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
3364
+ let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => so(e7, a2, c2)), h2 = xo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => bo(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = u(g2), b2 = p2.join();
3365
3365
  t2.lng && (b2 = `${t2.lng}${b2}`);
3366
- let x2 = vo(b2), S2 = l(true);
3366
+ let x2 = yo(b2), S2 = l(true);
3367
3367
  s(() => {
3368
3368
  let { bindI18n: e7, bindI18nStore: n3 } = c2;
3369
- S2.current = true, !m2 && !d2 && (t2.lng ? ao(a2, t2.lng, p2, () => {
3369
+ S2.current = true, !m2 && !d2 && (t2.lng ? oo(a2, t2.lng, p2, () => {
3370
3370
  S2.current && y2(_2);
3371
- }) : io(a2, p2, () => {
3371
+ }) : ao(a2, p2, () => {
3372
3372
  S2.current && y2(_2);
3373
3373
  })), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
3374
3374
  let r3 = () => {
@@ -3383,131 +3383,131 @@ var xo = (e6, t2 = {}) => {
3383
3383
  let C2 = [v2, a2, m2];
3384
3384
  if (C2.t = v2, C2.i18n = a2, C2.ready = m2, m2 || !m2 && !d2) return C2;
3385
3385
  throw new Promise((e7) => {
3386
- t2.lng ? ao(a2, t2.lng, p2, () => e7()) : io(a2, p2, () => e7());
3386
+ t2.lng ? oo(a2, t2.lng, p2, () => e7()) : ao(a2, p2, () => e7());
3387
3387
  });
3388
3388
  };
3389
- function So({ i18n: e6, defaultNS: t2, children: n2 }) {
3389
+ function Co({ i18n: e6, defaultNS: t2, children: n2 }) {
3390
3390
  let i2 = c(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3391
- return r(go.Provider, { value: i2 }, n2);
3391
+ return r(_o.Provider, { value: i2 }, n2);
3392
3392
  }
3393
- var Co = `wix-warmup-data`;
3394
- var wo = null;
3395
- function To(e6) {
3393
+ var wo = `wix-warmup-data`;
3394
+ var To = null;
3395
+ function Eo(e6) {
3396
3396
  if (typeof document < `u`) try {
3397
- let t2 = document.getElementById(Co)?.textContent;
3398
- return t2 ? (wo?.text !== t2 && (wo = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), wo.data[e6] ?? void 0) : void 0;
3397
+ let t2 = document.getElementById(wo)?.textContent;
3398
+ return t2 ? (To?.text !== t2 && (To = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), To.data[e6] ?? void 0) : void 0;
3399
3399
  } catch {
3400
3400
  return;
3401
3401
  }
3402
3402
  }
3403
- var Eo = 5e3;
3404
- var Do = 100;
3405
- var Oo = {};
3406
- var ko = /* @__PURE__ */ new WeakMap();
3407
- var Ao = (e6) => {
3408
- let t2 = e6.scope ?? Oo, n2 = ko.get(t2);
3409
- return n2 || (n2 = /* @__PURE__ */ new Map(), ko.set(t2, n2)), n2;
3403
+ var Do = 5e3;
3404
+ var Oo = 100;
3405
+ var ko = {};
3406
+ var Ao = /* @__PURE__ */ new WeakMap();
3407
+ var jo = (e6) => {
3408
+ let t2 = e6.scope ?? ko, n2 = Ao.get(t2);
3409
+ return n2 || (n2 = /* @__PURE__ */ new Map(), Ao.set(t2, n2)), n2;
3410
3410
  };
3411
- function jo({ key: e6, warmupData: t2, fetchData: n2 }) {
3411
+ function Mo({ key: e6, warmupData: t2, fetchData: n2 }) {
3412
3412
  if (e6 === null) return n2();
3413
3413
  if (t2.isServer) return n2().then((n3) => (t2.set(e6, n3), n3));
3414
- let r2 = Ao(t2), i2 = Date.now();
3414
+ let r2 = jo(t2), i2 = Date.now();
3415
3415
  for (let [e7, t3] of r2) t3.expiresAt <= i2 && r2.delete(e7);
3416
3416
  let a2 = r2.get(e6);
3417
3417
  if (a2) return a2.promise;
3418
- let o2 = To(e6);
3418
+ let o2 = Eo(e6);
3419
3419
  if (o2 !== void 0) {
3420
3420
  let t3 = Rn(o2);
3421
- return r2.set(e6, { promise: t3, expiresAt: i2 + Eo }), t3;
3421
+ return r2.set(e6, { promise: t3, expiresAt: i2 + Do }), t3;
3422
3422
  }
3423
3423
  let s2 = (async () => await t2.get(e6) ?? n2())();
3424
- r2.size >= Do && r2.delete(r2.keys().next().value);
3424
+ r2.size >= Oo && r2.delete(r2.keys().next().value);
3425
3425
  let c2 = { promise: s2, expiresAt: 1 / 0 };
3426
3426
  return r2.set(e6, c2), s2.then(() => {
3427
- c2.expiresAt = Date.now() + Eo;
3427
+ c2.expiresAt = Date.now() + Do;
3428
3428
  }, () => {
3429
3429
  r2.get(e6) === c2 && r2.delete(e6);
3430
3430
  }), s2;
3431
3431
  }
3432
- var Mo = `blog-builder:i18n`;
3433
- var No = `translation`;
3434
- var Po = () => To(Mo);
3435
- var Fo = /* @__PURE__ */ new Map();
3436
- function Io(e6, t2) {
3437
- let n2 = Fo.get(e6);
3432
+ var No = `blog-builder:i18n`;
3433
+ var Po = `translation`;
3434
+ var Fo = () => Eo(No);
3435
+ var Io = /* @__PURE__ */ new Map();
3436
+ function Lo(e6, t2) {
3437
+ let n2 = Io.get(e6);
3438
3438
  if (n2) return n2;
3439
- let r2 = Po(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = $a({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3440
- return Fo.set(e6, a2), a2;
3439
+ let r2 = Fo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = eo({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3440
+ return Io.set(e6, a2), a2;
3441
3441
  }
3442
- function Lo(e6) {
3443
- let t2 = () => e6.loadNamespaces(No).then(() => void 0, () => void 0);
3442
+ function Ro(e6) {
3443
+ let t2 = () => e6.loadNamespaces(Po).then(() => void 0, () => void 0);
3444
3444
  return e6.isInitialized ? t2() : new Promise((n2) => {
3445
3445
  e6.on(`initialized`, () => void t2().then(n2));
3446
3446
  });
3447
3447
  }
3448
- function Ro(e6, t2) {
3448
+ function zo(e6, t2) {
3449
3449
  return e6.getResourceBundle(t2, `translation`) ?? e6.getResourceBundle(`en`, `translation`);
3450
3450
  }
3451
- var zo = (e6, t2, n2) => {
3451
+ var Bo = (e6, t2, n2) => {
3452
3452
  let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
3453
3453
  return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
3454
3454
  (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.`))));
3455
3455
  });
3456
3456
  };
3457
- var Bo = (e6) => e6.split(`-`)[0] ?? e6;
3458
- br({ isDev: false, loadMessages: (e6) => zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => gn(() => Promise.resolve().then(() => Go), void 0, import.meta.url), "../assets/locale/messages_en.json": () => gn(() => 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": () => gn(() => Promise.resolve().then(() => Go), void 0, import.meta.url) }), `../assets/locale/messages_${Bo(e6)}.dev.json`, 4) });
3459
- var Vo = /* @__PURE__ */ new WeakMap();
3460
- function Ho(e6) {
3461
- let t2 = Vo.get(e6);
3462
- return t2 || (t2 = Lo(e6).finally(() => Vo.delete(e6)), Vo.set(e6, t2)), t2;
3457
+ var Vo = (e6) => e6.split(`-`)[0] ?? e6;
3458
+ br({ isDev: false, loadMessages: (e6) => Bo(Object.assign({ "../assets/locale/messages_en.dev.json": () => gn(() => Promise.resolve().then(() => Ko), void 0, import.meta.url), "../assets/locale/messages_en.json": () => gn(() => 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": () => gn(() => Promise.resolve().then(() => Ko), void 0, import.meta.url) }), `../assets/locale/messages_${Vo(e6)}.dev.json`, 4) });
3459
+ var Ho = /* @__PURE__ */ new WeakMap();
3460
+ function Uo(e6) {
3461
+ let t2 = Ho.get(e6);
3462
+ return t2 || (t2 = Ro(e6).finally(() => Ho.delete(e6)), Ho.set(e6, t2)), t2;
3463
3463
  }
3464
- function Uo({ i18n: e6, locale: t2 }) {
3464
+ function Wo({ i18n: e6, locale: t2 }) {
3465
3465
  let n2 = Gn(), r2 = _r();
3466
3466
  if (!n2) return null;
3467
- if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Ho(e6);
3468
- let i2 = Ro(e6, t2);
3469
- return i2 && r2.set(Mo, { locale: t2, messages: i2 }), null;
3470
- }
3471
- function Wo(e6) {
3472
- let t2 = mr(), n2 = Po()?.locale ?? t2 ?? `en`;
3473
- return { i18n: Io(n2, e6), locale: n2 };
3474
- }
3475
- var Go = g({ default: () => Ko });
3476
- 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` };
3477
- var qo = g({ default: () => Yo, title: () => Jo });
3478
- var Jo = `My App`;
3479
- 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.` };
3480
- var Xo = Object.assign({ "../assets/locale/messages_en.dev.json": Go, "../assets/locale/messages_en.json": qo });
3481
- var Zo = (e6, t2) => {
3482
- let n2 = Xo[`../assets/locale/messages_${Bo(e6)}${t2}.json`];
3467
+ if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw Uo(e6);
3468
+ let i2 = zo(e6, t2);
3469
+ return i2 && r2.set(No, { locale: t2, messages: i2 }), null;
3470
+ }
3471
+ function Go(e6) {
3472
+ let t2 = mr(), n2 = Fo()?.locale ?? t2 ?? `en`;
3473
+ return { i18n: Lo(n2, e6), locale: n2 };
3474
+ }
3475
+ var Ko = g({ default: () => qo });
3476
+ 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` };
3477
+ var Jo = g({ default: () => Xo, title: () => Yo });
3478
+ var Yo = `My App`;
3479
+ 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.` };
3480
+ var Zo = Object.assign({ "../assets/locale/messages_en.dev.json": Ko, "../assets/locale/messages_en.json": Jo });
3481
+ var Qo = (e6, t2) => {
3482
+ let n2 = Zo[`../assets/locale/messages_${Vo(e6)}${t2}.json`];
3483
3483
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3484
3484
  };
3485
- var Qo = br({ isDev: false, loadMessages: (e6) => Zo(e6, ``), loadDevMessages: (e6) => Zo(e6, `.dev`) });
3486
- var $o = (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);
3487
- var K = { 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` };
3488
- var es = (e6, t2) => {
3489
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: $o(r2, `full`, t2) });
3490
- return { timeToRead: (t3) => e6(K.timeToRead, { count: t3 }), viewCount: n2(K.viewCount), commentCount: n2(K.commentCount), likeCount: n2(K.likeCount), noPostsEmptyState: () => ({ title: e6(K.noPostsTitle), description: e6(K.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(K.noRelatedPostsTitle), description: e6(K.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(K.canvasPostTitle), authorName: () => e6(K.canvasAuthorName), excerpt: () => e6(K.canvasExcerpt), content: () => e6(K.canvasContent), category: () => e6(K.canvasCategory), categoryNumbered: (t3) => e6(K.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(K.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(K.canvasCoverAlt), authorPhotoAlt: () => e6(K.canvasAuthorPhotoAlt) } };
3485
+ var $o = br({ isDev: false, loadMessages: (e6) => Qo(e6, ``), loadDevMessages: (e6) => Qo(e6, `.dev`) });
3486
+ var es = (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);
3487
+ var G = { 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` };
3488
+ var ts = (e6, t2) => {
3489
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: es(r2, `full`, t2) });
3490
+ return { timeToRead: (t3) => e6(G.timeToRead, { count: t3 }), viewCount: n2(G.viewCount), commentCount: n2(G.commentCount), likeCount: n2(G.likeCount), noPostsEmptyState: () => ({ title: e6(G.noPostsTitle), description: e6(G.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(G.noRelatedPostsTitle), description: e6(G.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(G.canvasPostTitle), authorName: () => e6(G.canvasAuthorName), excerpt: () => e6(G.canvasExcerpt), content: () => e6(G.canvasContent), category: () => e6(G.canvasCategory), categoryNumbered: (t3) => e6(G.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(G.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(G.canvasCoverAlt), authorPhotoAlt: () => e6(G.canvasAuthorPhotoAlt) } };
3491
3491
  };
3492
- function ts(e6) {
3492
+ function ns(e6) {
3493
3493
  return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
3494
3494
  }
3495
- function ns(e6) {
3495
+ function rs(e6) {
3496
3496
  return Object.keys(e6).length === 1 && `$or` in e6 && Array.isArray(e6.$or);
3497
3497
  }
3498
- function rs(e6) {
3498
+ function is(e6) {
3499
3499
  return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
3500
3500
  }
3501
- function q(e6, t2) {
3502
- return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...ts(e6) ? e6.$and : [e6], ...ts(t2) ? t2.$and : [t2]] };
3501
+ function K(e6, t2) {
3502
+ return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...ns(e6) ? e6.$and : [e6], ...ns(t2) ? t2.$and : [t2]] };
3503
3503
  }
3504
- function is(e6, t2) {
3505
- return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...ns(e6) ? e6.$or : [e6], ...ns(t2) ? t2.$or : [t2]] };
3504
+ function as(e6, t2) {
3505
+ return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...rs(e6) ? e6.$or : [e6], ...rs(t2) ? t2.$or : [t2]] };
3506
3506
  }
3507
- function as(e6) {
3508
- if (e6 !== void 0 && Object.keys(e6).length !== 0) return rs(e6) ? e6.$not : { $not: e6 };
3507
+ function os(e6) {
3508
+ if (e6 !== void 0 && Object.keys(e6).length !== 0) return is(e6) ? e6.$not : { $not: e6 };
3509
3509
  }
3510
- var os = class {
3510
+ var ss = class {
3511
3511
  _items;
3512
3512
  _fetchNextPage;
3513
3513
  _fetchPrevPage;
@@ -3537,7 +3537,7 @@ var os = class {
3537
3537
  return await this._fetchPrevPage();
3538
3538
  }
3539
3539
  };
3540
- var ss = class extends os {
3540
+ var cs = class extends ss {
3541
3541
  _nextCursor;
3542
3542
  _prevCursor;
3543
3543
  cursors;
@@ -3551,7 +3551,7 @@ var ss = class extends os {
3551
3551
  return !!this._prevCursor;
3552
3552
  }
3553
3553
  };
3554
- var cs = class extends os {
3554
+ var ls = class extends ss {
3555
3555
  _totalCount;
3556
3556
  _offset;
3557
3557
  _tooManyToCount;
@@ -3574,76 +3574,76 @@ var cs = class extends os {
3574
3574
  return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
3575
3575
  }
3576
3576
  };
3577
- function ls(e6) {
3577
+ function us(e6) {
3578
3578
  let t2 = (n2) => ({ query: n2, async find() {
3579
3579
  try {
3580
3580
  let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Xe]: a2, [Ze]: o2 } = e6.responseTransformer(i2);
3581
3581
  if (e6.pagingMethod === `OFFSET`) {
3582
3582
  let e7 = n2;
3583
- return new cs({ 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 });
3583
+ return new ls({ 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 });
3584
3584
  }
3585
3585
  let s2 = n2.cursorPaging;
3586
- return new ss({ 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 });
3586
+ return new cs({ 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 });
3587
3587
  } catch (t3) {
3588
3588
  throw e6.errorTransformer(t3);
3589
3589
  }
3590
3590
  }, skipTo(e7) {
3591
3591
  return t2({ ...n2, cursorPaging: { cursor: e7, limit: n2.cursorPaging.limit } });
3592
3592
  }, eq(r2, i2) {
3593
- let a2 = i2 === void 0 ? null : i2, o2 = { [J(e6.transformationPaths, r2)]: a2 };
3594
- return t2({ ...n2, filter: q(n2.filter, o2) });
3593
+ let a2 = i2 === void 0 ? null : i2, o2 = { [q(e6.transformationPaths, r2)]: a2 };
3594
+ return t2({ ...n2, filter: K(n2.filter, o2) });
3595
3595
  }, ne(r2, i2) {
3596
- let a2 = i2 === void 0 ? null : i2, o2 = { [J(e6.transformationPaths, r2)]: { $ne: a2 } };
3597
- return t2({ ...n2, filter: q(n2.filter, o2) });
3596
+ let a2 = i2 === void 0 ? null : i2, o2 = { [q(e6.transformationPaths, r2)]: { $ne: a2 } };
3597
+ return t2({ ...n2, filter: K(n2.filter, o2) });
3598
3598
  }, ge(r2, i2) {
3599
- let a2 = { [J(e6.transformationPaths, r2)]: { $gte: i2 } };
3600
- return t2({ ...n2, filter: q(n2.filter, a2) });
3599
+ let a2 = { [q(e6.transformationPaths, r2)]: { $gte: i2 } };
3600
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3601
3601
  }, gt(r2, i2) {
3602
- let a2 = { [J(e6.transformationPaths, r2)]: { $gt: i2 } };
3603
- return t2({ ...n2, filter: q(n2.filter, a2) });
3602
+ let a2 = { [q(e6.transformationPaths, r2)]: { $gt: i2 } };
3603
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3604
3604
  }, le(r2, i2) {
3605
- let a2 = { [J(e6.transformationPaths, r2)]: { $lte: i2 } };
3606
- return t2({ ...n2, filter: q(n2.filter, a2) });
3605
+ let a2 = { [q(e6.transformationPaths, r2)]: { $lte: i2 } };
3606
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3607
3607
  }, lt(r2, i2) {
3608
- let a2 = { [J(e6.transformationPaths, r2)]: { $lt: i2 } };
3609
- return t2({ ...n2, filter: q(n2.filter, a2) });
3608
+ let a2 = { [q(e6.transformationPaths, r2)]: { $lt: i2 } };
3609
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3610
3610
  }, isNotEmpty(e7) {
3611
3611
  return this.ne(e7, null);
3612
3612
  }, isEmpty(e7) {
3613
3613
  return this.eq(e7, null);
3614
3614
  }, startsWith(r2, i2) {
3615
- let a2 = { [J(e6.transformationPaths, r2)]: { $startsWith: i2 } };
3616
- return t2({ ...n2, filter: q(n2.filter, a2) });
3615
+ let a2 = { [q(e6.transformationPaths, r2)]: { $startsWith: i2 } };
3616
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3617
3617
  }, endsWith(r2, i2) {
3618
- let a2 = { [J(e6.transformationPaths, r2)]: { $endsWith: i2 } };
3619
- return t2({ ...n2, filter: q(n2.filter, a2) });
3618
+ let a2 = { [q(e6.transformationPaths, r2)]: { $endsWith: i2 } };
3619
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3620
3620
  }, contains(r2, i2) {
3621
- let a2 = { [J(e6.transformationPaths, r2)]: { $contains: i2 } };
3622
- return t2({ ...n2, filter: q(n2.filter, a2) });
3621
+ let a2 = { [q(e6.transformationPaths, r2)]: { $contains: i2 } };
3622
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3623
3623
  }, hasSome(r2, ...i2) {
3624
- let a2 = { [J(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
3625
- return t2({ ...n2, filter: q(n2.filter, a2) });
3624
+ let a2 = { [q(e6.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
3625
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3626
3626
  }, hasAll(r2, ...i2) {
3627
- let a2 = { [J(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
3628
- return t2({ ...n2, filter: q(n2.filter, a2) });
3627
+ let a2 = { [q(e6.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
3628
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3629
3629
  }, between(e7, t3, n3) {
3630
3630
  return this.ge(e7, t3).lt(e7, n3);
3631
3631
  }, in(r2, i2) {
3632
- let a2 = { [J(e6.transformationPaths, r2)]: { $in: i2 } };
3633
- return t2({ ...n2, filter: q(n2.filter, a2) });
3632
+ let a2 = { [q(e6.transformationPaths, r2)]: { $in: i2 } };
3633
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3634
3634
  }, exists(r2, i2 = true) {
3635
- let a2 = { [J(e6.transformationPaths, r2)]: { $exists: i2 } };
3636
- return t2({ ...n2, filter: q(n2.filter, a2) });
3635
+ let a2 = { [q(e6.transformationPaths, r2)]: { $exists: i2 } };
3636
+ return t2({ ...n2, filter: K(n2.filter, a2) });
3637
3637
  }, or(e7) {
3638
- return t2({ ...n2, filter: is(n2.filter, e7.query.filter) });
3638
+ return t2({ ...n2, filter: as(n2.filter, e7.query.filter) });
3639
3639
  }, and(e7) {
3640
- return t2({ ...n2, filter: q(n2.filter, e7.query.filter) });
3640
+ return t2({ ...n2, filter: K(n2.filter, e7.query.filter) });
3641
3641
  }, not(e7) {
3642
- return t2({ ...n2, filter: as(e7.query.filter) });
3642
+ return t2({ ...n2, filter: os(e7.query.filter) });
3643
3643
  }, ascending(...r2) {
3644
- return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e6.transformationPaths, t3), order: `ASC` }))] });
3644
+ return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: q(e6.transformationPaths, t3), order: `ASC` }))] });
3645
3645
  }, descending(...r2) {
3646
- return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e6.transformationPaths, t3), order: `DESC` }))] });
3646
+ return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: q(e6.transformationPaths, t3), order: `DESC` }))] });
3647
3647
  }, skip(e7) {
3648
3648
  return t2({ ...n2, paging: { offset: e7, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
3649
3649
  }, limit(r2) {
@@ -3656,82 +3656,82 @@ function ls(e6) {
3656
3656
  } });
3657
3657
  return t2({ filter: {}, ...e6.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
3658
3658
  }
3659
- function J(e6, t2) {
3659
+ function q(e6, t2) {
3660
3660
  let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
3661
3661
  return n2 ? t2.replace(n2, e6[n2]) : $e(t2, { ...e6, ...Qe });
3662
3662
  }
3663
- var us = `filter`;
3664
- var ds = `sort`;
3665
- var fs = `cursorPaging`;
3666
- var ps = `paging`;
3667
- var ms = [us, ds, fs];
3668
- var hs = [us, ds, ps];
3669
- function gs(e6, t2) {
3663
+ var ds = `filter`;
3664
+ var fs = `sort`;
3665
+ var ps = `cursorPaging`;
3666
+ var ms = `paging`;
3667
+ var hs = [ds, fs, ps];
3668
+ var gs = [ds, fs, ms];
3669
+ function _s(e6, t2) {
3670
3670
  return !e6 || typeof e6 != `object` ? false : t2.some((t3) => e6.hasOwnProperty(t3));
3671
3671
  }
3672
- function _s(e6) {
3673
- return gs(e6, ms);
3674
- }
3675
3672
  function vs(e6) {
3676
- return gs(e6, hs);
3673
+ return _s(e6, hs);
3677
3674
  }
3678
3675
  function ys(e6) {
3676
+ return _s(e6, gs);
3677
+ }
3678
+ function bs(e6) {
3679
3679
  let { hasOptionsParameter: t2 } = e6;
3680
3680
  return function(...n2) {
3681
- return t2 ? xs(n2, e6) : bs(n2, e6);
3681
+ return t2 ? Ss(n2, e6) : xs(n2, e6);
3682
3682
  };
3683
3683
  }
3684
- function bs(e6, t2) {
3684
+ function xs(e6, t2) {
3685
3685
  return e6.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e6[0]);
3686
3686
  }
3687
- function xs(e6, t2) {
3687
+ function Ss(e6, t2) {
3688
3688
  switch (e6.length) {
3689
3689
  case 0:
3690
3690
  return t2.builderQueryFunction();
3691
3691
  case 1:
3692
- return _s(e6[0]) || vs(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
3692
+ return vs(e6[0]) || ys(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
3693
3693
  default:
3694
3694
  return t2.typedQueryFunction(e6[0], e6[1]);
3695
3695
  }
3696
3696
  }
3697
- function Y(e6) {
3697
+ function J(e6) {
3698
3698
  if (!e6) return;
3699
3699
  let t2 = ``;
3700
3700
  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;
3701
3701
  }
3702
- function X(e6) {
3702
+ function Y(e6) {
3703
3703
  if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
3704
3704
  }
3705
- var Ss = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3706
- var Cs = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3707
- function ws(e6) {
3705
+ var Cs = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
3706
+ var ws = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
3707
+ function Ts(e6) {
3708
3708
  return It(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: `` }] } }));
3709
3709
  }
3710
- var Ts = `@wix/auto_sdk_blog_categories`;
3711
- function Es(e6) {
3710
+ var Es = `@wix/auto_sdk_blog_categories`;
3711
+ function Ds(e6) {
3712
3712
  function t2({ host: t3 }) {
3713
- return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Ts, migrationOptions: { optInTransformResponse: true }, url: ws({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: Ft(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Ss }, { transformFn: N, paths: Cs }]) };
3713
+ return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: Es, migrationOptions: { optInTransformResponse: true }, url: Ts({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: Ft(e6), transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Cs }, { transformFn: N, paths: ws }]) };
3714
3714
  }
3715
3715
  return t2;
3716
3716
  }
3717
- var Ds = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3718
- var Os = [{ path: `categories.coverImage` }];
3719
- async function ks(e6) {
3720
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Es(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3717
+ var Os = [{ path: `categories.url` }, { path: `categories.translations.url` }];
3718
+ var ks = [{ path: `categories.coverImage` }];
3719
+ async function As(e6) {
3720
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ds(D({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
3721
3721
  n2?.onSiteCall?.();
3722
3722
  try {
3723
3723
  let e7 = await t2.request(r2);
3724
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Ds }, { transformFn: Y, paths: Os }]));
3724
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Os }, { transformFn: J, paths: ks }]));
3725
3725
  } catch (e7) {
3726
3726
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
3727
3727
  throw n2?.onError?.(e7), t3;
3728
3728
  }
3729
3729
  }
3730
- function As(e6) {
3731
- return (t2) => ks(t2, { httpClient: e6 });
3730
+ function js(e6) {
3731
+ return (t2) => As(t2, { httpClient: e6 });
3732
3732
  }
3733
- var js = M(As);
3734
- function Ms(e6) {
3733
+ var Ms = M(js);
3734
+ function X(e6) {
3735
3735
  if (!e6) return;
3736
3736
  let t2 = ``;
3737
3737
  e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
@@ -3788,7 +3788,7 @@ async function Zs(e6, t2) {
3788
3788
  r2?.onSiteCall?.();
3789
3789
  try {
3790
3790
  let e7 = await n2.request(i2);
3791
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Gs }, { transformFn: Y, paths: Ks }, { transformFn: Ms, paths: qs }]), [`post.richContent`, `post.rich_content`]);
3791
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Gs }, { transformFn: J, paths: Ks }, { transformFn: X, paths: qs }]), [`post.richContent`, `post.rich_content`]);
3792
3792
  } catch (e7) {
3793
3793
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, fieldsets: `$[1].fieldsets`, language: `$[1].language` }, singleArgumentUnchanged: false }, [`slug`, `options`]);
3794
3794
  throw r2?.onError?.(e7), t3;
@@ -3799,7 +3799,7 @@ async function Qs(e6) {
3799
3799
  n2?.onSiteCall?.();
3800
3800
  try {
3801
3801
  let e7 = await t2.request(r2);
3802
- return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Js }, { transformFn: Y, paths: Ys }, { transformFn: Ms, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3802
+ return n2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3803
3803
  } catch (e7) {
3804
3804
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { featured: `$[0].featured`, hashtags: `$[0].hashtags`, categoryIds: `$[0].categoryIds`, tagIds: `$[0].tagIds`, sort: `$[0].sort`, paging: `$[0].paging`, language: `$[0].language`, memberId: `$[0].memberId`, fieldsets: `$[0].fieldsets` }, singleArgumentUnchanged: false }, [`options`]);
3805
3805
  throw n2?.onError?.(e7), t3;
@@ -3807,7 +3807,7 @@ async function Qs(e6) {
3807
3807
  }
3808
3808
  function $s(e6) {
3809
3809
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3810
- return ls({ func: async (r2) => {
3810
+ return us({ func: async (r2) => {
3811
3811
  let i2 = Ws({ ...r2, ...e6 ?? {} });
3812
3812
  n2?.onSiteCall?.();
3813
3813
  try {
@@ -3820,7 +3820,7 @@ function $s(e6) {
3820
3820
  let n3 = [t3, e6];
3821
3821
  return D({ ...n3?.[1], query: n3?.[0] }, []);
3822
3822
  }, responseTransformer: ({ data: e7 }) => {
3823
- let t3 = O(A(e7, [{ transformFn: X, paths: Js }, { transformFn: Y, paths: Ys }, { transformFn: Ms, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3823
+ let t3 = O(A(e7, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3824
3824
  return { items: t3?.posts, pagingMetadata: t3?.pagingMetadata };
3825
3825
  }, errorTransformer: (e7) => {
3826
3826
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
@@ -3831,7 +3831,7 @@ async function ec(e6, t2) {
3831
3831
  r2?.onSiteCall?.();
3832
3832
  try {
3833
3833
  let e7 = await n2.request(i2);
3834
- return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: X, paths: Js }, { transformFn: Y, paths: Ys }, { transformFn: Ms, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3834
+ return r2?.onSuccess?.(e7), O(A(e7.data, [{ transformFn: Y, paths: Js }, { transformFn: J, paths: Ys }, { transformFn: X, paths: Xs }]), [`posts.richContent`, `posts.rich_content`]);
3835
3835
  } catch (e7) {
3836
3836
  let t3 = j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3837
3837
  throw r2?.onError?.(e7), t3;
@@ -3850,7 +3850,7 @@ function ic(e6) {
3850
3850
  return (t2, n2) => ec(t2, n2, { httpClient: e6 });
3851
3851
  }
3852
3852
  function ac(e6) {
3853
- let t2 = ys({ builderQueryFunction: (t3) => rc(e6)(t3), typedQueryFunction: (t3, n3) => ic(e6)(t3, n3), hasOptionsParameter: true });
3853
+ let t2 = bs({ builderQueryFunction: (t3) => rc(e6)(t3), typedQueryFunction: (t3, n3) => ic(e6)(t3, n3), hasOptionsParameter: true });
3854
3854
  function n2(e7, n3) {
3855
3855
  return t2(...arguments);
3856
3856
  }
@@ -3859,23 +3859,37 @@ function ac(e6) {
3859
3859
  var oc = M(tc);
3860
3860
  var sc = M(nc);
3861
3861
  var cc = M(ac);
3862
- var lc = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
3863
- var uc = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
3864
- function dc(e6) {
3862
+ var lc = (e6) => O(A(e6, [{ transformFn: Y, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: J, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: X, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
3863
+ var uc = `https://blog.wixsite.com/blog-demo-posts`;
3864
+ var dc = M((e6) => async (t2) => {
3865
+ let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${Ft(t2)}`);
3866
+ if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
3867
+ return lc(await n2.json()).filter((e7) => !e7.url?.startsWith(uc));
3868
+ });
3869
+ var fc = async (e6) => {
3870
+ try {
3871
+ return await dc(e6);
3872
+ } catch (e7) {
3873
+ return console.info(`[blog demo posts]`, `read failed`, e7), [];
3874
+ }
3875
+ };
3876
+ var pc = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
3877
+ var mc = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
3878
+ function hc(e6) {
3865
3879
  return It(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` }] } }));
3866
3880
  }
3867
- var fc = `@wix/auto_sdk_members_members`;
3868
- function pc(e6) {
3881
+ var gc = `@wix/auto_sdk_members_members`;
3882
+ function _c(e6) {
3869
3883
  function t2({ host: t3 }) {
3870
- let n2 = A(e6, [{ transformFn: ln, paths: uc }]);
3871
- return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: lc }]) };
3884
+ let n2 = A(e6, [{ transformFn: ln, paths: mc }]);
3885
+ return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: gc, migrationOptions: { optInTransformResponse: true }, url: hc({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: pc }]) };
3872
3886
  }
3873
3887
  return t2;
3874
3888
  }
3875
- function mc(e6) {
3889
+ function vc(e6) {
3876
3890
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3877
- return ls({ func: async (r2) => {
3878
- let i2 = pc({ ...r2, ...e6 ?? {} });
3891
+ return us({ func: async (r2) => {
3892
+ let i2 = _c({ ...r2, ...e6 ?? {} });
3879
3893
  n2?.onSiteCall?.();
3880
3894
  try {
3881
3895
  let e7 = await t2.request(i2);
@@ -3893,8 +3907,8 @@ function mc(e6) {
3893
3907
  throw j(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3894
3908
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
3895
3909
  }
3896
- async function hc(e6, t2) {
3897
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = pc(D({ query: e6, ...t2 }));
3910
+ async function yc(e6, t2) {
3911
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = _c(D({ query: e6, ...t2 }));
3898
3912
  r2?.onSiteCall?.();
3899
3913
  try {
3900
3914
  let e7 = await n2.request(i2);
@@ -3904,25 +3918,25 @@ async function hc(e6, t2) {
3904
3918
  throw r2?.onError?.(e7), t3;
3905
3919
  }
3906
3920
  }
3907
- function gc(e6) {
3908
- return (t2) => mc(t2, { httpClient: e6 });
3921
+ function bc(e6) {
3922
+ return (t2) => vc(t2, { httpClient: e6 });
3909
3923
  }
3910
- function _c(e6) {
3911
- return (t2, n2) => hc(t2, n2, { httpClient: e6 });
3924
+ function xc(e6) {
3925
+ return (t2, n2) => yc(t2, n2, { httpClient: e6 });
3912
3926
  }
3913
- function vc(e6) {
3914
- let t2 = ys({ builderQueryFunction: (t3) => gc(e6)(t3), typedQueryFunction: (t3, n3) => _c(e6)(t3, n3), hasOptionsParameter: true });
3927
+ function Sc(e6) {
3928
+ let t2 = bs({ builderQueryFunction: (t3) => bc(e6)(t3), typedQueryFunction: (t3, n3) => xc(e6)(t3, n3), hasOptionsParameter: true });
3915
3929
  function n2(e7, n3) {
3916
3930
  return t2(...arguments);
3917
3931
  }
3918
3932
  return n2;
3919
3933
  }
3920
- var yc = M(vc);
3921
- var bc = async (e6) => {
3934
+ var Cc = M(Sc);
3935
+ var wc = async (e6) => {
3922
3936
  let t2 = [...new Set(e6.filter((e7) => !!e7))];
3923
3937
  if (t2.length === 0) return {};
3924
3938
  try {
3925
- let { items: e7 } = await yc({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
3939
+ let { items: e7 } = await Cc({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
3926
3940
  return Object.fromEntries(e7.flatMap((e8) => {
3927
3941
  let { _id: t3 } = e8;
3928
3942
  return t3 ? [[t3, e8]] : [];
@@ -3931,32 +3945,32 @@ var bc = async (e6) => {
3931
3945
  return {};
3932
3946
  }
3933
3947
  };
3934
- var xc = [{ 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` }];
3935
- var Sc = [{ path: `posts.richContentCompressed` }];
3936
- var Cc = [{ 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` }];
3937
- var wc = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3938
- function Tc(e6) {
3948
+ var Tc = [{ 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` }];
3949
+ var Ec = [{ path: `posts.richContentCompressed` }];
3950
+ var Dc = [{ 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` }];
3951
+ var Oc = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
3952
+ function kc(e6) {
3939
3953
  return It(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` }] } }));
3940
3954
  }
3941
- var Ec = `@wix/auto_sdk_blog_posts`;
3942
- function Dc(e6) {
3955
+ var Ac = `@wix/auto_sdk_blog_posts`;
3956
+ function jc(e6) {
3943
3957
  function t2({ host: t3 }) {
3944
- let n2 = A(e6, [{ transformFn: ln, paths: wc }]);
3945
- return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Ec, migrationOptions: { optInTransformResponse: true }, url: Tc({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: xc }, { transformFn: un, paths: Sc }, { transformFn: N, paths: Cc }]) };
3958
+ let n2 = A(e6, [{ transformFn: ln, paths: Oc }]);
3959
+ return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Ac, migrationOptions: { optInTransformResponse: true }, url: kc({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => A(e7, [{ transformFn: k, paths: Tc }, { transformFn: un, paths: Ec }, { transformFn: N, paths: Dc }]) };
3946
3960
  }
3947
3961
  return t2;
3948
3962
  }
3949
- function Oc() {
3950
- let e6 = Dc({});
3963
+ function Mc() {
3964
+ let e6 = jc({});
3951
3965
  return { getUrl: (t2) => {
3952
3966
  let { url: n2 } = e6(t2);
3953
3967
  return n2;
3954
3968
  }, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
3955
3969
  }
3956
- var kc = Oc();
3957
- var Ac = (e6) => (t2) => ({ method: `POST`, url: kc.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
3958
- var jc = M((e6) => async (t2) => {
3959
- let { data: n2 } = await e6.request(Ac(t2)), r2 = {};
3970
+ var Nc = Mc();
3971
+ var Pc = (e6) => (t2) => ({ method: `POST`, url: Nc.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
3972
+ var Fc = M((e6) => async (t2) => {
3973
+ let { data: n2 } = await e6.request(Pc(t2)), r2 = {};
3960
3974
  for (let e7 of n2.posts ?? []) {
3961
3975
  let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
3962
3976
  if (!t3 || !n3?.length) continue;
@@ -3965,52 +3979,52 @@ var jc = M((e6) => async (t2) => {
3965
3979
  }
3966
3980
  return r2;
3967
3981
  });
3968
- var Mc = async (e6) => {
3982
+ var Ic = async (e6) => {
3969
3983
  if (e6.length === 0) return {};
3970
3984
  try {
3971
- return await jc(e6);
3985
+ return await Fc(e6);
3972
3986
  } catch {
3973
3987
  return {};
3974
3988
  }
3975
3989
  };
3976
- var Nc = class extends Error {
3990
+ var Lc = class extends Error {
3977
3991
  constructor(e6, t2) {
3978
3992
  super(`SSR fetch "${e6}" exceeded its ${t2}ms deadline`), this.name = `SsrDeadlineError`;
3979
3993
  }
3980
3994
  };
3981
- var Pc = (e6, t2, n2) => {
3995
+ var Rc = (e6, t2, n2) => {
3982
3996
  let r2, i2 = new Promise((e7, i3) => {
3983
- r2 = setTimeout(() => i3(new Nc(n2, t2)), t2);
3997
+ r2 = setTimeout(() => i3(new Lc(n2, t2)), t2);
3984
3998
  });
3985
3999
  return Promise.race([e6, i2]).finally(() => clearTimeout(r2));
3986
4000
  };
3987
4001
  Z.RICH_CONTENT, Z.SEO, Z.URL, Z.CONTENT_TEXT, Z.RICH_CONTENT, Z.URL;
3988
- var Fc = [Z.URL, Z.METRICS];
3989
- var Ic = (e6) => {
4002
+ var zc = [Z.URL, Z.METRICS];
4003
+ var Bc = (e6) => {
3990
4004
  let { status: t2, details: n2 } = e6 ?? {};
3991
4005
  return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
3992
4006
  };
3993
- var Lc = (e6, t2) => {
3994
- if (t2 && !Ic(e6)) throw e6;
4007
+ var Vc = (e6, t2) => {
4008
+ if (t2 && !Bc(e6)) throw e6;
3995
4009
  };
3996
- var Rc = (e6) => bc(e6.map(({ memberId: e7 }) => e7));
3997
- var zc = (e6) => Mc(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
3998
- var Bc = async (e6, t2, n2 = false, r2) => {
4010
+ var Hc = (e6) => wc(e6.map(({ memberId: e7 }) => e7));
4011
+ var Uc = (e6) => Ic(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
4012
+ var Wc = async (e6, t2, n2 = false, r2) => {
3999
4013
  try {
4000
4014
  let { post: n3 } = await oc(e6, { ...t2 && { fieldsets: t2 }, ...r2 && { language: r2 } });
4001
4015
  if (n3) return n3;
4002
4016
  } catch (e7) {
4003
- Lc(e7, n2);
4017
+ Vc(e7, n2);
4004
4018
  }
4005
4019
  try {
4006
4020
  let { items: n3 } = await cc(t2 ? { fieldsets: t2 } : void 0).eq(`slug`, e6).limit(1).find();
4007
4021
  return n3[0];
4008
4022
  } catch (e7) {
4009
- Lc(e7, n2);
4023
+ Vc(e7, n2);
4010
4024
  return;
4011
4025
  }
4012
4026
  };
4013
- var Vc = async (e6, t2 = false, n2) => {
4027
+ var Gc = async (e6, t2 = false, n2) => {
4014
4028
  try {
4015
4029
  let t3 = async (t4) => {
4016
4030
  let { posts: r2 } = await sc({ paging: { limit: 1 }, ...e6 && { fieldsets: e6 }, ...t4 && n2 && { language: n2 } });
@@ -4018,63 +4032,65 @@ var Vc = async (e6, t2 = false, n2) => {
4018
4032
  };
4019
4033
  return await t3(true) ?? (n2 ? await t3(false) : void 0);
4020
4034
  } catch (e7) {
4021
- Lc(e7, t2);
4035
+ Vc(e7, t2);
4022
4036
  return;
4023
4037
  }
4024
4038
  };
4025
- var Hc = 100;
4026
- var Uc = async () => {
4039
+ var Kc = 100;
4040
+ var qc = async () => {
4027
4041
  try {
4028
- let { categories: e6 } = await js({ paging: { limit: Hc } });
4042
+ let { categories: e6 } = await Ms({ paging: { limit: Kc } });
4029
4043
  return e6 ?? [];
4030
4044
  } catch {
4031
4045
  return [];
4032
4046
  }
4033
4047
  };
4034
- var Wc = (e6, t2) => {
4048
+ var Jc = (e6, t2) => {
4035
4049
  let { categoryIds: n2 } = e6 ?? {};
4036
4050
  if (!n2?.length) return [];
4037
4051
  let r2 = new Map(t2.map((e7) => [e7._id, e7]));
4038
4052
  return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
4039
4053
  };
4040
- var Gc = (e6, t2) => {
4054
+ var Yc = (e6, t2) => {
4041
4055
  let n2 = {};
4042
- for (let r2 of e6) for (let { _id: e7, label: i2 } of Wc(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
4056
+ for (let r2 of e6) for (let { _id: e7, label: i2 } of Jc(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
4043
4057
  return n2;
4044
4058
  };
4045
- var Kc = async (e6, t2) => {
4046
- let n2 = e6 ? await Bc(e6, void 0, false, t2) : void 0, { _id: r2, categoryIds: i2, relatedPostIds: a2 } = n2 ?? await Vc(void 0, false, t2) ?? {};
4059
+ var Xc = async (e6, t2) => {
4060
+ let n2 = e6 ? await Wc(e6, void 0, false, t2) : void 0, { _id: r2, categoryIds: i2, relatedPostIds: a2 } = n2 ?? await Gc(void 0, false, t2) ?? {};
4047
4061
  return { currentPostId: r2 ?? void 0, categoryIds: i2, relatedPostIds: n2 ? a2 : void 0 };
4048
4062
  };
4049
- var qc = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
4050
- let { items: r2 } = await cc({ fieldsets: Fc }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
4063
+ var Zc = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
4064
+ let { items: r2 } = await cc({ fieldsets: zc }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
4051
4065
  let { _id: t3 } = e7;
4052
4066
  return [t3, e7];
4053
4067
  }));
4054
4068
  return e6.filter((e7) => e7 !== t2).map((e7) => i2.get(e7)).filter((e7) => e7 !== void 0).slice(0, n2);
4055
4069
  };
4056
- var Jc = async ({ currentPostId: e6, categoryIds: t2, language: n2, limit: r2 }) => {
4057
- let i2 = cc({ fieldsets: Fc }).ne(`_id`, e6).descending(`firstPublishedDate`).limit(r2);
4070
+ var Qc = async ({ currentPostId: e6, categoryIds: t2, language: n2, limit: r2 }) => {
4071
+ let i2 = cc({ fieldsets: zc }).ne(`_id`, e6).descending(`firstPublishedDate`).limit(r2);
4058
4072
  t2?.length && (i2 = i2.hasSome(`categoryIds`, t2)), n2 && (i2 = i2.eq(`language`, n2));
4059
4073
  let { items: a2 } = await i2.find();
4060
4074
  return a2;
4061
4075
  };
4062
- var Yc = async ({ slug: e6, language: t2, limit: n2 = 3, propagateErrors: r2 = false, source: i2, sourcePromise: a2 }) => {
4063
- let o2 = Uc();
4076
+ var $c = async ({ slug: e6, language: t2, limit: n2 = 3, propagateErrors: r2 = false, source: i2, sourcePromise: a2 }) => {
4077
+ let o2 = qc();
4064
4078
  try {
4065
- let { currentPostId: r3, categoryIds: s2, relatedPostIds: c2 } = i2 ?? (a2 ? await a2 : await Kc(e6, t2));
4079
+ let { currentPostId: r3, categoryIds: s2, relatedPostIds: c2 } = i2 ?? (a2 ? await a2 : await Xc(e6, t2));
4066
4080
  if (!r3) return { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} };
4067
- let l2 = c2?.length ? await qc({ ids: c2, currentPostId: r3, limit: n2 }) : [], u2 = l2.length > 0 ? l2 : await Jc({ currentPostId: r3, categoryIds: s2, language: t2, limit: n2 }), [d2, f2, p2] = await Promise.all([Rc(u2), o2, zc(u2)]);
4068
- return { posts: u2, authorsByMemberId: d2, categoryLabelsById: Gc(u2, f2), videoSourcesByPostId: p2 };
4081
+ let l2 = c2?.length ? await Zc({ ids: c2, currentPostId: r3, limit: n2 }) : [], u2 = l2.length > 0 ? l2 : await Qc({ currentPostId: r3, categoryIds: s2, language: t2, limit: n2 }), [d2, f2, p2] = await Promise.all([Hc(u2), o2, Uc(u2)]);
4082
+ return { posts: u2, authorsByMemberId: d2, categoryLabelsById: Yc(u2, f2), videoSourcesByPostId: p2 };
4069
4083
  } catch (e7) {
4070
4084
  if (r2) throw e7;
4071
4085
  return { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} };
4072
4086
  }
4073
4087
  };
4074
- var Xc = n({ isEditor: false, isPreview: false });
4075
- var Zc = () => o(Xc);
4076
- var Qc = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4077
- var $c = () => {
4088
+ var el = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
4089
+ var tl = async (e6, { limit: t2, offset: n2 = 0, language: r2, sortOrder: i2 }) => e6.posts.length > 0 ? e6 : { ...e6, demoPosts: await fc({ paging: { limit: t2, offset: n2 }, fieldsets: zc, ...r2 && { language: r2 }, ...i2 && { sort: el[i2] } }) };
4090
+ var nl = n({ isEditor: false, isPreview: false });
4091
+ var rl = () => o(nl);
4092
+ var il = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
4093
+ var al = () => {
4078
4094
  try {
4079
4095
  let { SSR: e6, SEO: t2 } = f(Wn);
4080
4096
  return e6 || t2;
@@ -4082,38 +4098,38 @@ var $c = () => {
4082
4098
  return false;
4083
4099
  }
4084
4100
  };
4085
- var el = () => {
4086
- let e6 = $c();
4087
- return Qc(Zc()) && !e6;
4101
+ var ol = () => {
4102
+ let e6 = al();
4103
+ return il(rl()) && !e6;
4088
4104
  };
4089
- var tl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4090
- var nl = (e6) => {
4105
+ var sl = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
4106
+ var cl = (e6) => {
4091
4107
  try {
4092
4108
  return e6.getMonitoringClient?.() ?? null;
4093
4109
  } catch {
4094
4110
  return null;
4095
4111
  }
4096
4112
  };
4097
- var rl = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4098
- function il(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4099
- let o2 = rl(e6, `captureException`);
4113
+ var ll = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
4114
+ function ul(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
4115
+ let o2 = ll(e6, `captureException`);
4100
4116
  if (!o2) return;
4101
4117
  let s2 = t2 instanceof Error ? t2 : Error(String(t2));
4102
4118
  o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
4103
4119
  }
4104
- function al(e6, t2, { feature: n2, tags: r2 }, i2) {
4105
- let a2 = rl(e6, `startSpanManual`);
4120
+ function dl(e6, t2, { feature: n2, tags: r2 }, i2) {
4121
+ let a2 = ll(e6, `startSpanManual`);
4106
4122
  if (!a2) return i2;
4107
4123
  let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
4108
4124
  return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
4109
4125
  }
4110
- var ol = class extends e {
4126
+ var fl = class extends e {
4111
4127
  state = { error: void 0 };
4112
4128
  static getDerivedStateFromError(e6) {
4113
4129
  return { error: e6 ?? Error(`Unknown render error`) };
4114
4130
  }
4115
4131
  componentDidCatch(e6, t2) {
4116
- il(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4132
+ ul(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
4117
4133
  }
4118
4134
  render() {
4119
4135
  if (this.state.error === void 0) return this.props.children;
@@ -4121,205 +4137,205 @@ var ol = class extends e {
4121
4137
  return this.props.fallback;
4122
4138
  }
4123
4139
  };
4124
- var sl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4125
- var cl = n(void 0);
4126
- function ll() {
4127
- return o(cl);
4140
+ var pl = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
4141
+ var ml = n(void 0);
4142
+ function hl() {
4143
+ return o(ml);
4128
4144
  }
4129
- var ul = n(void 0);
4130
- function dl() {
4131
- return o(ul);
4145
+ var gl = n(void 0);
4146
+ function _l() {
4147
+ return o(gl);
4132
4148
  }
4133
- var fl = 6e4;
4134
- var pl = fl * 60;
4135
- var ml = pl * 24;
4136
- var hl = ml * 7;
4137
- var gl = (e6) => e6 < fl ? [`second`, e6 / 1e3] : e6 < pl ? [`minute`, e6 / fl] : e6 < ml ? [`hour`, e6 / pl] : [`day`, e6 / ml];
4138
- var _l = (e6, t2, n2 = Date.now()) => {
4149
+ var vl = 6e4;
4150
+ var yl = vl * 60;
4151
+ var bl = yl * 24;
4152
+ var xl = bl * 7;
4153
+ var Sl = (e6) => e6 < vl ? [`second`, e6 / 1e3] : e6 < yl ? [`minute`, e6 / vl] : e6 < bl ? [`hour`, e6 / yl] : [`day`, e6 / bl];
4154
+ var Cl = (e6, t2, n2 = Date.now()) => {
4139
4155
  let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
4140
- if (i2 >= 0 && i2 < hl) {
4141
- let [e7, n3] = gl(i2);
4156
+ if (i2 >= 0 && i2 < xl) {
4157
+ let [e7, n3] = Sl(i2);
4142
4158
  return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
4143
4159
  }
4144
4160
  let a2 = r2.getFullYear() === new Date(n2).getFullYear();
4145
4161
  return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
4146
4162
  };
4147
- var vl = `https://static.wixstatic.com/media/`;
4148
- var yl = 100;
4149
- var bl = (e6, t2 = ``) => {
4163
+ var wl = `https://static.wixstatic.com/media/`;
4164
+ var Tl = 100;
4165
+ var El = (e6, t2 = ``) => {
4150
4166
  let n2 = e6?.profile?.photo;
4151
4167
  if (!n2?.url) return;
4152
- let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(vl) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4153
- return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || yl, height: n2.height || yl, alt: r2 ?? t2 };
4154
- };
4155
- var xl = `https://static.wixstatic.com/media/`;
4156
- var Sl = `wix:image://`;
4157
- var Cl = 1200;
4158
- var wl = 800;
4159
- var Tl = (e6) => {
4168
+ let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(wl) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
4169
+ return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || Tl, height: n2.height || Tl, alt: r2 ?? t2 };
4170
+ };
4171
+ var Dl = `https://static.wixstatic.com/media/`;
4172
+ var Ol = `wix:image://`;
4173
+ var kl = 1200;
4174
+ var Al = 800;
4175
+ var jl = (e6) => {
4160
4176
  if (!e6) return;
4161
4177
  let t2 = Number.parseInt(e6, 10);
4162
4178
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4163
4179
  };
4164
- var El = (e6) => {
4165
- if (!e6.startsWith(Sl)) {
4180
+ var Ml = (e6) => {
4181
+ if (!e6.startsWith(Ol)) {
4166
4182
  let t3 = e6.split(/[?#]/)[0];
4167
4183
  return t3 ? { uri: t3 } : void 0;
4168
4184
  }
4169
4185
  let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
4170
4186
  if (!r2) return;
4171
4187
  let a2 = new URLSearchParams(n2 ?? ``);
4172
- return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: Tl(a2.get(`originWidth`)), height: Tl(a2.get(`originHeight`)) };
4188
+ return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: jl(a2.get(`originWidth`)), height: jl(a2.get(`originHeight`)) };
4173
4189
  };
4174
- var Dl = (e6, t2) => {
4190
+ var Nl = (e6, t2) => {
4175
4191
  if (!e6) return;
4176
- let n2 = El(e6);
4192
+ let n2 = Ml(e6);
4177
4193
  if (!n2) return;
4178
4194
  let r2 = n2.name ?? n2.uri;
4179
- return { uri: n2.uri, url: `${xl}${n2.uri}`, name: r2, width: n2.width ?? Cl, height: n2.height ?? wl, alt: t2 ?? r2 };
4195
+ return { uri: n2.uri, url: `${Dl}${n2.uri}`, name: r2, width: n2.width ?? kl, height: n2.height ?? Al, alt: t2 ?? r2 };
4180
4196
  };
4181
- var Ol = (e6) => {
4197
+ var Pl = (e6) => {
4182
4198
  let t2 = e6?.media?.wixMedia?.image;
4183
4199
  if (!t2) return;
4184
- let n2 = El(t2);
4200
+ let n2 = Ml(t2);
4185
4201
  if (!n2) return;
4186
4202
  let r2 = n2.name ?? n2.uri;
4187
- return { uri: n2.uri, url: `${xl}${n2.uri}`, name: r2, width: n2.width ?? Cl, height: n2.height ?? wl, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4203
+ return { uri: n2.uri, url: `${Dl}${n2.uri}`, name: r2, width: n2.width ?? kl, height: n2.height ?? Al, alt: e6?.media?.altText ?? e6?.title ?? r2 };
4188
4204
  };
4189
- var kl = `https://static.wixstatic.com/media/`;
4190
- var Al = `wix:video://`;
4191
- var jl = (e6) => {
4205
+ var Fl = `https://static.wixstatic.com/media/`;
4206
+ var Il = `wix:video://`;
4207
+ var Ll = (e6) => {
4192
4208
  if (!e6) return;
4193
4209
  let t2 = Number.parseInt(e6, 10);
4194
4210
  return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
4195
4211
  };
4196
- var Ml = (e6) => {
4197
- if (!e6.startsWith(Al)) return;
4212
+ var Rl = (e6) => {
4213
+ if (!e6.startsWith(Il)) return;
4198
4214
  let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
4199
4215
  if (!r2) return;
4200
4216
  let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
4201
- return { id: decodeURIComponent(r2), posterUrl: a2 ? `${kl}${a2}` : void 0, posterWidth: jl(i2.get(`posterWidth`)), posterHeight: jl(i2.get(`posterHeight`)) };
4217
+ return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Fl}${a2}` : void 0, posterWidth: Ll(i2.get(`posterWidth`)), posterHeight: Ll(i2.get(`posterHeight`)) };
4202
4218
  };
4203
- var Nl = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4204
- var Pl = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4205
- var Fl = (e6, t2) => {
4219
+ var zl = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
4220
+ var Bl = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
4221
+ var Vl = (e6, t2) => {
4206
4222
  for (let n2 of e6) {
4207
4223
  let e7 = n2.exec(t2);
4208
4224
  if (e7) return e7[1];
4209
4225
  }
4210
4226
  };
4211
- var Il = (e6) => {
4212
- let t2 = Fl(Nl, e6);
4227
+ var Hl = (e6) => {
4228
+ let t2 = Vl(zl, e6);
4213
4229
  if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
4214
- let n2 = Fl(Pl, e6);
4230
+ let n2 = Vl(Bl, e6);
4215
4231
  return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
4216
4232
  };
4217
- var Ll = (e6, t2 = []) => {
4233
+ var Ul = (e6, t2 = []) => {
4218
4234
  let n2 = e6?.media;
4219
4235
  if (!n2 || n2.displayed === false) return;
4220
- let r2 = Ol(e6);
4236
+ let r2 = Pl(e6);
4221
4237
  if (r2) return { kind: `image`, image: r2 };
4222
- let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Ml(n2.wixMedia.videoV2) : void 0;
4238
+ let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? Rl(n2.wixMedia.videoV2) : void 0;
4223
4239
  if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
4224
4240
  let o2 = n2.embedMedia?.video?.url;
4225
4241
  if (o2) {
4226
4242
  let { thumbnail: e7 } = n2.embedMedia ?? {};
4227
- return { kind: `embed`, videoUrl: o2, ...Il(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4243
+ return { kind: `embed`, videoUrl: o2, ...Hl(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
4228
4244
  }
4229
4245
  };
4230
- var Rl = (e6) => {
4231
- let t2 = Ol(e6), n2 = e6?.media?.wixMedia?.videoV2;
4246
+ var Wl = (e6) => {
4247
+ let t2 = Pl(e6), n2 = e6?.media?.wixMedia?.videoV2;
4232
4248
  if (t2 || !n2) return t2;
4233
- let r2 = Ml(n2), i2 = Dl(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4249
+ let r2 = Rl(n2), i2 = Nl(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
4234
4250
  return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
4235
4251
  };
4236
- var zl = `2026-05-12T12:00:00.000Z`;
4237
- var Bl = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4238
- var Vl = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
4239
- var Hl = (e6) => {
4252
+ var Gl = `2026-05-12T12:00:00.000Z`;
4253
+ var Kl = (e6) => ({ href: e6 ?? `#`, target: `_self` });
4254
+ var ql = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
4255
+ var Jl = (e6) => {
4240
4256
  if (!e6) return;
4241
4257
  let t2 = e6 instanceof Date ? e6 : new Date(e6);
4242
4258
  return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
4243
4259
  };
4244
- var Ul = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4245
- var Wl = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4246
- var Q = (e6) => ({ text: e6, html: `<p>${Wl(e6)}</p>`, linkList: [] });
4260
+ var Yl = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
4261
+ var Xl = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
4262
+ var Q = (e6) => ({ text: e6, html: `<p>${Xl(e6)}</p>`, linkList: [] });
4247
4263
  var $ = { minutesToRead: 5, views: 120, comments: 4 };
4248
- var Gl = (e6) => {
4264
+ var Zl = (e6) => {
4249
4265
  let { metrics: t2 } = e6;
4250
4266
  return { views: typeof t2?.views == `number` ? t2.views : void 0, comments: typeof t2?.comments == `number` ? t2.comments : void 0 };
4251
4267
  };
4252
- var Kl = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4253
- var ql = (e6, t2, n2, r2) => {
4268
+ var Ql = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
4269
+ var $l = (e6, t2, n2, r2) => {
4254
4270
  let i2 = e6.categoryIds?.map((e7) => t2[e7]).find(Boolean);
4255
4271
  return Q(i2 ?? (n2 ? r2.canvas.category() : ``));
4256
4272
  };
4257
- var Jl = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
4258
- let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Gl(e6);
4259
- return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Rl(e6), itemCoverMedia: Ll(e6, s2[l2 ?? ``] ?? []), itemLink: ar(e6, r2), itemPublishedDate: Q(_l(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Hl(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Ul(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: bl(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Kl(f2.views, $.views, o2, t2.viewCount), commentCount: Kl(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: ql(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
4273
+ var eu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
4274
+ let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Zl(e6);
4275
+ return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Wl(e6), itemCoverMedia: Ul(e6, s2[l2 ?? ``] ?? []), itemLink: ar(e6, r2), itemPublishedDate: Q(Cl(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: Jl(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Yl(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: El(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Ql(f2.views, $.views, o2, t2.viewCount), commentCount: Ql(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: $l(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
4260
4276
  };
4261
- var Yl = 3;
4262
- var Xl = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
4263
- var Zl = (e6, t2) => {
4264
- let { uri: n2, width: r2, height: i2 } = Xl[e6 % Xl.length];
4265
- return { uri: n2, url: Vl(n2), name: n2, width: r2, height: i2, alt: t2 };
4277
+ var tu = 3;
4278
+ var nu = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
4279
+ var ru = (e6, t2) => {
4280
+ let { uri: n2, width: r2, height: i2 } = nu[e6 % nu.length];
4281
+ return { uri: n2, url: ql(n2), name: n2, width: r2, height: i2, alt: t2 };
4266
4282
  };
4267
- var Ql = (e6, t2) => {
4268
- let { uri: n2 } = Xl[(e6 + 1) % Xl.length];
4269
- return { uri: n2, url: Vl(n2), name: n2, width: 100, height: 100, alt: t2 };
4283
+ var iu = (e6, t2) => {
4284
+ let { uri: n2 } = nu[(e6 + 1) % nu.length];
4285
+ return { uri: n2, url: ql(n2), name: n2, width: 100, height: 100, alt: t2 };
4270
4286
  };
4271
- var $l = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: Yl }, (i2, a2) => {
4272
- let o2 = e6.canvas.postTitle(), s2 = Zl(a2, e6.canvas.coverAlt());
4273
- return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: Bl(n2), itemPublishedDate: Q(_l(new Date(r2), t2, r2)), publishedDateValue: zl, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: Ql(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
4287
+ var au = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: tu }, (i2, a2) => {
4288
+ let o2 = e6.canvas.postTitle(), s2 = ru(a2, e6.canvas.coverAlt());
4289
+ return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: Kl(n2), itemPublishedDate: Q(Cl(new Date(r2), t2, r2)), publishedDateValue: Gl, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: iu(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
4274
4290
  });
4275
- var eu = n(void 0);
4276
- function tu() {
4277
- let e6 = o(eu);
4291
+ var ou = n(void 0);
4292
+ function su() {
4293
+ let e6 = o(ou);
4278
4294
  if (!e6) throw Error(`useRelatedPostsContext must be used within a RelatedPostsProvider`);
4279
4295
  return e6;
4280
4296
  }
4281
- var nu = 3;
4282
- var ru = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 12) : nu;
4283
- var iu = 2e3;
4284
- var au = /* @__PURE__ */ new WeakMap();
4285
- var ou = (e6, t2, n2) => {
4297
+ var cu = 3;
4298
+ var lu = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 12) : cu;
4299
+ var uu = 2e3;
4300
+ var du = /* @__PURE__ */ new WeakMap();
4301
+ var fu = (e6, t2, n2) => {
4286
4302
  if (!e6) return n2();
4287
- let r2 = au.get(e6);
4288
- r2 || (r2 = /* @__PURE__ */ new Map(), au.set(e6, r2));
4303
+ let r2 = du.get(e6);
4304
+ r2 || (r2 = /* @__PURE__ */ new Map(), du.set(e6, r2));
4289
4305
  let i2 = r2.get(t2);
4290
4306
  if (i2) return i2;
4291
4307
  let a2 = n2();
4292
4308
  return r2.set(t2, a2), a2;
4293
4309
  };
4294
- var su = { relatedPosts: [], emptyState: null, isLoadingRelatedPosts: true, hasError: false };
4295
- var cu = { ...su, isLoadingRelatedPosts: false, hasError: true };
4296
- var lu = (e6) => ({ strip: e6, hasError: false });
4297
- var uu = () => ({ strip: { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {}, fetchedAt: Date.now() }, hasError: true });
4298
- var du = (e6) => {
4310
+ var pu = { relatedPosts: [], emptyState: null, isLoadingRelatedPosts: true, hasError: false };
4311
+ var mu = { ...pu, isLoadingRelatedPosts: false, hasError: true };
4312
+ var hu = (e6) => ({ strip: e6, hasError: false });
4313
+ var gu = () => ({ strip: { posts: [], authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {}, fetchedAt: Date.now() }, hasError: true });
4314
+ var _u = (e6) => {
4299
4315
  throw e6;
4300
4316
  };
4301
- var fu = ({ children: e6, stripLoadPromise: t2, slug: n2, language: r2 }) => {
4302
- let { strip: { posts: i2, authorsByMemberId: a2, categoryLabelsById: o2, videoSourcesByPostId: s2, fetchedAt: l2 }, hasError: u2 } = zn(t2), d2 = Un(l2), f2 = el(), m2 = or(n2), { t: h2 } = xo(), g2 = hr(), _2 = c(() => es(h2, g2), [h2, g2]), v2 = c(() => {
4303
- let e7 = i2.map((e8) => Jl(e8, _2, g2, m2, a2, o2, f2, s2, d2));
4304
- return { relatedPosts: e7.length === 0 && f2 ? $l(_2, g2, m2, d2) : e7, emptyState: e7.length === 0 && !u2 ? _2.noRelatedPostsEmptyState() : null, isLoadingRelatedPosts: false, hasError: u2 };
4305
- }, [i2, a2, o2, s2, _2, g2, r2, m2, f2, d2, u2]);
4306
- return dr(lr.relatedPostsProvider, u2 ? `error` : i2.length > 0 ? `data` : `empty`), p(eu.Provider, { value: v2, children: e6 });
4307
- };
4308
- function pu({ children: e6, postsCount: n2 }) {
4309
- let r2 = cr(), i2 = mr(), a2 = Gn(), o2 = ru(n2), s2 = ll(), l2 = dl(), u2 = _r(), d2 = c(() => nl(Ln), []), { i18n: f2, locale: h2 } = Wo(Qo), g2 = qn(() => {
4310
- let e7 = `blog-builder:related:${JSON.stringify({ slug: r2 ?? ``, language: i2 ?? ``, limit: o2, ...l2 && { postId: l2 } })}`;
4311
- return { slug: r2, language: i2, stripLoadPromise: Vn(ou(s2, e7, () => jo({ key: e7, warmupData: u2, fetchData: () => {
4312
- let e8 = Yc({ slug: r2, language: i2, limit: o2, propagateErrors: true, sourcePromise: s2 });
4313
- return sl(al(d2, `related-posts-read`, { feature: tl.relatedPosts, tags: { limit: o2 } }, a2 ? Pc(e8, iu, `related-posts`) : e8));
4314
- } })), lu, a2 ? du : uu) };
4315
- }, [r2, i2, a2, s2, u2, o2, d2, l2]);
4316
- return p(So, { i18n: f2, children: m(t, { fallback: p(eu.Provider, { value: su, children: e6 }), children: [p(Uo, { i18n: f2, locale: h2 }), p(ol, { fallback: p(eu.Provider, { value: cu, children: e6 }), feature: tl.relatedPosts, monitoringClient: d2, rethrow: a2, children: p(fu, { stripLoadPromise: g2.stripLoadPromise, slug: g2.slug, language: g2.language, children: e6 }, `${g2.language ?? ``}|${g2.slug ?? ``}`) })] }) });
4317
- }
4318
- var mu = An(`7d10ae29-fb0a-4361-8bc0-c3b8a3b96e34`);
4317
+ var vu = ({ children: e6, stripLoadPromise: t2, slug: n2, language: r2 }) => {
4318
+ let { strip: { posts: i2, authorsByMemberId: a2, categoryLabelsById: o2, videoSourcesByPostId: s2, fetchedAt: l2, demoPosts: u2 }, hasError: d2 } = zn(t2), f2 = Un(l2), m2 = ol(), h2 = or(n2), { t: g2 } = So(), _2 = hr(), v2 = c(() => ts(g2, _2), [g2, _2]), y2 = c(() => {
4319
+ let e7 = (i2.length === 0 && m2 ? u2 ?? [] : i2).map((e8) => eu(e8, v2, _2, h2, a2, o2, m2, s2, f2));
4320
+ return { relatedPosts: e7.length === 0 && m2 ? au(v2, _2, h2, f2) : e7, emptyState: i2.length === 0 && !d2 ? v2.noRelatedPostsEmptyState() : null, isLoadingRelatedPosts: false, hasError: d2 };
4321
+ }, [i2, u2, a2, o2, s2, v2, _2, r2, h2, m2, f2, d2]);
4322
+ return dr(lr.relatedPostsProvider, d2 ? `error` : i2.length > 0 ? `data` : `empty`), p(ou.Provider, { value: y2, children: e6 });
4323
+ };
4324
+ function yu({ children: e6, postsCount: n2 }) {
4325
+ let r2 = cr(), i2 = mr(), a2 = Gn(), o2 = lu(n2), s2 = ol(), l2 = hl(), u2 = _l(), d2 = _r(), f2 = c(() => cl(Ln), []), { i18n: h2, locale: g2 } = Go($o), _2 = qn(() => {
4326
+ let e7 = `blog-builder:related:${JSON.stringify({ slug: r2 ?? ``, language: i2 ?? ``, limit: o2, ...u2 && { postId: u2 } })}`;
4327
+ return { slug: r2, language: i2, stripLoadPromise: Vn(fu(l2, e7, () => Mo({ key: e7, warmupData: d2, fetchData: () => {
4328
+ let e8 = $c({ slug: r2, language: i2, limit: o2, propagateErrors: true, sourcePromise: l2 }).then((e9) => s2 ? tl(e9, { limit: o2, language: i2 }) : e9);
4329
+ return pl(dl(f2, `related-posts-read`, { feature: sl.relatedPosts, tags: { limit: o2 } }, a2 ? Rc(e8, uu, `related-posts`) : e8));
4330
+ } })), hu, a2 ? _u : gu) };
4331
+ }, [r2, i2, a2, s2, l2, d2, o2, f2, u2]);
4332
+ return p(Co, { i18n: h2, children: m(t, { fallback: p(ou.Provider, { value: pu, children: e6 }), children: [p(Wo, { i18n: h2, locale: g2 }), p(fl, { fallback: p(ou.Provider, { value: mu, children: e6 }), feature: sl.relatedPosts, monitoringClient: f2, rethrow: a2, children: p(vu, { stripLoadPromise: _2.stripLoadPromise, slug: _2.slug, language: _2.language, children: e6 }, `${_2.language ?? ``}|${_2.slug ?? ``}`) })] }) });
4333
+ }
4334
+ var bu = An(`7d10ae29-fb0a-4361-8bc0-c3b8a3b96e34`);
4319
4335
  export {
4320
- pu as RelatedPostsProvider,
4321
- pu as default,
4322
- mu as injectAccessTokenGetter,
4323
- tu as useRelatedPostsContext
4336
+ yu as RelatedPostsProvider,
4337
+ yu as default,
4338
+ bu as injectAccessTokenGetter,
4339
+ su as useRelatedPostsContext
4324
4340
  };
4325
4341
  //# sourceMappingURL=context-related-posts-context-provider.mjs.map