@instructure/platform-assignment-review 0.4.12 → 0.4.15

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 (2) hide show
  1. package/dist/index.js +352 -352
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -42,19 +42,19 @@ function ei(e) {
42
42
  function ti(e, n) {
43
43
  var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
44
44
  if (o != null) {
45
- var a, c, l, u, h = [], d = !0, f = !1;
45
+ var a, l, c, d, f = [], m = !0, p = !1;
46
46
  try {
47
- if (l = (o = o.call(e)).next, n !== 0) for (; !(d = (a = l.call(o)).done) && (h.push(a.value), h.length !== n); d = !0) ;
48
- } catch (g) {
49
- f = !0, c = g;
47
+ if (c = (o = o.call(e)).next, n !== 0) for (; !(m = (a = c.call(o)).done) && (f.push(a.value), f.length !== n); m = !0) ;
48
+ } catch (h) {
49
+ p = !0, l = h;
50
50
  } finally {
51
51
  try {
52
- if (!d && o.return != null && (u = o.return(), Object(u) !== u)) return;
52
+ if (!m && o.return != null && (d = o.return(), Object(d) !== d)) return;
53
53
  } finally {
54
- if (f) throw c;
54
+ if (p) throw l;
55
55
  }
56
56
  }
57
- return h;
57
+ return f;
58
58
  }
59
59
  }
60
60
  function ni() {
@@ -80,21 +80,21 @@ Y || (Y = function(n) {
80
80
  return n;
81
81
  });
82
82
  yt || (yt = function(n, o) {
83
- for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), l = 2; l < a; l++)
84
- c[l - 2] = arguments[l];
85
- return n.apply(o, c);
83
+ for (var a = arguments.length, l = new Array(a > 2 ? a - 2 : 0), c = 2; c < a; c++)
84
+ l[c - 2] = arguments[c];
85
+ return n.apply(o, l);
86
86
  });
87
87
  At || (At = function(n) {
88
- for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
89
- a[c - 1] = arguments[c];
88
+ for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++)
89
+ a[l - 1] = arguments[l];
90
90
  return new n(...a);
91
91
  });
92
92
  const Te = x(Array.prototype.forEach), li = x(Array.prototype.lastIndexOf), Jt = x(Array.prototype.pop), ye = x(Array.prototype.push), ci = x(Array.prototype.splice), H = Array.isArray, Ne = x(String.prototype.toLowerCase), dt = x(String.prototype.toString), en = x(String.prototype.match), Ae = x(String.prototype.replace), tn = x(String.prototype.indexOf), mi = x(String.prototype.trim), ui = x(Number.prototype.toString), di = x(Boolean.prototype.toString), nn = typeof BigInt > "u" ? null : x(BigInt.prototype.toString), on = typeof Symbol > "u" ? null : x(Symbol.prototype.toString), D = x(Object.prototype.hasOwnProperty), Oe = x(Object.prototype.toString), z = x(RegExp.prototype.test), Ge = fi(TypeError);
93
93
  function x(e) {
94
94
  return function(n) {
95
95
  n instanceof RegExp && (n.lastIndex = 0);
96
- for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
97
- a[c - 1] = arguments[c];
96
+ for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++)
97
+ a[l - 1] = arguments[l];
98
98
  return yt(e, n, a);
99
99
  };
100
100
  }
