@algorisys/yappydraw 0.8.295 → 0.8.297

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 (26) hide show
  1. package/README.md +2 -2
  2. package/chunks/anim-map-D7T1mIAM.js +111 -0
  3. package/chunks/{canva-ai-kg789_jz.js → canva-ai-cwK_LwEk.js} +1 -1
  4. package/chunks/{choice-dialog-state-ByeMPVwB.js → choice-dialog-state-CF9ddIAk.js} +1 -1
  5. package/chunks/{custgeom-CEAI2znd.js → custgeom-N1NlyQKZ.js} +1 -1
  6. package/chunks/{design-generator-zF-F-iCB.js → design-generator-DSEgwQ7i.js} +1 -1
  7. package/chunks/{drawing-engine-U5zBcwtj.js → drawing-engine-CPFaJPyz.js} +1 -1
  8. package/chunks/{drawings-store-CZSZCNqP.js → drawings-store-CxGNbTN7.js} +1 -1
  9. package/chunks/{ds-operations-_c-HiYjk.js → ds-operations-BTcGLr6X.js} +1 -1
  10. package/chunks/{export-game-CgMvNkoa.js → export-game-BVjxTYD1.js} +1 -1
  11. package/chunks/{from-yappy-Dd2p9P6N.js → from-yappy-kTebD-0Y.js} +271 -239
  12. package/chunks/{game-runtime-CH3yVPDc.js → game-runtime-Ch0y0mLm.js} +27 -27
  13. package/chunks/{import-C3P7glRz.js → import-eCGTFoVi.js} +711 -623
  14. package/chunks/{index-B_V19zDs.js → index-zg1eC33A.js} +23253 -23073
  15. package/chunks/{lucide-solid-DfQVDBtM.js → lucide-solid-DAmszm-d.js} +1 -1
  16. package/chunks/{markdown-to-slides-B5OASdqg.js → markdown-to-slides-CGvmGrK2.js} +1 -1
  17. package/chunks/{morph-animator-b1aFWI5O.js → morph-animator-BQPPQ08b.js} +1 -1
  18. package/chunks/{onboarding-tour-j-RhQYNM.js → onboarding-tour-CpRCV3Ub.js} +1 -1
  19. package/chunks/{pdf-vector-CzrRoyPR.js → pdf-vector-D65OC03c.js} +1 -1
  20. package/chunks/{search-B7AUhYCm.js → search-rp-eRNJ6.js} +2 -2
  21. package/chunks/{slide-generator-AO60zi1f.js → slide-generator-Ctxdc9Yn.js} +5 -5
  22. package/chunks/{turntable-ai-DddsPGTo.js → turntable-ai-ZhAGEjzz.js} +1 -1
  23. package/chunks/write-ZW6FSyj1.js +327 -0
  24. package/package.json +1 -1
  25. package/yappy.js +1 -1
  26. package/chunks/write-uweO04Cm.js +0 -265
