@pagelines/sdk 1.0.416 → 1.0.418

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.
@@ -1044,7 +1044,7 @@ function ce(l, t) {
1044
1044
  } else if (Z.escapeTestNoEncode.test(l)) return l.replace(Z.escapeReplaceNoEncode, Wn);
1045
1045
  return l;
1046
1046
  }
1047
- u(ce, "O");
1047
+ u(ce, "T");
1048
1048
  function jn(l) {
1049
1049
  try {
1050
1050
  l = encodeURI(l).replace(Z.percentDecode, "%");
@@ -1349,7 +1349,7 @@ ${p}` : p;
1349
1349
  let s = this.rules.inline.emStrongLDelim.exec(t);
1350
1350
  if (!(!s || !s[1] && !s[2] && !s[3] && !s[4] || s[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(s[1] || s[3]) || !n || this.rules.inline.punctuation.exec(n))) {
1351
1351
  let r = [...s[0]].length - 1, a, o, c = r, d = 0, g = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
1352
- for (g.lastIndex = 0, e = e.slice(-1 * t.length + r); (s = g.exec(e)) != null; ) {
1352
+ for (g.lastIndex = 0, e = e.slice(-1 * t.length + r); (s = g.exec(e)) !== null; ) {
1353
1353
  if (a = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !a) continue;
1354
1354
  if (o = [...a].length, s[3] || s[4]) {
1355
1355
  c += o;
@@ -1385,7 +1385,7 @@ ${p}` : p;
1385
1385
  let s = this.rules.inline.delLDelim.exec(t);
1386
1386
  if (s && (!s[1] || !n || this.rules.inline.punctuation.exec(n))) {
1387
1387
  let r = [...s[0]].length - 1, a, o, c = r, d = this.rules.inline.delRDelim;
1388
- for (d.lastIndex = 0, e = e.slice(-1 * t.length + r); (s = d.exec(e)) != null; ) {
1388
+ for (d.lastIndex = 0, e = e.slice(-1 * t.length + r); (s = d.exec(e)) !== null; ) {
1389
1389
  if (a = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !a || (o = [...a].length, o !== r)) continue;
1390
1390
  if (s[3] || s[4]) {
1391
1391
  c += o;
@@ -1559,11 +1559,11 @@ ${p}` : p;
1559
1559
  let n = t, s = null;
1560
1560
  if (this.tokens.links) {
1561
1561
  let c = Object.keys(this.tokens.links);
1562
- if (c.length > 0) for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) c.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
1562
+ if (c.length > 0) for (; (s = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null; ) c.includes(s[0].slice(s[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, s.index) + "[" + "a".repeat(s[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
1563
1563
  }
1564
- for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, s.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
1564
+ for (; (s = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null; ) n = n.slice(0, s.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
1565
1565
  let r;
1566
- for (; (s = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) r = s[2] ? s[2].length : 0, n = n.slice(0, s.index + r) + "[" + "a".repeat(s[0].length - r - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
1566
+ for (; (s = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null; ) r = s[2] ? s[2].length : 0, n = n.slice(0, s.index + r) + "[" + "a".repeat(s[0].length - r - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
1567
1567
  n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
1568
1568
  let a = !1, o = "";
1569
1569
  for (; t; ) {
@@ -1952,11 +1952,11 @@ ${t}</tr>
1952
1952
  emStrongMask(t) {
1953
1953
  return t;
1954
1954
  }
1955
- provideLexer() {
1956
- return this.block ? re.lex : re.lexInline;
1955
+ provideLexer(t = this.block) {
1956
+ return t ? re.lex : re.lexInline;
1957
1957
  }
1958
- provideParser() {
1959
- return this.block ? ie.parse : ie.parseInline;
1958
+ provideParser(t = this.block) {
1959
+ return t ? ie.parse : ie.parseInline;
1960
1960
  }
1961
1961
  }, u(be, "P"), C(be, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), C(be, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), be), Ue, Vr = (Ue = class {
1962
1962
  constructor(...t) {
@@ -2091,16 +2091,16 @@ ${t}</tr>
2091
2091
  if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
2092
2092
  if (typeof e != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
2093
2093
  if (r.hooks && (r.hooks.options = r, r.hooks.block = t), r.async) return (async () => {
2094
- let o = r.hooks ? await r.hooks.preprocess(e) : e, c = await (r.hooks ? await r.hooks.provideLexer() : t ? re.lex : re.lexInline)(o, r), d = r.hooks ? await r.hooks.processAllTokens(c) : c;
2094
+ let o = r.hooks ? await r.hooks.preprocess(e) : e, c = await (r.hooks ? await r.hooks.provideLexer(t) : t ? re.lex : re.lexInline)(o, r), d = r.hooks ? await r.hooks.processAllTokens(c) : c;
2095
2095
  r.walkTokens && await Promise.all(this.walkTokens(d, r.walkTokens));
2096
- let g = await (r.hooks ? await r.hooks.provideParser() : t ? ie.parse : ie.parseInline)(d, r);
2096
+ let g = await (r.hooks ? await r.hooks.provideParser(t) : t ? ie.parse : ie.parseInline)(d, r);
2097
2097
  return r.hooks ? await r.hooks.postprocess(g) : g;
2098
2098
  })().catch(a);
2099
2099
  try {
2100
2100
  r.hooks && (e = r.hooks.preprocess(e));
2101
- let o = (r.hooks ? r.hooks.provideLexer() : t ? re.lex : re.lexInline)(e, r);
2101
+ let o = (r.hooks ? r.hooks.provideLexer(t) : t ? re.lex : re.lexInline)(e, r);
2102
2102
  r.hooks && (o = r.hooks.processAllTokens(o)), r.walkTokens && this.walkTokens(o, r.walkTokens);
2103
- let c = (r.hooks ? r.hooks.provideParser() : t ? ie.parse : ie.parseInline)(o, r);
2103
+ let c = (r.hooks ? r.hooks.provideParser(t) : t ? ie.parse : ie.parseInline)(o, r);
2104
2104
  return r.hooks && (c = r.hooks.postprocess(c)), c;
2105
2105
  } catch (o) {
2106
2106
  return a(o);