@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,397 @@
1
+ var y = {}, $;
2
+ function T() {
3
+ if ($) return y;
4
+ $ = 1;
5
+ var c = y && y.__values || function(e) {
6
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
7
+ if (r) return r.call(e);
8
+ if (e && typeof e.length == "number") return {
9
+ next: function() {
10
+ return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
11
+ }
12
+ };
13
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
14
+ }, m = y && y.__read || function(e, t) {
15
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
16
+ if (!r) return e;
17
+ var i = r.call(e), n, l = [], o;
18
+ try {
19
+ for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; ) l.push(n.value);
20
+ } catch (s) {
21
+ o = { error: s };
22
+ } finally {
23
+ try {
24
+ n && !n.done && (r = i.return) && r.call(i);
25
+ } finally {
26
+ if (o) throw o.error;
27
+ }
28
+ }
29
+ return l;
30
+ }, O = y && y.__spreadArray || function(e, t, r) {
31
+ if (r || arguments.length === 2) for (var i = 0, n = t.length, l; i < n; i++)
32
+ (l || !(i in t)) && (l || (l = Array.prototype.slice.call(t, 0, i)), l[i] = t[i]);
33
+ return e.concat(l || Array.prototype.slice.call(t));
34
+ };
35
+ Object.defineProperty(y, "__esModule", { value: !0 }), y.Styles = void 0;
36
+ var p = ["top", "right", "bottom", "left"], g = ["width", "style", "color"];
37
+ function S(e) {
38
+ for (var t = e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g), r = []; t.length > 1; )
39
+ t.shift(), r.push(t.shift());
40
+ return r;
41
+ }
42
+ function x(e) {
43
+ var t, r, i = S(this.styles[e]);
44
+ i.length === 0 && i.push(""), i.length === 1 && i.push(i[0]), i.length === 2 && i.push(i[0]), i.length === 3 && i.push(i[1]);
45
+ try {
46
+ for (var n = c(d.connect[e].children), l = n.next(); !l.done; l = n.next()) {
47
+ var o = l.value;
48
+ this.setStyle(this.childName(e, o), i.shift());
49
+ }
50
+ } catch (s) {
51
+ t = { error: s };
52
+ } finally {
53
+ try {
54
+ l && !l.done && (r = n.return) && r.call(n);
55
+ } finally {
56
+ if (t) throw t.error;
57
+ }
58
+ }
59
+ }
60
+ function C(e) {
61
+ var t, r, i = d.connect[e].children, n = [];
62
+ try {
63
+ for (var l = c(i), o = l.next(); !o.done; o = l.next()) {
64
+ var s = o.value, a = this.styles[e + "-" + s];
65
+ if (!a) {
66
+ delete this.styles[e];
67
+ return;
68
+ }
69
+ n.push(a);
70
+ }
71
+ } catch (h) {
72
+ t = { error: h };
73
+ } finally {
74
+ try {
75
+ o && !o.done && (r = l.return) && r.call(l);
76
+ } finally {
77
+ if (t) throw t.error;
78
+ }
79
+ }
80
+ n[3] === n[1] && (n.pop(), n[2] === n[0] && (n.pop(), n[1] === n[0] && n.pop())), this.styles[e] = n.join(" ");
81
+ }
82
+ function E(e) {
83
+ var t, r;
84
+ try {
85
+ for (var i = c(d.connect[e].children), n = i.next(); !n.done; n = i.next()) {
86
+ var l = n.value;
87
+ this.setStyle(this.childName(e, l), this.styles[e]);
88
+ }
89
+ } catch (o) {
90
+ t = { error: o };
91
+ } finally {
92
+ try {
93
+ n && !n.done && (r = i.return) && r.call(i);
94
+ } finally {
95
+ if (t) throw t.error;
96
+ }
97
+ }
98
+ }
99
+ function k(e) {
100
+ var t, r, i = O([], m(d.connect[e].children), !1), n = this.styles[this.childName(e, i.shift())];
101
+ try {
102
+ for (var l = c(i), o = l.next(); !o.done; o = l.next()) {
103
+ var s = o.value;
104
+ if (this.styles[this.childName(e, s)] !== n) {
105
+ delete this.styles[e];
106
+ return;
107
+ }
108
+ }
109
+ } catch (a) {
110
+ t = { error: a };
111
+ } finally {
112
+ try {
113
+ o && !o.done && (r = l.return) && r.call(l);
114
+ } finally {
115
+ if (t) throw t.error;
116
+ }
117
+ }
118
+ this.styles[e] = n;
119
+ }
120
+ var j = {
121
+ width: /^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,
122
+ style: /^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/
123
+ };
124
+ function w(e) {
125
+ var t, r, i, n, l = { width: "", style: "", color: "" };
126
+ try {
127
+ for (var o = c(S(this.styles[e])), s = o.next(); !s.done; s = o.next()) {
128
+ var a = s.value;
129
+ a.match(j.width) && l.width === "" ? l.width = a : a.match(j.style) && l.style === "" ? l.style = a : l.color = a;
130
+ }
131
+ } catch (f) {
132
+ t = { error: f };
133
+ } finally {
134
+ try {
135
+ s && !s.done && (r = o.return) && r.call(o);
136
+ } finally {
137
+ if (t) throw t.error;
138
+ }
139
+ }
140
+ try {
141
+ for (var h = c(d.connect[e].children), u = h.next(); !u.done; u = h.next()) {
142
+ var v = u.value;
143
+ this.setStyle(this.childName(e, v), l[v]);
144
+ }
145
+ } catch (f) {
146
+ i = { error: f };
147
+ } finally {
148
+ try {
149
+ u && !u.done && (n = h.return) && n.call(h);
150
+ } finally {
151
+ if (i) throw i.error;
152
+ }
153
+ }
154
+ }
155
+ function b(e) {
156
+ var t, r, i = [];
157
+ try {
158
+ for (var n = c(d.connect[e].children), l = n.next(); !l.done; l = n.next()) {
159
+ var o = l.value, s = this.styles[this.childName(e, o)];
160
+ s && i.push(s);
161
+ }
162
+ } catch (a) {
163
+ t = { error: a };
164
+ } finally {
165
+ try {
166
+ l && !l.done && (r = n.return) && r.call(n);
167
+ } finally {
168
+ if (t) throw t.error;
169
+ }
170
+ }
171
+ i.length ? this.styles[e] = i.join(" ") : delete this.styles[e];
172
+ }
173
+ var z = {
174
+ style: /^(?:normal|italic|oblique|inherit|initial|unset)$/,
175
+ variant: new RegExp("^(?:" + [
176
+ "normal|none",
177
+ "inherit|initial|unset",
178
+ "common-ligatures|no-common-ligatures",
179
+ "discretionary-ligatures|no-discretionary-ligatures",
180
+ "historical-ligatures|no-historical-ligatures",
181
+ "contextual|no-contextual",
182
+ "(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)",
183
+ "small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps",
184
+ "lining-nums|oldstyle-nums|proportional-nums|tabular-nums",
185
+ "diagonal-fractions|stacked-fractions",
186
+ "ordinal|slashed-zero",
187
+ "jis78|jis83|jis90|jis04|simplified|traditional",
188
+ "full-width|proportional-width",
189
+ "ruby"
190
+ ].join("|") + ")$"),
191
+ weight: /^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,
192
+ stretch: new RegExp("^(?:" + [
193
+ "normal",
194
+ "(?:(?:ultra|extra|semi)-)?condensed",
195
+ "(?:(?:semi|extra|ulta)-)?expanded",
196
+ "inherit|initial|unset"
197
+ ].join("|") + ")$"),
198
+ size: new RegExp("^(?:" + [
199
+ "xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller",
200
+ "[d.]+%|[d.]+[a-z]+",
201
+ "inherit|initial|unset"
202
+ ].join("|") + ")(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")
203
+ };
204
+ function P(e) {
205
+ var t, r, i, n, l = S(this.styles[e]), o = {
206
+ style: "",
207
+ variant: [],
208
+ weight: "",
209
+ stretch: "",
210
+ size: "",
211
+ family: "",
212
+ "line-height": ""
213
+ };
214
+ try {
215
+ for (var s = c(l), a = s.next(); !a.done; a = s.next()) {
216
+ var h = a.value;
217
+ o.family = h;
218
+ try {
219
+ for (var u = (i = void 0, c(Object.keys(z))), v = u.next(); !v.done; v = u.next()) {
220
+ var f = v.value;
221
+ if ((Array.isArray(o[f]) || o[f] === "") && h.match(z[f]))
222
+ if (f === "size") {
223
+ var A = m(h.split(/\//), 2), L = A[0], R = A[1];
224
+ o[f] = L, R && (o["line-height"] = R);
225
+ } else o.size === "" && (Array.isArray(o[f]) ? o[f].push(h) : o[f] = h);
226
+ }
227
+ } catch (N) {
228
+ i = { error: N };
229
+ } finally {
230
+ try {
231
+ v && !v.done && (n = u.return) && n.call(u);
232
+ } finally {
233
+ if (i) throw i.error;
234
+ }
235
+ }
236
+ }
237
+ } catch (N) {
238
+ t = { error: N };
239
+ } finally {
240
+ try {
241
+ a && !a.done && (r = s.return) && r.call(s);
242
+ } finally {
243
+ if (t) throw t.error;
244
+ }
245
+ }
246
+ B(e, o), delete this.styles[e];
247
+ }
248
+ function B(e, t) {
249
+ var r, i;
250
+ try {
251
+ for (var n = c(d.connect[e].children), l = n.next(); !l.done; l = n.next()) {
252
+ var o = l.value, s = this.childName(e, o);
253
+ if (Array.isArray(t[o])) {
254
+ var a = t[o];
255
+ a.length && (this.styles[s] = a.join(" "));
256
+ } else t[o] !== "" && (this.styles[s] = t[o]);
257
+ }
258
+ } catch (h) {
259
+ r = { error: h };
260
+ } finally {
261
+ try {
262
+ l && !l.done && (i = n.return) && i.call(n);
263
+ } finally {
264
+ if (r) throw r.error;
265
+ }
266
+ }
267
+ }
268
+ function F(e) {
269
+ }
270
+ var d = (function() {
271
+ function e(t) {
272
+ t === void 0 && (t = ""), this.parse(t);
273
+ }
274
+ return Object.defineProperty(e.prototype, "cssText", {
275
+ get: function() {
276
+ var t, r, i = [];
277
+ try {
278
+ for (var n = c(Object.keys(this.styles)), l = n.next(); !l.done; l = n.next()) {
279
+ var o = l.value, s = this.parentName(o);
280
+ this.styles[s] || i.push(o + ": " + this.styles[o] + ";");
281
+ }
282
+ } catch (a) {
283
+ t = { error: a };
284
+ } finally {
285
+ try {
286
+ l && !l.done && (r = n.return) && r.call(n);
287
+ } finally {
288
+ if (t) throw t.error;
289
+ }
290
+ }
291
+ return i.join(" ");
292
+ },
293
+ enumerable: !1,
294
+ configurable: !0
295
+ }), e.prototype.set = function(t, r) {
296
+ for (t = this.normalizeName(t), this.setStyle(t, r), e.connect[t] && !e.connect[t].combine && (this.combineChildren(t), delete this.styles[t]); t.match(/-/) && (t = this.parentName(t), !!e.connect[t]); )
297
+ e.connect[t].combine.call(this, t);
298
+ }, e.prototype.get = function(t) {
299
+ return t = this.normalizeName(t), this.styles.hasOwnProperty(t) ? this.styles[t] : "";
300
+ }, e.prototype.setStyle = function(t, r) {
301
+ this.styles[t] = r, e.connect[t] && e.connect[t].children && e.connect[t].split.call(this, t), r === "" && delete this.styles[t];
302
+ }, e.prototype.combineChildren = function(t) {
303
+ var r, i, n = this.parentName(t);
304
+ try {
305
+ for (var l = c(e.connect[t].children), o = l.next(); !o.done; o = l.next()) {
306
+ var s = o.value, a = this.childName(n, s);
307
+ e.connect[a].combine.call(this, a);
308
+ }
309
+ } catch (h) {
310
+ r = { error: h };
311
+ } finally {
312
+ try {
313
+ o && !o.done && (i = l.return) && i.call(l);
314
+ } finally {
315
+ if (r) throw r.error;
316
+ }
317
+ }
318
+ }, e.prototype.parentName = function(t) {
319
+ var r = t.replace(/-[^-]*$/, "");
320
+ return t === r ? "" : r;
321
+ }, e.prototype.childName = function(t, r) {
322
+ return r.match(/-/) ? r : (e.connect[t] && !e.connect[t].combine && (r += t.replace(/.*-/, "-"), t = this.parentName(t)), t + "-" + r);
323
+ }, e.prototype.normalizeName = function(t) {
324
+ return t.replace(/[A-Z]/g, function(r) {
325
+ return "-" + r.toLowerCase();
326
+ });
327
+ }, e.prototype.parse = function(t) {
328
+ t === void 0 && (t = "");
329
+ var r = this.constructor.pattern;
330
+ this.styles = {};
331
+ for (var i = t.replace(r.comment, "").split(r.style); i.length > 1; ) {
332
+ var n = m(i.splice(0, 3), 3), l = n[0], o = n[1], s = n[2];
333
+ if (l.match(/[^\s\n]/))
334
+ return;
335
+ this.set(o, s);
336
+ }
337
+ }, e.pattern = {
338
+ style: /([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,
339
+ comment: /\/\*[^]*?\*\//g
340
+ }, e.connect = {
341
+ padding: {
342
+ children: p,
343
+ split: x,
344
+ combine: C
345
+ },
346
+ border: {
347
+ children: p,
348
+ split: E,
349
+ combine: k
350
+ },
351
+ "border-top": {
352
+ children: g,
353
+ split: w,
354
+ combine: b
355
+ },
356
+ "border-right": {
357
+ children: g,
358
+ split: w,
359
+ combine: b
360
+ },
361
+ "border-bottom": {
362
+ children: g,
363
+ split: w,
364
+ combine: b
365
+ },
366
+ "border-left": {
367
+ children: g,
368
+ split: w,
369
+ combine: b
370
+ },
371
+ "border-width": {
372
+ children: p,
373
+ split: x,
374
+ combine: null
375
+ },
376
+ "border-style": {
377
+ children: p,
378
+ split: x,
379
+ combine: null
380
+ },
381
+ "border-color": {
382
+ children: p,
383
+ split: x,
384
+ combine: null
385
+ },
386
+ font: {
387
+ children: ["style", "variant", "weight", "stretch", "line-height", "size", "family"],
388
+ split: P,
389
+ combine: F
390
+ }
391
+ }, e;
392
+ })();
393
+ return y.Styles = d, y;
394
+ }
395
+ export {
396
+ T as r
397
+ };