@algorisys/yappydraw 0.8.253

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 (43) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +45 -0
  3. package/chunks/AllPackages-DNX4gUvL.js +6879 -0
  4. package/chunks/BaseConfiguration-iE_YypNt.js +4401 -0
  5. package/chunks/Entities-XwxJEcR3.js +467 -0
  6. package/chunks/Factory--zguTNZ7.js +2768 -0
  7. package/chunks/InputJax-BYq2tqUz.js +42 -0
  8. package/chunks/MathItem-DD5NNBjZ.js +76 -0
  9. package/chunks/Options-BStFr0zv.js +199 -0
  10. package/chunks/PrioritizedList-TjDg4i-s.js +39 -0
  11. package/chunks/Styles-DdTYCumM.js +397 -0
  12. package/chunks/TeXAtom-Bp5xoo7F.js +2175 -0
  13. package/chunks/ai-providers-CycU8sO1.js +229 -0
  14. package/chunks/canva-ai-BREIRXSl.js +285 -0
  15. package/chunks/design-generator-C89SKTqv.js +149 -0
  16. package/chunks/drawing-engine-DLFI-cNg.js +903 -0
  17. package/chunks/drawings-store-C-PoHakg.js +109 -0
  18. package/chunks/ds-operations-D5B9Z5vO.js +253 -0
  19. package/chunks/export-game-DOlM1w0F.js +104 -0
  20. package/chunks/game-runtime-Hn9umSvi.js +346 -0
  21. package/chunks/gifenc.esm-48qFK9lH.js +278 -0
  22. package/chunks/html-DxnOvKy4.js +1694 -0
  23. package/chunks/image-utils-CJQBaGoQ.js +37 -0
  24. package/chunks/index-Bm3Inzn8.js +62744 -0
  25. package/chunks/lengths-DNFHULBn.js +70 -0
  26. package/chunks/liteAdaptor-BZby1Qz2.js +919 -0
  27. package/chunks/lucide-solid-D_6t_rbY.js +35452 -0
  28. package/chunks/markdown-to-slides-_1GIcD8M.js +96 -0
  29. package/chunks/mathjax-CnUrFnFS.js +117 -0
  30. package/chunks/mathjax-D6cR72fZ.js +26 -0
  31. package/chunks/morph-animator-7qX2s9j_.js +25 -0
  32. package/chunks/onboarding-tour-CthiVc3W.js +192 -0
  33. package/chunks/rocket-settings-CU8w9S9I.js +100 -0
  34. package/chunks/search-CnWoMV6A.js +384 -0
  35. package/chunks/slide-generator-BG0Oacui.js +553 -0
  36. package/chunks/svg-BvVc02XL.js +12498 -0
  37. package/chunks/tex-Cfi4Kfun.js +442 -0
  38. package/chunks/tinyfly-engine-Wfa50sVI.js +1804 -0
  39. package/chunks/turntable-ai-Bfq-oSsD.js +120 -0
  40. package/chunks/yappy-NspTXSPk.css +1 -0
  41. package/package.json +21 -0
  42. package/yappy.d.ts +34 -0
  43. package/yappy.js +9 -0
