botc-character-sheet 0.17.1 → 0.18.0

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.
package/dist/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import { options as N, Fragment as f } from "preact";
2
- var H = 0;
3
- function i(e, t, a, r, n, l) {
1
+ import { options as D, Fragment as f } from "preact";
2
+ var G = 0;
3
+ function e(i, t, a, r, n, h) {
4
4
  t || (t = {});
5
- var c, o, h = t;
6
- if ("ref" in h) for (o in h = {}, t) o == "ref" ? c = t[o] : h[o] = t[o];
7
- var s = { type: e, props: h, key: a, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --H, __i: -1, __u: 0, __source: n, __self: l };
8
- if (typeof e == "function" && (c = e.defaultProps)) for (o in c) h[o] === void 0 && (h[o] = c[o]);
9
- return N.vnode && N.vnode(s), s;
5
+ var l, s, c = t;
6
+ if ("ref" in c) for (s in c = {}, t) s == "ref" ? l = t[s] : c[s] = t[s];
7
+ var o = { type: i, props: c, key: a, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --G, __i: -1, __u: 0, __source: n, __self: h };
8
+ if (typeof i == "function" && (l = i.defaultProps)) for (s in l) c[s] === void 0 && (c[s] = l[s]);
9
+ return D.vnode && D.vnode(o), o;
10
10
  }
11
- function z(e) {
12
- if (e.startsWith("#") && (e = e.slice(1)), e.length === 3 && (e = e.split("").map((n) => n + n).join("")), e.length !== 6)
11
+ function $(i) {
12
+ if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((n) => n + n).join("")), i.length !== 6)
13
13
  throw new Error("Invalid HEX color.");
14
- const t = parseInt(e.slice(0, 2), 16), a = parseInt(e.slice(2, 4), 16), r = parseInt(e.slice(4, 6), 16);
14
+ const t = parseInt(i.slice(0, 2), 16), a = parseInt(i.slice(2, 4), 16), r = parseInt(i.slice(4, 6), 16);
15
15
  return [t, a, r];
16
16
  }
