useblocks 1.1.45 → 1.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/iframe/js/amp.BP7EklKo.js +1 -0
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.4N5s3OV-.js +1 -1
  5. package/monacoeditorwork/css.worker.bundle.js +40524 -40442
  6. package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
  7. package/monacoeditorwork/html.worker.bundle.js +50513 -50431
  8. package/monacoeditorwork/json.worker.bundle.js +14570 -14527
  9. package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
  10. package/npm-publish.manifest.json +7 -7
  11. package/package.json +1 -1
  12. package/runtime/@ant-design/cssinjs/index.js +1 -1
  13. package/runtime/@ant-design/icons/index.js +2 -2
  14. package/runtime/README.md +1 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +70 -42
  16. package/runtime/antd/index.js +1 -1
  17. package/runtime/react/index.js +3 -3
  18. package/runtime/react/jsx-runtime/index.js +1 -1
  19. package/runtime/react-dom/client/index.js +4 -4
  20. package/runtime/react-dom/index.js +3 -3
  21. package/runtime/react-router-dom/index.js +2 -2
  22. package/singlepage_headless_plugin.html +1 -1
  23. package/static/core/{cb72ea5e.js → 11296a18.js} +51 -51
  24. package/static/core/{7d884291.js → 13d197af.js} +20 -20
  25. package/static/core/13f581cc.js +924 -0
  26. package/static/core/{6450546e2.js → 1ca5f3772.js} +184 -155
  27. package/static/core/{af153381.js → 339377b8.js} +15657 -15202
  28. package/static/core/{94f2c0df.js → 386cf7b3.js} +9673 -9544
  29. package/static/core/{b7a9d262.js → 3b4845f7.js} +353 -334
  30. package/static/core/{d14cb6e2.js → 3dea3b87.js} +7 -7
  31. package/static/core/59023866.js +2090 -0
  32. package/static/core/{bc098620.js → 7a229b90.js} +3 -3
  33. package/static/core/{48b80eec.js → 8c81db36.js} +3 -3
  34. package/static/core/{8c84cc76.js → 8e110c69.js} +24 -24
  35. package/static/core/{2f2019c1.js → a11c28c2.js} +258 -240
  36. package/static/core/{fd4fa049.js → aacf134d.js} +745 -664
  37. package/static/core/{5e0828e3.js → acb049cb.js} +1349 -1297
  38. package/static/core/{bb774fb9.js → c59f9731.js} +7724 -6646
  39. package/static/core/{ed0ecf0a.js → de79e0c5.js} +3947 -3705
  40. package/static/core/e7c24fe9.js +649 -0
  41. package/static/esm/{dab4cdfd.js → 448d4bb0.js} +70 -70
  42. package/static/esm/{7c5227f0.js → d180c108.js} +50 -47
  43. package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
  44. package/static/runtime/client-CfXgU5Vo.js +7580 -0
  45. package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
  46. package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
  47. package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
  48. package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
  49. package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
  50. package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
  51. package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
  52. package/static/runtime/react-BHNx_xzv.js +290 -0
  53. package/static/runtime/react-dom-CyByzibb.js +127 -0
  54. package/two_step_headless_plugin.html +1 -1
  55. package/{useblocks-core.ecd1a3b0.js → useblocks-core.15a9129c.js} +82 -76
  56. package/useblocks-esm.js +628 -3197
  57. package/useblocks.d.ts +190 -52
  58. package/useblocks.js +818 -12587
  59. package/vite/index.cjs +46 -21
  60. package/vite/index.d.ts +0 -1
  61. package/vite/index.js +46 -21
  62. package/vite/pluginDev/index.d.ts +0 -1
  63. package/webpack/index.cjs +46 -21
  64. package/webpack/index.d.ts +0 -1
  65. package/webpack/index.js +46 -21
  66. package/webpack/pluginDev/index.d.ts +0 -1
  67. package/iframe/js/amp.CVC2Iq48.js +0 -1
  68. package/static/core/632d894f.js +0 -869
  69. package/static/core/c28bc42e.js +0 -46
  70. package/static/core/ff830d19.js +0 -2046
  71. package/static/esm/2fb07398.js +0 -3480
  72. package/static/esm/352121c5.js +0 -55
  73. package/static/esm/64966e1c.js +0 -18
  74. package/static/runtime/client-CM3WFcip.js +0 -7
  75. package/static/runtime/dist-DUS42Hru.js +0 -3421
  76. package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
  77. package/static/runtime/react-DIf5CLST.js +0 -258
  78. package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
  79. /package/iframe/{iframe-eblock.ecd1a3b0.html → iframe-eblock.15a9129c.html} +0 -0
  80. /package/iframe/{iframe.ecd1a3b0.html → iframe.15a9129c.html} +0 -0