@@ -0,0 +1,442 @@
1
+ import { g as $ } from "./PrioritizedList-TjDg4i-s.js";
2
+ import { r as k } from "./InputJax-BYq2tqUz.js";
3
+ import { r as m } from "./Options-BStFr0zv.js";
4
+ import { r as D, a as J } from "./Factory--zguTNZ7.js";
5
+ import { r as U } from "./MathItem-DD5NNBjZ.js";
6
+ import { r as L, a as z, b as B, c as Z, d as G, e as H, f as K } from "./BaseConfiguration-iE_YypNt.js";
7
+ function Q(x, b) {
8
+ for (var F = 0; F < b.length; F++) {
9
+ const p = b[F];
10
+ if (typeof p != "string" && !Array.isArray(p)) {
11
+ for (const O in p)
12
+ if (O !== "default" && !(O in x)) {
13
+ const v = Object.getOwnPropertyDescriptor(p, O);
14
+ v && Object.defineProperty(x, O, v.get ? v : {
15
+ enumerable: !0,
16
+ get: () => p[O]
17
+ });
18
+ }
19
+ }
20
+ }
21
+ return Object.freeze(Object.defineProperty(x, Symbol.toStringTag, { value: "Module" }));
22
+ }
23
+ var T = {}, j = {}, w = {}, q;
24
+ function V() {
25
+ if (q) return w;
26
+ q = 1, Object.defineProperty(w, "__esModule", { value: !0 }), w.AbstractFindMath = void 0;
27
+ var x = m(), b = (function() {
28
+ function F(p) {
29
+ var O = this.constructor;
30
+ this.options = (0, x.userOptions)((0, x.defaultOptions)({}, O.OPTIONS), p);
31
+ }
32
+ return F.OPTIONS = {}, F;
33
+ })();
34
+ return w.AbstractFindMath = b, w;
35
+ }
36
+ var N;
37
+ function W() {
38
+ if (N) return j;
39
+ N = 1;
40
+ var x = j && j.__extends || /* @__PURE__ */ (function() {
41
+ var g = function(h, f) {
42
+ return g = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, n) {
43
+ l.__proto__ = n;
44
+ } || function(l, n) {
45
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (l[a] = n[a]);
46
+ }, g(h, f);
47
+ };
48
+ return function(h, f) {
49
+ if (typeof f != "function" && f !== null)
50
+ throw new TypeError("Class extends value " + String(f) + " is not a constructor or null");
51
+ g(h, f);
52
+ function l() {
53
+ this.constructor = h;
54
+ }
55
+ h.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
56
+ };
57
+ })(), b = j && j.__read || function(g, h) {
58
+ var f = typeof Symbol == "function" && g[Symbol.iterator];
59
+ if (!f) return g;
60
+ var l = f.call(g), n, a = [], i;
61
+ try {
62
+ for (; (h === void 0 || h-- > 0) && !(n = l.next()).done; ) a.push(n.value);
63
+ } catch (c) {
64
+ i = { error: c };
65
+ } finally {
66
+ try {
67
+ n && !n.done && (f = l.return) && f.call(l);
68
+ } finally {
69
+ if (i) throw i.error;
70
+ }
71
+ }
72
+ return a;
73
+ };
74
+ Object.defineProperty(j, "__esModule", { value: !0 }), j.FindTeX = void 0;
75
+ var F = V(), p = D(), O = U(), v = (function(g) {
76
+ x(h, g);
77
+ function h(f) {
78
+ var l = g.call(this, f) || this;
79
+ return l.getPatterns(), l;
80
+ }
81
+ return h.prototype.getPatterns = function() {
82
+ var f = this, l = this.options, n = [], a = [], i = [];
83
+ this.end = {}, this.env = this.sub = 0;
84
+ var c = 1;
85
+ l.inlineMath.forEach(function(d) {
86
+ return f.addPattern(n, d, !1);
87
+ }), l.displayMath.forEach(function(d) {
88
+ return f.addPattern(n, d, !0);
89
+ }), n.length && a.push(n.sort(p.sortLength).join("|")), l.processEnvironments && (a.push("\\\\begin\\s*\\{([^}]*)\\}"), this.env = c, c++), l.processEscapes && i.push("\\\\([\\\\$])"), l.processRefs && i.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"), i.length && (a.push("(" + i.join("|") + ")"), this.sub = c), this.start = new RegExp(a.join("|"), "g"), this.hasPatterns = a.length > 0;
90
+ }, h.prototype.addPattern = function(f, l, n) {
91
+ var a = b(l, 2), i = a[0], c = a[1];
92
+ f.push((0, p.quotePattern)(i)), this.end[i] = [c, n, this.endPattern(c)];
93
+ }, h.prototype.endPattern = function(f, l) {
94
+ return new RegExp((l || (0, p.quotePattern)(f)) + "|\\\\(?:[a-zA-Z]|.)|[{}]", "g");
95
+ }, h.prototype.findEnd = function(f, l, n, a) {
96
+ for (var i = b(a, 3), c = i[0], d = i[1], u = i[2], r = u.lastIndex = n.index + n[0].length, e, t = 0; e = u.exec(f); ) {
97
+ if ((e[1] || e[0]) === c && t === 0)
98
+ return (0, O.protoItem)(n[0], f.substr(r, e.index - r), e[0], l, n.index, e.index + e[0].length, d);
99
+ e[0] === "{" ? t++ : e[0] === "}" && t && t--;
100
+ }
101
+ return null;
102
+ }, h.prototype.findMathInString = function(f, l, n) {
103
+ var a, i;
104
+ for (this.start.lastIndex = 0; a = this.start.exec(n); ) {
105
+ if (a[this.env] !== void 0 && this.env) {
106
+ var c = "\\\\end\\s*(\\{" + (0, p.quotePattern)(a[this.env]) + "\\})";
107
+ i = this.findEnd(n, l, a, ["{" + a[this.env] + "}", !0, this.endPattern(null, c)]), i && (i.math = i.open + i.math + i.close, i.open = i.close = "");
108
+ } else if (a[this.sub] !== void 0 && this.sub) {
109
+ var d = a[this.sub], c = a.index + a[this.sub].length;
110
+ d.length === 2 ? i = (0, O.protoItem)("", d.substr(1), "", l, a.index, c) : i = (0, O.protoItem)("", d, "", l, a.index, c, !1);
111
+ } else
112
+ i = this.findEnd(n, l, a, this.end[a[0]]);
113
+ i && (f.push(i), this.start.lastIndex = i.end.n);
114
+ }
115
+ }, h.prototype.findMath = function(f) {
116
+ var l = [];
117
+ if (this.hasPatterns)
118
+ for (var n = 0, a = f.length; n < a; n++)
119
+ this.findMathInString(l, n, f[n]);
120
+ return l;
121
+ }, h.OPTIONS = {
122
+ inlineMath: [
123
+ ["\\(", "\\)"]
124
+ ],
125
+ displayMath: [
126
+ ["$$", "$$"],
127
+ ["\\[", "\\]"]
128
+ ],
129
+ processEscapes: !0,
130
+ processEnvironments: !0,
131
+ processRefs: !0
132
+ }, h;
133
+ })(F.AbstractFindMath);
134
+ return j.FindTeX = v, j;
135
+ }
136
+ var M = {}, X;
137
+ function Y() {
138
+ if (X) return M;
139
+ X = 1;
140
+ var x = M && M.__values || function(v) {
141
+ var g = typeof Symbol == "function" && Symbol.iterator, h = g && v[g], f = 0;
142
+ if (h) return h.call(v);
143
+ if (v && typeof v.length == "number") return {
144
+ next: function() {
145
+ return v && f >= v.length && (v = void 0), { value: v && v[f++], done: !v };
146
+ }
147
+ };
148
+ throw new TypeError(g ? "Object is not iterable." : "Symbol.iterator is not defined.");
149
+ }, b = M && M.__importDefault || function(v) {
150
+ return v && v.__esModule ? v : { default: v };
151
+ };
152
+ Object.defineProperty(M, "__esModule", { value: !0 });
153
+ var F = J(), p = b(L()), O;
154
+ return (function(v) {
155
+ v.cleanStretchy = function(n) {
156
+ var a, i, c = n.data;
157
+ try {
158
+ for (var d = x(c.getList("fixStretchy")), u = d.next(); !u.done; u = d.next()) {
159
+ var r = u.value;
160
+ if (p.default.getProperty(r, "fixStretchy")) {
161
+ var e = p.default.getForm(r);
162
+ e && e[3] && e[3].stretchy && p.default.setAttribute(r, "stretchy", !1);
163
+ var t = r.parent;
164
+ if (!p.default.getTexClass(r) && (!e || !e[2])) {
165
+ var o = c.nodeFactory.create("node", "TeXAtom", [r]);
166
+ t.replaceChild(o, r), o.inheritAttributesFrom(r);
167
+ }
168
+ p.default.removeProperties(r, "fixStretchy");
169
+ }
170
+ }
171
+ } catch (s) {
172
+ a = { error: s };
173
+ } finally {
174
+ try {
175
+ u && !u.done && (i = d.return) && i.call(d);
176
+ } finally {
177
+ if (a) throw a.error;
178
+ }
179
+ }
180
+ }, v.cleanAttributes = function(n) {
181
+ var a = n.data.root;
182
+ a.walkTree(function(i, c) {
183
+ var d, u, r = i.attributes;
184
+ if (r) {
185
+ var e = new Set((r.get("mjx-keep-attrs") || "").split(/ /));
186
+ delete r.getAllAttributes()["mjx-keep-attrs"];
187
+ try {
188
+ for (var t = x(r.getExplicitNames()), o = t.next(); !o.done; o = t.next()) {
189
+ var s = o.value;
190
+ !e.has(s) && r.attributes[s] === i.attributes.getInherited(s) && delete r.attributes[s];
191
+ }
192
+ } catch (y) {
193
+ d = { error: y };
194
+ } finally {
195
+ try {
196
+ o && !o.done && (u = t.return) && u.call(t);
197
+ } finally {
198
+ if (d) throw d.error;
199
+ }
200
+ }
201
+ }
202
+ }, {});
203
+ }, v.combineRelations = function(n) {
204
+ var a, i, c, d, u = [];
205
+ try {
206
+ for (var r = x(n.data.getList("mo")), e = r.next(); !e.done; e = r.next()) {
207
+ var t = e.value;
208
+ if (!(t.getProperty("relationsCombined") || !t.parent || t.parent && !p.default.isType(t.parent, "mrow") || p.default.getTexClass(t) !== F.TEXCLASS.REL)) {
209
+ for (var o = t.parent, s = void 0, y = o.childNodes, _ = y.indexOf(t) + 1, S = p.default.getProperty(t, "variantForm"); _ < y.length && (s = y[_]) && p.default.isType(s, "mo") && p.default.getTexClass(s) === F.TEXCLASS.REL; )
210
+ if (S === p.default.getProperty(s, "variantForm") && h(t, s)) {
211
+ p.default.appendChildren(t, p.default.getChildren(s)), g(["stretchy", "rspace"], t, s);
212
+ try {
213
+ for (var E = (c = void 0, x(s.getPropertyNames())), P = E.next(); !P.done; P = E.next()) {
214
+ var I = P.value;
215
+ t.setProperty(I, s.getProperty(I));
216
+ }
217
+ } catch (A) {
218
+ c = { error: A };
219
+ } finally {
220
+ try {
221
+ P && !P.done && (d = E.return) && d.call(E);
222
+ } finally {
223
+ if (c) throw c.error;
224
+ }
225
+ }
226
+ y.splice(_, 1), u.push(s), s.parent = null, s.setProperty("relationsCombined", !0);
227
+ } else {
228
+ t.attributes.getExplicit("rspace") == null && p.default.setAttribute(t, "rspace", "0pt"), s.attributes.getExplicit("lspace") == null && p.default.setAttribute(s, "lspace", "0pt");
229
+ break;
230
+ }
231
+ t.attributes.setInherited("form", t.getForms()[0]);
232
+ }
233
+ }
234
+ } catch (A) {
235
+ a = { error: A };
236
+ } finally {
237
+ try {
238
+ e && !e.done && (i = r.return) && i.call(r);
239
+ } finally {
240
+ if (a) throw a.error;
241
+ }
242
+ }
243
+ n.data.removeFromList("mo", u);
244
+ };
245
+ var g = function(n, a, i) {
246
+ var c = a.attributes, d = i.attributes;
247
+ n.forEach(function(u) {
248
+ var r = d.getExplicit(u);
249
+ r != null && c.set(u, r);
250
+ });
251
+ }, h = function(n, a) {
252
+ var i, c, d = function(_, S) {
253
+ var E = _.getExplicitNames();
254
+ return E.filter(function(P) {
255
+ return P !== S && (P !== "stretchy" || _.getExplicit("stretchy"));
256
+ });
257
+ }, u = n.attributes, r = a.attributes, e = d(u, "lspace"), t = d(r, "rspace");
258
+ if (e.length !== t.length)
259
+ return !1;
260
+ try {
261
+ for (var o = x(e), s = o.next(); !s.done; s = o.next()) {
262
+ var y = s.value;
263
+ if (u.getExplicit(y) !== r.getExplicit(y))
264
+ return !1;
265
+ }
266
+ } catch (_) {
267
+ i = { error: _ };
268
+ } finally {
269
+ try {
270
+ s && !s.done && (c = o.return) && c.call(o);
271
+ } finally {
272
+ if (i) throw i.error;
273
+ }
274
+ }
275
+ return !0;
276
+ }, f = function(n, a, i) {
277
+ var c, d, u = [];
278
+ try {
279
+ for (var r = x(n.getList("m" + a + i)), e = r.next(); !e.done; e = r.next()) {
280
+ var t = e.value, o = t.childNodes;
281
+ if (!(o[t[a]] && o[t[i]])) {
282
+ var s = t.parent, y = o[t[a]] ? n.nodeFactory.create("node", "m" + a, [o[t.base], o[t[a]]]) : n.nodeFactory.create("node", "m" + i, [o[t.base], o[t[i]]]);
283
+ p.default.copyAttributes(t, y), s ? s.replaceChild(y, t) : n.root = y, u.push(t);
284
+ }
285
+ }
286
+ } catch (_) {
287
+ c = { error: _ };
288
+ } finally {
289
+ try {
290
+ e && !e.done && (d = r.return) && d.call(r);
291
+ } finally {
292
+ if (c) throw c.error;
293
+ }
294
+ }
295
+ n.removeFromList("m" + a + i, u);
296
+ };
297
+ v.cleanSubSup = function(n) {
298
+ var a = n.data;
299
+ a.error || (f(a, "sub", "sup"), f(a, "under", "over"));
300
+ };
301
+ var l = function(n, a, i) {
302
+ var c, d, u = [];
303
+ try {
304
+ for (var r = x(n.getList(a)), e = r.next(); !e.done; e = r.next()) {
305
+ var t = e.value;
306
+ if (!t.attributes.get("displaystyle")) {
307
+ var o = t.childNodes[t.base], s = o.coreMO();
308
+ if (o.getProperty("movablelimits") && !s.attributes.getExplicit("movablelimits")) {
309
+ var y = n.nodeFactory.create("node", i, t.childNodes);
310
+ p.default.copyAttributes(t, y), t.parent ? t.parent.replaceChild(y, t) : n.root = y, u.push(t);
311
+ }
312
+ }
313
+ }
314
+ } catch (_) {
315
+ c = { error: _ };
316
+ } finally {
317
+ try {
318
+ e && !e.done && (d = r.return) && d.call(r);
319
+ } finally {
320
+ if (c) throw c.error;
321
+ }
322
+ }
323
+ n.removeFromList(a, u);
324
+ };
325
+ v.moveLimits = function(n) {
326
+ var a = n.data;
327
+ l(a, "munderover", "msubsup"), l(a, "munder", "msub"), l(a, "mover", "msup");
328
+ }, v.setInherited = function(n) {
329
+ n.data.root.setInheritedAttributes({}, n.math.display, 0, !1);
330
+ };
331
+ })(O || (O = {})), M.default = O, M;
332
+ }
333
+ var C;
334
+ function tt() {
335
+ if (C) return T;
336
+ C = 1;
337
+ var x = T && T.__extends || /* @__PURE__ */ (function() {
338
+ var u = function(r, e) {
339
+ return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, o) {
340
+ t.__proto__ = o;
341
+ } || function(t, o) {
342
+ for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
343
+ }, u(r, e);
344
+ };
345
+ return function(r, e) {
346
+ if (typeof e != "function" && e !== null)
347
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
348
+ u(r, e);
349
+ function t() {
350
+ this.constructor = r;
351
+ }
352
+ r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
353
+ };
354
+ })(), b = T && T.__assign || function() {
355
+ return b = Object.assign || function(u) {
356
+ for (var r, e = 1, t = arguments.length; e < t; e++) {
357
+ r = arguments[e];
358
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (u[o] = r[o]);
359
+ }
360
+ return u;
361
+ }, b.apply(this, arguments);
362
+ }, F = T && T.__read || function(u, r) {
363
+ var e = typeof Symbol == "function" && u[Symbol.iterator];
364
+ if (!e) return u;
365
+ var t = e.call(u), o, s = [], y;
366
+ try {
367
+ for (; (r === void 0 || r-- > 0) && !(o = t.next()).done; ) s.push(o.value);
368
+ } catch (_) {
369
+ y = { error: _ };
370
+ } finally {
371
+ try {
372
+ o && !o.done && (e = t.return) && e.call(t);
373
+ } finally {
374
+ if (y) throw y.error;
375
+ }
376
+ }
377
+ return s;
378
+ }, p = T && T.__importDefault || function(u) {
379
+ return u && u.__esModule ? u : { default: u };
380
+ };
381
+ Object.defineProperty(T, "__esModule", { value: !0 }), T.TeX = void 0;
382
+ var O = k(), v = m(), g = W(), h = p(Y()), f = p(L()), l = p(z()), n = p(B()), a = p(Z()), i = G(), c = H();
383
+ K();
384
+ var d = (function(u) {
385
+ x(r, u);
386
+ function r(e) {
387
+ e === void 0 && (e = {});
388
+ var t = this, o = F((0, v.separateOptions)(e, r.OPTIONS, g.FindTeX.OPTIONS), 3), s = o[0], y = o[1], _ = o[2];
389
+ t = u.call(this, y) || this, t.findTeX = t.options.FindTeX || new g.FindTeX(_);
390
+ var S = t.options.packages, E = t.configuration = r.configure(S), P = t._parseOptions = new a.default(E, [t.options, i.TagsFactory.OPTIONS]);
391
+ return (0, v.userOptions)(P.options, s), E.config(t), r.tags(P, E), t.postFilters.add(h.default.cleanSubSup, -6), t.postFilters.add(h.default.setInherited, -5), t.postFilters.add(h.default.moveLimits, -4), t.postFilters.add(h.default.cleanStretchy, -3), t.postFilters.add(h.default.cleanAttributes, -2), t.postFilters.add(h.default.combineRelations, -1), t;
392
+ }
393
+ return r.configure = function(e) {
394
+ var t = new c.ParserConfiguration(e, ["tex"]);
395
+ return t.init(), t;
396
+ }, r.tags = function(e, t) {
397
+ i.TagsFactory.addTags(t.tags), i.TagsFactory.setDefault(e.options.tags), e.tags = i.TagsFactory.getDefault(), e.tags.configuration = e;
398
+ }, r.prototype.setMmlFactory = function(e) {
399
+ u.prototype.setMmlFactory.call(this, e), this._parseOptions.nodeFactory.setMmlFactory(e);
400
+ }, Object.defineProperty(r.prototype, "parseOptions", {
401
+ get: function() {
402
+ return this._parseOptions;
403
+ },
404
+ enumerable: !1,
405
+ configurable: !0
406
+ }), r.prototype.reset = function(e) {
407
+ e === void 0 && (e = 0), this.parseOptions.tags.reset(e);
408
+ }, r.prototype.compile = function(e, t) {
409
+ this.parseOptions.clear(), this.executeFilters(this.preFilters, e, t, this.parseOptions);
410
+ var o = e.display;
411
+ this.latex = e.math;
412
+ var s;
413
+ this.parseOptions.tags.startEquation(e);
414
+ var y;
415
+ try {
416
+ var _ = new l.default(this.latex, { display: o, isInner: !1 }, this.parseOptions);
417
+ s = _.mml(), y = _.stack.global;
418
+ } catch (S) {
419
+ if (!(S instanceof n.default))
420
+ throw S;
421
+ this.parseOptions.error = !0, s = this.options.formatError(this, S);
422
+ }
423
+ return s = this.parseOptions.nodeFactory.create("node", "math", [s]), y?.indentalign && f.default.setAttribute(s, "indentalign", y.indentalign), o && f.default.setAttribute(s, "display", "block"), this.parseOptions.tags.finishEquation(e), this.parseOptions.root = s, this.executeFilters(this.postFilters, e, t, this.parseOptions), this.mathNode = this.parseOptions.root, this.mathNode;
424
+ }, r.prototype.findMath = function(e) {
425
+ return this.findTeX.findMath(e);
426
+ }, r.prototype.formatError = function(e) {
427
+ var t = e.message.replace(/\n.*/, "");
428
+ return this.parseOptions.nodeFactory.create("error", t, e.id, this.latex);
429
+ }, r.NAME = "TeX", r.OPTIONS = b(b({}, O.AbstractInputJax.OPTIONS), { FindTeX: null, packages: ["base"], digits: /^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/, maxBuffer: 5 * 1024, formatError: function(e, t) {
430
+ return e.formatError(t);
431
+ } }), r;
432
+ })(O.AbstractInputJax);
433
+ return T.TeX = d, T;
434
+ }
435
+ var R = tt();
436
+ const et = /* @__PURE__ */ $(R), ut = /* @__PURE__ */ Q({
437
+ __proto__: null,
438
+ default: et
439
+ }, [R]);
440
+ export {
441
+ ut as t
442
+ };