@@ -111,12 +111,12 @@ function T(e, n) {
111
111
  return e;
112
112
  let a = n.length;
113
113
  for (; a--; ) {
114
- let c = n[a];
115
- if (typeof c == "string") {
116
- const l = o(c);
117
- l !== c && (ri(n) || (n[a] = l), c = l);
114
+ let l = n[a];
115
+ if (typeof l == "string") {
116
+ const c = o(l);
117
+ c !== l && (ri(n) || (n[a] = c), l = c);
118
118
  }
119
- e[c] = !0;
119
+ e[l] = !0;
120
120
  }
121
121
  return e;
122
122
  }
@@ -129,8 +129,8 @@ function W(e) {
129
129
  const n = _e(null);
130
130
  for (const a of An(e)) {
131
131
  var o = ii(a, 2);
132
- const c = o[0], l = o[1];
133
- D(e, c) && (H(l) ? n[c] = pi(l) : l && typeof l == "object" && l.constructor === Object ? n[c] = W(l) : n[c] = l);
132
+ const l = o[0], c = o[1];
133
+ D(e, l) && (H(c) ? n[l] = pi(c) : c && typeof c == "object" && c.constructor === Object ? n[l] = W(c) : n[l] = c);
134
134
  }
135
135
  return n;
136
136
  }
@@ -205,20 +205,20 @@ const rn = B(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
205
205
  if (typeof n != "object" || typeof n.createPolicy != "function")
206
206
  return null;
207
207
  let a = null;
208
- const c = "data-tt-policy-suffix";
209
- o && o.hasAttribute(c) && (a = o.getAttribute(c));
210
- const l = "dompurify" + (a ? "#" + a : "");
208
+ const l = "data-tt-policy-suffix";
209
+ o && o.hasAttribute(l) && (a = o.getAttribute(l));
210
+ const c = "dompurify" + (a ? "#" + a : "");
211
211
  try {
212
- return n.createPolicy(l, {
213
- createHTML(u) {
214
- return u;
212
+ return n.createPolicy(c, {
213
+ createHTML(d) {
214
+ return d;
215
215
  },
216
- createScriptURL(u) {
217
- return u;
216
+ createScriptURL(d) {
217
+ return d;
218
218
  }
219
219
  });
220
220
  } catch {
221
- return console.warn("TrustedTypes policy " + l + " could not be created."), null;
221
+ return console.warn("TrustedTypes policy " + c + " could not be created."), null;
222
222
  }
223
223
  }, mn = function() {
224
224
  return {
@@ -235,20 +235,20 @@ const rn = B(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
235
235
  };
236
236
  function _n() {
237
237
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ri();
238
- const n = (p) => _n(p);
238
+ const n = (g) => _n(g);
239
239
  if (n.version = "3.4.5", n.removed = [], !e || !e.document || e.document.nodeType !== Se.document || !e.Element)
240
240
  return n.isSupported = !1, n;
241
241
  let o = e.document;
242
- const a = o, c = a.currentScript, l = e.DocumentFragment, u = e.HTMLTemplateElement, h = e.Node, d = e.Element, f = e.NodeFilter, g = e.NamedNodeMap, C = g === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : g, I = e.HTMLFormElement, w = e.DOMParser, y = e.trustedTypes, V = d.prototype, fe = de(V, "cloneNode"), le = de(V, "remove"), M = de(V, "nextSibling"), ne = de(V, "childNodes"), O = de(V, "parentNode"), ce = h && h.prototype ? de(h.prototype, "nodeType") : null;
243
- if (typeof u == "function") {
244
- const p = o.createElement("template");
245
- p.content && p.content.ownerDocument && (o = p.content.ownerDocument);
242
+ const a = o, l = a.currentScript, c = e.DocumentFragment, d = e.HTMLTemplateElement, f = e.Node, m = e.Element, p = e.NodeFilter, h = e.NamedNodeMap, C = h === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : h, I = e.HTMLFormElement, w = e.DOMParser, y = e.trustedTypes, V = m.prototype, fe = de(V, "cloneNode"), le = de(V, "remove"), k = de(V, "nextSibling"), ne = de(V, "childNodes"), O = de(V, "parentNode"), ce = f && f.prototype ? de(f.prototype, "nodeType") : null;
243
+ if (typeof d == "function") {
244
+ const g = o.createElement("template");
245
+ g.content && g.content.ownerDocument && (o = g.content.ownerDocument);
246
246
  }
247
247
  let E, N = "";
248
248
  const J = o, Ie = J.implementation, xe = J.createNodeIterator, Xe = J.createDocumentFragment, Ke = J.getElementsByTagName, Ze = a.importNode;
249
249
  let j = mn();
250
250
  n.isSupported = typeof An == "function" && typeof O == "function" && Ie && Ie.createHTMLDocument !== void 0;
251
- const ke = yi, Me = Ai, Pe = Si, Cn = _i, Dn = Ei, Rn = Ii, wt = wi, On = Di;
251
+ const Me = yi, ke = Ai, Pe = Si, Cn = _i, Dn = Ei, Rn = Ii, wt = wi, On = Di;
252
252
  let Ct = cn, P = null;
253
253
  const Dt = T({}, [...rn, ...ft, ...pt, ...gt, ...sn]);
254
254
  let U = null;
@@ -288,10 +288,10 @@ function _n() {
288
288
  }
289
289
  }));
290
290
  let Ot = !0, Qe = !0, Nt = !1, vt = !0, oe = !1, Ce = !0, me = !1, Je = !1, et = !1, pe = !1, Ue = !1, ze = !1, Lt = !0, xt = !1;
291
- const kt = "user-content-";
291
+ const Mt = "user-content-";
292
292
  let tt = !0, De = !1, ge = {}, Z = null;
293
293
  const nt = T({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
294
- let Mt = null;
294
+ let kt = null;
295
295
  const Pt = T({}, ["audio", "video", "img", "source", "image", "track"]);
296
296
  let it = null;
297
297
  const Ft = T({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), je = "http://www.w3.org/1998/Math/MathML", He = "http://www.w3.org/2000/svg", Q = "http://www.w3.org/1999/xhtml";
@@ -301,33 +301,33 @@ function _n() {
301
301
  const vn = T({}, ["title", "style", "font", "a", "script"]);
302
302
  let Re = null;
303
303
  const Ln = ["application/xhtml+xml", "text/html"], xn = "text/html";
304
- let k = null, be = null;
305
- const kn = o.createElement("form"), Ut = function(t) {
304
+ let M = null, be = null;
305
+ const Mn = o.createElement("form"), Ut = function(t) {
306
306
  return t instanceof RegExp || t instanceof Function;
307
307
  }, lt = function() {
308
308
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
309
309
  if (be && be === t)
310
310
  return;
311
311
  (!t || typeof t != "object") && (t = {}), t = W(t), Re = // eslint-disable-next-line unicorn/prefer-includes
312
- Ln.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? xn : t.PARSER_MEDIA_TYPE, k = Re === "application/xhtml+xml" ? dt : Ne, P = D(t, "ALLOWED_TAGS") && H(t.ALLOWED_TAGS) ? T({}, t.ALLOWED_TAGS, k) : Dt, U = D(t, "ALLOWED_ATTR") && H(t.ALLOWED_ATTR) ? T({}, t.ALLOWED_ATTR, k) : Rt, rt = D(t, "ALLOWED_NAMESPACES") && H(t.ALLOWED_NAMESPACES) ? T({}, t.ALLOWED_NAMESPACES, dt) : Nn, it = D(t, "ADD_URI_SAFE_ATTR") && H(t.ADD_URI_SAFE_ATTR) ? T(W(Ft), t.ADD_URI_SAFE_ATTR, k) : Ft, Mt = D(t, "ADD_DATA_URI_TAGS") && H(t.ADD_DATA_URI_TAGS) ? T(W(Pt), t.ADD_DATA_URI_TAGS, k) : Pt, Z = D(t, "FORBID_CONTENTS") && H(t.FORBID_CONTENTS) ? T({}, t.FORBID_CONTENTS, k) : nt, we = D(t, "FORBID_TAGS") && H(t.FORBID_TAGS) ? T({}, t.FORBID_TAGS, k) : W({}), Fe = D(t, "FORBID_ATTR") && H(t.FORBID_ATTR) ? T({}, t.FORBID_ATTR, k) : W({}), ge = D(t, "USE_PROFILES") ? t.USE_PROFILES && typeof t.USE_PROFILES == "object" ? W(t.USE_PROFILES) : t.USE_PROFILES : !1, Ot = t.ALLOW_ARIA_ATTR !== !1, Qe = t.ALLOW_DATA_ATTR !== !1, Nt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = t.SAFE_FOR_TEMPLATES || !1, Ce = t.SAFE_FOR_XML !== !1, me = t.WHOLE_DOCUMENT || !1, pe = t.RETURN_DOM || !1, Ue = t.RETURN_DOM_FRAGMENT || !1, ze = t.RETURN_TRUSTED_TYPE || !1, et = t.FORCE_BODY || !1, Lt = t.SANITIZE_DOM !== !1, xt = t.SANITIZE_NAMED_PROPS || !1, tt = t.KEEP_CONTENT !== !1, De = t.IN_PLACE || !1, Ct = hi(t.ALLOWED_URI_REGEXP) ? t.ALLOWED_URI_REGEXP : cn, he = typeof t.NAMESPACE == "string" ? t.NAMESPACE : Q, st = D(t, "MATHML_TEXT_INTEGRATION_POINTS") && t.MATHML_TEXT_INTEGRATION_POINTS && typeof t.MATHML_TEXT_INTEGRATION_POINTS == "object" ? W(t.MATHML_TEXT_INTEGRATION_POINTS) : T({}, ["mi", "mo", "mn", "ms", "mtext"]), at = D(t, "HTML_INTEGRATION_POINTS") && t.HTML_INTEGRATION_POINTS && typeof t.HTML_INTEGRATION_POINTS == "object" ? W(t.HTML_INTEGRATION_POINTS) : T({}, ["annotation-xml"]);
312
+ Ln.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? xn : t.PARSER_MEDIA_TYPE, M = Re === "application/xhtml+xml" ? dt : Ne, P = D(t, "ALLOWED_TAGS") && H(t.ALLOWED_TAGS) ? T({}, t.ALLOWED_TAGS, M) : Dt, U = D(t, "ALLOWED_ATTR") && H(t.ALLOWED_ATTR) ? T({}, t.ALLOWED_ATTR, M) : Rt, rt = D(t, "ALLOWED_NAMESPACES") && H(t.ALLOWED_NAMESPACES) ? T({}, t.ALLOWED_NAMESPACES, dt) : Nn, it = D(t, "ADD_URI_SAFE_ATTR") && H(t.ADD_URI_SAFE_ATTR) ? T(W(Ft), t.ADD_URI_SAFE_ATTR, M) : Ft, kt = D(t, "ADD_DATA_URI_TAGS") && H(t.ADD_DATA_URI_TAGS) ? T(W(Pt), t.ADD_DATA_URI_TAGS, M) : Pt, Z = D(t, "FORBID_CONTENTS") && H(t.FORBID_CONTENTS) ? T({}, t.FORBID_CONTENTS, M) : nt, we = D(t, "FORBID_TAGS") && H(t.FORBID_TAGS) ? T({}, t.FORBID_TAGS, M) : W({}), Fe = D(t, "FORBID_ATTR") && H(t.FORBID_ATTR) ? T({}, t.FORBID_ATTR, M) : W({}), ge = D(t, "USE_PROFILES") ? t.USE_PROFILES && typeof t.USE_PROFILES == "object" ? W(t.USE_PROFILES) : t.USE_PROFILES : !1, Ot = t.ALLOW_ARIA_ATTR !== !1, Qe = t.ALLOW_DATA_ATTR !== !1, Nt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = t.SAFE_FOR_TEMPLATES || !1, Ce = t.SAFE_FOR_XML !== !1, me = t.WHOLE_DOCUMENT || !1, pe = t.RETURN_DOM || !1, Ue = t.RETURN_DOM_FRAGMENT || !1, ze = t.RETURN_TRUSTED_TYPE || !1, et = t.FORCE_BODY || !1, Lt = t.SANITIZE_DOM !== !1, xt = t.SANITIZE_NAMED_PROPS || !1, tt = t.KEEP_CONTENT !== !1, De = t.IN_PLACE || !1, Ct = hi(t.ALLOWED_URI_REGEXP) ? t.ALLOWED_URI_REGEXP : cn, he = typeof t.NAMESPACE == "string" ? t.NAMESPACE : Q, st = D(t, "MATHML_TEXT_INTEGRATION_POINTS") && t.MATHML_TEXT_INTEGRATION_POINTS && typeof t.MATHML_TEXT_INTEGRATION_POINTS == "object" ? W(t.MATHML_TEXT_INTEGRATION_POINTS) : T({}, ["mi", "mo", "mn", "ms", "mtext"]), at = D(t, "HTML_INTEGRATION_POINTS") && t.HTML_INTEGRATION_POINTS && typeof t.HTML_INTEGRATION_POINTS == "object" ? W(t.HTML_INTEGRATION_POINTS) : T({}, ["annotation-xml"]);
313
313
  const s = D(t, "CUSTOM_ELEMENT_HANDLING") && t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING == "object" ? W(t.CUSTOM_ELEMENT_HANDLING) : _e(null);
314
- if (R = _e(null), D(s, "tagNameCheck") && Ut(s.tagNameCheck) && (R.tagNameCheck = s.tagNameCheck), D(s, "attributeNameCheck") && Ut(s.attributeNameCheck) && (R.attributeNameCheck = s.attributeNameCheck), D(s, "allowCustomizedBuiltInElements") && typeof s.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = s.allowCustomizedBuiltInElements), oe && (Qe = !1), Ue && (pe = !0), ge && (P = T({}, sn), U = _e(null), ge.html === !0 && (T(P, rn), T(U, an)), ge.svg === !0 && (T(P, ft), T(U, ht), T(U, We)), ge.svgFilters === !0 && (T(P, pt), T(U, ht), T(U, We)), ge.mathMl === !0 && (T(P, gt), T(U, ln), T(U, We))), ie.tagCheck = null, ie.attributeCheck = null, D(t, "ADD_TAGS") && (typeof t.ADD_TAGS == "function" ? ie.tagCheck = t.ADD_TAGS : H(t.ADD_TAGS) && (P === Dt && (P = W(P)), T(P, t.ADD_TAGS, k))), D(t, "ADD_ATTR") && (typeof t.ADD_ATTR == "function" ? ie.attributeCheck = t.ADD_ATTR : H(t.ADD_ATTR) && (U === Rt && (U = W(U)), T(U, t.ADD_ATTR, k))), D(t, "ADD_URI_SAFE_ATTR") && H(t.ADD_URI_SAFE_ATTR) && T(it, t.ADD_URI_SAFE_ATTR, k), D(t, "FORBID_CONTENTS") && H(t.FORBID_CONTENTS) && (Z === nt && (Z = W(Z)), T(Z, t.FORBID_CONTENTS, k)), D(t, "ADD_FORBID_CONTENTS") && H(t.ADD_FORBID_CONTENTS) && (Z === nt && (Z = W(Z)), T(Z, t.ADD_FORBID_CONTENTS, k)), tt && (P["#text"] = !0), me && T(P, ["html", "head", "body"]), P.table && (T(P, ["tbody"]), delete we.tbody), t.TRUSTED_TYPES_POLICY) {
314
+ if (R = _e(null), D(s, "tagNameCheck") && Ut(s.tagNameCheck) && (R.tagNameCheck = s.tagNameCheck), D(s, "attributeNameCheck") && Ut(s.attributeNameCheck) && (R.attributeNameCheck = s.attributeNameCheck), D(s, "allowCustomizedBuiltInElements") && typeof s.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = s.allowCustomizedBuiltInElements), oe && (Qe = !1), Ue && (pe = !0), ge && (P = T({}, sn), U = _e(null), ge.html === !0 && (T(P, rn), T(U, an)), ge.svg === !0 && (T(P, ft), T(U, ht), T(U, We)), ge.svgFilters === !0 && (T(P, pt), T(U, ht), T(U, We)), ge.mathMl === !0 && (T(P, gt), T(U, ln), T(U, We))), ie.tagCheck = null, ie.attributeCheck = null, D(t, "ADD_TAGS") && (typeof t.ADD_TAGS == "function" ? ie.tagCheck = t.ADD_TAGS : H(t.ADD_TAGS) && (P === Dt && (P = W(P)), T(P, t.ADD_TAGS, M))), D(t, "ADD_ATTR") && (typeof t.ADD_ATTR == "function" ? ie.attributeCheck = t.ADD_ATTR : H(t.ADD_ATTR) && (U === Rt && (U = W(U)), T(U, t.ADD_ATTR, M))), D(t, "ADD_URI_SAFE_ATTR") && H(t.ADD_URI_SAFE_ATTR) && T(it, t.ADD_URI_SAFE_ATTR, M), D(t, "FORBID_CONTENTS") && H(t.FORBID_CONTENTS) && (Z === nt && (Z = W(Z)), T(Z, t.FORBID_CONTENTS, M)), D(t, "ADD_FORBID_CONTENTS") && H(t.ADD_FORBID_CONTENTS) && (Z === nt && (Z = W(Z)), T(Z, t.ADD_FORBID_CONTENTS, M)), tt && (P["#text"] = !0), me && T(P, ["html", "head", "body"]), P.table && (T(P, ["tbody"]), delete we.tbody), t.TRUSTED_TYPES_POLICY) {
315
315
  if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function")
316
316
  throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
317
317
  if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
318
318
  throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
319
319
  E = t.TRUSTED_TYPES_POLICY, N = E.createHTML("");
320
320
  } else
321
- E === void 0 && (E = Oi(y, c)), E !== null && typeof N == "string" && (N = E.createHTML(""));
321
+ E === void 0 && (E = Oi(y, l)), E !== null && typeof N == "string" && (N = E.createHTML(""));
322
322
  B && B(t), be = t;
323
- }, zt = T({}, [...ft, ...pt, ...bi]), jt = T({}, [...gt, ...Ti]), Mn = function(t) {
323
+ }, zt = T({}, [...ft, ...pt, ...bi]), jt = T({}, [...gt, ...Ti]), kn = function(t) {
324
324
  let s = O(t);
325
325
  (!s || !s.tagName) && (s = {
326
326
  namespaceURI: he,
327
327
  tagName: "template"
328
328
  });
329
- const m = Ne(t.tagName), A = Ne(s.tagName);
330
- return rt[t.namespaceURI] ? t.namespaceURI === He ? s.namespaceURI === Q ? m === "svg" : s.namespaceURI === je ? m === "svg" && (A === "annotation-xml" || st[A]) : !!zt[m] : t.namespaceURI === je ? s.namespaceURI === Q ? m === "math" : s.namespaceURI === He ? m === "math" && at[A] : !!jt[m] : t.namespaceURI === Q ? s.namespaceURI === He && !at[A] || s.namespaceURI === je && !st[A] ? !1 : !jt[m] && (vn[m] || !zt[m]) : !!(Re === "application/xhtml+xml" && rt[t.namespaceURI]) : !1;
329
+ const u = Ne(t.tagName), A = Ne(s.tagName);
330
+ return rt[t.namespaceURI] ? t.namespaceURI === He ? s.namespaceURI === Q ? u === "svg" : s.namespaceURI === je ? u === "svg" && (A === "annotation-xml" || st[A]) : !!zt[u] : t.namespaceURI === je ? s.namespaceURI === Q ? u === "math" : s.namespaceURI === He ? u === "math" && at[A] : !!jt[u] : t.namespaceURI === Q ? s.namespaceURI === He && !at[A] || s.namespaceURI === je && !st[A] ? !1 : !jt[u] && (vn[u] || !zt[u]) : !!(Re === "application/xhtml+xml" && rt[t.namespaceURI]) : !1;
331
331
  }, X = function(t) {
332
332
  ye(n.removed, {
333
333
  element: t
@@ -361,12 +361,12 @@ function _n() {
361
361
  } catch {
362
362
  }
363
363
  }, Ht = function(t) {
364
- let s = null, m = null;
364
+ let s = null, u = null;
365
365
  if (et)
366
366
  t = "<remove></remove>" + t;
367
367
  else {
368
368
  const L = en(t, /^[\r\n\t ]+/);
369
- m = L && L[0];
369
+ u = L && L[0];
370
370
  }
371
371
  Re === "application/xhtml+xml" && he === Q && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
372
372
  const A = E ? E.createHTML(t) : t;
@@ -383,13 +383,13 @@ function _n() {
383
383
  }
384
384
  }
385
385
  const v = s.body || s.documentElement;
386
- return t && m && v.insertBefore(o.createTextNode(m), v.childNodes[0] || null), he === Q ? Ke.call(s, me ? "html" : "body")[0] : me ? s.documentElement : v;
386
+ return t && u && v.insertBefore(o.createTextNode(u), v.childNodes[0] || null), he === Q ? Ke.call(s, me ? "html" : "body")[0] : me ? s.documentElement : v;
387
387
  }, $t = function(t) {
388
388
  return xe.call(
389
389
  t.ownerDocument || t,
390
390
  t,
391
391
  // eslint-disable-next-line no-bitwise
392
- f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION,
392
+ p.SHOW_ELEMENT | p.SHOW_COMMENT | p.SHOW_TEXT | p.SHOW_PROCESSING_INSTRUCTION | p.SHOW_CDATA_SECTION,
393
393
  null
394
394
  );
395
395
  }, Bt = function(t) {
@@ -398,15 +398,15 @@ function _n() {
398
398
  t.ownerDocument || t,
399
399
  t,
400
400
  // eslint-disable-next-line no-bitwise
401
- f.SHOW_TEXT | f.SHOW_COMMENT | f.SHOW_CDATA_SECTION | f.SHOW_PROCESSING_INSTRUCTION,
401
+ p.SHOW_TEXT | p.SHOW_COMMENT | p.SHOW_CDATA_SECTION | p.SHOW_PROCESSING_INSTRUCTION,
402
402
  null
403
403
  );
404
- let m = s.nextNode();
405
- for (; m; ) {
406
- let A = m.data;
407
- Te([ke, Me, Pe], (v) => {
404
+ let u = s.nextNode();
405
+ for (; u; ) {
406
+ let A = u.data;
407
+ Te([Me, ke, Pe], (v) => {
408
408
  A = Ae(A, v, " ");
409
- }), m.data = A, m = s.nextNode();
409
+ }), u.data = A, u = s.nextNode();
410
410
  }
411
411
  }, ct = function(t) {
412
412
  return t instanceof I && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof C) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
@@ -419,43 +419,43 @@ function _n() {
419
419
  return !1;
420
420
  }
421
421
  };
422
- function ee(p, t, s) {
423
- Te(p, (m) => {
424
- m.call(n, t, s, be);
422
+ function ee(g, t, s) {
423
+ Te(g, (u) => {
424
+ u.call(n, t, s, be);
425
425
  });
426
426
  }
427
427
  const Gt = function(t) {
428
428
  let s = null;
429
429
  if (ee(j.beforeSanitizeElements, t, null), ct(t))
430
430
  return X(t), !0;
431
- const m = k(t.nodeName);
431
+ const u = M(t.nodeName);
432
432
  if (ee(j.uponSanitizeElement, t, {
433
- tagName: m,
433
+ tagName: u,
434
434
  allowedTags: P
435
- }), Ce && t.hasChildNodes() && !$e(t.firstElementChild) && z(/<[/\w!]/g, t.innerHTML) && z(/<[/\w!]/g, t.textContent) || Ce && t.namespaceURI === Q && m === "style" && $e(t.firstElementChild) || t.nodeType === Se.progressingInstruction || Ce && t.nodeType === Se.comment && z(/<[/\w]/g, t.data))
435
+ }), Ce && t.hasChildNodes() && !$e(t.firstElementChild) && z(/<[/\w!]/g, t.innerHTML) && z(/<[/\w!]/g, t.textContent) || Ce && t.namespaceURI === Q && u === "style" && $e(t.firstElementChild) || t.nodeType === Se.progressingInstruction || Ce && t.nodeType === Se.comment && z(/<[/\w]/g, t.data))
436
436
  return X(t), !0;
437
- if (we[m] || !(ie.tagCheck instanceof Function && ie.tagCheck(m)) && !P[m]) {
438
- if (!we[m] && qt(m) && (R.tagNameCheck instanceof RegExp && z(R.tagNameCheck, m) || R.tagNameCheck instanceof Function && R.tagNameCheck(m)))
437
+ if (we[u] || !(ie.tagCheck instanceof Function && ie.tagCheck(u)) && !P[u]) {
438
+ if (!we[u] && qt(u) && (R.tagNameCheck instanceof RegExp && z(R.tagNameCheck, u) || R.tagNameCheck instanceof Function && R.tagNameCheck(u)))
439
439
  return !1;
440
- if (tt && !Z[m]) {
440
+ if (tt && !Z[u]) {
441
441
  const A = O(t) || t.parentNode, v = ne(t) || t.childNodes;
442
442
  if (v && A) {
443
443
  const L = v.length;
444
444
  for (let G = L - 1; G >= 0; --G) {
445
445
  const re = fe(v[G], !0);
446
- A.insertBefore(re, M(t));
446
+ A.insertBefore(re, k(t));
447
447
  }
448
448
  }
449
449
  }
450
450
  return X(t), !0;
451
451
  }
452
- return t instanceof d && !Mn(t) || (m === "noscript" || m === "noembed" || m === "noframes") && z(/<\/no(script|embed|frames)/i, t.innerHTML) ? (X(t), !0) : (oe && t.nodeType === Se.text && (s = t.textContent, Te([ke, Me, Pe], (A) => {
452
+ return t instanceof m && !kn(t) || (u === "noscript" || u === "noembed" || u === "noframes") && z(/<\/no(script|embed|frames)/i, t.innerHTML) ? (X(t), !0) : (oe && t.nodeType === Se.text && (s = t.textContent, Te([Me, ke, Pe], (A) => {
453
453
  s = Ae(s, A, " ");
454
454
  }), t.textContent !== s && (ye(n.removed, {
455
455
  element: t.cloneNode()
456
456
  }), t.textContent = s)), ee(j.afterSanitizeElements, t, null), !1);
457
- }, Wt = function(t, s, m) {
458
- if (Fe[s] || Lt && (s === "id" || s === "name") && (m in o || m in kn))
457
+ }, Wt = function(t, s, u) {
458
+ if (Fe[s] || Lt && (s === "id" || s === "name") && (u in o || u in Mn))
459
459
  return !1;
460
460
  const A = U[s] || ie.attributeCheck instanceof Function && ie.attributeCheck(s, t);
461
461
  if (!(Qe && !Fe[s] && z(Cn, s))) {
@@ -467,13 +467,13 @@ function _n() {
467
467
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
468
468
  !(qt(t) && (R.tagNameCheck instanceof RegExp && z(R.tagNameCheck, t) || R.tagNameCheck instanceof Function && R.tagNameCheck(t)) && (R.attributeNameCheck instanceof RegExp && z(R.attributeNameCheck, s) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(s, t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
469
469
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
470
- s === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && z(R.tagNameCheck, m) || R.tagNameCheck instanceof Function && R.tagNameCheck(m)))
470
+ s === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && z(R.tagNameCheck, u) || R.tagNameCheck instanceof Function && R.tagNameCheck(u)))
471
471
  ) return !1;
472
472
  } else if (!it[s]) {
473
- if (!z(Ct, Ae(m, wt, ""))) {
474
- if (!((s === "src" || s === "xlink:href" || s === "href") && t !== "script" && tn(m, "data:") === 0 && Mt[t])) {
475
- if (!(Nt && !z(Rn, Ae(m, wt, "")))) {
476
- if (m)
473
+ if (!z(Ct, Ae(u, wt, ""))) {
474
+ if (!((s === "src" || s === "xlink:href" || s === "href") && t !== "script" && tn(u, "data:") === 0 && kt[t])) {
475
+ if (!(Nt && !z(Rn, Ae(u, wt, "")))) {
476
+ if (u)
477
477
  return !1;
478
478
  }
479
479
  }
@@ -489,7 +489,7 @@ function _n() {
489
489
  const s = t.attributes;
490
490
  if (!s || ct(t))
491
491
  return;
492
- const m = {
492
+ const u = {
493
493
  attrName: "",
494
494
  attrValue: "",
495
495
  keepAttr: !0,
@@ -498,9 +498,9 @@ function _n() {
498
498
  };
499
499
  let A = s.length;
500
500
  for (; A--; ) {
501
- const v = s[A], L = v.name, G = v.namespaceURI, re = v.value, te = k(L), ut = re;
501
+ const v = s[A], L = v.name, G = v.namespaceURI, re = v.value, te = M(L), ut = re;
502
502
  let F = L === "value" ? ut : mi(ut);
503
- if (m.attrName = te, m.attrValue = F, m.keepAttr = !0, m.forceKeepAttr = void 0, ee(j.uponSanitizeAttribute, t, m), F = m.attrValue, xt && (te === "id" || te === "name") && tn(F, kt) !== 0 && (ue(L, t), F = kt + F), Ce && z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, F)) {
503
+ if (u.attrName = te, u.attrValue = F, u.keepAttr = !0, u.forceKeepAttr = void 0, ee(j.uponSanitizeAttribute, t, u), F = u.attrValue, xt && (te === "id" || te === "name") && tn(F, Mt) !== 0 && (ue(L, t), F = Mt + F), Ce && z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, F)) {
504
504
  ue(L, t);
505
505
  continue;
506
506
  }
@@ -508,9 +508,9 @@ function _n() {
508
508
  ue(L, t);
509
509
  continue;
510
510
  }
511
- if (m.forceKeepAttr)
511
+ if (u.forceKeepAttr)
512
512
  continue;
513
- if (!m.keepAttr) {
513
+ if (!u.keepAttr) {
514
514
  ue(L, t);
515
515
  continue;
516
516
  }
@@ -518,10 +518,10 @@ function _n() {
518
518
  ue(L, t);
519
519
  continue;
520
520
  }
521
- oe && Te([ke, Me, Pe], (Xt) => {
521
+ oe && Te([Me, ke, Pe], (Xt) => {
522
522
  F = Ae(F, Xt, " ");
523
523
  });
524
- const Vt = k(t.nodeName);
524
+ const Vt = M(t.nodeName);
525
525
  if (!Wt(Vt, te, F)) {
526
526
  ue(L, t);
527
527
  continue;
@@ -547,54 +547,54 @@ function _n() {
547
547
  ee(j.afterSanitizeAttributes, t, null);
548
548
  }, mt = function(t) {
549
549
  let s = null;
550
- const m = $t(t);
551
- for (ee(j.beforeSanitizeShadowDOM, t, null); s = m.nextNode(); )
552
- ee(j.uponSanitizeShadowNode, s, null), Gt(s), Yt(s), s.content instanceof l && mt(s.content);
550
+ const u = $t(t);
551
+ for (ee(j.beforeSanitizeShadowDOM, t, null); s = u.nextNode(); )
552
+ ee(j.uponSanitizeShadowNode, s, null), Gt(s), Yt(s), s.content instanceof c && mt(s.content);
553
553
  ee(j.afterSanitizeShadowDOM, t, null);
554
554
  }, Be = function(t) {
555
- if (t.nodeType === Se.element && t.shadowRoot instanceof l) {
555
+ if (t.nodeType === Se.element && t.shadowRoot instanceof c) {
556
556
  const A = t.shadowRoot;
557
557
  Be(A), mt(A);
558
558
  }
559
559
  const s = t.childNodes;
560
560
  if (!s)
561
561
  return;
562
- const m = [];
562
+ const u = [];
563
563
  Te(s, (A) => {
564
- ye(m, A);
564
+ ye(u, A);
565
565
  });
566
- for (const A of m)
566
+ for (const A of u)
567
567
  Be(A);
568
568
  };
569
- return n.sanitize = function(p) {
570
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, m = null, A = null, v = null;
571
- if (ot = !p, ot && (p = "<!-->"), typeof p != "string" && !$e(p) && (p = gi(p), typeof p != "string"))
569
+ return n.sanitize = function(g) {
570
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, u = null, A = null, v = null;
571
+ if (ot = !g, ot && (g = "<!-->"), typeof g != "string" && !$e(g) && (g = gi(g), typeof g != "string"))
572
572
  throw Ge("dirty is not a string, aborting");
573
573
  if (!n.isSupported)
574
- return p;
575
- if (Je || lt(t), n.removed = [], typeof p == "string" && (De = !1), De) {
576
- const re = p.nodeName;
574
+ return g;
575
+ if (Je || lt(t), n.removed = [], typeof g == "string" && (De = !1), De) {
576
+ const re = g.nodeName;
577
577
  if (typeof re == "string") {
578
- const te = k(re);
578
+ const te = M(re);
579
579
  if (!P[te] || we[te])
580
580
  throw Ge("root node is forbidden and cannot be sanitized in-place");
581
581
  }
582
- Be(p);
583
- } else if ($e(p))
584
- s = Ht("<!---->"), m = s.ownerDocument.importNode(p, !0), m.nodeType === Se.element && m.nodeName === "BODY" || m.nodeName === "HTML" ? s = m : s.appendChild(m), Be(m);
582
+ Be(g);
583
+ } else if ($e(g))
584
+ s = Ht("<!---->"), u = s.ownerDocument.importNode(g, !0), u.nodeType === Se.element && u.nodeName === "BODY" || u.nodeName === "HTML" ? s = u : s.appendChild(u), Be(u);
585
585
  else {
586
586
  if (!pe && !oe && !me && // eslint-disable-next-line unicorn/prefer-includes
587
- p.indexOf("<") === -1)
588
- return E && ze ? E.createHTML(p) : p;
589
- if (s = Ht(p), !s)
587
+ g.indexOf("<") === -1)
588
+ return E && ze ? E.createHTML(g) : g;
589
+ if (s = Ht(g), !s)
590
590
  return pe ? null : ze ? N : "";
591
591
  }
592
592
  s && et && X(s.firstChild);
593
- const L = $t(De ? p : s);
593
+ const L = $t(De ? g : s);
594
594
  for (; A = L.nextNode(); )
595
- Gt(A), Yt(A), A.content instanceof l && mt(A.content);
595
+ Gt(A), Yt(A), A.content instanceof c && mt(A.content);
596
596
  if (De)
597
- return oe && Bt(p), p;
597
+ return oe && Bt(g), g;
598
598
  if (pe) {
599
599
  if (oe && Bt(s), Ue)
600
600
  for (v = Xe.call(s.ownerDocument); s.firstChild; )
@@ -605,28 +605,28 @@ function _n() {
605
605
  }
606
606
  let G = me ? s.outerHTML : s.innerHTML;
607
607
  return me && P["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && z(Ci, s.ownerDocument.doctype.name) && (G = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
608
- ` + G), oe && Te([ke, Me, Pe], (re) => {
608
+ ` + G), oe && Te([Me, ke, Pe], (re) => {
609
609
  G = Ae(G, re, " ");
610
610
  }), E && ze ? E.createHTML(G) : G;
611
611
  }, n.setConfig = function() {
612
- let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
613
- lt(p), Je = !0;
612
+ let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
613
+ lt(g), Je = !0;
614
614
  }, n.clearConfig = function() {
615
615
  be = null, Je = !1;
616
- }, n.isValidAttribute = function(p, t, s) {
616
+ }, n.isValidAttribute = function(g, t, s) {
617
617
  be || lt({});
618
- const m = k(p), A = k(t);
619
- return Wt(m, A, s);
620
- }, n.addHook = function(p, t) {
621
- typeof t == "function" && ye(j[p], t);
622
- }, n.removeHook = function(p, t) {
618
+ const u = M(g), A = M(t);
619
+ return Wt(u, A, s);
620
+ }, n.addHook = function(g, t) {
621
+ typeof t == "function" && ye(j[g], t);
622
+ }, n.removeHook = function(g, t) {
623
623
  if (t !== void 0) {
624
- const s = li(j[p], t);
625
- return s === -1 ? void 0 : ci(j[p], s, 1)[0];
624
+ const s = li(j[g], t);
625
+ return s === -1 ? void 0 : ci(j[g], s, 1)[0];
626
626
  }
627
- return Jt(j[p]);
628
- }, n.removeHooks = function(p) {
629
- j[p] = [];
627
+ return Jt(j[g]);
628
+ }, n.removeHooks = function(g) {
629
+ j[g] = [];
630
630
  }, n.removeAllHooks = function() {
631
631
  j = mn();
632
632
  }, n;
@@ -641,6 +641,7 @@ const Ni = /* @__PURE__ */ new Set([
641
641
  "overflow-x",
642
642
  "overflow-y",
643
643
  "visibility",
644
+ "opacity",
644
645
  "cursor",
645
646
  "direction",
646
647
  "user-select",
@@ -838,6 +839,10 @@ const Ni = /* @__PURE__ */ new Set([
838
839
  "animation-direction",
839
840
  "animation-fill-mode",
840
841
  "animation-play-state",
842
+ // transforms — no value filter needed; .user_content has overflow-y:hidden and overflow-x:auto
843
+ // (canvas-lms g/412928), which together contain transformed content within the container on
844
+ // both axes and prevent overlay of Canvas UI.
845
+ "transform",
841
846
  // columns
842
847
  "column-count",
843
848
  "column-width",
@@ -880,16 +885,7 @@ const Ni = /* @__PURE__ */ new Set([
880
885
  "cite",
881
886
  "longdesc",
882
887
  "xlink:href"
883
- ]), Li = [
884
- "background",
885
- "background-image",
886
- "list-style",
887
- "list-style-image",
888
- "cursor",
889
- // content: url(...) triggers an HTTP GET even on non-pseudo elements in some
890
- // browsers; strip it as defense-in-depth against tracking-pixel exfiltration.
891
- "content"
892
- ], xi = /url\s*\(\s*['"]?(?:[a-z][a-z0-9+\-.]*:|\/\/)/i, ki = /* @__PURE__ */ new Set([
888
+ ]), Li = ["content"], xi = /url\s*\(\s*['"]?(?:[a-z][a-z0-9+\-.]*:|\/\/)/i, Mi = /* @__PURE__ */ new Set([
893
889
  "allow-downloads",
894
890
  "allow-forms",
895
891
  "allow-modals",
@@ -902,7 +898,7 @@ const Ni = /* @__PURE__ */ new Set([
902
898
  "allow-scripts",
903
899
  "allow-storage-access-by-user-activation",
904
900
  "allow-top-navigation-by-user-activation"
905
- ]), Mi = {
901
+ ]), ki = {
906
902
  ADD_TAGS: ["iframe"],
907
903
  ADD_ATTR: [
908
904
  "allowfullscreen",
@@ -918,13 +914,15 @@ const Ni = /* @__PURE__ */ new Set([
918
914
  "webkitallowfullscreen",
919
915
  "mozallowfullscreen",
920
916
  "scrolling",
917
+ // loading="lazy" is not in DOMPurify's default ALLOWED_ATTR and must be
918
+ // explicitly added. No security concern — it is a performance hint only.
919
+ "loading",
921
920
  // MathML 4 (W3C) annotation attributes for screen-reader accessibility.
922
921
  // MathCAT, JAWS, and NVDA use `intent` to know how to pronounce
923
922
  // expressions; `arg` labels sub-expressions referenced by intent.
924
923
  // These are plain string annotations — no URL-loading, no code execution.
925
924
  "intent",
926
- "arg",
927
- "loading"
925
+ "arg"
928
926
  ],
929
927
  // Rails UJS turns data-method/data-remote/etc. on clickable elements into
930
928
  // state-changing requests carrying the victim's CSRF token. Strip them so
@@ -950,11 +948,11 @@ function Pi() {
950
948
  return se || (se = typeof bt == "function" ? bt(window) : bt, se.addHook("afterSanitizeAttributes", (e) => {
951
949
  if (!(e instanceof Element) || !e.hasAttribute("style")) return;
952
950
  const n = e.style, o = [];
953
- for (let l = 0; l < n.length; l++) {
954
- const u = n.item(l);
955
- Ni.has(u) || o.push(u);
951
+ for (let f = 0; f < n.length; f++) {
952
+ const m = n.item(f);
953
+ Ni.has(m) || o.push(m);
956
954
  }
957
- for (const l of o) n.removeProperty(l);
955
+ for (const f of o) n.removeProperty(f);
958
956
  const a = /* @__PURE__ */ new Set([
959
957
  "static",
960
958
  "relative",
@@ -964,11 +962,13 @@ function Pi() {
964
962
  "unset",
965
963
  "revert",
966
964
  "revert-layer"
967
- ]), c = n.getPropertyValue("position").trim().toLowerCase();
968
- c && !a.has(c) && n.removeProperty("position");
969
- for (const l of Li) {
970
- const u = n.getPropertyValue(l);
971
- u && xi.test(u) && n.removeProperty(l);
965
+ ]), l = n.getPropertyValue("position").trim().toLowerCase();
966
+ l && !a.has(l) && n.removeProperty("position");
967
+ const c = /* @__PURE__ */ new Set(["initial", "inherit", "unset", "revert", "revert-layer"]), d = n.getPropertyValue("opacity").trim().toLowerCase();
968
+ d && !c.has(d) && (d.endsWith("%") ? parseFloat(d) / 100 : parseFloat(d)) < 0.05 && n.removeProperty("opacity");
969
+ for (const f of Li) {
970
+ const m = n.getPropertyValue(f);
971
+ m && xi.test(m) && n.removeProperty(f);
972
972
  }
973
973
  n.length === 0 && e.removeAttribute("style");
974
974
  }), se.addHook("uponSanitizeAttribute", (e, n) => {
@@ -977,20 +977,20 @@ function Pi() {
977
977
  /^\s*\/\//.test(o) ? (n.attrValue = o.trimStart().replace(/^\/\//, "https://"), n.keepAttr = !0) : /^\s*\\/.test(o) && (n.keepAttr = !1);
978
978
  }), se.addHook("afterSanitizeAttributes", (e) => {
979
979
  if (!(e instanceof Element) || !e.hasAttribute("srcset")) return;
980
- const n = (e.getAttribute("srcset") ?? "").split(","), o = (l) => l.trim().split(/\s+/)[0];
981
- if (n.some((l) => /^\s*\\/.test(o(l)))) {
980
+ const n = (e.getAttribute("srcset") ?? "").split(","), o = (c) => c.trim().split(/\s+/)[0];
981
+ if (n.some((c) => /^\s*\\/.test(o(c)))) {
982
982
  e.removeAttribute("srcset");
983
983
  return;
984
984
  }
985
985
  let a = !1;
986
- const c = n.map((l) => {
987
- const u = o(l);
988
- if (!u.startsWith("//")) return l;
986
+ const l = n.map((c) => {
987
+ const d = o(c);
988
+ if (!d.startsWith("//")) return c;
989
989
  a = !0;
990
- const h = l.indexOf(u);
991
- return l.slice(0, h) + "https://" + u.slice(2) + l.slice(h + u.length);
990
+ const f = c.indexOf(d);
991
+ return c.slice(0, f) + "https://" + d.slice(2) + c.slice(f + d.length);
992
992
  });
993
- a && e.setAttribute("srcset", c.join(","));
993
+ a && e.setAttribute("srcset", l.join(","));
994
994
  }), se.addHook("afterSanitizeAttributes", (e) => {
995
995
  var n;
996
996
  if (!(e instanceof Element) || e.tagName !== "A" && e.tagName !== "AREA" || ((n = e.getAttribute("target")) == null ? void 0 : n.toLowerCase()) !== "_blank") return;
@@ -998,14 +998,14 @@ function Pi() {
998
998
  a.add("noopener"), e.setAttribute("rel", [...a].join(" "));
999
999
  }), se.addHook("afterSanitizeAttributes", (e) => {
1000
1000
  if (!(e instanceof Element) || e.tagName !== "IFRAME" || !e.hasAttribute("sandbox")) return;
1001
- const n = (e.getAttribute("sandbox") ?? "").toLowerCase().split(/\s+/).filter(Boolean), o = n.filter((a) => ki.has(a));
1001
+ const n = (e.getAttribute("sandbox") ?? "").toLowerCase().split(/\s+/).filter(Boolean), o = n.filter((a) => Mi.has(a));
1002
1002
  o.length !== n.length && e.setAttribute("sandbox", o.join(" "));
1003
1003
  }), se);
1004
1004
  }
1005
1005
  function It(e, n) {
1006
1006
  if (typeof window > "u")
1007
1007
  throw new Error("sanitizeHtml requires a DOM environment (window is not defined)");
1008
- const o = Mi;
1008
+ const o = ki;
1009
1009
  return Pi().sanitize(e ?? "", o);
1010
1010
  }
1011
1011
  const Fi = ae`
@@ -1331,22 +1331,22 @@ function Xi({
1331
1331
  assignmentId: n,
1332
1332
  userId: o,
1333
1333
  executeQuery: a,
1334
- enabled: c = !0
1334
+ enabled: l = !0
1335
1335
  }) {
1336
1336
  return Ve({
1337
1337
  queryKey: ["assignment-review", "assignment", e, n, o],
1338
1338
  queryFn: async () => {
1339
- const l = await a(Fi, {
1339
+ const c = await a(Fi, {
1340
1340
  courseId: e,
1341
1341
  assignmentId: n,
1342
1342
  userId: o
1343
- }), u = Bi.parse(l);
1343
+ }), d = Bi.parse(c);
1344
1344
  return {
1345
- ...u.legacyNode,
1346
- courseName: u.course.name
1345
+ ...d.legacyNode,
1346
+ courseName: d.course.name
1347
1347
  };
1348
1348
  },
1349
- enabled: c
1349
+ enabled: l
1350
1350
  });
1351
1351
  }
1352
1352
  function Ki({
@@ -1359,7 +1359,7 @@ function Ki({
1359
1359
  queryFn: async () => {
1360
1360
  const a = await n(zi, { submissionId: e });
1361
1361
  return qi.parse(a).node.submissionHistoriesConnection.nodes.slice().sort(
1362
- (l, u) => new Date(u.submittedAt).getTime() - new Date(l.submittedAt).getTime()
1362
+ (c, d) => new Date(d.submittedAt).getTime() - new Date(c.submittedAt).getTime()
1363
1363
  );
1364
1364
  },
1365
1365
  enabled: o
@@ -1375,9 +1375,9 @@ function Qi({
1375
1375
  isSelected: n,
1376
1376
  isDraft: o = !1,
1377
1377
  pointsPossible: a,
1378
- onClick: c
1378
+ onClick: l
1379
1379
  }) {
1380
- const l = q(), u = o ? l.submissionCurrentAttempt() : l.commentsAttempt({ number: e.attempt }), h = e.score != null && a != null ? `${e.score}/${a}` : null;
1380
+ const c = q(), d = o ? c.submissionCurrentAttempt() : c.commentsAttempt({ number: e.attempt }), f = e.score != null && a != null ? `${e.score}/${a}` : null;
1381
1381
  return /* @__PURE__ */ r(
1382
1382
  K,
1383
1383
  {
@@ -1388,21 +1388,21 @@ function Qi({
1388
1388
  borderRadius: "medium",
1389
1389
  background: n ? "secondary" : "primary",
1390
1390
  cursor: "pointer",
1391
- onClick: c,
1391
+ onClick: l,
1392
1392
  role: "button",
1393
1393
  tabIndex: 0,
1394
- onKeyDown: (d) => {
1395
- (d.key === "Enter" || d.key === " ") && (d.preventDefault(), c());
1394
+ onKeyDown: (m) => {
1395
+ (m.key === "Enter" || m.key === " ") && (m.preventDefault(), l());
1396
1396
  },
1397
1397
  children: /* @__PURE__ */ S(b, { justifyItems: "space-between", alignItems: "center", children: [
1398
1398
  /* @__PURE__ */ S(b, { direction: "column", gap: "xx-small", children: [
1399
1399
  /* @__PURE__ */ S(b, { gap: "small", alignItems: "center", children: [
1400
- /* @__PURE__ */ r(_, { weight: "bold", children: u }),
1401
- o && /* @__PURE__ */ r(_t, { color: "info", children: l.submissionDraft() })
1400
+ /* @__PURE__ */ r(_, { weight: "bold", children: d }),
1401
+ o && /* @__PURE__ */ r(_t, { color: "info", children: c.submissionDraft() })
1402
1402
  ] }),
1403
1403
  !o && e.submittedAt && /* @__PURE__ */ r(_, { size: "small", color: "secondary", children: Zi(e.submittedAt) })
1404
1404
  ] }),
1405
- h && /* @__PURE__ */ r(_, { weight: "bold", children: h })
1405
+ f && /* @__PURE__ */ r(_, { weight: "bold", children: f })
1406
1406
  ] })
1407
1407
  }
1408
1408
  );
@@ -1412,26 +1412,26 @@ function Ji({
1412
1412
  selectedAttempt: n,
1413
1413
  onAttemptSelect: o,
1414
1414
  pointsPossible: a,
1415
- executeQuery: c
1415
+ executeQuery: l
1416
1416
  }) {
1417
- const l = q(), { data: u, isLoading: h, isError: d } = Ki({
1417
+ const c = q(), { data: d, isLoading: f, isError: m } = Ki({
1418
1418
  submissionId: e,
1419
- executeQuery: c
1419
+ executeQuery: l
1420
1420
  });
1421
- if (h)
1422
- return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(Ye, { renderTitle: l.navigationAttempts(), size: "small" }) });
1423
- if (d)
1424
- return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(_, { color: "danger", children: l.submissionLoadAttemptsError() }) });
1425
- const f = (u == null ? void 0 : u.filter((g) => g.attempt > 0)) ?? [];
1426
- return f.length === 0 ? /* @__PURE__ */ r(b, { padding: "medium", children: /* @__PURE__ */ r(_, { color: "secondary", children: l.submissionNoAttempts() }) }) : /* @__PURE__ */ r(b, { direction: "column", gap: "x-small", padding: "none none medium none", children: f.map((g) => /* @__PURE__ */ r(
1421
+ if (f)
1422
+ return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(Ye, { renderTitle: c.navigationAttempts(), size: "small" }) });
1423
+ if (m)
1424
+ return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(_, { color: "danger", children: c.submissionLoadAttemptsError() }) });
1425
+ const p = (d == null ? void 0 : d.filter((h) => h.attempt > 0)) ?? [];
1426
+ return p.length === 0 ? /* @__PURE__ */ r(b, { padding: "medium", children: /* @__PURE__ */ r(_, { color: "secondary", children: c.submissionNoAttempts() }) }) : /* @__PURE__ */ r(b, { direction: "column", gap: "x-small", padding: "none none medium none", children: p.map((h) => /* @__PURE__ */ r(
1427
1427
  Qi,
1428
1428
  {
1429
- submission: g,
1430
- isSelected: n === g.attempt,
1429
+ submission: h,
1430
+ isSelected: n === h.attempt,
1431
1431
  pointsPossible: a,
1432
- onClick: () => o(g)
1432
+ onClick: () => o(h)
1433
1433
  },
1434
- g.attempt
1434
+ h.attempt
1435
1435
  )) });
1436
1436
  }
1437
1437
  function wn({
@@ -1463,25 +1463,25 @@ function to({
1463
1463
  showAttemptLabel: o = !0,
1464
1464
  renderHTML: a
1465
1465
  }) {
1466
- const c = q(), l = a ?? eo, u = (e == null ? void 0 : e.submissionType) === "online_text_entry", h = (e == null ? void 0 : e.submissionType) === "online_upload", d = u ? c.submissionTextHeading() : c.submissionUploadHeading(), f = qe(() => {
1466
+ const l = q(), c = a ?? eo, d = (e == null ? void 0 : e.submissionType) === "online_text_entry", f = (e == null ? void 0 : e.submissionType) === "online_upload", m = d ? l.submissionTextHeading() : l.submissionUploadHeading(), p = qe(() => {
1467
1467
  if (!e) return [];
1468
1468
  const C = [];
1469
1469
  if (e.attachment && C.push(e.attachment), e.attachments)
1470
1470
  for (const I of e.attachments)
1471
1471
  C.some((w) => w.id === I.id) || C.push(I);
1472
1472
  return C;
1473
- }, [e]), g = qe(() => l((e == null ? void 0 : e.body) ?? ""), [e == null ? void 0 : e.body, l]);
1473
+ }, [e]), h = qe(() => c((e == null ? void 0 : e.body) ?? ""), [e == null ? void 0 : e.body, c]);
1474
1474
  return e ? /* @__PURE__ */ r(K, { as: "div", children: /* @__PURE__ */ S(b, { direction: "column", gap: "small", children: [
1475
- o && !n && e.attempt != null && /* @__PURE__ */ r(_, { size: "small", weight: "bold", color: "secondary", children: c.submissionViewingAttempt({ number: e.attempt }) }),
1475
+ o && !n && e.attempt != null && /* @__PURE__ */ r(_, { size: "small", weight: "bold", color: "secondary", children: l.submissionViewingAttempt({ number: e.attempt }) }),
1476
1476
  /* @__PURE__ */ S(b, { gap: "x-small", alignItems: "center", children: [
1477
1477
  /* @__PURE__ */ r($n, { color: "success" }),
1478
- /* @__PURE__ */ r(St, { level: "h3", children: d })
1478
+ /* @__PURE__ */ r(St, { level: "h3", children: m })
1479
1479
  ] }),
1480
- u && e.body && /* @__PURE__ */ S(b, { alignItems: "stretch", gap: "small", children: [
1480
+ d && e.body && /* @__PURE__ */ S(b, { alignItems: "stretch", gap: "small", children: [
1481
1481
  /* @__PURE__ */ r(K, { as: "div", width: "4px", background: "primary", borderRadius: "small" }),
1482
- /* @__PURE__ */ r(K, { as: "div", children: /* @__PURE__ */ r(_, { children: g }) })
1482
+ /* @__PURE__ */ r(K, { as: "div", children: /* @__PURE__ */ r(_, { children: h }) })
1483
1483
  ] }),
1484
- h && f.length > 0 && /* @__PURE__ */ r(wn, { attachments: f })
1484
+ f && p.length > 0 && /* @__PURE__ */ r(wn, { attachments: p })
1485
1485
  ] }) }) : null;
1486
1486
  }
1487
1487
  function no(e) {
@@ -1496,33 +1496,33 @@ function oo({
1496
1496
  pointsPossible: n,
1497
1497
  gradingType: o,
1498
1498
  dueAt: a,
1499
- allowedAttempts: c,
1500
- currentAttempt: l,
1501
- isOverdue: u,
1502
- estimatedDuration: h,
1503
- labels: d
1499
+ allowedAttempts: l,
1500
+ currentAttempt: c,
1501
+ isOverdue: d,
1502
+ estimatedDuration: f,
1503
+ labels: m
1504
1504
  }) {
1505
- const f = q(), g = [];
1506
- return h && g.push(
1507
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.duration) ?? f.headerDuration({ minutes: h }) }, "duration")
1508
- ), e != null && n != null ? g.push(
1509
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.score) ?? f.headerScore({ score: e, total: n }) }, "score")
1510
- ) : n != null && o !== "not_graded" && g.push(
1511
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.pointsPossible) ?? f.headerPointsPossible({ points: n }) }, "points")
1512
- ), c != null && (c === -1 ? g.push(
1513
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.attempts) ?? f.headerAttemptsUnlimited() }, "attempts")
1514
- ) : l != null ? g.push(
1515
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.attempts) ?? f.headerAttemptOf({ current: l, total: c }) }, "attempts")
1516
- ) : g.push(
1517
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.attempts) ?? f.headerAttemptsAllowed({ count: c }) }, "attempts")
1518
- )), a && g.push(
1519
- /* @__PURE__ */ r(_, { size: "small", children: (d == null ? void 0 : d.dueDate) ?? f.headerDueDate({ date: no(a) }) }, "due")
1505
+ const p = q(), h = [];
1506
+ return f && h.push(
1507
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.duration) ?? p.headerDuration({ minutes: f }) }, "duration")
1508
+ ), e != null && n != null ? h.push(
1509
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.score) ?? p.headerScore({ score: e, total: n }) }, "score")
1510
+ ) : n != null && o !== "not_graded" && h.push(
1511
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.pointsPossible) ?? p.headerPointsPossible({ points: n }) }, "points")
1512
+ ), l != null && (l === -1 ? h.push(
1513
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.attempts) ?? p.headerAttemptsUnlimited() }, "attempts")
1514
+ ) : c != null ? h.push(
1515
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.attempts) ?? p.headerAttemptOf({ current: c, total: l }) }, "attempts")
1516
+ ) : h.push(
1517
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.attempts) ?? p.headerAttemptsAllowed({ count: l }) }, "attempts")
1518
+ )), a && h.push(
1519
+ /* @__PURE__ */ r(_, { size: "small", children: (m == null ? void 0 : m.dueDate) ?? p.headerDueDate({ date: no(a) }) }, "due")
1520
1520
  ), /* @__PURE__ */ S(b, { as: "div", direction: "row", alignItems: "center", gap: "small", children: [
1521
- g.map((C, I) => /* @__PURE__ */ S(b, { gap: "small", alignItems: "center", children: [
1521
+ h.map((C, I) => /* @__PURE__ */ S(b, { gap: "small", alignItems: "center", children: [
1522
1522
  I > 0 && /* @__PURE__ */ r(io, {}),
1523
1523
  C
1524
1524
  ] }, `item-${String(I)}`)),
1525
- u && /* @__PURE__ */ r(_t, { color: "danger", children: (d == null ? void 0 : d.overdue) ?? f.headerOverdue() })
1525
+ d && /* @__PURE__ */ r(_t, { color: "danger", children: (m == null ? void 0 : m.overdue) ?? p.headerOverdue() })
1526
1526
  ] });
1527
1527
  }
1528
1528
  const ro = ae`
@@ -1702,14 +1702,14 @@ function ao({
1702
1702
  }) {
1703
1703
  const n = un();
1704
1704
  return dn({
1705
- mutationFn: async ({ submissionId: o, attempt: a, comment: c, fileIds: l }) => {
1706
- const u = await e(ro, {
1705
+ mutationFn: async ({ submissionId: o, attempt: a, comment: l, fileIds: c }) => {
1706
+ const d = await e(ro, {
1707
1707
  id: o,
1708
1708
  submissionAttempt: a,
1709
- comment: c,
1710
- fileIds: l
1709
+ comment: l,
1710
+ fileIds: c
1711
1711
  });
1712
- return Yi.parse(u), u;
1712
+ return Yi.parse(d), d;
1713
1713
  },
1714
1714
  onSuccess: (o, a) => {
1715
1715
  n.invalidateQueries({
@@ -1723,8 +1723,8 @@ function lo({
1723
1723
  courseId: n,
1724
1724
  pageParams: o,
1725
1725
  direction: a,
1726
- executeQuery: c,
1727
- enabled: l
1726
+ executeQuery: l,
1727
+ enabled: c
1728
1728
  }) {
1729
1729
  return Ve({
1730
1730
  queryKey: [
@@ -1737,22 +1737,22 @@ function lo({
1737
1737
  a
1738
1738
  ],
1739
1739
  queryFn: async () => {
1740
- const u = await c(Ui, {
1740
+ const d = await l(Ui, {
1741
1741
  submissionId: e,
1742
1742
  courseId: n,
1743
1743
  beforeCursor: a === "prev" ? (o == null ? void 0 : o.startCursor) ?? null : null,
1744
1744
  afterCursor: a === "next" ? (o == null ? void 0 : o.endCursor) ?? null : null,
1745
1745
  first: a === "next" ? 5 : null,
1746
1746
  last: a === "prev" || !a ? 5 : null
1747
- }), h = Gi.parse(u);
1747
+ }), f = Gi.parse(d);
1748
1748
  return {
1749
- comments: [...h.submissionComments.commentsConnection.nodes].sort(
1750
- (f, g) => new Date(f.createdAt).getTime() - new Date(g.createdAt).getTime()
1749
+ comments: [...f.submissionComments.commentsConnection.nodes].sort(
1750
+ (p, h) => new Date(p.createdAt).getTime() - new Date(h.createdAt).getTime()
1751
1751
  ),
1752
- pageInfo: h.submissionComments.commentsConnection.pageInfo
1752
+ pageInfo: f.submissionComments.commentsConnection.pageInfo
1753
1753
  };
1754
1754
  },
1755
- enabled: l ?? !!e
1755
+ enabled: c ?? !!e
1756
1756
  });
1757
1757
  }
1758
1758
  function co({
@@ -1761,16 +1761,16 @@ function co({
1761
1761
  const n = un();
1762
1762
  return dn({
1763
1763
  mutationFn: async ({ submissionId: o, submissionCommentIds: a }) => {
1764
- const c = await e(
1764
+ const l = await e(
1765
1765
  so,
1766
1766
  { submissionId: o, submissionCommentIds: a }
1767
1767
  );
1768
- return Vi.parse(c), c;
1768
+ return Vi.parse(l), l;
1769
1769
  },
1770
1770
  onSuccess: (o, a) => {
1771
1771
  n.invalidateQueries({
1772
1772
  queryKey: ["assignment-review", "assignment"],
1773
- predicate: (c) => c.queryKey.includes(a.assignmentId)
1773
+ predicate: (l) => l.queryKey.includes(a.assignmentId)
1774
1774
  });
1775
1775
  }
1776
1776
  });
@@ -1787,8 +1787,8 @@ function fo({
1787
1787
  isFullWidth: n,
1788
1788
  renderHTML: o
1789
1789
  }) {
1790
- var d;
1791
- const a = q(), c = o ?? mo, l = ((d = e.author.courseRoles) == null ? void 0 : d.includes("StudentEnrollment")) ?? !1, u = qe(() => c(e.htmlComment), [e.htmlComment, c]);
1790
+ var m;
1791
+ const a = q(), l = o ?? mo, c = ((m = e.author.courseRoles) == null ? void 0 : m.includes("StudentEnrollment")) ?? !1, d = qe(() => l(e.htmlComment), [e.htmlComment, l]);
1792
1792
  return /* @__PURE__ */ r(
1793
1793
  K,
1794
1794
  {
@@ -1797,7 +1797,7 @@ function fo({
1797
1797
  borderWidth: "small",
1798
1798
  borderColor: "primary",
1799
1799
  borderRadius: "medium",
1800
- margin: n ? "none" : l ? "none none none medium" : "none medium none none",
1800
+ margin: n ? "none" : c ? "none none none medium" : "none medium none none",
1801
1801
  children: /* @__PURE__ */ S(b, { as: "div", direction: "column", gap: "small", children: [
1802
1802
  /* @__PURE__ */ S(b, { as: "div", direction: "column", gap: "xx-small", children: [
1803
1803
  /* @__PURE__ */ S(b, { as: "div", justifyItems: "space-between", alignItems: "center", children: [
@@ -1807,13 +1807,13 @@ function fo({
1807
1807
  /* @__PURE__ */ r(_, { size: "small", color: "secondary", children: uo(e.createdAt) }),
1808
1808
  e.attempt > 0 && /* @__PURE__ */ r(_, { size: "small", color: "secondary", children: a.commentsAttempt({ number: e.attempt }) })
1809
1809
  ] }),
1810
- /* @__PURE__ */ r(_, { size: "medium", children: u }),
1810
+ /* @__PURE__ */ r(_, { size: "medium", children: d }),
1811
1811
  e.attachments && e.attachments.length > 0 && /* @__PURE__ */ r(
1812
1812
  wn,
1813
1813
  {
1814
- attachments: e.attachments.map((f) => ({
1815
- ...f,
1816
- _id: f._id ?? f.id,
1814
+ attachments: e.attachments.map((p) => ({
1815
+ ...p,
1816
+ _id: p._id ?? p.id,
1817
1817
  submissionPreviewUrl: null
1818
1818
  })),
1819
1819
  size: "small"
@@ -1828,18 +1828,18 @@ function po({
1828
1828
  courseId: n,
1829
1829
  assignmentId: o,
1830
1830
  attempt: a,
1831
- canPostComment: c,
1832
- onCommentPosted: l,
1833
- renderHTML: u,
1834
- executeQuery: h
1831
+ canPostComment: l,
1832
+ onCommentPosted: c,
1833
+ renderHTML: d,
1834
+ executeQuery: f
1835
1835
  }) {
1836
- const d = q(), [f, g] = Ee(""), [C, I] = Ee({}), w = zn(/* @__PURE__ */ new Set()), { data: y, isLoading: V, isError: fe } = lo({
1836
+ const m = q(), [p, h] = Ee(""), [C, I] = Ee({}), w = zn(/* @__PURE__ */ new Set()), { data: y, isLoading: V, isError: fe } = lo({
1837
1837
  submissionId: e,
1838
1838
  courseId: n,
1839
1839
  pageParams: C.pageParams,
1840
1840
  direction: C.direction,
1841
- executeQuery: h
1842
- }), le = ao({ executeQuery: h }), M = co({ executeQuery: h });
1841
+ executeQuery: f
1842
+ }), le = ao({ executeQuery: f }), k = co({ executeQuery: f });
1843
1843
  Tt(() => {
1844
1844
  if (!(y != null && y.comments) || y.comments.length === 0) return;
1845
1845
  const E = y.comments.filter((N) => !N.read && !w.current.has(N._id)).filter((N) => {
@@ -1849,32 +1849,32 @@ function po({
1849
1849
  if (E.length > 0) {
1850
1850
  for (const N of E)
1851
1851
  w.current.add(N);
1852
- M.mutate({ submissionId: e, assignmentId: o, submissionCommentIds: E });
1852
+ k.mutate({ submissionId: e, assignmentId: o, submissionCommentIds: E });
1853
1853
  }
1854
- }, [y == null ? void 0 : y.comments, e, o, M]);
1854
+ }, [y == null ? void 0 : y.comments, e, o, k]);
1855
1855
  const ne = y == null ? void 0 : y.comments.some(
1856
1856
  (E) => {
1857
1857
  var N;
1858
1858
  return !((N = E.author.courseRoles) != null && N.includes("StudentEnrollment"));
1859
1859
  }
1860
1860
  ), O = () => {
1861
- f.trim() && le.mutate(
1862
- { submissionId: e, attempt: a, comment: f },
1861
+ p.trim() && le.mutate(
1862
+ { submissionId: e, attempt: a, comment: p },
1863
1863
  {
1864
1864
  onSuccess: () => {
1865
- g(""), l == null || l();
1865
+ h(""), c == null || c();
1866
1866
  }
1867
1867
  }
1868
1868
  );
1869
1869
  }, ce = (y == null ? void 0 : y.pageInfo.hasNextPage) || (y == null ? void 0 : y.pageInfo.hasPreviousPage);
1870
- return V || !y && !fe ? /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(Ye, { renderTitle: d.commentsPanelTitle(), size: "small" }) }) : fe ? /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(_, { color: "danger", children: d.commentsLoadError() }) }) : /* @__PURE__ */ S(b, { as: "div", direction: "column", justifyItems: "space-between", height: "100%", children: [
1870
+ return V || !y && !fe ? /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(Ye, { renderTitle: m.commentsPanelTitle(), size: "small" }) }) : fe ? /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(_, { color: "danger", children: m.commentsLoadError() }) }) : /* @__PURE__ */ S(b, { as: "div", direction: "column", justifyItems: "space-between", height: "100%", children: [
1871
1871
  /* @__PURE__ */ S(b, { as: "div", direction: "column", children: [
1872
- y.comments.length === 0 ? /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(_, { color: "secondary", children: d.commentsEmpty() }) }) : /* @__PURE__ */ r(b, { direction: "column", gap: "x-small", children: y.comments.map((E) => /* @__PURE__ */ r(
1872
+ y.comments.length === 0 ? /* @__PURE__ */ r(b, { justifyItems: "center", padding: "medium", children: /* @__PURE__ */ r(_, { color: "secondary", children: m.commentsEmpty() }) }) : /* @__PURE__ */ r(b, { direction: "column", gap: "x-small", children: y.comments.map((E) => /* @__PURE__ */ r(
1873
1873
  fo,
1874
1874
  {
1875
1875
  comment: E,
1876
1876
  isFullWidth: !ne,
1877
- renderHTML: u
1877
+ renderHTML: d
1878
1878
  },
1879
1879
  E._id
1880
1880
  )) }),
@@ -1886,7 +1886,7 @@ function po({
1886
1886
  size: "small",
1887
1887
  interaction: y.pageInfo.hasPreviousPage ? "enabled" : "disabled",
1888
1888
  onClick: () => I({ pageParams: y.pageInfo, direction: "prev" }),
1889
- children: d.commentsPreviousComments()
1889
+ children: m.commentsPreviousComments()
1890
1890
  }
1891
1891
  ),
1892
1892
  /* @__PURE__ */ r(
@@ -1896,19 +1896,19 @@ function po({
1896
1896
  size: "small",
1897
1897
  interaction: y.pageInfo.hasNextPage ? "enabled" : "disabled",
1898
1898
  onClick: () => I({ pageParams: y.pageInfo, direction: "next" }),
1899
- children: d.commentsNextComments()
1899
+ children: m.commentsNextComments()
1900
1900
  }
1901
1901
  )
1902
1902
  ] })
1903
1903
  ] }),
1904
- c && /* @__PURE__ */ S(b, { as: "div", direction: "column", gap: "small", padding: "small none medium", children: [
1904
+ l && /* @__PURE__ */ S(b, { as: "div", direction: "column", gap: "small", padding: "small none medium", children: [
1905
1905
  /* @__PURE__ */ r(
1906
1906
  bn,
1907
1907
  {
1908
1908
  resize: "vertical",
1909
- label: /* @__PURE__ */ r(_, { weight: "bold", size: "medium", children: d.commentsPlaceholder() }),
1910
- value: f,
1911
- onChange: (E) => g(E.target.value)
1909
+ label: /* @__PURE__ */ r(_, { weight: "bold", size: "medium", children: m.commentsPlaceholder() }),
1910
+ value: p,
1911
+ onChange: (E) => h(E.target.value)
1912
1912
  }
1913
1913
  ),
1914
1914
  /* @__PURE__ */ r(
@@ -1916,8 +1916,8 @@ function po({
1916
1916
  {
1917
1917
  color: "primary",
1918
1918
  onClick: O,
1919
- interaction: f.trim().length > 0 && !le.isPending ? "enabled" : "disabled",
1920
- children: d.commentsPost()
1919
+ interaction: p.trim().length > 0 && !le.isPending ? "enabled" : "disabled",
1920
+ children: m.commentsPost()
1921
1921
  }
1922
1922
  )
1923
1923
  ] })
@@ -1931,58 +1931,58 @@ function Wo({
1931
1931
  assignmentId: n,
1932
1932
  userId: o,
1933
1933
  feedbackMode: a = !1,
1934
- onError: c,
1935
- renderHTML: l,
1936
- renderPanels: u,
1937
- executeQuery: h
1934
+ onError: l,
1935
+ renderHTML: c,
1936
+ renderPanels: d,
1937
+ executeQuery: f
1938
1938
  }) {
1939
- const d = q(), f = l ?? go, {
1940
- data: g,
1939
+ const m = q(), p = c ?? go, {
1940
+ data: h,
1941
1941
  isLoading: C,
1942
1942
  isError: I,
1943
1943
  error: w
1944
- } = Xi({ courseId: e, assignmentId: n, userId: o, executeQuery: h }), [y, V] = Ee(null), [fe, le] = Ee(
1944
+ } = Xi({ courseId: e, assignmentId: n, userId: o, executeQuery: f }), [y, V] = Ee(null), [fe, le] = Ee(
1945
1945
  a ? "comments" : null
1946
- ), M = qe(
1947
- () => (g == null ? void 0 : g.submissionsConnection.nodes[0]) ?? null,
1948
- [g]
1949
- ), ne = M != null && M.attempt > 0, O = y ?? M, ce = y == null || y.attempt === (M == null ? void 0 : M.attempt), E = ne && ce, N = ((g == null ? void 0 : g.allowedAttempts) ?? 0) !== 1, J = jn((Ze) => {
1946
+ ), k = qe(
1947
+ () => (h == null ? void 0 : h.submissionsConnection.nodes[0]) ?? null,
1948
+ [h]
1949
+ ), ne = k != null && k.attempt > 0, O = y ?? k, ce = y == null || y.attempt === (k == null ? void 0 : k.attempt), E = ne && ce, N = ((h == null ? void 0 : h.allowedAttempts) ?? 0) !== 1, J = jn((Ze) => {
1950
1950
  V(Ze);
1951
1951
  }, []);
1952
1952
  if (Tt(() => {
1953
- I && w && c && c(w);
1954
- }, [I, w, c]), Tt(() => {
1953
+ I && w && l && l(w);
1954
+ }, [I, w, l]), Tt(() => {
1955
1955
  a && ne && le("comments");
1956
1956
  }, [a, ne]), C)
1957
- return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "large", children: /* @__PURE__ */ r(Ye, { renderTitle: d.progressLoading() }) });
1958
- if (I || !g)
1959
- return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "large", children: /* @__PURE__ */ r(_, { color: "danger", children: d.assignmentLoadError() }) });
1960
- const Ie = !!g.dueAt && new Date(g.dueAt) < /* @__PURE__ */ new Date() && !ne, xe = M ? /* @__PURE__ */ r(
1957
+ return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "large", children: /* @__PURE__ */ r(Ye, { renderTitle: m.progressLoading() }) });
1958
+ if (I || !h)
1959
+ return /* @__PURE__ */ r(b, { justifyItems: "center", padding: "large", children: /* @__PURE__ */ r(_, { color: "danger", children: m.assignmentLoadError() }) });
1960
+ const Ie = !!h.dueAt && new Date(h.dueAt) < /* @__PURE__ */ new Date() && !ne, xe = k ? /* @__PURE__ */ r(
1961
1961
  po,
1962
1962
  {
1963
- submissionId: M.id,
1963
+ submissionId: k.id,
1964
1964
  courseId: e,
1965
1965
  assignmentId: n,
1966
1966
  attempt: (O == null ? void 0 : O.attempt) ?? 0,
1967
1967
  canPostComment: E,
1968
- renderHTML: f,
1969
- executeQuery: h
1968
+ renderHTML: p,
1969
+ executeQuery: f
1970
1970
  }
1971
- ) : null, Xe = N && M ? /* @__PURE__ */ r(
1971
+ ) : null, Xe = N && k ? /* @__PURE__ */ r(
1972
1972
  Ji,
1973
1973
  {
1974
- submissionId: M.id,
1974
+ submissionId: k.id,
1975
1975
  selectedAttempt: O == null ? void 0 : O.attempt,
1976
1976
  onAttemptSelect: J,
1977
- pointsPossible: g.pointsPossible,
1978
- executeQuery: h
1977
+ pointsPossible: h.pointsPossible,
1978
+ executeQuery: f
1979
1979
  }
1980
1980
  ) : null, Ke = {
1981
1981
  commentsPanel: xe,
1982
1982
  attemptsPanel: Xe,
1983
1983
  activePanel: fe,
1984
1984
  setActivePanel: le,
1985
- unreadCommentCount: (M == null ? void 0 : M.unreadCommentCount) ?? 0,
1985
+ unreadCommentCount: (k == null ? void 0 : k.unreadCommentCount) ?? 0,
1986
1986
  hasMultipleAttempts: N
1987
1987
  };
1988
1988
  return /* @__PURE__ */ S(b, { direction: "column", gap: "medium", children: [
@@ -1990,27 +1990,27 @@ function Wo({
1990
1990
  oo,
1991
1991
  {
1992
1992
  score: O == null ? void 0 : O.score,
1993
- pointsPossible: g.pointsPossible,
1994
- gradingType: g.gradingType,
1995
- dueAt: g.dueAt,
1996
- allowedAttempts: g.allowedAttempts,
1993
+ pointsPossible: h.pointsPossible,
1994
+ gradingType: h.gradingType,
1995
+ dueAt: h.dueAt,
1996
+ allowedAttempts: h.allowedAttempts,
1997
1997
  currentAttempt: O == null ? void 0 : O.attempt,
1998
1998
  isOverdue: Ie
1999
1999
  }
2000
2000
  ),
2001
- g.description && /* @__PURE__ */ S(K, { as: "div", children: [
2002
- /* @__PURE__ */ r(St, { level: "h3", children: d.assignmentInstructions() }),
2003
- /* @__PURE__ */ r(K, { as: "div", margin: "small none large none", children: f(g.description) })
2001
+ h.description && /* @__PURE__ */ S(K, { as: "div", children: [
2002
+ /* @__PURE__ */ r(St, { level: "h3", children: m.assignmentInstructions() }),
2003
+ /* @__PURE__ */ r(K, { as: "div", margin: "small none large none", children: p(h.description) })
2004
2004
  ] }),
2005
2005
  /* @__PURE__ */ r(
2006
2006
  to,
2007
2007
  {
2008
2008
  submission: O,
2009
2009
  isLastAttempt: ce,
2010
- renderHTML: f
2010
+ renderHTML: p
2011
2011
  }
2012
2012
  ),
2013
- u ? u(Ke) : null
2013
+ d ? d(Ke) : null
2014
2014
  ] });
2015
2015
  }
2016
2016
  function qo({
@@ -2018,17 +2018,17 @@ function qo({
2018
2018
  onSubmit: n,
2019
2019
  onSaveDraft: o,
2020
2020
  onDiscardDraft: a,
2021
- onSelectFiles: c,
2022
- isSubmitting: l = !1
2021
+ onSelectFiles: l,
2022
+ isSubmitting: c = !1
2023
2023
  }) {
2024
- const u = q(), [h, d] = Ee(e ?? []), f = async () => {
2025
- const w = await c();
2026
- d((y) => [...y, ...w]);
2027
- }, g = (w) => {
2028
- d((y) => y.filter((V) => V.id !== w));
2029
- }, C = h.map((w) => w.id), I = h.length > 0 && !l;
2024
+ const d = q(), [f, m] = Ee(e ?? []), p = async () => {
2025
+ const w = await l();
2026
+ m((y) => [...y, ...w]);
2027
+ }, h = (w) => {
2028
+ m((y) => y.filter((V) => V.id !== w));
2029
+ }, C = f.map((w) => w.id), I = f.length > 0 && !c;
2030
2030
  return /* @__PURE__ */ S(b, { direction: "column", gap: "medium", children: [
2031
- h.length > 0 && /* @__PURE__ */ r(b, { direction: "column", gap: "x-small", children: h.map((w) => /* @__PURE__ */ r(
2031
+ f.length > 0 && /* @__PURE__ */ r(b, { direction: "column", gap: "x-small", children: f.map((w) => /* @__PURE__ */ r(
2032
2032
  K,
2033
2033
  {
2034
2034
  as: "div",
@@ -2043,7 +2043,7 @@ function qo({
2043
2043
  {
2044
2044
  size: "small",
2045
2045
  renderIcon: () => /* @__PURE__ */ r(Wn, {}),
2046
- onClick: () => g(w.id),
2046
+ onClick: () => h(w.id),
2047
2047
  children: /* @__PURE__ */ S("span", { className: "screenreader-only", children: [
2048
2048
  "Remove ",
2049
2049
  w.name
@@ -2054,7 +2054,7 @@ function qo({
2054
2054
  },
2055
2055
  w.id
2056
2056
  )) }),
2057
- /* @__PURE__ */ r($, { onClick: f, children: u.submissionFormAddFiles() }),
2057
+ /* @__PURE__ */ r($, { onClick: p, children: d.submissionFormAddFiles() }),
2058
2058
  /* @__PURE__ */ S(b, { gap: "small", children: [
2059
2059
  /* @__PURE__ */ r(
2060
2060
  $,
@@ -2062,18 +2062,18 @@ function qo({
2062
2062
  color: "primary",
2063
2063
  onClick: () => n(C),
2064
2064
  interaction: I ? "enabled" : "disabled",
2065
- children: u.submissionFormSubmit()
2065
+ children: d.submissionFormSubmit()
2066
2066
  }
2067
2067
  ),
2068
2068
  o && /* @__PURE__ */ r(
2069
2069
  $,
2070
2070
  {
2071
2071
  onClick: () => o(C),
2072
- interaction: h.length > 0 ? "enabled" : "disabled",
2073
- children: u.submissionFormSaveDraft()
2072
+ interaction: f.length > 0 ? "enabled" : "disabled",
2073
+ children: d.submissionFormSaveDraft()
2074
2074
  }
2075
2075
  ),
2076
- a && e && e.length > 0 && /* @__PURE__ */ r($, { color: "primary-inverse", onClick: a, children: u.submissionFormDiscardDraft() })
2076
+ a && e && e.length > 0 && /* @__PURE__ */ r($, { color: "primary-inverse", onClick: a, children: d.submissionFormDiscardDraft() })
2077
2077
  ] })
2078
2078
  ] });
2079
2079
  }
@@ -2082,20 +2082,20 @@ function Yo({
2082
2082
  nextItem: n,
2083
2083
  onNavigatePrev: o,
2084
2084
  onNavigateNext: a,
2085
- labels: c
2085
+ labels: l
2086
2086
  }) {
2087
- const l = q();
2087
+ const c = q();
2088
2088
  if (!e && !n)
2089
2089
  return null;
2090
- const u = (c == null ? void 0 : c.previous) ?? l.navigationPrevious(), h = (c == null ? void 0 : c.next) ?? l.navigationNext();
2090
+ const d = (l == null ? void 0 : l.previous) ?? c.navigationPrevious(), f = (l == null ? void 0 : l.next) ?? c.navigationNext();
2091
2091
  return /* @__PURE__ */ S(b, { justifyItems: "space-between", padding: "small none", children: [
2092
2092
  e ? /* @__PURE__ */ r(
2093
2093
  $,
2094
2094
  {
2095
2095
  renderIcon: () => /* @__PURE__ */ r(fn, {}),
2096
2096
  onClick: o,
2097
- "aria-label": `${u}: ${e.title}`,
2098
- children: u
2097
+ "aria-label": `${d}: ${e.title}`,
2098
+ children: d
2099
2099
  }
2100
2100
  ) : /* @__PURE__ */ r("div", {}),
2101
2101
  n ? /* @__PURE__ */ r(
@@ -2103,8 +2103,8 @@ function Yo({
2103
2103
  {
2104
2104
  renderIcon: () => /* @__PURE__ */ r(pn, {}),
2105
2105
  onClick: a,
2106
- "aria-label": `${h}: ${n.title}`,
2107
- children: h
2106
+ "aria-label": `${f}: ${n.title}`,
2107
+ children: f
2108
2108
  }
2109
2109
  ) : /* @__PURE__ */ r("div", {})
2110
2110
  ] });
@@ -2132,60 +2132,60 @@ function bo({
2132
2132
  isLoadingItem: o,
2133
2133
  onClick: a
2134
2134
  }) {
2135
- var d, f, g, C, I;
2136
- const c = q(), l = ((d = e.content_details) == null ? void 0 : d.locked_for_user) ?? !1, u = (f = e.content_details) == null ? void 0 : f.lock_explanation, h = /* @__PURE__ */ r(
2135
+ var m, p, h, C, I;
2136
+ const l = q(), c = ((m = e.content_details) == null ? void 0 : m.locked_for_user) ?? !1, d = (p = e.content_details) == null ? void 0 : p.lock_explanation, f = /* @__PURE__ */ r(
2137
2137
  K,
2138
2138
  {
2139
2139
  as: "div",
2140
2140
  padding: "small",
2141
2141
  background: n ? "secondary" : "primary",
2142
2142
  borderRadius: "small",
2143
- cursor: l ? "not-allowed" : "pointer",
2144
- onClick: l ? void 0 : a,
2145
- role: l ? void 0 : "button",
2146
- tabIndex: l ? void 0 : 0,
2147
- onKeyDown: l ? void 0 : (w) => {
2143
+ cursor: c ? "not-allowed" : "pointer",
2144
+ onClick: c ? void 0 : a,
2145
+ role: c ? void 0 : "button",
2146
+ tabIndex: c ? void 0 : 0,
2147
+ onKeyDown: c ? void 0 : (w) => {
2148
2148
  (w.key === "Enter" || w.key === " ") && (w.preventDefault(), a());
2149
2149
  },
2150
2150
  children: /* @__PURE__ */ S(b, { gap: "small", alignItems: "center", children: [
2151
- /* @__PURE__ */ r(b.Item, { children: l ? /* @__PURE__ */ r(gn, {}) : ho(e.type) }),
2151
+ /* @__PURE__ */ r(b.Item, { children: c ? /* @__PURE__ */ r(gn, {}) : ho(e.type) }),
2152
2152
  /* @__PURE__ */ r(b.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ S(b, { direction: "column", gap: "xx-small", children: [
2153
2153
  /* @__PURE__ */ r(_, { weight: n ? "bold" : "normal", size: "small", children: e.title }),
2154
- ((g = e.content_details) == null ? void 0 : g.due_at) && /* @__PURE__ */ r(_, { size: "x-small", color: "secondary", children: c.progressDueDate({
2154
+ ((h = e.content_details) == null ? void 0 : h.due_at) && /* @__PURE__ */ r(_, { size: "x-small", color: "secondary", children: l.progressDueDate({
2155
2155
  date: new Date(e.content_details.due_at).toLocaleDateString()
2156
2156
  }) }),
2157
- ((C = e.content_details) == null ? void 0 : C.points_possible) != null && /* @__PURE__ */ r(_, { size: "x-small", color: "secondary", children: c.progressPoints({ points: e.content_details.points_possible }) })
2157
+ ((C = e.content_details) == null ? void 0 : C.points_possible) != null && /* @__PURE__ */ r(_, { size: "x-small", color: "secondary", children: l.progressPoints({ points: e.content_details.points_possible }) })
2158
2158
  ] }) }),
2159
- o && /* @__PURE__ */ r(Ye, { size: "x-small", renderTitle: c.progressLoading() }),
2159
+ o && /* @__PURE__ */ r(Ye, { size: "x-small", renderTitle: l.progressLoading() }),
2160
2160
  ((I = e.completion_requirement) == null ? void 0 : I.completed) && /* @__PURE__ */ r(_, { color: "success", size: "small", children: "✓" })
2161
2161
  ] })
2162
2162
  }
2163
2163
  );
2164
- return l && u ? /* @__PURE__ */ r(Jn, { renderTip: u, placement: "end", children: h }) : h;
2164
+ return c && d ? /* @__PURE__ */ r(Jn, { renderTip: d, placement: "end", children: f }) : f;
2165
2165
  }
2166
2166
  function Vo({
2167
2167
  module: e,
2168
2168
  currentItemId: n,
2169
2169
  onItemClick: o,
2170
2170
  onClose: a,
2171
- onNavigateModule: c,
2172
- hasPrevModule: l = !1,
2173
- hasNextModule: u = !1,
2174
- isLoading: h = !1,
2175
- title: d
2171
+ onNavigateModule: l,
2172
+ hasPrevModule: c = !1,
2173
+ hasNextModule: d = !1,
2174
+ isLoading: f = !1,
2175
+ title: m
2176
2176
  }) {
2177
2177
  var C;
2178
- const f = q(), g = d ?? f.navigationMyProgress();
2178
+ const p = q(), h = m ?? p.navigationMyProgress();
2179
2179
  return /* @__PURE__ */ S(b, { direction: "column", height: "100%", children: [
2180
2180
  /* @__PURE__ */ S(b, { justifyItems: "space-between", alignItems: "center", padding: "small", children: [
2181
- /* @__PURE__ */ r(St, { level: "h3", children: g }),
2182
- /* @__PURE__ */ r(Qn, { screenReaderLabel: f.navigationClosePanel(), onClick: a, size: "small", children: /* @__PURE__ */ r(qn, {}) })
2181
+ /* @__PURE__ */ r(St, { level: "h3", children: h }),
2182
+ /* @__PURE__ */ r(Qn, { screenReaderLabel: p.navigationClosePanel(), onClick: a, size: "small", children: /* @__PURE__ */ r(qn, {}) })
2183
2183
  ] }),
2184
2184
  /* @__PURE__ */ S(K, { as: "div", padding: "none small", overflowY: "auto", children: [
2185
2185
  e.state === "locked" && /* @__PURE__ */ r(b, { padding: "none none small", children: /* @__PURE__ */ S(_t, { color: "warning", children: [
2186
2186
  /* @__PURE__ */ r(gn, {}),
2187
2187
  " ",
2188
- f.progressLocked()
2188
+ p.progressLocked()
2189
2189
  ] }) }),
2190
2190
  /* @__PURE__ */ r(_, { weight: "bold", size: "medium", children: e.name }),
2191
2191
  /* @__PURE__ */ r(b, { direction: "column", gap: "xx-small", padding: "small none", children: (C = e.items) == null ? void 0 : C.map((I) => /* @__PURE__ */ r(
@@ -2193,22 +2193,22 @@ function Vo({
2193
2193
  {
2194
2194
  item: I,
2195
2195
  isSelected: I.id === n,
2196
- isLoadingItem: h && I.id === n,
2196
+ isLoadingItem: f && I.id === n,
2197
2197
  onClick: () => o(I)
2198
2198
  },
2199
2199
  I.id
2200
2200
  )) })
2201
2201
  ] }),
2202
- c && /* @__PURE__ */ S(b, { justifyItems: "space-between", padding: "small", children: [
2202
+ l && /* @__PURE__ */ S(b, { justifyItems: "space-between", padding: "small", children: [
2203
2203
  /* @__PURE__ */ r(
2204
2204
  $,
2205
2205
  {
2206
2206
  renderIcon: () => /* @__PURE__ */ r(fn, {}),
2207
2207
  size: "small",
2208
- interaction: l ? "enabled" : "disabled",
2209
- onClick: () => c("prev"),
2210
- "aria-label": f.navigationPreviousModule(),
2211
- children: f.navigationPrevious()
2208
+ interaction: c ? "enabled" : "disabled",
2209
+ onClick: () => l("prev"),
2210
+ "aria-label": p.navigationPreviousModule(),
2211
+ children: p.navigationPrevious()
2212
2212
  }
2213
2213
  ),
2214
2214
  /* @__PURE__ */ r(
@@ -2216,10 +2216,10 @@ function Vo({
2216
2216
  {
2217
2217
  renderIcon: () => /* @__PURE__ */ r(pn, {}),
2218
2218
  size: "small",
2219
- interaction: u ? "enabled" : "disabled",
2220
- onClick: () => c("next"),
2221
- "aria-label": f.navigationNextModule(),
2222
- children: f.navigationNext()
2219
+ interaction: d ? "enabled" : "disabled",
2220
+ onClick: () => l("next"),
2221
+ "aria-label": p.navigationNextModule(),
2222
+ children: p.navigationNext()
2223
2223
  }
2224
2224
  )
2225
2225
  ] })
@@ -2230,16 +2230,16 @@ function Xo({
2230
2230
  onSubmit: n,
2231
2231
  onSaveDraft: o,
2232
2232
  onDiscardDraft: a,
2233
- isSubmitting: c = !1
2233
+ isSubmitting: l = !1
2234
2234
  }) {
2235
- const l = q(), [u, h] = Ee(e ?? ""), d = u.trim().length > 0 && !c;
2235
+ const c = q(), [d, f] = Ee(e ?? ""), m = d.trim().length > 0 && !l;
2236
2236
  return /* @__PURE__ */ S(b, { direction: "column", gap: "medium", children: [
2237
2237
  /* @__PURE__ */ r(
2238
2238
  bn,
2239
2239
  {
2240
- label: l.submissionTextHeading(),
2241
- value: u,
2242
- onChange: (f) => h(f.target.value),
2240
+ label: c.submissionTextHeading(),
2241
+ value: d,
2242
+ onChange: (p) => f(p.target.value),
2243
2243
  resize: "vertical",
2244
2244
  height: "200px"
2245
2245
  }
@@ -2249,20 +2249,20 @@ function Xo({
2249
2249
  $,
2250
2250
  {
2251
2251
  color: "primary",
2252
- onClick: () => n(u),
2253
- interaction: d ? "enabled" : "disabled",
2254
- children: l.submissionFormSubmit()
2252
+ onClick: () => n(d),
2253
+ interaction: m ? "enabled" : "disabled",
2254
+ children: c.submissionFormSubmit()
2255
2255
  }
2256
2256
  ),
2257
2257
  o && /* @__PURE__ */ r(
2258
2258
  $,
2259
2259
  {
2260
- onClick: () => o(u),
2261
- interaction: u.trim().length > 0 ? "enabled" : "disabled",
2262
- children: l.submissionFormSaveDraft()
2260
+ onClick: () => o(d),
2261
+ interaction: d.trim().length > 0 ? "enabled" : "disabled",
2262
+ children: c.submissionFormSaveDraft()
2263
2263
  }
2264
2264
  ),
2265
- a && e && /* @__PURE__ */ r($, { color: "primary-inverse", onClick: a, children: l.submissionFormDiscardDraft() })
2265
+ a && e && /* @__PURE__ */ r($, { color: "primary-inverse", onClick: a, children: c.submissionFormDiscardDraft() })
2266
2266
  ] })
2267
2267
  ] });
2268
2268
  }