17
- function _(e, t, a) {
17
+ function V(i, t, a) {
18
18
  const r = (n) => {
19
- const l = n.toString(16);
20
- return l.length === 1 ? "0" + l : l;
19
+ const h = n.toString(16);
20
+ return h.length === 1 ? "0" + h : h;
21
21
  };
22
- return `#${r(e)}${r(t)}${r(a)}`;
22
+ return `#${r(i)}${r(t)}${r(a)}`;
23
23
  }
24
- function B(e, t) {
25
- const [a, r, n] = z(e), l = Math.round(a * t), c = Math.round(r * t), o = Math.round(n * t);
26
- return _(l, c, o);
24
+ function F(i, t) {
25
+ const [a, r, n] = $(i), h = Math.round(a * t), l = Math.round(r * t), s = Math.round(n * t);
26
+ return V(h, l, s);
27
27
  }
28
- const b = {
28
+ const v = {
29
29
  townsfolk: "#00469e",
30
30
  outsider: "#00469e",
31
31
  minion: "#580709",
@@ -34,140 +34,140 @@ const b = {
34
34
  traveller: "#390758ff",
35
35
  loric: "#1f5807"
36
36
  };
37
- function j(e) {
38
- return Array.isArray(e) ? e : [e];
37
+ function M(i) {
38
+ return Array.isArray(i) ? i : [i];
39
39
  }
40
- function O(e, t = 20) {
41
- if (e.length === 0)
40
+ function C(i, t = 20) {
41
+ if (i.length === 0)
42
42
  return "transparent";
43
- if (e.length === 1) {
44
- const r = B(e[0], 0.4);
45
- return `linear-gradient(${t}deg, ${e[0]} 50%, ${r})`;
43
+ if (i.length === 1) {
44
+ const r = F(i[0], 0.4);
45
+ return `linear-gradient(${t}deg, ${i[0]} 50%, ${r})`;
46
46
  }
47
- const a = e.map((r, n) => {
48
- const l = n / (e.length - 1) * 100;
49
- return `${r} ${l}%`;
47
+ const a = i.map((r, n) => {
48
+ const h = n / (i.length - 1) * 100;
49
+ return `${r} ${h}%`;
50
50
  }).join(", ");
51
51
  return `linear-gradient(${t}deg, ${a})`;
52
52
  }
53
- function S(e, t = 90) {
54
- const a = j(e);
53
+ function J(i, t = 90) {
54
+ const a = M(i);
55
55
  if (a.length === 1)
56
56
  return a[0];
57
- const r = a.map((n, l) => {
58
- const c = l / (a.length - 1) * 100;
59
- return `${n} ${c}%`;
57
+ const r = a.map((n, h) => {
58
+ const l = h / (a.length - 1) * 100;
59
+ return `${n} ${l}%`;
60
60
  }).join(", ");
61
61
  return `linear-gradient(${t}deg, ${r})`;
62
62
  }
63
- function R({
64
- jinxes: e,
63
+ function U({
64
+ jinxes: i,
65
65
  allCharacters: t,
66
66
  fabledAndLoric: a,
67
67
  bootleggerRules: r
68
68
  }) {
69
69
  const n = new Map(
70
70
  t.map((m) => [m.id.toLowerCase(), m])
71
- ), l = e.length > 0 && a.length > 0, c = e.length > 0 && a.length === 0, o = e.length === 0 && a.length > 0, h = [...e, ...a], s = l || e.length > 4 || a.length > 4, d = s ? Math.ceil(h.length / 2) : h.length;
72
- let y, u;
73
- if (l)
74
- y = e.map((m, g) => /* @__PURE__ */ i(x, { jinx: m, charMap: n }, `lc-${g}`)), u = a.map((m, g) => /* @__PURE__ */ i(
75
- v,
71
+ ), h = i.length > 0 && a.length > 0, l = i.length > 0 && a.length === 0, s = i.length === 0 && a.length > 0, c = [...i, ...a], o = h || i.length > 4 || a.length > 4, d = o ? Math.ceil(c.length / 2) : c.length;
72
+ let g, y;
73
+ if (h)
74
+ g = i.map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `lc-${u}`)), y = a.map((m, u) => /* @__PURE__ */ e(
75
+ I,
76
76
  {
77
77
  item: m,
78
78
  bootleggerRules: r
79
79
  },
80
- `rc-${g}`
80
+ `rc-${u}`
81
81
  ));
82
- else if (c && s)
83
- y = e.slice(0, d).map((m, g) => /* @__PURE__ */ i(x, { jinx: m, charMap: n }, `lc-${g}`)), u = e.slice(d).map((m, g) => /* @__PURE__ */ i(x, { jinx: m, charMap: n }, `rc-${g}`));
84
- else if (o && s)
85
- y = a.slice(0, d).map((m, g) => /* @__PURE__ */ i(
86
- v,
82
+ else if (l && o)
83
+ g = i.slice(0, d).map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `lc-${u}`)), y = i.slice(d).map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `rc-${u}`));
84
+ else if (s && o)
85
+ g = a.slice(0, d).map((m, u) => /* @__PURE__ */ e(
86
+ I,
87
87
  {
88
88
  item: m,
89
89
  bootleggerRules: r
90
90
  },
91
- `lc-${g}`
92
- )), u = a.slice(d).map((m, g) => /* @__PURE__ */ i(
93
- v,
91
+ `lc-${u}`
92
+ )), y = a.slice(d).map((m, u) => /* @__PURE__ */ e(
93
+ I,
94
94
  {
95
95
  item: m,
96
96
  bootleggerRules: r
97
97
  },
98
- `rc-${g}`
98
+ `rc-${u}`
99
99
  ));
100
- else if (c)
101
- y = e.map((m, g) => /* @__PURE__ */ i(x, { jinx: m, charMap: n }, `lc-${g}`));
102
- else if (o)
103
- y = a.map((m, g) => /* @__PURE__ */ i(
104
- v,
100
+ else if (l)
101
+ g = i.map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `lc-${u}`));
102
+ else if (s)
103
+ g = a.map((m, u) => /* @__PURE__ */ e(
104
+ I,
105
105
  {
106
106
  item: m,
107
107
  bootleggerRules: r
108
108
  },
109
- `lc-${g}`
109
+ `lc-${u}`
110
110
  ));
111
111
  else
112
112
  return null;
113
- return /* @__PURE__ */ i("div", { className: "jinxes-section", children: [
114
- /* @__PURE__ */ i("h2", { className: "section-title" }),
115
- u ? /* @__PURE__ */ i("div", { className: "jinxes-list jinxes-two-columns", children: [
116
- /* @__PURE__ */ i("div", { className: "jinx-column", children: [
117
- ...y
113
+ return /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
114
+ /* @__PURE__ */ e("h2", { className: "section-title" }),
115
+ y ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
116
+ /* @__PURE__ */ e("div", { className: "jinx-column", children: [
117
+ ...g
118
118
  ] }),
119
- /* @__PURE__ */ i("div", { className: "jinx-column", children: [
120
- ...u
119
+ /* @__PURE__ */ e("div", { className: "jinx-column", children: [
120
+ ...y
121
121
  ] })
122
- ] }) : /* @__PURE__ */ i("div", { className: "jinxes-list", children: [
123
- ...y
122
+ ] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: [
123
+ ...g
124
124
  ] })
125
125
  ] });
126
126
  }
127
- const x = ({ charMap: e, jinx: t }) => {
128
- const a = e.get(t.characters[0]), r = e.get(t.characters[1]);
129
- return /* @__PURE__ */ i("div", { className: "jinx-item", children: [
130
- /* @__PURE__ */ i("div", { className: "jinx-icons", children: [
131
- a && /* @__PURE__ */ i("div", { className: "jinx-icon-wrapper", children: w(a) ? /* @__PURE__ */ i(
127
+ const w = ({ charMap: i, jinx: t }) => {
128
+ const a = i.get(t.characters[0]), r = i.get(t.characters[1]);
129
+ return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
130
+ /* @__PURE__ */ e("div", { className: "jinx-icons", children: [
131
+ a && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: k(a) ? /* @__PURE__ */ e(
132
132
  "img",
133
133
  {
134
- src: w(a),
134
+ src: k(a),
135
135
  alt: a.name,
136
136
  className: "jinx-icon"
137
137
  }
138
- ) : /* @__PURE__ */ i("div", { className: "jinx-icon-placeholder", children: a.name.charAt(0) }) }),
139
- /* @__PURE__ */ i("span", { className: "jinx-divider" }),
140
- r && /* @__PURE__ */ i("div", { className: "jinx-icon-wrapper", children: w(r) ? /* @__PURE__ */ i(
138
+ ) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: a.name.charAt(0) }) }),
139
+ /* @__PURE__ */ e("span", { className: "jinx-divider" }),
140
+ r && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: k(r) ? /* @__PURE__ */ e(
141
141
  "img",
142
142
  {
143
- src: w(r),
143
+ src: k(r),
144
144
  alt: r.name,
145
145
  className: "jinx-icon"
146
146
  }
147
- ) : /* @__PURE__ */ i("div", { className: "jinx-icon-placeholder", children: r.name.charAt(0) }) })
147
+ ) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: r.name.charAt(0) }) })
148
148
  ] }),
149
- /* @__PURE__ */ i("p", { className: "jinx-text", children: t.jinx })
149
+ /* @__PURE__ */ e("p", { className: "jinx-text", children: t.jinx })
150
150
  ] });
151
151
  };
152
- function v({
153
- item: e,
152
+ function I({
153
+ item: i,
154
154
  bootleggerRules: t
155
155
  }) {
156
- const a = e.name.toLowerCase() === "bootlegger";
157
- return /* @__PURE__ */ i("div", { className: "jinx-item loric", children: [
158
- /* @__PURE__ */ i("div", { className: "loric-spacer" }),
159
- e.image ? /* @__PURE__ */ i("img", { src: e.image, alt: e.name, className: "jinx-icon loric" }) : /* @__PURE__ */ i("div", { className: "jinx-icon-placeholder", children: e.name.charAt(0) }),
160
- /* @__PURE__ */ i("div", { className: "loric-text-container", children: [
161
- /* @__PURE__ */ i("p", { className: "jinx-text loric-name", children: e.name }),
162
- /* @__PURE__ */ i("p", { className: "jinx-text loric-text", children: e.note }),
163
- a && t.map((r, n) => /* @__PURE__ */ i("p", { className: "jinx-text loric-text", children: r }, `bootlegger-rule-${n}`))
156
+ const a = i.name.toLowerCase() === "bootlegger";
157
+ return /* @__PURE__ */ e("div", { className: "jinx-item loric", children: [
158
+ /* @__PURE__ */ e("div", { className: "loric-spacer" }),
159
+ i.image ? /* @__PURE__ */ e("img", { src: i.image, alt: i.name, className: "jinx-icon loric" }) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: i.name.charAt(0) }),
160
+ /* @__PURE__ */ e("div", { className: "loric-text-container", children: [
161
+ /* @__PURE__ */ e("p", { className: "jinx-text loric-name", children: i.name }),
162
+ /* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: i.note }),
163
+ a && t.map((r, n) => /* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: r }, `bootlegger-rule-${n}`))
164
164
  ] })
165
165
  ] });
166
166
  }
167
- function w(e) {
168
- return e.wiki_image ? e.wiki_image : e.image ? typeof e.image == "string" ? e.image : e.image[0] : null;
167
+ function k(i) {
168
+ return i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
169
169
  }
170
- const G = [
170
+ const Z = [
171
171
  {
172
172
  characters: [
173
173
  "alchemist",
@@ -1146,7 +1146,7 @@ const G = [
1146
1146
  oldJinx: "If the Exorcist chooses the Yaggababble, the Yaggababble ability does not kill tonight."
1147
1147
  }
1148
1148
  ];
1149
- function $(e) {
1149
+ function Y(i) {
1150
1150
  const t = {
1151
1151
  townsfolk: [],
1152
1152
  outsider: [],
@@ -1156,7 +1156,7 @@ function $(e) {
1156
1156
  fabled: [],
1157
1157
  loric: []
1158
1158
  };
1159
- for (const a of e)
1159
+ for (const a of i)
1160
1160
  try {
1161
1161
  t[a.team].push(a);
1162
1162
  } catch {
@@ -1164,11 +1164,11 @@ function $(e) {
1164
1164
  }
1165
1165
  return t;
1166
1166
  }
1167
- function V(e, t = !1) {
1168
- const a = new Set(e.map((n) => n.id.toLowerCase())), r = [];
1169
- for (const n of G) {
1170
- const [l, c] = n.characters;
1171
- a.has(l) && a.has(c) && (t && n.oldJinx ? r.push({
1167
+ function K(i, t = !1) {
1168
+ const a = new Set(i.map((n) => n.id.toLowerCase())), r = [];
1169
+ for (const n of Z) {
1170
+ const [h, l] = n.characters;
1171
+ a.has(h) && a.has(l) && (t && n.oldJinx ? r.push({
1172
1172
  characters: n.characters,
1173
1173
  jinx: n.oldJinx
1174
1174
  }) : r.push({
@@ -1176,174 +1176,413 @@ function V(e, t = !1) {
1176
1176
  jinx: n.jinx
1177
1177
  }));
1178
1178
  }
1179
- for (const n of e) {
1180
- const l = typeof n == "object" && n !== null, c = "jinxes" in n;
1181
- if (!l || !c) continue;
1179
+ for (const n of i) {
1180
+ const h = typeof n == "object" && n !== null, l = "jinxes" in n;
1181
+ if (!h || !l) continue;
1182
1182
  console.log("char.jinxes:", n.jinxes);
1183
- const o = n, h = o.id.toLowerCase();
1184
- if (a.has(h) && o.jinxes)
1185
- for (const s of o.jinxes) {
1186
- const d = s.id.toLowerCase();
1183
+ const s = n, c = s.id.toLowerCase();
1184
+ if (a.has(c) && s.jinxes)
1185
+ for (const o of s.jinxes) {
1186
+ const d = o.id.toLowerCase();
1187
1187
  if (console.log(`${n.id} is jinxed with ${d}`), a.has(d) || (console.log("characterIds doesnt contain charId", d), console.log("characterIds:", a)), a.has(d)) {
1188
- const y = r.some(
1189
- (u) => u.characters[0] === h && u.characters[1] === d || u.characters[0] === d && u.characters[1] === h
1188
+ const g = r.some(
1189
+ (y) => y.characters[0] === c && y.characters[1] === d || y.characters[0] === d && y.characters[1] === c
1190
1190
  );
1191
- console.log("Jinx already exists:", y), y || r.push({
1192
- characters: [h, d],
1193
- jinx: s.reason
1191
+ console.log("Jinx already exists:", g), g || r.push({
1192
+ characters: [c, d],
1193
+ jinx: o.reason
1194
1194
  });
1195
1195
  }
1196
1196
  }
1197
1197
  }
1198
1198
  return r;
1199
1199
  }
1200
- const M = (e) => e.wiki_image ? e.wiki_image : e.image ? typeof e.image == "string" ? e.image : e.image[0] : null;
1201
- function J(e, t, a) {
1200
+ const T = (i) => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
1201
+ function O(i, t, a) {
1202
1202
  const r = [];
1203
1203
  return t.forEach((n) => {
1204
- n.characters[0] === e.id ? r.push(n.characters[1]) : n.characters[1] === e.id && r.push(n.characters[0]);
1204
+ n.characters[0] === i.id ? r.push(n.characters[1]) : n.characters[1] === i.id && r.push(n.characters[0]);
1205
1205
  }), a.filter(
1206
1206
  (n) => r.includes(n.id)
1207
1207
  );
1208
1208
  }
1209
- function F({
1210
- title: e,
1209
+ const _ = 8;
1210
+ function q({
1211
+ title: i,
1212
+ characters: t,
1213
+ charNameColor: a,
1214
+ iconScale: r,
1215
+ jinxes: n,
1216
+ allCharacters: h,
1217
+ inlineJinxIcons: l
1218
+ }) {
1219
+ const s = t.length > _ ? "space-between" : t.length % 2 === 0 ? "space-around" : "flex-start", c = X(t);
1220
+ return /* @__PURE__ */ e("div", { className: "character-section", children: [
1221
+ /* @__PURE__ */ e("h2", { className: "section-title", children: i }),
1222
+ /* @__PURE__ */ e("div", { className: "character-list", children: [
1223
+ /* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: s }, children: t.slice(0, c).map((o) => /* @__PURE__ */ e(
1224
+ A,
1225
+ {
1226
+ character: o,
1227
+ color: a,
1228
+ iconScale: r,
1229
+ jinxedCharacters: O(o, n, h),
1230
+ inlineJinxIcons: l
1231
+ },
1232
+ o.id
1233
+ )) }),
1234
+ /* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: s }, children: t.slice(c, t.length).map((o) => /* @__PURE__ */ e(
1235
+ A,
1236
+ {
1237
+ character: o,
1238
+ color: a,
1239
+ iconScale: r,
1240
+ jinxedCharacters: O(o, n, h),
1241
+ inlineJinxIcons: l
1242
+ },
1243
+ o.id
1244
+ )) })
1245
+ ] })
1246
+ ] });
1247
+ }
1248
+ function A({
1249
+ character: i,
1250
+ color: t,
1251
+ iconScale: a,
1252
+ jinxedCharacters: r,
1253
+ inlineJinxIcons: n
1254
+ }) {
1255
+ const h = (s) => {
1256
+ const c = s.match(/^(.*?)(\[.*?\])$/);
1257
+ if (c) {
1258
+ const [, o, d] = c;
1259
+ return /* @__PURE__ */ e(f, { children: [
1260
+ o,
1261
+ /* @__PURE__ */ e("strong", { className: "setup-ability", children: d })
1262
+ ] });
1263
+ }
1264
+ return s;
1265
+ }, l = T(i);
1266
+ return /* @__PURE__ */ e("div", { className: "character-card", children: [
1267
+ /* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: l ? /* @__PURE__ */ e(
1268
+ "img",
1269
+ {
1270
+ src: l,
1271
+ alt: i.name,
1272
+ className: "character-icon",
1273
+ style: { scale: a.toString() }
1274
+ }
1275
+ ) : /* @__PURE__ */ e(
1276
+ "div",
1277
+ {
1278
+ className: "character-icon-placeholder",
1279
+ style: { color: t, scale: a.toString() },
1280
+ children: i.name.charAt(0)
1281
+ }
1282
+ ) }),
1283
+ /* @__PURE__ */ e("div", { className: "character-info", children: [
1284
+ /* @__PURE__ */ e("h3", { className: "character-name", style: { color: t }, children: [
1285
+ i.name,
1286
+ n && r.length > 0 && /* @__PURE__ */ e("span", { className: "inline-jinx-icons", children: r.map((s) => {
1287
+ const c = T(s);
1288
+ return c ? /* @__PURE__ */ e(
1289
+ "img",
1290
+ {
1291
+ src: c,
1292
+ alt: s.name,
1293
+ className: "inline-jinx-icon",
1294
+ title: `Jinxed with ${s.name}`
1295
+ },
1296
+ s.id
1297
+ ) : /* @__PURE__ */ e(
1298
+ "span",
1299
+ {
1300
+ className: "inline-jinx-icon-placeholder",
1301
+ title: `Jinxed with ${s.name}`,
1302
+ children: s.name.charAt(0)
1303
+ },
1304
+ s.id
1305
+ );
1306
+ }) })
1307
+ ] }),
1308
+ /* @__PURE__ */ e("p", { className: "character-ability", children: h(i.ability) })
1309
+ ] })
1310
+ ] });
1311
+ }
1312
+ function X(i) {
1313
+ const t = Math.ceil(i.length / 2);
1314
+ if (i.length % 2 === 0 || i.length <= _)
1315
+ return t;
1316
+ const a = t, r = t - 1, n = i.slice(0, a), h = i.slice(r - 1), l = n.reduce(
1317
+ (c, o) => c + o.ability.length,
1318
+ 0
1319
+ ), s = h.reduce(
1320
+ (c, o) => c + o.ability.length,
1321
+ 0
1322
+ );
1323
+ return l < s ? a : r;
1324
+ }
1325
+ const Q = {
1326
+ "top-left": 0,
1327
+ "top-right": 90,
1328
+ "bottom-right": 180,
1329
+ "bottom-left": 270
1330
+ }, ee = 20, ie = 2.5, N = ({ dimensions: i, position: t }) => {
1331
+ const a = Q[t], r = ee * 10, n = i.margin * 10, h = (i.margin + i.bleed) * 10, l = ie, s = {
1332
+ left: t.includes("left") ? 0 : void 0,
1333
+ right: t.includes("right") ? 0 : void 0,
1334
+ top: t.includes("top") ? 0 : void 0,
1335
+ bottom: t.includes("bottom") ? 0 : void 0
1336
+ };
1337
+ return /* @__PURE__ */ e(
1338
+ "div",
1339
+ {
1340
+ className: "print-guides-overlay",
1341
+ style: { rotate: `${a}deg`, ...s },
1342
+ children: /* @__PURE__ */ e(
1343
+ "svg",
1344
+ {
1345
+ viewBox: `0 0 ${r} ${r}`,
1346
+ xmlns: "http://www.w3.org/2000/svg",
1347
+ children: [
1348
+ /* @__PURE__ */ e(
1349
+ P,
1350
+ {
1351
+ x1: h,
1352
+ y1: "0",
1353
+ x2: h,
1354
+ y2: n + i.bleed * 10 / 2,
1355
+ stroke: "black",
1356
+ "stroke-width": l,
1357
+ thickWidth: l * 2
1358
+ }
1359
+ ),
1360
+ /* @__PURE__ */ e(
1361
+ P,
1362
+ {
1363
+ x1: "0",
1364
+ y1: h,
1365
+ x2: n + i.bleed * 10 / 2,
1366
+ y2: h,
1367
+ stroke: "black",
1368
+ "stroke-width": l,
1369
+ thickWidth: l * 2
1370
+ }
1371
+ ),
1372
+ /* @__PURE__ */ e(
1373
+ "line",
1374
+ {
1375
+ x1: n,
1376
+ y1: n,
1377
+ x2: "0",
1378
+ y2: n,
1379
+ stroke: "black",
1380
+ "stroke-width": l,
1381
+ "stroke-dasharray": "2,2"
1382
+ }
1383
+ ),
1384
+ /* @__PURE__ */ e(
1385
+ "line",
1386
+ {
1387
+ x1: n,
1388
+ y1: n,
1389
+ x2: n,
1390
+ y2: "0",
1391
+ stroke: "black",
1392
+ "stroke-width": l,
1393
+ "stroke-dasharray": "2,2"
1394
+ }
1395
+ )
1396
+ ]
1397
+ }
1398
+ )
1399
+ }
1400
+ );
1401
+ };
1402
+ function P(i) {
1403
+ return /* @__PURE__ */ e(f, { children: [
1404
+ /* @__PURE__ */ e("line", { ...i, stroke: "#eee", "stroke-width": i.thickWidth }),
1405
+ /* @__PURE__ */ e("line", { ...i })
1406
+ ] });
1407
+ }
1408
+ const te = 20, L = (i) => {
1409
+ const { margin: t, bleed: a, width: r, height: n } = i.dimensions;
1410
+ return /* @__PURE__ */ e(
1411
+ "div",
1412
+ {
1413
+ className: "printable-page",
1414
+ style: {
1415
+ "--page-width": r + "mm",
1416
+ "--page-height": n + "mm",
1417
+ "--print-margin": t + "mm",
1418
+ "--print-bleed": a + "mm",
1419
+ "--print-guide-size": te + "mm"
1420
+ },
1421
+ children: [
1422
+ i.children,
1423
+ (t > 0 || a > 0) && /* @__PURE__ */ e(f, { children: [
1424
+ /* @__PURE__ */ e(N, { dimensions: i.dimensions, position: "top-left" }),
1425
+ /* @__PURE__ */ e(N, { dimensions: i.dimensions, position: "top-right" }),
1426
+ /* @__PURE__ */ e(N, { dimensions: i.dimensions, position: "bottom-left" }),
1427
+ /* @__PURE__ */ e(
1428
+ N,
1429
+ {
1430
+ dimensions: i.dimensions,
1431
+ position: "bottom-right"
1432
+ }
1433
+ )
1434
+ ] })
1435
+ ]
1436
+ }
1437
+ );
1438
+ }, ae = {
1439
+ width: 210,
1440
+ height: 297,
1441
+ margin: 0,
1442
+ bleed: 0
1443
+ };
1444
+ function ne({
1445
+ title: i,
1211
1446
  author: t,
1212
1447
  characters: a,
1213
- color: r = "#4a5568",
1214
- jinxes: n = [],
1448
+ dimensions: r = ae,
1449
+ color: n = "#4a5568",
1450
+ jinxes: h = [],
1215
1451
  showSwirls: l = !0,
1216
- includeMargins: c = !1,
1217
- solidTitle: o = !1,
1218
- iconScale: h = 1.6,
1219
- appearance: s = "normal",
1220
- fabledOrLoric: d = [],
1452
+ includeMargins: s = !1,
1453
+ solidTitle: c = !1,
1454
+ iconScale: o = 1.6,
1455
+ appearance: d = "normal",
1456
+ fabledOrLoric: g = [],
1221
1457
  inlineJinxIcons: y = !1,
1222
- bootleggerRules: u = []
1458
+ bootleggerRules: m = []
1223
1459
  }) {
1224
- const m = [
1460
+ const u = [
1225
1461
  {
1226
1462
  key: "townsfolk",
1227
1463
  title: "Townsfolk",
1228
1464
  chars: a.townsfolk,
1229
- color: b.townsfolk
1465
+ color: v.townsfolk
1230
1466
  },
1231
1467
  {
1232
1468
  key: "outsider",
1233
1469
  title: "Outsiders",
1234
1470
  chars: a.outsider,
1235
- color: b.outsider
1471
+ color: v.outsider
1236
1472
  },
1237
1473
  {
1238
1474
  key: "minion",
1239
1475
  title: "Minions",
1240
1476
  chars: a.minion,
1241
- color: b.minion
1477
+ color: v.minion
1242
1478
  },
1243
1479
  {
1244
1480
  key: "demon",
1245
1481
  title: "Demons",
1246
1482
  chars: a.demon,
1247
- color: b.demon
1483
+ color: v.demon
1248
1484
  }
1249
- ].filter((p) => p.chars.length > 0), g = j(r), W = O(g, 20), E = ["character-sheet", s !== "normal" ? `appearance-${s}` : ""].filter(Boolean).join(" ");
1250
- return /* @__PURE__ */ i(
1251
- "div",
1252
- {
1253
- className: E,
1254
- id: "character-sheet",
1255
- style: {
1256
- "--header-gradient": W,
1257
- transform: c ? "scale(0.952)" : void 0
1258
- },
1259
- children: [
1260
- /* @__PURE__ */ i(
1261
- "img",
1262
- {
1263
- className: "character-sheet-background",
1264
- src: "/images/parchment_texture_a4_lightened.jpg"
1265
- }
1266
- ),
1267
- /* @__PURE__ */ i(Y, { color: r }),
1268
- /* @__PURE__ */ i("div", { className: "sheet-content", children: [
1269
- /* @__PURE__ */ i(
1270
- U,
1485
+ ].filter((b) => b.chars.length > 0), x = M(n), H = C(x, 20), R = ["character-sheet", d !== "normal" ? `appearance-${d}` : ""].filter(Boolean).join(" ");
1486
+ return /* @__PURE__ */ e(L, { dimensions: r, children: [
1487
+ /* @__PURE__ */ e(
1488
+ "div",
1489
+ {
1490
+ className: R,
1491
+ id: "character-sheet",
1492
+ style: {
1493
+ "--header-gradient": H,
1494
+ transform: s ? "scale(0.952)" : void 0
1495
+ },
1496
+ children: [
1497
+ /* @__PURE__ */ e(
1498
+ "img",
1271
1499
  {
1272
- showSwirls: l,
1273
- title: e,
1274
- author: t,
1275
- solidHeader: o
1500
+ className: "character-sheet-background",
1501
+ src: "/images/parchment_texture_a4_lightened.jpg"
1276
1502
  }
1277
1503
  ),
1278
- /* @__PURE__ */ i("div", { className: "characters-grid", children: [
1279
- m.map((p, C) => /* @__PURE__ */ i(f, { children: [
1280
- /* @__PURE__ */ i(
1281
- Z,
1282
- {
1283
- title: p.title.toUpperCase(),
1284
- characters: p.chars,
1285
- charNameColor: p.color,
1286
- iconScale: h,
1287
- jinxes: n,
1288
- allCharacters: [
1289
- ...a.townsfolk,
1290
- ...a.outsider,
1291
- ...a.minion,
1292
- ...a.demon
1293
- ],
1294
- inlineJinxIcons: y
1295
- },
1296
- p.key
1297
- ),
1298
- C < m.length - 1 && /* @__PURE__ */ i("img", { src: "/images/divider.png", className: "section-divider" })
1299
- ] })),
1300
- (n.length > 0 || d.length > 0) && /* @__PURE__ */ i(f, { children: [
1301
- /* @__PURE__ */ i("img", { src: "/images/divider.png", className: "section-divider" }),
1302
- /* @__PURE__ */ i(
1303
- R,
1304
- {
1305
- fabledAndLoric: d,
1306
- jinxes: n,
1307
- allCharacters: [
1308
- ...a.townsfolk,
1309
- ...a.outsider,
1310
- ...a.minion,
1311
- ...a.demon
1312
- ],
1313
- bootleggerRules: u
1314
- }
1315
- )
1504
+ /* @__PURE__ */ e(oe, { color: n }),
1505
+ /* @__PURE__ */ e("div", { className: "sheet-content", children: [
1506
+ /* @__PURE__ */ e(
1507
+ re,
1508
+ {
1509
+ showSwirls: l,
1510
+ title: i,
1511
+ author: t,
1512
+ solidHeader: c
1513
+ }
1514
+ ),
1515
+ /* @__PURE__ */ e("div", { className: "characters-grid", children: [
1516
+ u.map((b, B) => /* @__PURE__ */ e(f, { children: [
1517
+ /* @__PURE__ */ e(
1518
+ q,
1519
+ {
1520
+ title: b.title.toUpperCase(),
1521
+ characters: b.chars,
1522
+ charNameColor: b.color,
1523
+ iconScale: o,
1524
+ jinxes: h,
1525
+ allCharacters: [
1526
+ ...a.townsfolk,
1527
+ ...a.outsider,
1528
+ ...a.minion,
1529
+ ...a.demon
1530
+ ],
1531
+ inlineJinxIcons: y
1532
+ },
1533
+ b.key
1534
+ ),
1535
+ B < u.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
1536
+ ] })),
1537
+ (h.length > 0 || g.length > 0) && /* @__PURE__ */ e(f, { children: [
1538
+ /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" }),
1539
+ /* @__PURE__ */ e(
1540
+ U,
1541
+ {
1542
+ fabledAndLoric: g,
1543
+ jinxes: h,
1544
+ allCharacters: [
1545
+ ...a.townsfolk,
1546
+ ...a.outsider,
1547
+ ...a.minion,
1548
+ ...a.demon
1549
+ ],
1550
+ bootleggerRules: m
1551
+ }
1552
+ )
1553
+ ] })
1554
+ ] }),
1555
+ /* @__PURE__ */ e("div", { className: "sheet-footer", children: [
1556
+ /* @__PURE__ */ e("span", { className: "asterisk", children: "*" }),
1557
+ "Not the first night"
1316
1558
  ] })
1317
1559
  ] }),
1318
- /* @__PURE__ */ i("div", { className: "sheet-footer", children: [
1319
- /* @__PURE__ */ i("span", { className: "asterisk", children: "*" }),
1320
- "Not the first night"
1560
+ /* @__PURE__ */ e("div", { className: "author-credit", children: [
1561
+ /* @__PURE__ */ e("p", { children: "© Steven Medway bloodontheclocktower.com" }),
1562
+ /* @__PURE__ */ e("p", { children: "Script template by John Forster ravenswoodstudio.xyz" })
1321
1563
  ] })
1322
- ] }),
1323
- /* @__PURE__ */ i("div", { className: "author-credit", children: [
1324
- /* @__PURE__ */ i("p", { children: "© Steven Medway bloodontheclocktower.com" }),
1325
- /* @__PURE__ */ i("p", { children: "Script template by John Forster ravenswoodstudio.xyz" })
1326
- ] })
1327
- ]
1328
- }
1329
- );
1564
+ ]
1565
+ }
1566
+ ),
1567
+ " "
1568
+ ] });
1330
1569
  }
1331
- function U({
1332
- showSwirls: e,
1570
+ function re({
1571
+ showSwirls: i,
1333
1572
  title: t,
1334
1573
  author: a,
1335
1574
  solidHeader: r = !1
1336
1575
  }) {
1337
- return /* @__PURE__ */ i(f, { children: [
1338
- /* @__PURE__ */ i("h1", { className: "sheet-header", children: [
1339
- e && /* @__PURE__ */ i(
1576
+ return /* @__PURE__ */ e(f, { children: [
1577
+ /* @__PURE__ */ e("h1", { className: "sheet-header", children: [
1578
+ i && /* @__PURE__ */ e(
1340
1579
  "img",
1341
1580
  {
1342
1581
  src: "/images/black-swirl-divider.png",
1343
1582
  className: "swirl-divider"
1344
1583
  }
1345
1584
  ),
1346
- /* @__PURE__ */ i(
1585
+ /* @__PURE__ */ e(
1347
1586
  "span",
1348
1587
  {
1349
1588
  style: {
@@ -1352,7 +1591,7 @@ function U({
1352
1591
  children: t
1353
1592
  }
1354
1593
  ),
1355
- e && /* @__PURE__ */ i(
1594
+ i && /* @__PURE__ */ e(
1356
1595
  "img",
1357
1596
  {
1358
1597
  src: "/images/black-swirl-divider.png",
@@ -1360,17 +1599,17 @@ function U({
1360
1599
  }
1361
1600
  )
1362
1601
  ] }),
1363
- a && /* @__PURE__ */ i("h2", { className: "sheet-author", children: [
1602
+ a && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
1364
1603
  "by ",
1365
1604
  a
1366
1605
  ] })
1367
1606
  ] });
1368
1607
  }
1369
- function Y({ color: e }) {
1370
- const t = S(e, 180);
1371
- return /* @__PURE__ */ i("div", { className: "sidebar-container", children: [
1372
- /* @__PURE__ */ i("div", { className: "sidebar-background" }),
1373
- /* @__PURE__ */ i(
1608
+ function oe({ color: i }) {
1609
+ const t = J(i, 180);
1610
+ return /* @__PURE__ */ e("div", { className: "sidebar-container", children: [
1611
+ /* @__PURE__ */ e("div", { className: "sidebar-background" }),
1612
+ /* @__PURE__ */ e(
1374
1613
  "div",
1375
1614
  {
1376
1615
  className: "sidebar-overlay",
@@ -1379,123 +1618,7 @@ function Y({ color: e }) {
1379
1618
  )
1380
1619
  ] });
1381
1620
  }
1382
- const P = 8;
1383
- function Z({
1384
- title: e,
1385
- characters: t,
1386
- charNameColor: a,
1387
- iconScale: r,
1388
- jinxes: n,
1389
- allCharacters: l,
1390
- inlineJinxIcons: c
1391
- }) {
1392
- const o = t.length > P ? "space-between" : t.length % 2 === 0 ? "space-around" : "flex-start", h = K(t);
1393
- return /* @__PURE__ */ i("div", { className: "character-section", children: [
1394
- /* @__PURE__ */ i("h2", { className: "section-title", children: e }),
1395
- /* @__PURE__ */ i("div", { className: "character-list", children: [
1396
- /* @__PURE__ */ i("div", { className: "character-column", style: { justifyContent: o }, children: t.slice(0, h).map((s) => /* @__PURE__ */ i(
1397
- L,
1398
- {
1399
- character: s,
1400
- color: a,
1401
- iconScale: r,
1402
- jinxedCharacters: J(s, n, l),
1403
- inlineJinxIcons: c
1404
- },
1405
- s.id
1406
- )) }),
1407
- /* @__PURE__ */ i("div", { className: "character-column", style: { justifyContent: o }, children: t.slice(h, t.length).map((s) => /* @__PURE__ */ i(
1408
- L,
1409
- {
1410
- character: s,
1411
- color: a,
1412
- iconScale: r,
1413
- jinxedCharacters: J(s, n, l),
1414
- inlineJinxIcons: c
1415
- },
1416
- s.id
1417
- )) })
1418
- ] })
1419
- ] });
1420
- }
1421
- function L({
1422
- character: e,
1423
- color: t,
1424
- iconScale: a,
1425
- jinxedCharacters: r,
1426
- inlineJinxIcons: n
1427
- }) {
1428
- const l = (o) => {
1429
- const h = o.match(/^(.*?)(\[.*?\])$/);
1430
- if (h) {
1431
- const [, s, d] = h;
1432
- return /* @__PURE__ */ i(f, { children: [
1433
- s,
1434
- /* @__PURE__ */ i("strong", { className: "setup-ability", children: d })
1435
- ] });
1436
- }
1437
- return o;
1438
- }, c = M(e);
1439
- return /* @__PURE__ */ i("div", { className: "character-card", children: [
1440
- /* @__PURE__ */ i("div", { className: "character-icon-wrapper", children: c ? /* @__PURE__ */ i(
1441
- "img",
1442
- {
1443
- src: c,
1444
- alt: e.name,
1445
- className: "character-icon",
1446
- style: { scale: a.toString() }
1447
- }
1448
- ) : /* @__PURE__ */ i(
1449
- "div",
1450
- {
1451
- className: "character-icon-placeholder",
1452
- style: { color: t, scale: a.toString() },
1453
- children: e.name.charAt(0)
1454
- }
1455
- ) }),
1456
- /* @__PURE__ */ i("div", { className: "character-info", children: [
1457
- /* @__PURE__ */ i("h3", { className: "character-name", style: { color: t }, children: [
1458
- e.name,
1459
- n && r.length > 0 && /* @__PURE__ */ i("span", { className: "inline-jinx-icons", children: r.map((o) => {
1460
- const h = M(o);
1461
- return h ? /* @__PURE__ */ i(
1462
- "img",
1463
- {
1464
- src: h,
1465
- alt: o.name,
1466
- className: "inline-jinx-icon",
1467
- title: `Jinxed with ${o.name}`
1468
- },
1469
- o.id
1470
- ) : /* @__PURE__ */ i(
1471
- "span",
1472
- {
1473
- className: "inline-jinx-icon-placeholder",
1474
- title: `Jinxed with ${o.name}`,
1475
- children: o.name.charAt(0)
1476
- },
1477
- o.id
1478
- );
1479
- }) })
1480
- ] }),
1481
- /* @__PURE__ */ i("p", { className: "character-ability", children: l(e.ability) })
1482
- ] })
1483
- ] });
1484
- }
1485
- function K(e) {
1486
- const t = Math.ceil(e.length / 2);
1487
- if (e.length % 2 === 0 || e.length <= P)
1488
- return t;
1489
- const a = t, r = t - 1, n = e.slice(0, a), l = e.slice(r - 1), c = n.reduce(
1490
- (h, s) => h + s.ability.length,
1491
- 0
1492
- ), o = l.reduce(
1493
- (h, s) => h + s.ability.length,
1494
- 0
1495
- );
1496
- return c < o ? a : r;
1497
- }
1498
- const D = /* @__PURE__ */ new Set([
1621
+ const W = /* @__PURE__ */ new Set([
1499
1622
  "the",
1500
1623
  "of",
1501
1624
  "in",
@@ -1515,21 +1638,21 @@ const D = /* @__PURE__ */ new Set([
1515
1638
  "upon",
1516
1639
  "after",
1517
1640
  "before"
1518
- ]), I = (e, t) => D.has(e) || t === 0 && D.has(e.toLowerCase()), q = (e) => e.split(/\s+/).reduce((t, a, r, n) => {
1519
- const l = I(a, r), c = r > 0 && I(n[r - 1], r - 1);
1520
- if (r === 0 || l !== c) {
1521
- const h = [];
1522
- for (let d = r; d < n.length && I(n[d], d) === l; d++)
1523
- h.push(n[d]);
1524
- const s = t.length > 0;
1641
+ ]), j = (i, t) => W.has(i) || t === 0 && W.has(i.toLowerCase()), se = (i) => i.split(/\s+/).reduce((t, a, r, n) => {
1642
+ const h = j(a, r), l = r > 0 && j(n[r - 1], r - 1);
1643
+ if (r === 0 || h !== l) {
1644
+ const c = [];
1645
+ for (let d = r; d < n.length && j(n[d], d) === h; d++)
1646
+ c.push(n[d]);
1647
+ const o = t.length > 0;
1525
1648
  t.push(
1526
- /* @__PURE__ */ i(
1649
+ /* @__PURE__ */ e(
1527
1650
  "span",
1528
1651
  {
1529
- className: l ? "minor-word" : void 0,
1652
+ className: h ? "minor-word" : void 0,
1530
1653
  children: [
1531
- s && " ",
1532
- h.join(" ")
1654
+ o && " ",
1655
+ c.join(" ")
1533
1656
  ]
1534
1657
  },
1535
1658
  r
@@ -1538,22 +1661,22 @@ const D = /* @__PURE__ */ new Set([
1538
1661
  }
1539
1662
  return t;
1540
1663
  }, []);
1541
- function k(e) {
1542
- return typeof e == "string" ? e === "dawn" ? "/images/dawn-icon.png" : e === "dusk" ? "/images/dusk-icon.png" : e === "minioninfo" ? "/images/minioninfo.png" : "/images/demoninfo.png" : typeof e.image == "string" ? e.image : Array.isArray(e.image) && e.image.length ? e.image[0] : e.wiki_image;
1664
+ function p(i) {
1665
+ return typeof i == "string" ? i === "dawn" ? "/images/dawn-icon.png" : i === "dusk" ? "/images/dusk-icon.png" : i === "minioninfo" ? "/images/minioninfo.png" : "/images/demoninfo.png" : typeof i.image == "string" ? i.image : Array.isArray(i.image) && i.image.length ? i.image[0] : i.wiki_image;
1543
1666
  }
1544
- const X = (e) => {
1545
- const t = e.nightOrders.first, a = e.nightOrders.other;
1546
- return /* @__PURE__ */ i("div", { class: "night-orders-container", children: [
1547
- /* @__PURE__ */ i("div", { class: "night-order", children: [
1548
- /* @__PURE__ */ i("p", { children: "First Night:" }),
1549
- /* @__PURE__ */ i("div", { class: "icon-row", children: t.map((r) => /* @__PURE__ */ i("img", { src: k(r), class: "icon" })) })
1667
+ const he = (i) => {
1668
+ const t = i.nightOrders.first, a = i.nightOrders.other;
1669
+ return /* @__PURE__ */ e("div", { class: "night-orders-container", children: [
1670
+ /* @__PURE__ */ e("div", { class: "night-order", children: [
1671
+ /* @__PURE__ */ e("p", { children: "First Night:" }),
1672
+ /* @__PURE__ */ e("div", { class: "icon-row", children: t.map((r) => /* @__PURE__ */ e("img", { src: p(r), class: "icon" })) })
1550
1673
  ] }),
1551
- /* @__PURE__ */ i("div", { class: "night-order", children: [
1552
- /* @__PURE__ */ i("p", { children: "Other Nights:" }),
1553
- /* @__PURE__ */ i("div", { class: "icon-row", children: a.map((r) => /* @__PURE__ */ i("img", { src: k(r), class: "icon" })) })
1674
+ /* @__PURE__ */ e("div", { class: "night-order", children: [
1675
+ /* @__PURE__ */ e("p", { children: "Other Nights:" }),
1676
+ /* @__PURE__ */ e("div", { class: "icon-row", children: a.map((r) => /* @__PURE__ */ e("img", { src: p(r), class: "icon" })) })
1554
1677
  ] })
1555
1678
  ] });
1556
- }, Q = {
1679
+ }, le = {
1557
1680
  5: [3, 0, 1, 1],
1558
1681
  6: [3, 1, 1, 1],
1559
1682
  7: [5, 0, 1, 1],
@@ -1565,38 +1688,45 @@ const X = (e) => {
1565
1688
  13: [9, 0, 3, 1],
1566
1689
  14: [9, 1, 3, 1],
1567
1690
  "15+": [9, 2, 3, 1]
1568
- }, ee = () => /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i("div", { className: "player-count-container", children: [
1569
- /* @__PURE__ */ i("div", { className: "count-column titles", children: [
1570
- /* @__PURE__ */ i("div", { className: "row-title", children: "Players" }),
1571
- /* @__PURE__ */ i("div", { className: "row-title good-count", children: "Townsfolk" }),
1572
- /* @__PURE__ */ i("div", { className: "row-title good-count", children: "Outsiders" }),
1573
- /* @__PURE__ */ i("div", { className: "row-title evil-count", children: "Minions" }),
1574
- /* @__PURE__ */ i("div", { className: "row-title evil-count", children: "Demons" })
1575
- ] }),
1576
- Object.entries(Q).map(([e, t]) => /* @__PURE__ */ i("div", { className: "count-column", children: [
1577
- /* @__PURE__ */ i("div", { className: "player-count", children: e }),
1578
- /* @__PURE__ */ i("div", { className: "good-count", children: t[0] }),
1579
- /* @__PURE__ */ i("div", { className: "good-count", children: t[1] }),
1580
- /* @__PURE__ */ i("div", { className: "evil-count", children: t[2] }),
1581
- /* @__PURE__ */ i("div", { className: "evil-count", children: t[3] })
1582
- ] }))
1583
- ] }) }), ie = ({
1584
- title: e,
1691
+ }, z = ({ background: i = !0 }) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
1692
+ "div",
1693
+ {
1694
+ className: `player-count-container ${i ? "with-background" : ""}`,
1695
+ children: [
1696
+ /* @__PURE__ */ e("div", { className: "count-column titles", children: [
1697
+ /* @__PURE__ */ e("div", { className: "row-title", children: "Players" }),
1698
+ /* @__PURE__ */ e("div", { className: "row-title good-count", children: "Townsfolk" }),
1699
+ /* @__PURE__ */ e("div", { className: "row-title good-count", children: "Outsiders" }),
1700
+ /* @__PURE__ */ e("div", { className: "row-title evil-count", children: "Minions" }),
1701
+ /* @__PURE__ */ e("div", { className: "row-title evil-count", children: "Demons" })
1702
+ ] }),
1703
+ Object.entries(le).map(([t, a]) => /* @__PURE__ */ e("div", { className: "count-column", children: [
1704
+ /* @__PURE__ */ e("div", { className: "player-count", children: t }),
1705
+ /* @__PURE__ */ e("div", { className: "good-count", children: a[0] }),
1706
+ /* @__PURE__ */ e("div", { className: "good-count", children: a[1] }),
1707
+ /* @__PURE__ */ e("div", { className: "evil-count", children: a[2] }),
1708
+ /* @__PURE__ */ e("div", { className: "evil-count", children: a[3] })
1709
+ ] }))
1710
+ ]
1711
+ }
1712
+ ) }), ce = ({
1713
+ title: i,
1585
1714
  color: t,
1586
1715
  includeMargins: a,
1587
1716
  formatMinorWords: r = !1,
1588
1717
  displayNightOrder: n = !1,
1589
- nightOrders: l = { first: [], other: [] },
1590
- displayPlayerCounts: c = !0
1718
+ nightOrders: h = { first: [], other: [] },
1719
+ displayPlayerCounts: l = !0,
1720
+ dimensions: s
1591
1721
  }) => {
1592
- const o = () => {
1593
- const s = e.split("&");
1594
- return s.map((d, y) => /* @__PURE__ */ i(f, { children: [
1595
- r ? q(d) : d,
1596
- y < s.length - 1 && /* @__PURE__ */ i("span", { className: "ampersand", children: "&" })
1722
+ const c = () => {
1723
+ const d = i.split("&");
1724
+ return d.map((g, y) => /* @__PURE__ */ e(f, { children: [
1725
+ r ? se(g) : g,
1726
+ y < d.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
1597
1727
  ] }));
1598
- }, h = S(t, 180);
1599
- return /* @__PURE__ */ i(
1728
+ }, o = J(t, 180);
1729
+ return /* @__PURE__ */ e(L, { dimensions: s, children: /* @__PURE__ */ e(
1600
1730
  "div",
1601
1731
  {
1602
1732
  className: "sheet-backing",
@@ -1604,63 +1734,48 @@ const X = (e) => {
1604
1734
  transform: a ? "scale(0.952)" : void 0
1605
1735
  },
1606
1736
  children: [
1607
- /* @__PURE__ */ i("div", { className: "sheet-background", children: /* @__PURE__ */ i("div", { className: "title-container", children: /* @__PURE__ */ i("h1", { children: o() }) }) }),
1608
- /* @__PURE__ */ i(
1737
+ /* @__PURE__ */ e("div", { className: "sheet-background", children: /* @__PURE__ */ e("div", { className: "title-container", children: /* @__PURE__ */ e("h1", { children: c() }) }) }),
1738
+ /* @__PURE__ */ e(
1609
1739
  "div",
1610
1740
  {
1611
1741
  className: "sheet-back-overlay",
1612
- style: { background: h }
1742
+ style: { background: o }
1613
1743
  }
1614
1744
  ),
1615
- /* @__PURE__ */ i("div", { className: "back-info-container", children: [
1616
- c && /* @__PURE__ */ i(ee, {}),
1617
- n && /* @__PURE__ */ i(X, { nightOrders: l })
1745
+ /* @__PURE__ */ e("div", { className: "back-info-container", children: [
1746
+ l && /* @__PURE__ */ e(z, {}),
1747
+ n && /* @__PURE__ */ e(he, { nightOrders: h })
1618
1748
  ] })
1619
1749
  ]
1620
1750
  }
1621
- );
1622
- }, te = (e) => /* @__PURE__ */ i(f, { children: [
1623
- /* @__PURE__ */ i(T, { ...e, children: [
1624
- /* @__PURE__ */ i("div", { className: "night-sheet-heading", children: [
1625
- /* @__PURE__ */ i("h3", { className: "night-title", children: "First Night" }),
1626
- /* @__PURE__ */ i("h3", { className: "script-title", children: e.title })
1627
- ] }),
1628
- /* @__PURE__ */ i("div", { className: "night-sheet-order", children: e.firstNightOrder.map((t) => /* @__PURE__ */ i(A, { entry: t, night: "first" })) })
1629
- ] }),
1630
- /* @__PURE__ */ i(T, { ...e, children: [
1631
- /* @__PURE__ */ i("div", { className: "night-sheet-heading", children: [
1632
- /* @__PURE__ */ i("h3", { className: "night-title", children: "Other Nights" }),
1633
- /* @__PURE__ */ i("h3", { className: "script-title", children: e.title })
1634
- ] }),
1635
- /* @__PURE__ */ i("div", { className: "night-sheet-order", children: e.otherNightOrder.map((t) => /* @__PURE__ */ i(A, { entry: t, night: "other" })) })
1636
- ] })
1637
- ] }), T = (e) => {
1638
- const t = j(e.color), a = O(t, 20), r = S(e.color, 180);
1639
- return /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(
1751
+ ) });
1752
+ }, S = (i) => {
1753
+ const t = M(i.color), a = C(t, 20), r = J(i.color, 180);
1754
+ return /* @__PURE__ */ e(L, { dimensions: i.dimensions, children: /* @__PURE__ */ e(
1640
1755
  "div",
1641
1756
  {
1642
- className: "night-sheet",
1757
+ className: "bottom-trim-sheet",
1643
1758
  style: {
1644
- transform: e.includeMargins ? "scale(0.952)" : void 0,
1759
+ transform: i.includeMargins ? "scale(0.952)" : void 0,
1645
1760
  "--header-gradient": a
1646
1761
  },
1647
1762
  children: [
1648
- /* @__PURE__ */ i(
1763
+ /* @__PURE__ */ e(
1649
1764
  "img",
1650
1765
  {
1651
1766
  className: "character-sheet-background",
1652
1767
  src: "/images/parchment_texture_a4_lightened.jpg"
1653
1768
  }
1654
1769
  ),
1655
- /* @__PURE__ */ i("div", { className: "sheet-content", children: e.children }),
1656
- /* @__PURE__ */ i("div", { className: "spacer" }),
1657
- /* @__PURE__ */ i("div", { className: "info-footer-container", children: [
1658
- /* @__PURE__ */ i("div", { className: "info-author-credit", children: [
1659
- /* @__PURE__ */ i("p", { children: "© Steven Medway bloodontheclocktower.com" }),
1660
- /* @__PURE__ */ i("p", { children: "Script template by John Forster ravenswoodstudio.xyz" })
1770
+ /* @__PURE__ */ e("div", { className: "sheet-content", children: i.children }),
1771
+ /* @__PURE__ */ e("div", { className: "spacer" }),
1772
+ /* @__PURE__ */ e("div", { className: "info-footer-container", children: [
1773
+ /* @__PURE__ */ e("div", { className: "info-author-credit", children: [
1774
+ /* @__PURE__ */ e("p", { children: "© Steven Medway bloodontheclocktower.com" }),
1775
+ /* @__PURE__ */ e("p", { children: "Script template by John Forster ravenswoodstudio.xyz" })
1661
1776
  ] }),
1662
- /* @__PURE__ */ i("div", { className: "info-footer-background" }),
1663
- /* @__PURE__ */ i(
1777
+ /* @__PURE__ */ e("div", { className: "info-footer-background" }),
1778
+ /* @__PURE__ */ e(
1664
1779
  "div",
1665
1780
  {
1666
1781
  className: "info-footer-overlay",
@@ -1671,30 +1786,45 @@ const X = (e) => {
1671
1786
  ]
1672
1787
  }
1673
1788
  ) });
1674
- }, ae = () => /* @__PURE__ */ i("img", { className: "reminder-icon", src: "/images/reminder.png" }), A = (e) => {
1675
- const t = k(e.entry), { reminderText: a, name: r } = ne(e.entry, e.night), n = typeof e.entry == "string" ? "#222" : b[e.entry.team];
1789
+ }, de = (i) => /* @__PURE__ */ e(f, { children: [
1790
+ /* @__PURE__ */ e(S, { ...i, children: [
1791
+ /* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
1792
+ /* @__PURE__ */ e("h3", { className: "night-title", children: "First Night" }),
1793
+ /* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
1794
+ ] }),
1795
+ /* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.firstNightOrder.map((t) => /* @__PURE__ */ e(E, { entry: t, night: "first" })) })
1796
+ ] }),
1797
+ /* @__PURE__ */ e(S, { ...i, children: [
1798
+ /* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
1799
+ /* @__PURE__ */ e("h3", { className: "night-title", children: "Other Nights" }),
1800
+ /* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
1801
+ ] }),
1802
+ /* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.otherNightOrder.map((t) => /* @__PURE__ */ e(E, { entry: t, night: "other" })) })
1803
+ ] })
1804
+ ] }), me = () => /* @__PURE__ */ e("img", { className: "reminder-icon", src: "/images/reminder.png" }), E = (i) => {
1805
+ const t = p(i.entry), { reminderText: a, name: r } = ge(i.entry, i.night), n = typeof i.entry == "string" ? "#222" : v[i.entry.team];
1676
1806
  if (!a)
1677
- return console.warn("No reminder text found for:", e.entry), /* @__PURE__ */ i(f, {});
1678
- const l = (o) => o.split(":reminder:").map((h, s) => s % 2 === 0 ? h : /* @__PURE__ */ i(ae, {}));
1679
- return /* @__PURE__ */ i("div", { className: "night-sheet-entry", children: [
1680
- /* @__PURE__ */ i("img", { src: t }),
1681
- /* @__PURE__ */ i("div", { className: "night-sheet-entry-text", children: [
1682
- /* @__PURE__ */ i("p", { className: "reminder-name", style: { color: n }, children: r }),
1683
- /* @__PURE__ */ i("p", { className: "reminder-text", children: ((o) => {
1684
- const h = o.split("*").map((s, d) => d % 2 === 0 ? s : /* @__PURE__ */ i("strong", { children: s })).map((s) => typeof s == "string" ? l(s) : s);
1685
- return /* @__PURE__ */ i(f, { children: h });
1807
+ return console.warn("No reminder text found for:", i.entry), /* @__PURE__ */ e(f, {});
1808
+ const h = (s) => s.split(":reminder:").map((c, o) => o % 2 === 0 ? c : /* @__PURE__ */ e(me, {}));
1809
+ return /* @__PURE__ */ e("div", { className: "night-sheet-entry", children: [
1810
+ /* @__PURE__ */ e("img", { src: t }),
1811
+ /* @__PURE__ */ e("div", { className: "night-sheet-entry-text", children: [
1812
+ /* @__PURE__ */ e("p", { className: "reminder-name", style: { color: n }, children: r }),
1813
+ /* @__PURE__ */ e("p", { className: "reminder-text", children: ((s) => {
1814
+ const c = s.split("*").map((o, d) => d % 2 === 0 ? o : /* @__PURE__ */ e("strong", { children: o })).map((o) => typeof o == "string" ? h(o) : o);
1815
+ return /* @__PURE__ */ e(f, { children: c });
1686
1816
  })(a) })
1687
1817
  ] })
1688
1818
  ] });
1689
- }, ne = (e, t) => {
1690
- if (typeof e == "object") {
1691
- const a = t === "first" ? e.firstNightReminder : e.otherNightReminder, r = e.name;
1819
+ }, ge = (i, t) => {
1820
+ if (typeof i == "object") {
1821
+ const a = t === "first" ? i.firstNightReminder : i.otherNightReminder, r = i.name;
1692
1822
  return { reminderText: a, name: r };
1693
1823
  } else {
1694
- const a = re[e], r = t === "first" ? a.first : a.other ?? "", n = a.name;
1824
+ const a = ye[i], r = t === "first" ? a.first : a.other ?? "", n = a.name;
1695
1825
  return { reminderText: r, name: n };
1696
1826
  }
1697
- }, re = {
1827
+ }, ye = {
1698
1828
  dusk: {
1699
1829
  first: "Start the Night Phase.",
1700
1830
  name: "Dusk",
@@ -1714,10 +1844,10 @@ const X = (e) => {
1714
1844
  name: "Minion Info"
1715
1845
  }
1716
1846
  };
1717
- function oe(e) {
1718
- const t = e.filter((n) => n.team === "fabled");
1847
+ function ue(i) {
1848
+ const t = i.filter((n) => n.team === "fabled");
1719
1849
  return [
1720
- ...e.filter((n) => n.team === "loric").map((n) => ({
1850
+ ...i.filter((n) => n.team === "loric").map((n) => ({
1721
1851
  name: n.name,
1722
1852
  note: n.ability,
1723
1853
  image: n.wiki_image ?? (Array.isArray(n.image) ? n.image[0] : n.image)
@@ -1729,69 +1859,188 @@ function oe(e) {
1729
1859
  }))
1730
1860
  ];
1731
1861
  }
1732
- function le({ script: e, options: t, nightOrders: a }) {
1733
- var r;
1734
- return /* @__PURE__ */ i("div", { className: "sheet-wrapper", children: [
1735
- Array(t.numberOfCharacterSheets).fill(!0).map((n, l) => {
1736
- var c, o, h, s;
1737
- return /* @__PURE__ */ i("div", { className: l === 0 ? "" : "print-only", children: [
1738
- /* @__PURE__ */ i(
1739
- F,
1862
+ const fe = (i) => {
1863
+ var t, a, r, n, h, l, s, c;
1864
+ return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(S, { ...i, children: [
1865
+ /* @__PURE__ */ e("div", { className: "info-sheet-heading", children: /* @__PURE__ */ e("h3", { className: "script-title", children: i.title }) }),
1866
+ /* @__PURE__ */ e("div", { className: "info-sheet-content", children: [
1867
+ i.displayNightOrder && !!((t = i.firstNightOrder) != null && t.length) && /* @__PURE__ */ e(f, { children: [
1868
+ /* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "First Night" }),
1869
+ /* @__PURE__ */ e("div", { class: "info-sheet-section", children: /* @__PURE__ */ e("div", { className: "icon-row", children: i.firstNightOrder.map((o) => /* @__PURE__ */ e("img", { src: p(o), class: "icon" })) }) })
1870
+ ] }),
1871
+ i.displayNightOrder && !!((a = i.otherNightOrder) != null && a.length) && /* @__PURE__ */ e(f, { children: [
1872
+ /* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Other Nights" }),
1873
+ /* @__PURE__ */ e("div", { class: "info-sheet-section", children: /* @__PURE__ */ e("div", { className: "icon-row", children: i.otherNightOrder.map((o) => /* @__PURE__ */ e("img", { src: p(o), class: "icon" })) }) })
1874
+ ] }),
1875
+ !!((r = i.fabledOrLoric) != null && r.length) && /* @__PURE__ */ e(f, { children: [
1876
+ /* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Fabled & Loric" }),
1877
+ /* @__PURE__ */ e("div", { class: "info-sheet-section", children: (n = i.fabledOrLoric) == null ? void 0 : n.map((o) => {
1878
+ var d;
1879
+ return /* @__PURE__ */ e("div", { className: "info-fabled-loric-entry", children: [
1880
+ /* @__PURE__ */ e("img", { src: o.image, alt: o.name, class: "icon" }),
1881
+ /* @__PURE__ */ e("div", { className: "info-fabled-loric-text", children: [
1882
+ /* @__PURE__ */ e("p", { className: "info-fabled-loric-name", children: o.name }),
1883
+ /* @__PURE__ */ e("p", { className: "info-fabled-loric-note", children: o.note }),
1884
+ o.name.toLowerCase() === "bootlegger" && ((d = i.bootleggerRules) == null ? void 0 : d.map((g, y) => /* @__PURE__ */ e(
1885
+ "p",
1886
+ {
1887
+ className: "info-fabled-loric-note",
1888
+ children: g
1889
+ },
1890
+ `bootlegger-rule-${y}`
1891
+ )))
1892
+ ] })
1893
+ ] });
1894
+ }) })
1895
+ ] }),
1896
+ !!((h = i.jinxes) != null && h.length) && /* @__PURE__ */ e(f, { children: [
1897
+ /* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Jinxes" }),
1898
+ /* @__PURE__ */ e("div", { class: "info-sheet-section", children: (l = i.jinxes) == null ? void 0 : l.map((o) => /* @__PURE__ */ e("div", { className: "info-jinx-entry", children: [
1899
+ /* @__PURE__ */ e(
1900
+ "img",
1901
+ {
1902
+ src: p(o.characters[0]),
1903
+ alt: o.text,
1904
+ class: "icon"
1905
+ }
1906
+ ),
1907
+ /* @__PURE__ */ e(
1908
+ "img",
1909
+ {
1910
+ src: p(o.characters[1]),
1911
+ alt: o.text,
1912
+ class: "icon"
1913
+ }
1914
+ ),
1915
+ /* @__PURE__ */ e("div", { className: "info-jinx-text", children: [
1916
+ /* @__PURE__ */ e("p", { className: "info-jinx-name", children: [
1917
+ o.characters[0].name,
1918
+ " & ",
1919
+ o.characters[1].name
1920
+ ] }),
1921
+ /* @__PURE__ */ e("p", { className: "info-jinx-note", children: o.text })
1922
+ ] })
1923
+ ] })) })
1924
+ ] }),
1925
+ !!((s = i.travellers) != null && s.length) && /* @__PURE__ */ e(f, { children: [
1926
+ /* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Recommended Travellers" }),
1927
+ /* @__PURE__ */ e("div", { class: "info-sheet-section", children: (c = i.travellers) == null ? void 0 : c.map((o) => /* @__PURE__ */ e("div", { className: "info-fabled-loric-entry", children: [
1928
+ /* @__PURE__ */ e(
1929
+ "img",
1930
+ {
1931
+ src: p(o),
1932
+ alt: o.name,
1933
+ class: "icon"
1934
+ }
1935
+ ),
1936
+ /* @__PURE__ */ e("div", { className: "info-fabled-loric-text", children: [
1937
+ /* @__PURE__ */ e("p", { className: "info-fabled-loric-name", children: o.name }),
1938
+ /* @__PURE__ */ e("p", { className: "info-fabled-loric-note", children: o.ability })
1939
+ ] })
1940
+ ] })) })
1941
+ ] }),
1942
+ i.showBaseCharacterCounts && /* @__PURE__ */ e(f, { children: [
1943
+ /* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Base Character Counts" }),
1944
+ /* @__PURE__ */ e("div", { className: "info-sheet-section", children: /* @__PURE__ */ e(z, { background: !1 }) })
1945
+ ] })
1946
+ ] })
1947
+ ] }) });
1948
+ };
1949
+ function ve({ script: i, options: t, nightOrders: a }) {
1950
+ var s;
1951
+ const r = Y(i.characters), n = t.showJinxes ? K(i.characters, t.useOldJinxes) : [], h = n.map(
1952
+ ({ characters: [c, o], jinx: d }) => {
1953
+ const g = i.characters.find((m) => m.id === c), y = i.characters.find((m) => m.id === o);
1954
+ return {
1955
+ characters: [g, y],
1956
+ text: d
1957
+ };
1958
+ }
1959
+ ), l = ue(i.characters);
1960
+ return /* @__PURE__ */ e("div", { className: "sheet-wrapper", children: [
1961
+ Array(t.numberOfCharacterSheets).fill(!0).map((c, o) => {
1962
+ var d, g, y, m, u, x;
1963
+ return /* @__PURE__ */ e("div", { className: o === 0 ? "" : "print-only", children: [
1964
+ /* @__PURE__ */ e(
1965
+ ne,
1740
1966
  {
1741
- title: ((c = e.metadata) == null ? void 0 : c.name) || "Custom Script",
1742
- author: t.showAuthor ? (o = e.metadata) == null ? void 0 : o.author : void 0,
1743
- characters: $(e.characters),
1967
+ title: ((d = i.metadata) == null ? void 0 : d.name) || "Custom Script",
1968
+ author: t.showAuthor ? (g = i.metadata) == null ? void 0 : g.author : void 0,
1969
+ characters: r,
1744
1970
  color: t.color,
1745
- jinxes: t.showJinxes ? V(e.characters, t.useOldJinxes) : [],
1746
- fabledOrLoric: oe(e.characters),
1971
+ jinxes: n,
1972
+ fabledOrLoric: l,
1747
1973
  showSwirls: t.showSwirls,
1748
1974
  includeMargins: t.includeMargins,
1749
1975
  solidTitle: t.solidTitle,
1750
1976
  iconScale: t.iconScale,
1751
1977
  appearance: t.appearance,
1752
1978
  inlineJinxIcons: t.inlineJinxIcons,
1753
- bootleggerRules: (h = e.metadata) == null ? void 0 : h.bootlegger
1979
+ bootleggerRules: (y = i.metadata) == null ? void 0 : y.bootlegger,
1980
+ dimensions: t.dimensions
1754
1981
  }
1755
1982
  ),
1756
- /* @__PURE__ */ i("div", { style: "break-after:page;" }),
1757
- t.showBackingSheet && /* @__PURE__ */ i(f, { children: [
1758
- /* @__PURE__ */ i(
1759
- ie,
1983
+ /* @__PURE__ */ e("div", { style: "break-after:page;" }),
1984
+ t.overleaf === "backingSheet" && /* @__PURE__ */ e(f, { children: [
1985
+ /* @__PURE__ */ e(
1986
+ ce,
1760
1987
  {
1761
- title: ((s = e.metadata) == null ? void 0 : s.name) || "Custom Script",
1988
+ title: ((m = i.metadata) == null ? void 0 : m.name) || "Custom Script",
1762
1989
  color: t.color,
1763
1990
  includeMargins: t.includeMargins,
1764
1991
  nightOrders: a,
1765
1992
  formatMinorWords: t.formatMinorWords,
1766
1993
  displayNightOrder: t.displayNightOrder,
1767
- displayPlayerCounts: t.displayPlayerCounts
1994
+ displayPlayerCounts: t.displayPlayerCounts,
1995
+ dimensions: t.dimensions
1996
+ }
1997
+ ),
1998
+ /* @__PURE__ */ e("div", { style: "break-after:page;" })
1999
+ ] }),
2000
+ t.overleaf === "infoSheet" && /* @__PURE__ */ e(f, { children: [
2001
+ /* @__PURE__ */ e(
2002
+ fe,
2003
+ {
2004
+ firstNightOrder: a.first,
2005
+ otherNightOrder: a.other,
2006
+ includeMargins: t.includeMargins,
2007
+ title: ((u = i.metadata) == null ? void 0 : u.name) || "Custom Script",
2008
+ color: t.color,
2009
+ bootleggerRules: (x = i.metadata) == null ? void 0 : x.bootlegger,
2010
+ jinxes: h,
2011
+ fabledOrLoric: l,
2012
+ travellers: r.traveller,
2013
+ showBaseCharacterCounts: t.displayPlayerCounts,
2014
+ displayNightOrder: t.displayNightOrder,
2015
+ dimensions: t.dimensions
1768
2016
  }
1769
2017
  ),
1770
- /* @__PURE__ */ i("div", { style: "break-after:page;" })
2018
+ /* @__PURE__ */ e("div", { style: "break-after:page;" })
1771
2019
  ] })
1772
2020
  ] });
1773
2021
  }),
1774
- t.showNightSheet && /* @__PURE__ */ i(f, { children: [
1775
- /* @__PURE__ */ i(
1776
- te,
2022
+ t.showNightSheet && /* @__PURE__ */ e(f, { children: [
2023
+ /* @__PURE__ */ e(
2024
+ de,
1777
2025
  {
1778
2026
  firstNightOrder: a.first,
1779
2027
  otherNightOrder: a.other,
1780
2028
  includeMargins: t.includeMargins,
1781
- title: ((r = e.metadata) == null ? void 0 : r.name) || "Custom Script",
1782
- color: t.color
2029
+ title: ((s = i.metadata) == null ? void 0 : s.name) || "Custom Script",
2030
+ color: t.color,
2031
+ dimensions: t.dimensions
1783
2032
  }
1784
2033
  ),
1785
- /* @__PURE__ */ i("div", { style: "break-after:page;" })
2034
+ /* @__PURE__ */ e("div", { style: "break-after:page;" })
1786
2035
  ] })
1787
2036
  ] });
1788
2037
  }
1789
2038
  export {
1790
- F as CharacterSheet,
1791
- le as FancyDoc,
1792
- te as NightSheet,
1793
- ie as SheetBack,
1794
- B as darken,
1795
- z as parseRgb,
1796
- _ as rgbString
2039
+ ne as CharacterSheet,
2040
+ ve as FancyDoc,
2041
+ de as NightSheet,
2042
+ ce as SheetBack,
2043
+ F as darken,
2044
+ $ as parseRgb,
2045
+ V as rgbString
1797
2046
  };