@@ -3,20 +3,25 @@ __useblocks__.define("core", [
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/bd36b180.js",
6
- "static/core/bb774fb9.js",
7
- "static/core/ed0ecf0a.js",
8
- "static/core/632d894f.js"
9
- ], function(f, b, ge) {
10
- Object.defineProperties(b, {
6
+ "static/core/c59f9731.js",
7
+ "static/core/de79e0c5.js",
8
+ "static/core/13f581cc.js"
9
+ ], function(f, E, he) {
10
+ Object.defineProperties(E, {
11
11
  __esModule: { value: !0 },
12
12
  [Symbol.toStringTag]: { value: "Module" }
13
13
  });
14
14
  f("./static/core/bd36b180.js");
15
- const n = f("./static/core/bb774fb9.js"), c = f("./static/core/ed0ecf0a.js"), h = f("./static/core/632d894f.js");
16
- function L(e) {
15
+ const n = f("./static/core/c59f9731.js"), c = f("./static/core/de79e0c5.js"), h = f("./static/core/13f581cc.js");
16
+ var L = "Editor instance was destroyed and cannot be reused. A fresh instance will be created instead.";
17
+ function O() {
18
+ const e = new Error(L);
19
+ return e.name = "DestroyedInstanceError", e;
20
+ }
21
+ function w(e) {
17
22
  return async () => (await e.app.app_init_create({})).data;
18
23
  }
19
- function O(e, t, r) {
24
+ function F(e, t, r) {
20
25
  e.inject(n.APP_ID, void 0);
21
26
  let s;
22
27
  e.injectFactory(n.APP_ID, async (i, o) => s || (s = (async () => {
@@ -29,7 +34,7 @@ __useblocks__.define("core", [
29
34
  });
30
35
  })(), s), !0);
31
36
  }
32
- var w = h.defineMixin((e) => {
37
+ var P = h.defineMixin((e) => {
33
38
  let t, r, s, i, o, a = !1;
34
39
  function d(l) {
35
40
  return String(l || "").trim() || void 0;
@@ -37,23 +42,23 @@ __useblocks__.define("core", [
37
42
  return { setOptions(l) {
38
43
  const p = !!e.getInstance(n.SECURITY_MODULE_ID), S = l.hasOwnProperty("baseUrl") ? d(l.baseUrl) : r, u = S ? n.normalizeBaseUrl(S) : void 0;
39
44
  if (l.hasOwnProperty("baseUrl")) {
40
- const pe = e.getInstance(n.REST_CLIENT_FACTORY_ID);
41
- t !== u && pe?.setOptions(u ? { baseUrl: u } : {});
45
+ const _e = e.getInstance(n.REST_CLIENT_FACTORY_ID);
46
+ t !== u && _e?.setOptions(u ? { baseUrl: u } : {});
42
47
  }
43
- const ae = s !== l.appInit, ce = !n.deepEqual(i, l.user), le = o !== l.project, de = t !== u;
44
- if (s = l.appInit, i = l.user, o = l.project, t = u, r = S, p || a && !ae && !ce && !le && !de) return;
45
- const ue = e.getInstance(n.REST_CLIENT_ID);
46
- O(e, s || L(ue), {
48
+ const le = s !== l.appInit, de = !n.deepEqual(i, l.user), ue = o !== l.project, pe = t !== u;
49
+ if (s = l.appInit, i = l.user, o = l.project, t = u, r = S, p || a && !le && !de && !ue && !pe) return;
50
+ const ge = e.getInstance(n.REST_CLIENT_ID);
51
+ F(e, s || w(ge), {
47
52
  baseUrl: r,
48
53
  user: l.user,
49
54
  project: l.project
50
55
  }), a = !0;
51
56
  } };
52
- }), I = n.createIdentifier$1(), y = n.createIdentifier$1(), F = h.defineMixin((e) => ({ setOptions(t) {
57
+ }), v = n.createIdentifier$1(), y = n.createIdentifier$1(), x = h.defineMixin((e) => ({ setOptions(t) {
53
58
  const r = c.createQueue();
54
59
  e.addService(n.REQUEST_HANDLER_ID, { execute: r.decorate(async (s) => {
55
60
  if (!t.jwtAuth) return;
56
- let i = e.getInstance(I);
61
+ let i = e.getInstance(v);
57
62
  if (!e.getInstance(y)) {
58
63
  if (!i) try {
59
64
  const o = e.getInstance(n.REST_CLIENT_FACTORY_ID)?.getOptions()?.baseUrl || "", a = await fetch(`${o}/jwt-auth/token`, {
@@ -62,14 +67,14 @@ __useblocks__.define("core", [
62
67
  body: JSON.stringify(t.jwtAuth)
63
68
  });
64
69
  if (!a.ok) throw new Error(`JWT auth failed: ${a.status}`);
65
- i = (await a.json()).token, e.inject(I, i);
70
+ i = (await a.json()).token, e.inject(v, i);
66
71
  } catch {
67
72
  throw e.inject(y, n.ERROR), new Error(n.ERROR);
68
73
  }
69
74
  i && s.headers.append("authorization", `Bearer ${i}`);
70
75
  }
71
76
  }) });
72
- } })), P = h.defineMixin((e) => {
77
+ } })), R = h.defineMixin((e) => {
73
78
  let t, r, s;
74
79
  return { async setOptions(i) {
75
80
  const o = s !== i.getAuthToken, a = !n.deepEqual(t, i.user), d = r !== i.project;
@@ -83,7 +88,7 @@ __useblocks__.define("core", [
83
88
  e.inject(n.APP_ID, Promise.resolve(c.createFallbackApp(p, u)));
84
89
  } catch {}
85
90
  } };
86
- }), x = h.defineMixin((e) => {
91
+ }), N = h.defineMixin((e) => {
87
92
  const t = e.getInstance(n.DISPOSABLE_ID), r = new n.Emitter(), s = c.prepareEvent(r.event);
88
93
  t.addDispose(() => {
89
94
  const o = e.getInstance(n.INSTANCE_ID);
@@ -103,7 +108,7 @@ __useblocks__.define("core", [
103
108
  }
104
109
  }
105
110
  };
106
- }), R = h.defineMixin((e) => {
111
+ }), M = h.defineMixin((e) => {
107
112
  const t = e.getInstance(n.DISPOSABLE_ID), r = new c.InitPipelineContext();
108
113
  e.inject(n.INIT_PIPELINE_ID, r);
109
114
  let s;
@@ -119,7 +124,7 @@ __useblocks__.define("core", [
119
124
  },
120
125
  dispose() {}
121
126
  };
122
- }), N = h.defineMixin((e) => {
127
+ }), U = h.defineMixin((e) => {
123
128
  const t = e.getInstance(n.DISPOSABLE_ID), r = c.prepareEvent(n.getEvent$1(e, n.APP_LOAD_EVENT_ID)), s = t.addDisposable(new c.ListenerUpdater(r));
124
129
  return {
125
130
  setOptions({ handleLoad: i }) {
@@ -128,7 +133,7 @@ __useblocks__.define("core", [
128
133
  instance: { handleLoad: r },
129
134
  dispose: () => t.dispose()
130
135
  };
131
- }), M = h.defineMixin((e) => {
136
+ }), j = h.defineMixin((e) => {
132
137
  const t = e.getInstance(n.DISPOSABLE_ID), r = t.addDisposable(new n.AsyncEmitter()), s = t.addDisposable(new n.AsyncEmitter()), i = n.getEmitter$1(e, n.CONFIG_CHANGED_EVENT_ID), o = c.prepareEvent(r.event), a = c.prepareEvent(s.event), d = c.prepareEvent(i.event), l = t.addDisposable(new c.ListenerUpdater(o)), p = t.addDisposable(new c.ListenerUpdater(a)), S = t.addDisposable(new c.ListenerUpdater(d));
133
138
  return {
134
139
  instance: {
@@ -141,8 +146,8 @@ __useblocks__.define("core", [
141
146
  },
142
147
  dispose() {}
143
148
  };
144
- }), U = 1e4;
145
- function E(e, t, r, s = {}) {
149
+ }), k = 1e4;
150
+ function b(e, t, r, s = {}) {
146
151
  const i = Object.assign({}, e);
147
152
  for (const [o, a] of Object.entries(t)) if (a !== void 0) if (r.includes(o) && typeof a == "object" && a !== null) {
148
153
  const d = i[o], l = s[o] ?? {};
@@ -179,7 +184,7 @@ __useblocks__.define("core", [
179
184
  bottom: null,
180
185
  left: null
181
186
  }
182
- }, j = {
187
+ }, B = {
183
188
  fontFamily: ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif"],
184
189
  fontSize: 16,
185
190
  fontSizeDim: "px",
@@ -235,7 +240,7 @@ __useblocks__.define("core", [
235
240
  backgroundColor: "#FFFFFF",
236
241
  contrastBackgroundColor: "#1C52DC",
237
242
  padding: _.padding
238
- }, v = {
243
+ }, I = {
239
244
  contrastBackgroundColor: "#1C52DC",
240
245
  contrastTextColor: "#FFFFFF",
241
246
  baseBackgroundColor: "#F8F8F8",
@@ -243,13 +248,13 @@ __useblocks__.define("core", [
243
248
  border: _.border,
244
249
  borderRadius: _.borderRadiusCards
245
250
  };
246
- function k(e) {
251
+ function Y(e) {
247
252
  return {
248
- ...j,
253
+ ...B,
249
254
  ...e
250
255
  };
251
256
  }
252
- function B(e) {
257
+ function H(e) {
253
258
  return {
254
259
  ...C,
255
260
  ...e,
@@ -257,14 +262,14 @@ __useblocks__.define("core", [
257
262
  italic: e?.italic ?? C.italic
258
263
  };
259
264
  }
260
- function Y(e) {
265
+ function z(e) {
261
266
  return {
262
267
  ...T,
263
268
  ...e,
264
269
  underline: e?.underline ?? T.underline
265
270
  };
266
271
  }
267
- function H(e) {
272
+ function V(e) {
268
273
  return {
269
274
  ...m,
270
275
  ...e,
@@ -284,7 +289,7 @@ __useblocks__.define("core", [
284
289
  }
285
290
  };
286
291
  }
287
- function z(e) {
292
+ function G(e) {
288
293
  return {
289
294
  ...D,
290
295
  ...e,
@@ -294,16 +299,16 @@ __useblocks__.define("core", [
294
299
  }
295
300
  };
296
301
  }
297
- function V(e) {
302
+ function $(e) {
298
303
  return {
299
- ...v,
304
+ ...I,
300
305
  ...e,
301
306
  border: {
302
- ...v.border,
307
+ ...I.border,
303
308
  ...e?.border ?? {}
304
309
  },
305
310
  borderRadius: {
306
- ...v.borderRadius,
311
+ ...I.borderRadius,
307
312
  ...e?.borderRadius ?? {}
308
313
  }
309
314
  };
@@ -362,12 +367,12 @@ __useblocks__.define("core", [
362
367
  }
363
368
  _mapCommonStylesToContentStyles(e) {
364
369
  return {
365
- text: k(e.text),
366
- headings: B(e.headings),
367
- links: Y(e.links),
368
- buttons: H(e.buttons),
369
- block: z(e.block),
370
- cards: V(e.cards)
370
+ text: Y(e.text),
371
+ headings: H(e.headings),
372
+ links: z(e.links),
373
+ buttons: V(e.buttons),
374
+ block: G(e.block),
375
+ cards: $(e.cards)
371
376
  };
372
377
  }
373
378
  _getCurrentLayoutSettings(e) {
@@ -423,7 +428,7 @@ __useblocks__.define("core", [
423
428
  const s = this._mapLayoutSettings(r);
424
429
  this._prevLayoutSnapshot = this._getLayoutSnapshot(s), this._layoutSettingsChanged.fire(s);
425
430
  }
426
- async _waitForEmailSettingsFromIframe(e, t = U) {
431
+ async _waitForEmailSettingsFromIframe(e, t = k) {
427
432
  const r = e.getState(), s = n.selectEmail(r), i = n.selectEmailSettings(r);
428
433
  if (s?.is_inited && i && Object.keys(i).length > 0 && (i.backgroundColor || i.backgroundImage?.[0]?.value || i.width?.value || i.responsive !== void 0) || s?.is_inited) return;
429
434
  const o = this._editor.container, a = n.getEvent$1(o, n.events.ON_EMAIL_INIT_ID);
@@ -456,7 +461,7 @@ __useblocks__.define("core", [
456
461
  }), e.links !== void 0 && (s.links = {
457
462
  ...s.links || {},
458
463
  ...e.links
459
- }), e.buttons !== void 0 && (s.buttons = E(s.buttons || {}, e.buttons, [
464
+ }), e.buttons !== void 0 && (s.buttons = b(s.buttons || {}, e.buttons, [
460
465
  "border",
461
466
  "borderRadius",
462
467
  "padding"
@@ -464,7 +469,7 @@ __useblocks__.define("core", [
464
469
  border: _.border,
465
470
  borderRadius: _.borderRadius,
466
471
  padding: _.padding
467
- })), e.block !== void 0 && (s.block = E(s.block || {}, e.block, ["padding"], { padding: _.padding })), e.cards !== void 0 && (s.cards = E(s.cards || {}, e.cards, ["border", "borderRadius"], {
472
+ })), e.block !== void 0 && (s.block = b(s.block || {}, e.block, ["padding"], { padding: _.padding })), e.cards !== void 0 && (s.cards = b(s.cards || {}, e.cards, ["border", "borderRadius"], {
468
473
  border: _.border,
469
474
  borderRadius: _.borderRadiusCards
470
475
  })), t.dispatch(n.setEmailFromHistory({
@@ -474,37 +479,37 @@ __useblocks__.define("core", [
474
479
  const i = this._mapCommonStylesToContentStyles(s);
475
480
  this._prevContentSnapshot = this._getContentSnapshot(i), this._contentStylesChanged.fire(i);
476
481
  }
477
- }, $ = {
482
+ }, J = {
478
483
  ...n.corePlugins,
479
484
  EmailSettingsApi: A
480
485
  };
481
486
  ({ ...n.corePlugins });
482
- var J = { ...$ };
483
- function K() {
484
- c.pluginRegistry.addAll(J);
487
+ var q = { ...J };
488
+ function X() {
489
+ c.pluginRegistry.addAll(q);
485
490
  }
486
- var q = [
487
- R,
488
- x,
489
- N,
491
+ var W = [
490
492
  M,
491
- F,
492
- P,
493
+ N,
494
+ U,
495
+ j,
496
+ x,
497
+ R,
493
498
  h.OAuthMixin,
494
- w
499
+ P
495
500
  ];
496
- async function X() {
497
- return (await Promise.resolve().then(() => f("./static/core/af153381.js"))).default;
501
+ async function Q() {
502
+ return (await Promise.resolve().then(() => f("./static/core/339377b8.js"))).default;
498
503
  }
499
- var W = (e) => {
504
+ var Z = (e) => {
500
505
  let t = null, r = !1;
501
506
  return {
502
507
  instance: {},
503
508
  async setOptions(s) {
504
509
  if (!t && !r) {
505
- t = (await X())(e);
510
+ t = (await Q())(e);
506
511
  const i = await e.getInstanceAsync(n.INSTANCE_ID);
507
- Object.assign(i, t.instance || {}), K();
512
+ Object.assign(i, t.instance || {}), X();
508
513
  }
509
514
  t && await t.setOptions(s);
510
515
  },
@@ -512,7 +517,7 @@ __useblocks__.define("core", [
512
517
  t?.dispose(), r = !0;
513
518
  }
514
519
  };
515
- }, Q = h.combineMixins([...q, W]), Z = class {
520
+ }, ee = h.combineMixins([...W, Z]), te = class {
516
521
  _storage = Object.create(null);
517
522
  get(e) {
518
523
  const t = this._storage[e];
@@ -527,20 +532,20 @@ __useblocks__.define("core", [
527
532
  remove(e) {
528
533
  delete this._storage[e];
529
534
  }
530
- }, ee = 100, g = {
535
+ }, ne = 100, g = {
531
536
  events: [],
532
537
  container: null,
533
538
  collection: null
534
539
  };
535
- function te(e, t) {
540
+ function se(e, t) {
536
541
  g.container = e, g.collection = t, t.onLifecycle((r) => {
537
542
  g.events.push({
538
543
  ...r,
539
544
  timestamp: Date.now()
540
- }), g.events.length > ee && (g.events = g.events.slice(-100));
541
- }), typeof window < "u" && (window.__EMAILMAKER_DEVTOOLS__ = ne());
545
+ }), g.events.length > ne && (g.events = g.events.slice(-100));
546
+ }), typeof window < "u" && (window.__EMAILMAKER_DEVTOOLS__ = ie());
542
547
  }
543
- function ne() {
548
+ function ie() {
544
549
  return {
545
550
  enabled: !0,
546
551
  plugins() {
@@ -574,8 +579,8 @@ __useblocks__.define("core", [
574
579
  }
575
580
  };
576
581
  }
577
- var se = h.combineMixins([Q]);
578
- async function ie(e) {
582
+ var re = h.combineMixins([ee]);
583
+ async function oe(e) {
579
584
  c.throwIfAborted(e.signal);
580
585
  const t = new n.Disposable();
581
586
  async function r() {
@@ -585,19 +590,20 @@ __useblocks__.define("core", [
585
590
  const a = n.getEvent$1(s, n.events.FILE_PROXY_EVENT_ID);
586
591
  t.addDisposable(a(async ({ url: d }) => (await fetch(d)).blob(), Number.MIN_VALUE));
587
592
  }
588
- s.inject(n.DISPOSABLE_ID, t), s.inject(n.COOKIE_MANAGER_ID, new Z()), n.registerRestClient(s);
589
- const i = se(s), o = {
593
+ s.inject(n.DISPOSABLE_ID, t), s.inject(n.COOKIE_MANAGER_ID, new te()), n.registerRestClient(s);
594
+ const i = re(s), o = {
590
595
  ...i.instance,
591
596
  container: s,
592
597
  async reset(a) {
593
- return c.throwIfAborted(a.signal), await i.setOptions(a), o;
598
+ if (c.throwIfAborted(a.signal), t.isDisposed()) throw O();
599
+ return await i.setOptions(a), o;
594
600
  }
595
601
  };
596
602
  s.inject(n.INSTANCE_ID, o);
597
603
  try {
598
604
  if (await i.setOptions(e), c.throwIfAborted(e.signal), e.devTools) try {
599
605
  const a = s.getInstance(n.PLUGIN_COLLECTION_ID);
600
- a && te(s, a);
606
+ a && se(s, a);
601
607
  } catch {}
602
608
  return c.throwIfAborted(e.signal), n.getEmitter$1(s, n.APP_LOAD_EVENT_ID).fire(o), o;
603
609
  } catch (a) {
@@ -610,7 +616,7 @@ __useblocks__.define("core", [
610
616
  throw t.isDisposed() || t.dispose(), s;
611
617
  }
612
618
  }
613
- async function re(e) {
619
+ async function ae(e) {
614
620
  const t = new Map();
615
621
  typeof e == "object" && (e = e.code);
616
622
  const r = await c.changeHtml(e, async (i) => {
@@ -633,5 +639,5 @@ __useblocks__.define("core", [
633
639
  ampHtml: r
634
640
  };
635
641
  }
636
- b.init = ie, b.parseAMP = re, b.version = "1.1.45";
642
+ E.init = oe, E.parseAMP = ae, E.version = "1.1.49";
637
643
  });