@@ -0,0 +1,327 @@
1
+ import { r as E, X as v, N as M, z as it, e as w, E as C, a as nt, p as _, b as ct, c as dt, R as h, f as mt } from "./custgeom-N1NlyQKZ.js";
2
+ const G = 914400, B = 51206400, ht = "http://schemas.microsoft.com/office/powerpoint/2015/09/main", k = `xmlns:a="${M.a}" xmlns:r="${M.r}" xmlns:p="${M.p}"`, b = {
3
+ presentation: "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",
4
+ slide: "application/vnd.openxmlformats-officedocument.presentationml.slide+xml",
5
+ slideLayout: "application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",
6
+ slideMaster: "application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",
7
+ theme: "application/vnd.openxmlformats-officedocument.theme+xml",
8
+ presProps: "application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",
9
+ viewProps: "application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",
10
+ tableStyles: "application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",
11
+ notesMaster: "application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml",
12
+ notesSlide: "application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml",
13
+ core: "application/vnd.openxmlformats-package.core-properties+xml",
14
+ app: "application/vnd.openxmlformats-officedocument.extended-properties+xml"
15
+ }, ft = {
16
+ png: "image/png",
17
+ jpeg: "image/jpeg",
18
+ gif: "image/gif",
19
+ svg: "image/svg+xml",
20
+ bmp: "image/bmp",
21
+ tiff: "image/tiff",
22
+ webp: "image/webp",
23
+ emf: "image/x-emf",
24
+ wmf: "image/x-wmf"
25
+ }, Q = (t) => {
26
+ const a = String(t || "").replace("#", "").toLowerCase();
27
+ return /^[0-9a-f]{6}$/.test(a) ? a.toUpperCase() : "000000";
28
+ }, N = (t) => {
29
+ const a = t.alpha;
30
+ return a !== void 0 && a < 1 ? `<a:srgbClr val="${Q(t.hex)}"><a:alpha val="${_(a)}"/></a:srgbClr>` : `<a:srgbClr val="${Q(t.hex)}"/>`;
31
+ }, tt = (t) => {
32
+ const a = [...t].sort((s, p) => s.pos - p.pos);
33
+ return "<a:gsLst>" + (a.length === 1 ? [{ ...a[0], pos: 0 }, { ...a[0], pos: 1 }] : a).map((s) => `<a:gs pos="${_(s.pos)}">${N(s.color)}</a:gs>`).join("") + "</a:gsLst>";
34
+ };
35
+ function pt(t) {
36
+ if (!t || t.kind === "none") return "<a:noFill/>";
37
+ switch (t.kind) {
38
+ case "solid":
39
+ return `<a:solidFill>${N(t.color)}</a:solidFill>`;
40
+ case "linear":
41
+ return t.stops.length === 0 ? "<a:noFill/>" : `<a:gradFill rotWithShape="1">${tt(t.stops)}<a:lin ang="${nt(t.angle)}" scaled="${t.scaled ? 1 : 0}"/></a:gradFill>`;
42
+ case "radial":
43
+ return t.stops.length === 0 ? "<a:noFill/>" : `<a:gradFill rotWithShape="1">${tt(t.stops)}<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path></a:gradFill>`;
44
+ case "image":
45
+ return "<a:noFill/>";
46
+ // import-only paint; the exporter never produces it
47
+ case "pattern":
48
+ return `<a:pattFill prst="${w(t.preset)}"><a:fgClr>${N(t.color)}</a:fgClr><a:bgClr>${t.bg ? N(t.bg) : '<a:srgbClr val="FFFFFF"><a:alpha val="0"/></a:srgbClr>'}</a:bgClr></a:pattFill>`;
49
+ }
50
+ }
51
+ function lt(t, a) {
52
+ if (!t || !(t.width > 0)) return "<a:ln><a:noFill/></a:ln>";
53
+ let s = `<a:ln w="${Math.max(0, Math.min(20116800, Math.round(t.width * a * C)))}"${t.cap ? ` cap="${t.cap}"` : ""}><a:solidFill>${N(t.color)}</a:solidFill>`;
54
+ t.dash && (s += `<a:prstDash val="${w(t.dash)}"/>`), t.join === "round" ? s += "<a:round/>" : t.join === "bevel" ? s += "<a:bevel/>" : t.join === "miter" && (s += '<a:miter lim="800000"/>');
55
+ const p = (l, i) => i ? `<a:${l} type="${i.type}" w="${i.size ?? "med"}" len="${i.size ?? "med"}"/>` : "";
56
+ return s += p("headEnd", t.head) + p("tailEnd", t.tail), s + "</a:ln>";
57
+ }
58
+ function Y(t, a, n = "a:rPr") {
59
+ const s = ['lang="en-US"'];
60
+ t.size && s.push(`sz="${mt(t.size * a)}"`), t.bold !== void 0 && s.push(`b="${t.bold ? 1 : 0}"`), t.italic !== void 0 && s.push(`i="${t.italic ? 1 : 0}"`), t.underline && s.push('u="sng"'), t.strike && s.push('strike="sngStrike"'), s.push('dirty="0"');
61
+ let p = "";
62
+ if (t.color && (p += `<a:solidFill>${N(t.color)}</a:solidFill>`), t.font) {
63
+ const l = w(t.font);
64
+ p += `<a:latin typeface="${l}"/><a:ea typeface="${l}"/><a:cs typeface="${l}"/>`;
65
+ }
66
+ return p ? `<${n} ${s.join(" ")}>${p}</${n}>` : `<${n} ${s.join(" ")}/>`;
67
+ }
68
+ const $t = 20, ut = /* @__PURE__ */ new Set(["•", "–", "—", "-", "»", "›", ">", "*", "+", "·"]), xt = /^(alphaLc|alphaUc|arabic|romanLc|romanUc)(ParenBoth|ParenR|Period|Plain)$/;
69
+ function gt(t, a, n) {
70
+ const s = Math.max(0, Math.min(8, t.level ?? 0)), p = [];
71
+ t.align && p.push(`algn="${t.align}"`);
72
+ let l = "";
73
+ a.lineSpacing && Math.abs(a.lineSpacing - 1) > 1e-3 && (l += `<a:lnSpc><a:spcPct val="${Math.round(Math.max(0.1, Math.min(13.2, a.lineSpacing)) * 1e5)}"/></a:lnSpc>`);
74
+ const i = (u, x) => x && x > 0 ? `<a:${u}><a:spcPts val="${Math.round(Math.min(1584, x * n * 0.75) * 100)}"/></a:${u}>` : "";
75
+ if (l += i("spcBef", t.spaceBefore) + i("spcAft", t.spaceAfter), t.bullet) {
76
+ const u = $t * n * C, x = t.marL !== void 0 ? t.marL * n * C : u * (s + 1), y = t.indent !== void 0 ? t.indent * n * C : -u, F = (P, L) => Math.round(Math.max(L, Math.min(51206400, P)));
77
+ if (p.push(`marL="${F(x, 0)}" indent="${F(y, -51206400)}"`), s && p.push(`lvl="${s}"`), t.bulletColor && (l += `<a:buClr>${N(t.bulletColor)}</a:buClr>`), t.bulletScale && Math.abs(t.bulletScale - 1) > 1e-3 && (l += `<a:buSzPct val="${Math.round(Math.max(0.25, Math.min(4, t.bulletScale)) * 1e5)}"/>`), t.bullet === "num") {
78
+ const P = t.numType && xt.test(t.numType) ? t.numType : "arabicPeriod", L = t.startAt && t.startAt > 1 ? ` startAt="${Math.min(32767, Math.round(t.startAt))}"` : "";
79
+ l += `<a:buFont typeface="+mj-lt"/><a:buAutoNum type="${P}"${L}/>`;
80
+ } else {
81
+ const P = t.bulletChar || "•";
82
+ l += `<a:buFont typeface="${ut.has(P) ? "Arial" : "Segoe UI Symbol"}"/><a:buChar char="${w(P)}"/>`;
83
+ }
84
+ } else
85
+ s && p.push(`lvl="${s}"`), l += "<a:buNone/>";
86
+ const m = `<a:pPr${p.length ? " " + p.join(" ") : ""}>${l}</a:pPr>`, $ = a.defaults ?? {};
87
+ let o = "";
88
+ for (const u of t.runs) {
89
+ const x = { ...$, ...yt(u) };
90
+ if (u.br) {
91
+ o += `<a:br>${Y(x, n)}</a:br>`;
92
+ continue;
93
+ }
94
+ u.text && (o += `<a:r>${Y(x, n)}<a:t>${w(u.text)}</a:t></a:r>`);
95
+ }
96
+ const g = t.endSize ?? $.size;
97
+ return `<a:p>${m}${o}${Y({ ...$, size: g }, n, "a:endParaRPr")}</a:p>`;
98
+ }
99
+ const yt = (t) => Object.fromEntries(Object.entries(t).filter(([, a]) => a !== void 0));
100
+ function vt(t, a, n = "p:txBody") {
101
+ if (!t) return "";
102
+ const s = (i) => Math.max(0, Math.round(i * a * C)), p = `<a:bodyPr wrap="${t.wrap ? "square" : "none"}" lIns="${s(t.insets.l)}" tIns="${s(t.insets.t)}" rIns="${s(t.insets.r)}" bIns="${s(t.insets.b)}" anchor="${t.anchor}" rtlCol="0"><a:noAutofit/></a:bodyPr>`, l = t.paragraphs.length ? t.paragraphs : [{ runs: [] }];
103
+ return `<${n}>${p}<a:lstStyle/>${l.map((i) => gt(i, t, a)).join("")}</${n}>`;
104
+ }
105
+ const rt = (t, a, n) => t.kind === "preset" ? ct(t.prst, t.adj) : dt(t.paths, a, n), Pt = { next: "nextslide", previous: "previousslide", first: "firstslide", last: "lastslide", end: "endshow" };
106
+ function St(t, a) {
107
+ if (!t) return "";
108
+ const n = (p, l, i) => {
109
+ const m = a.rels.find((o) => o.type === p && o.target === l);
110
+ if (m) return m.id;
111
+ const $ = `rId${a.rels.length + 1}`;
112
+ return a.rels.push({ id: $, type: p, target: l, external: i }), $;
113
+ };
114
+ if (t.kind === "url") return `<a:hlinkClick r:id="${n(h.hyperlink, t.url, !0)}"/>`;
115
+ if (t.kind === "action") return `<a:hlinkClick r:id="" action="ppaction://hlinkshowjump?jump=${Pt[t.action]}"/>`;
116
+ const s = a.slideNumber?.(t.key);
117
+ return s ? `<a:hlinkClick r:id="${n(h.slide, `slide${s}.xml`)}" action="ppaction://hlinksldjump"/>` : "";
118
+ }
119
+ const V = (t, a, n = "a:xfrm", s = !1) => {
120
+ const p = Math.round((t.x * a.s + a.dx) * C), l = Math.round((t.y * a.s + a.dy) * C), i = Math.max(0, Math.round(Math.abs(t.w) * a.s * C)), m = Math.max(0, Math.round(Math.abs(t.h) * a.s * C)), $ = [
121
+ t.rot ? `rot="${nt(t.rot)}"` : "",
122
+ t.flipH ? 'flipH="1"' : "",
123
+ t.flipV ? 'flipV="1"' : ""
124
+ ].filter(Boolean).join(" "), o = s ? `<a:chOff x="${p}" y="${l}"/><a:chExt cx="${i}" cy="${m}"/>` : "";
125
+ return `<${n}${$ ? " " + $ : ""}><a:off x="${p}" y="${l}"/><a:ext cx="${i}" cy="${m}"/>${o}</${n}>`;
126
+ }, q = (t, a, n) => {
127
+ const s = `<p:cNvPr id="${t.id}" name="${w(t.name)}"${n ? ` descr="${w(n)}"` : ""}`, p = St(t.link, a);
128
+ return p ? `${s}>${p}</p:cNvPr>` : `${s}/>`;
129
+ };
130
+ function bt(t, a) {
131
+ const n = `<p:nvSpPr>${q(t, a)}<p:cNvSpPr${t.textBox ? ' txBox="1"' : ""}/><p:nvPr/></p:nvSpPr>`, s = `<p:spPr>${V(t, a)}${rt(t.geom, t.w, t.h)}${pt(t.fill)}${lt(t.line, a.s)}</p:spPr>`, p = t.text ? vt(t.text, a.s) : '<p:txBody><a:bodyPr rtlCol="0" anchor="ctr"/><a:lstStyle/><a:p><a:pPr algn="ctr"/><a:endParaRPr lang="en-US" dirty="0"/></a:p></p:txBody>';
132
+ return `<p:sp>${n}${s}${p}</p:sp>`;
133
+ }
134
+ function Mt(t, a) {
135
+ const n = (p, l) => l ? `<a:${p} id="${l.id}" idx="${l.idx}"/>` : "";
136
+ return `<p:cxnSp>${`<p:nvCxnSpPr>${q(t, a)}<p:cNvCxnSpPr>${n("stCxn", t.start)}${n("endCxn", t.end)}</p:cNvCxnSpPr><p:nvPr/></p:nvCxnSpPr>`}<p:spPr>${V(t, a)}${rt(t.geom, t.w, t.h)}<a:noFill/>${lt(t.line, a.s)}</p:spPr></p:cxnSp>`;
137
+ }
138
+ function Ct(t, a) {
139
+ const n = a.media(t.media), s = `<p:nvPicPr>${q(t, a, t.descr)}<p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr><p:nvPr/></p:nvPicPr>`, p = t.alpha !== void 0 && t.alpha < 1 ? `<a:alphaModFix amt="${_(t.alpha)}"/>` : "", l = t.crop, i = l ? `<a:srcRect l="${_(l.l)}" t="${_(l.t)}" r="${_(l.r)}" b="${_(l.b)}"/>` : "", m = `<p:blipFill><a:blip r:embed="${n}">${p}</a:blip>${i}<a:stretch><a:fillRect/></a:stretch></p:blipFill>`;
140
+ return `<p:pic>${s}${m}<p:spPr>${V(t, a)}<a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr></p:pic>`;
141
+ }
142
+ function Lt(t, a) {
143
+ return `<p:grpSp>${`<p:nvGrpSpPr>${q(t, a)}<p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>`}<p:grpSpPr>${V(t, a, "a:xfrm", !0)}</p:grpSpPr>${t.children.map((s) => ot(s, a)).join("")}</p:grpSp>`;
144
+ }
145
+ function ot(t, a) {
146
+ switch (t.kind) {
147
+ case "shape":
148
+ return bt(t, a);
149
+ case "connector":
150
+ return Mt(t, a);
151
+ case "picture":
152
+ return Ct(t, a);
153
+ case "group":
154
+ return t.children.length ? Lt(t, a) : "";
155
+ }
156
+ }
157
+ const D = '<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>';
158
+ function wt(t, a) {
159
+ const n = a && a > 0 ? ` advTm="${Math.round(a)}"` : "";
160
+ if (!t) return n ? `<mc:AlternateContent xmlns:mc="${M.mc}"><mc:Choice xmlns:p14="${M.p14}" Requires="p14"><p:transition spd="fast" p14:dur="0"${n}/></mc:Choice><mc:Fallback><p:transition spd="fast"${n}/></mc:Fallback></mc:AlternateContent>` : "";
161
+ const s = Math.max(0, Math.min(6e4, Math.round(t.durationMs))), p = s <= 600 ? "fast" : s <= 900 ? "med" : "slow", l = t.kind === "push" ? `<p:push dir="${t.dir ?? "l"}"/>` : t.kind === "zoom" ? `<p:zoom dir="${t.zoomIn === !1 ? "out" : "in"}"/>` : "<p:fade/>";
162
+ return t.kind === "morph" ? `<mc:AlternateContent xmlns:mc="${M.mc}"><mc:Choice xmlns:p159="${ht}" xmlns:p14="${M.p14}" Requires="p159"><p:transition spd="${p}" p14:dur="${s}"${n}><p159:morph option="byObject"/></p:transition></mc:Choice><mc:Fallback><p:transition spd="${p}"${n}><p:fade/></p:transition></mc:Fallback></mc:AlternateContent>` : `<mc:AlternateContent xmlns:mc="${M.mc}"><mc:Choice xmlns:p14="${M.p14}" Requires="p14"><p:transition spd="${p}" p14:dur="${s}"${n}>${l}</p:transition></mc:Choice><mc:Fallback><p:transition spd="${p}"${n}>${l}</p:transition></mc:Fallback></mc:AlternateContent>`;
163
+ }
164
+ const Ft = { l: ["0-#ppt_w/2", "#ppt_y"], r: ["1+#ppt_w/2", "#ppt_y"], t: ["#ppt_x", "0-#ppt_h/2"], b: ["#ppt_x", "1+#ppt_h/2"] }, kt = { l: "wipe(right)", r: "wipe(left)", t: "wipe(down)", b: "wipe(up)" };
165
+ function Tt(t, a) {
166
+ if (!t.length) return "";
167
+ let n = 0;
168
+ const s = () => ++n, p = (e) => `<p:tgtEl><p:spTgt spid="${e}"/></p:tgtEl>`, l = (e, r, c = [], d, f) => `<p:cBhvr${f ? ` additive="${f}"` : ""}>` + (d !== void 0 ? `<p:cTn id="${s()}" dur="${Math.max(1, r)}" fill="hold"><p:stCondLst><p:cond delay="${d}"/></p:stCondLst></p:cTn>` : `<p:cTn id="${s()}" dur="${Math.max(1, r)}" fill="hold"/>`) + p(e.target) + (c.length ? `<p:attrNameLst>${c.map((S) => `<p:attrName>${S}</p:attrName>`).join("")}</p:attrNameLst>` : "") + "</p:cBhvr>", i = (e, r, c) => `<p:set>${l(e, 1, ["style.visibility"], r)}<p:to><p:strVal val="${c ? "visible" : "hidden"}"/></p:to></p:set>`, m = (e, r, c, d, f) => `<p:anim calcmode="lin" valueType="num">${l(e, r, [c], void 0, "base")}<p:tavLst><p:tav tm="0"><p:val><p:strVal val="${d}"/></p:val></p:tav><p:tav tm="100000"><p:val><p:strVal val="${f}"/></p:val></p:tav></p:tavLst></p:anim>`, $ = (e, r, c, d) => `<p:animEffect transition="${d ? "out" : "in"}" filter="${c}">${l(e, r)}</p:animEffect>`, o = (e, r, c) => `<p:animRot by="${Math.round(Math.max(-36e3, Math.min(36e3, c)) * 6e4)}">${l(e, r, ["r"])}</p:animRot>`, g = (e, r, c) => `<p:animScale>${l(e, r)}<p:by x="${c * 1e3}" y="${c * 1e3}"/></p:animScale>`, u = (e) => {
169
+ const r = Math.max(1, Math.min(36e5, e.durationMs)), c = e.dir ?? "b";
170
+ if (e.cls === "emph")
171
+ return e.effect === "spin" ? o(e, r, e.degrees ?? 360) : e.effect === "teeter" ? o(e, r, 4) : g(e, r, e.effect === "growShrink" ? 150 : 105);
172
+ const d = e.cls === "exit";
173
+ let f = d ? "" : i(e, 0, !0);
174
+ switch (e.effect) {
175
+ case "appear":
176
+ break;
177
+ case "fly": {
178
+ const [S, A] = Ft[c];
179
+ f += d ? m(e, r, "ppt_x", "#ppt_x", S) + m(e, r, "ppt_y", "#ppt_y", A) : m(e, r, "ppt_x", S, "#ppt_x") + m(e, r, "ppt_y", A, "#ppt_y");
180
+ break;
181
+ }
182
+ case "zoom":
183
+ case "grow":
184
+ case "spinner":
185
+ case "bounce":
186
+ case "swivel": {
187
+ const S = e.effect === "swivel" ? m(e, r, "ppt_w", d ? "#ppt_w" : "0", d ? "0" : "#ppt_w") : m(e, r, "ppt_w", d ? "#ppt_w" : "0", d ? "0" : "#ppt_w") + m(e, r, "ppt_h", d ? "#ppt_h" : "0", d ? "0" : "#ppt_h");
188
+ f += S, e.effect === "spinner" && (f += o(e, r, d ? -360 : 360)), f += $(e, r, "fade", d);
189
+ break;
190
+ }
191
+ case "wipe":
192
+ f += $(e, r, kt[e.dir ?? "l"], d);
193
+ break;
194
+ default:
195
+ f += $(e, r, "fade", d);
196
+ }
197
+ return d ? f + i(e, e.effect === "appear" ? 0 : r - 1, !1) : f;
198
+ }, x = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
199
+ for (const e of t) {
200
+ const r = x.get(e.target) ?? 0;
201
+ y.set(e, r), x.set(e.target, r + 1);
202
+ }
203
+ const F = (e) => {
204
+ const r = e.start === "click" ? "clickEffect" : e.start === "with" ? "withEffect" : "afterEffect", c = e.repeat === -1 ? ' repeatCount="indefinite"' : e.repeat && e.repeat > 1 ? ` repeatCount="${Math.min(1e4, e.repeat) * 1e3}"` : "", d = e.cls === "emph" && (e.effect === "pulse" || e.effect === "growShrink") ? ' autoRev="1"' : "";
205
+ return `<p:par><p:cTn id="${s()}" presetID="${e.presetId}" presetClass="${e.cls}" presetSubtype="${e.subtype}"${c}${d} fill="hold" grpId="${y.get(e)}" nodeType="${r}"><p:stCondLst><p:cond delay="${Math.min(36e5, e.delayMs)}"/></p:stCondLst><p:childTnLst>${u(e)}</p:childTnLst></p:cTn></p:par>`;
206
+ }, P = (e) => e.delayMs + e.durationMs * (e.repeat && e.repeat > 1 ? Math.min(100, e.repeat) : 1), L = [];
207
+ for (const e of t) {
208
+ const r = L[L.length - 1];
209
+ e.start === "click" || !r ? L.push({ auto: e.start !== "click", groups: [[e]] }) : e.start === "with" ? r.groups[r.groups.length - 1].push(e) : r.groups.push([e]);
210
+ }
211
+ const j = s(), T = s(), O = L.map((e) => {
212
+ const r = e.auto ? '<p:cond delay="indefinite"/><p:cond evt="onBegin" delay="0"><p:tn val="2"/></p:cond>' : '<p:cond delay="indefinite"/>', c = s();
213
+ let d = 0;
214
+ const f = e.groups.map((S) => {
215
+ const U = `<p:par><p:cTn id="${s()}" fill="hold"><p:stCondLst><p:cond delay="${d}"/></p:stCondLst><p:childTnLst>${S.map(F).join("")}</p:childTnLst></p:cTn></p:par>`;
216
+ return d += Math.max(...S.map(P)), U;
217
+ }).join("");
218
+ return `<p:par><p:cTn id="${c}" fill="hold"><p:stCondLst>${r}</p:stCondLst><p:childTnLst>${f}</p:childTnLst></p:cTn></p:par>`;
219
+ }).join(""), z = /* @__PURE__ */ new Set();
220
+ ((e) => e.forEach((r) => {
221
+ r.kind === "shape" && z.add(r.id);
222
+ }))(a);
223
+ const X = [...new Set(t.map((e) => e.target))].filter((e) => z.has(e)).flatMap((e) => Array.from({ length: x.get(e) ?? 1 }, (r, c) => `<p:bldP spid="${e}" grpId="${c}" animBg="1"/>`)).join("");
224
+ return `<p:timing><p:tnLst><p:par><p:cTn id="${j}" dur="indefinite" restart="never" nodeType="tmRoot"><p:childTnLst><p:seq concurrent="1" nextAc="seek"><p:cTn id="${T}" dur="indefinite" nodeType="mainSeq"><p:childTnLst>${O}</p:childTnLst></p:cTn><p:prevCondLst><p:cond evt="onPrev" delay="0"><p:tgtEl><p:sldTgt/></p:tgtEl></p:cond></p:prevCondLst><p:nextCondLst><p:cond evt="onNext" delay="0"><p:tgtEl><p:sldTgt/></p:tgtEl></p:cond></p:nextCondLst></p:seq></p:childTnLst></p:cTn></p:par></p:tnLst>${X ? `<p:bldLst>${X}</p:bldLst>` : ""}</p:timing>`;
225
+ }
226
+ function It(t, a) {
227
+ let n = "";
228
+ const s = t.background;
229
+ s && s.kind === "image" ? n = `<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="${a.media(s.media)}"/><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>` : s && s.kind !== "none" && (n = `<p:bg><p:bgPr>${pt(s)}<a:effectLst/></p:bgPr></p:bg>`);
230
+ const p = t.items.map((m) => ot(m, a)).join(""), l = t.name ? ` name="${w(t.name)}"` : "", i = t.hidden ? ' show="0"' : "";
231
+ return v + `<p:sld ${k}${i}><p:cSld${l}>${n}<p:spTree>${D}${p}</p:spTree></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>${wt(t.transition, t.advanceAfterMs)}${Tt(t.anims ?? [], t.items)}</p:sld>`;
232
+ }
233
+ const H = (t, a = "") => `<a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1">${a}<a:defRPr sz="${t}" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr>`, et = v + `<a:theme xmlns:a="${M.a}" name="Yappy"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="50000"/></a:schemeClr></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:shade val="80000"/></a:schemeClr></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/></a:schemeClr></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:shade val="90000"/></a:schemeClr></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/></a:theme>`, Et = v + `<p:sldMaster ${k}><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree>${D}</p:spTree></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:sldLayoutIdLst><p:sldLayoutId id="2147483649" r:id="rId1"/></p:sldLayoutIdLst><p:txStyles><p:titleStyle>${H(4400)}</p:titleStyle><p:bodyStyle>${H(2800)}</p:bodyStyle><p:otherStyle>${H(1800)}</p:otherStyle></p:txStyles></p:sldMaster>`, _t = v + `<p:sldLayout ${k} type="blank" preserve="1"><p:cSld name="Blank"><p:spTree>${D}</p:spTree></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sldLayout>`, at = 6858e3, st = 9144e3, R = (t, a, n, s, p, l, i, m, $ = "") => {
234
+ const o = `<a:xfrm><a:off x="${Math.round(at * p)}" y="${Math.round(st * l)}"/><a:ext cx="${Math.round(at * i)}" cy="${Math.round(st * m)}"/></a:xfrm>`, g = n === "sldImg", u = g ? "" : ' sz="quarter"', x = g ? `<p:spPr>${o}<a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="12700"><a:solidFill><a:prstClr val="black"/></a:solidFill></a:ln></p:spPr>` : `<p:spPr>${o}<a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr>`, y = g ? '<a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/>' : '<a:spLocks noGrp="1"/>', F = g ? "" : `<p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle/>${$ || '<a:p><a:endParaRPr lang="en-US"/></a:p>'}</p:txBody>`;
235
+ return `<p:sp><p:nvSpPr><p:cNvPr id="${t}" name="${a}"/><p:cNvSpPr>${y}</p:cNvSpPr><p:nvPr><p:ph type="${n}"${u} idx="${s}"/></p:nvPr></p:nvSpPr>${x}${F}</p:sp>`;
236
+ }, Nt = Array.from({ length: 9 }, (t, a) => `<a:lvl${a + 1}pPr marL="${a * 457200}" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl${a + 1}pPr>`).join(""), Rt = v + `<p:notesMaster ${k}><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree>${D}` + R(2, "Header Placeholder 1", "hdr", 0, 0, 0, 0.43, 0.05) + R(3, "Date Placeholder 2", "dt", 1, 0.57, 0, 0.43, 0.05) + R(4, "Slide Image Placeholder 3", "sldImg", 2, 0.125, 0.125, 0.75, 0.375) + R(5, "Notes Placeholder 4", "body", 3, 0.1, 0.53, 0.8, 0.36, '<a:p><a:pPr lvl="0"/><a:r><a:rPr lang="en-US"/><a:t>Click to edit Master text styles</a:t></a:r></a:p>') + R(6, "Footer Placeholder 5", "ftr", 4, 0, 0.95, 0.43, 0.05) + R(7, "Slide Number Placeholder 6", "sldNum", 5, 0.57, 0.95, 0.43, 0.05) + `</p:spTree></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:notesStyle>${Nt}</p:notesStyle></p:notesMaster>`;
237
+ function At(t) {
238
+ const a = t.replace(/\r\n?/g, `
239
+ `).split(`
240
+ `).map((p) => p ? `<a:p><a:r><a:rPr lang="en-US" dirty="0"/><a:t>${w(p)}</a:t></a:r></a:p>` : '<a:p><a:endParaRPr lang="en-US" dirty="0"/></a:p>').join(""), n = '<p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp>', s = `<p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/>${a}</p:txBody></p:sp>`;
241
+ return v + `<p:notes ${k}><p:cSld><p:spTree>${D}${n}${s}</p:spTree></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>`;
242
+ }
243
+ const Bt = v + `<p:presentationPr ${k}/>`, Dt = v + `<p:presentationPr ${k}><p:showPr loop="1" showNarration="1"><p:present/><p:sldAll/></p:showPr></p:presentationPr>`;
244
+ function jt(t, a) {
245
+ if (!t.some((p) => p.section)) return "";
246
+ const n = [];
247
+ t.forEach((p, l) => {
248
+ (p.section || !n.length) && n.push({ name: p.section || "Default Section", ids: [] }), n[n.length - 1].ids.push(a(l));
249
+ });
250
+ const s = (p) => `{8F3A1C2E-5B7D-4E9A-9C11-${(p + 1).toString(16).toUpperCase().padStart(12, "0")}}`;
251
+ return `<p:extLst><p:ext uri="{521415D9-36F7-43E2-AB2F-B90AF26B5E84}"><p14:sectionLst xmlns:p14="${M.p14}">` + n.map((p, l) => `<p14:section name="${w(p.name)}" id="${s(l)}"><p14:sldIdLst>${p.ids.map((i) => `<p14:sldId id="${i}"/>`).join("")}</p14:sldIdLst></p14:section>`).join("") + "</p14:sectionLst></p:ext></p:extLst>";
252
+ }
253
+ const Ot = v + `<p:viewPr ${k}><p:normalViewPr><p:restoredLeft sz="15620"/><p:restoredTop sz="94660"/></p:normalViewPr><p:gridSpacing cx="76200" cy="76200"/></p:viewPr>`, zt = v + `<a:tblStyleLst xmlns:a="${M.a}" def="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"/>`, Xt = (t, a) => v + `<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:title>${w(t)}</dc:title><dc:creator>YappyDraw</dc:creator><cp:lastModifiedBy>YappyDraw</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">${a}</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">${a}</dcterms:modified></cp:coreProperties>`, Ut = (t, a) => v + `<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>YappyDraw</Application><Slides>${t}</Slides><Notes>${a}</Notes><PresentationFormat>Custom</PresentationFormat></Properties>`;
254
+ function Ht(t, a = {}) {
255
+ const n = Math.max(1, t.width), s = Math.max(1, t.height), p = Math.max(n, s) * C, l = Math.min(n, s) * C, i = p > B ? B / p : l < G ? Math.min(G / l, B / p) : 1, m = Math.max(G, Math.min(B, Math.round(n * i * C))), $ = Math.max(G, Math.min(B, Math.round(s * i * C))), o = /* @__PURE__ */ new Map(), g = [], u = /* @__PURE__ */ new Set();
256
+ let x = 0;
257
+ const y = t.slides.length ? t.slides : [{ items: [] }], F = /* @__PURE__ */ new Map();
258
+ y.forEach((e, r) => {
259
+ e.key && F.set(e.key, r + 1);
260
+ });
261
+ const P = [{ id: "rId1", type: h.slideMaster, target: "slideMasters/slideMaster1.xml" }], L = y.some((e) => !!e.notes?.trim());
262
+ let j = "";
263
+ y.forEach((e, r) => {
264
+ const c = r + 1, d = [{ id: "rId1", type: h.slideLayout, target: "../slideLayouts/slideLayout1.xml" }], f = /* @__PURE__ */ new Map(), S = e.fit ?? { scale: 1, dx: 0, dy: 0 }, A = {
265
+ s: S.scale * i,
266
+ dx: S.dx * i,
267
+ dy: S.dy * i,
268
+ rels: d,
269
+ slideNumber: (I) => F.get(I) ?? null,
270
+ media: (I) => {
271
+ const Z = f.get(I);
272
+ if (Z) return Z;
273
+ x++;
274
+ const K = `image${x}.${I.ext}`;
275
+ o.set(`ppt/media/${K}`, I.bytes), u.add(I.ext);
276
+ const W = `rId${d.length + 1}`;
277
+ return d.push({ id: W, type: h.image, target: `../media/${K}` }), f.set(I, W), W;
278
+ }
279
+ };
280
+ o.set(`ppt/slides/slide${c}.xml`, It(e, A)), e.notes?.trim() && (d.push({ id: `rId${d.length + 1}`, type: h.notesSlide, target: `../notesSlides/notesSlide${c}.xml` }), o.set(`ppt/notesSlides/notesSlide${c}.xml`, At(e.notes)), o.set(`ppt/notesSlides/_rels/notesSlide${c}.xml.rels`, E([
281
+ { id: "rId1", type: h.notesMaster, target: "../notesMasters/notesMaster1.xml" },
282
+ { id: "rId2", type: h.slide, target: `../slides/slide${c}.xml` }
283
+ ])), g.push([`/ppt/notesSlides/notesSlide${c}.xml`, b.notesSlide])), o.set(`ppt/slides/_rels/slide${c}.xml.rels`, E(d)), g.push([`/ppt/slides/slide${c}.xml`, b.slide]);
284
+ const U = `rId${c + 1}`;
285
+ P.push({ id: U, type: h.slide, target: `slides/slide${c}.xml` }), j += `<p:sldId id="${255 + c}" r:id="${U}"/>`;
286
+ });
287
+ const T = y.length + 2;
288
+ P.push(
289
+ { id: `rId${T}`, type: h.theme, target: "theme/theme1.xml" },
290
+ { id: `rId${T + 1}`, type: h.presProps, target: "presProps.xml" },
291
+ { id: `rId${T + 2}`, type: h.viewProps, target: "viewProps.xml" },
292
+ { id: `rId${T + 3}`, type: h.tableStyles, target: "tableStyles.xml" }
293
+ );
294
+ const O = `rId${T + 4}`;
295
+ L && (P.push({ id: O, type: h.notesMaster, target: "notesMasters/notesMaster1.xml" }), o.set("ppt/notesMasters/notesMaster1.xml", Rt), o.set("ppt/notesMasters/_rels/notesMaster1.xml.rels", E([
296
+ { id: "rId1", type: h.theme, target: "../theme/theme2.xml" }
297
+ ])), o.set("ppt/theme/theme2.xml", et), g.push(["/ppt/notesMasters/notesMaster1.xml", b.notesMaster], ["/ppt/theme/theme2.xml", b.theme]));
298
+ const z = v + `<p:presentation ${k} saveSubsetFonts="1"><p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>` + (L ? `<p:notesMasterIdLst><p:notesMasterId r:id="${O}"/></p:notesMasterIdLst>` : "") + `<p:sldIdLst>${j}</p:sldIdLst><p:sldSz cx="${m}" cy="${$}"/><p:notesSz cx="6858000" cy="9144000"/><p:defaultTextStyle>${H(1800)}</p:defaultTextStyle>${jt(y, (e) => 256 + e)}</p:presentation>`;
299
+ o.set("ppt/presentation.xml", z), o.set("ppt/_rels/presentation.xml.rels", E(P)), o.set("ppt/slideMasters/slideMaster1.xml", Et), o.set("ppt/slideMasters/_rels/slideMaster1.xml.rels", E([
300
+ { id: "rId1", type: h.slideLayout, target: "../slideLayouts/slideLayout1.xml" },
301
+ { id: "rId2", type: h.theme, target: "../theme/theme1.xml" }
302
+ ])), o.set("ppt/slideLayouts/slideLayout1.xml", _t), o.set("ppt/slideLayouts/_rels/slideLayout1.xml.rels", E([
303
+ { id: "rId1", type: h.slideMaster, target: "../slideMasters/slideMaster1.xml" }
304
+ ])), o.set("ppt/theme/theme1.xml", et), o.set("ppt/presProps.xml", t.loop ? Dt : Bt), o.set("ppt/viewProps.xml", Ot), o.set("ppt/tableStyles.xml", zt);
305
+ const J = a.now ?? (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d+Z$/, "Z");
306
+ o.set("docProps/core.xml", Xt(t.title || "YappyDraw presentation", J)), o.set("docProps/app.xml", Ut(y.length, y.filter((e) => !!e.notes?.trim()).length)), o.set("_rels/.rels", E([
307
+ { id: "rId1", type: h.officeDocument, target: "ppt/presentation.xml" },
308
+ { id: "rId2", type: h.coreProps, target: "docProps/core.xml" },
309
+ { id: "rId3", type: h.extProps, target: "docProps/app.xml" }
310
+ ])), g.push(
311
+ ["/ppt/presentation.xml", b.presentation],
312
+ ["/ppt/slideMasters/slideMaster1.xml", b.slideMaster],
313
+ ["/ppt/slideLayouts/slideLayout1.xml", b.slideLayout],
314
+ ["/ppt/theme/theme1.xml", b.theme],
315
+ ["/ppt/presProps.xml", b.presProps],
316
+ ["/ppt/viewProps.xml", b.viewProps],
317
+ ["/ppt/tableStyles.xml", b.tableStyles],
318
+ ["/docProps/core.xml", b.core],
319
+ ["/docProps/app.xml", b.app]
320
+ );
321
+ const X = v + `<Types xmlns="${M.ct}"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/>` + [...u].map((e) => `<Default Extension="${e}" ContentType="${ft[e]}"/>`).join("") + g.map(([e, r]) => `<Override PartName="${e}" ContentType="${r}"/>`).join("") + "</Types>";
322
+ return o.set("[Content_Types].xml", X), it(o);
323
+ }
324
+ export {
325
+ Ht as buildPptx,
326
+ At as notesXml
327
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algorisys/yappydraw",
3
- "version": "0.8.295",
3
+ "version": "0.8.297",
4
4
  "description": "The YappyDraw drawing API without the editor: hand-drawn and clean shapes, rendered to SVG in the browser.",
5
5
  "type": "module",
6
6
  "main": "./yappy.js",
package/yappy.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aN as o, aO as e, aP as r, aQ as t, aR as n, aS as p } from "./chunks/index-B_V19zDs.js";
1
+ import { aO as o, aP as e, aQ as r, aR as t, aS as n, aT as p } from "./chunks/index-zg1eC33A.js";
2
2
  export {
3
3
  o as Yappy,
4
4
  e as clear,