@instructure/platform-widget-dashboard 6.1.0 → 6.2.1

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
@@ -2,12 +2,12 @@ import { jsx as s, jsxs as w, Fragment as f2 } from "react/jsx-runtime";
2
2
  import { Alert as ye } from "@instructure/ui-alerts";
3
3
  import { Button as V0, IconButton as X2, CloseButton as Wb } from "@instructure/ui-buttons";
4
4
  import { Flex as L } from "@instructure/ui-flex";
5
- import { Heading as L1 } from "@instructure/ui-heading";
5
+ import { Heading as N1 } from "@instructure/ui-heading";
6
6
  import { IconInfoLine as rn, IconCalendarMonthLine as On, IconQuestionLine as an, IconWarningLine as Mb, IconCheckMarkLine as UM, IconMoveUpLine as eo, IconMoveDownLine as bo, IconMoveUpTopLine as sn, IconMoveDownBottomLine as un, IconArrowStartLine as Mo, IconArrowEndLine as FM, IconDragHandleLine as dn, IconTrashLine as An, IconEmailLine as ln, IconAnnouncementLine as qn, IconCheckMarkSolid as tb, IconEmptyLine as fn, IconDocumentLine as oc, IconDiscussionLine as Wn, IconQuizLine as hn, IconAssignmentLine as mn, IconCalendarClockLine as zc, IconMessageLine as cc, IconCheckLine as pt, IconArrowOpenEndSolid as Rn, IconA11yLine as gn, IconSpeedGraderLine as Ln, IconCompleteSolid as Nn, IconArrowOpenDownLine as yn, IconCheckPlusLine as vn, IconAddLine as Bn, IconConfigureLine as Tn } from "@instructure/ui-icons";
7
7
  import { View as I } from "@instructure/ui-view";
8
8
  import ob, { createContext as w2, useContext as Z2, useMemo as i0, useState as H, useCallback as Q, useEffect as F0, useRef as n1, useLayoutEffect as Xn, useId as pc, createElement as wn } from "react";
9
9
  import { usePlatformUi as h0, PlatformUiProvider as _n } from "@instructure/platform-provider";
10
- import { useMutation as C1, useQueryClient as B1, useQuery as t1, keepPreviousData as ve, QueryClient as Sn, hashKey as xn } from "@tanstack/react-query";
10
+ import { useMutation as C1, useQueryClient as T1, useQuery as t1, keepPreviousData as ve, QueryClient as Sn, hashKey as xn } from "@tanstack/react-query";
11
11
  import { gql as G0 } from "graphql-tag";
12
12
  import { Spinner as S1 } from "@instructure/ui-spinner";
13
13
  import { Link as P0 } from "@instructure/ui-link";
@@ -90,6 +90,7 @@ const sc = w2({
90
90
  sharedCourseData: [],
91
91
  dashboardFeatures: {},
92
92
  accounts: [],
93
+ customWidgets: {},
93
94
  isDark: !1,
94
95
  widgetConfig: {},
95
96
  updateWidgetConfig: () => {
@@ -111,51 +112,53 @@ const sc = w2({
111
112
  accountName: O,
112
113
  accountDashboardUrl: i,
113
114
  accounts: u,
114
- isDark: r,
115
- queryPersister: n
115
+ customWidgets: r,
116
+ isDark: n,
117
+ queryPersister: d
116
118
  }) => {
117
- const d = i0(() => u && u.length > 0 ? u : O && i ? [{ id: "default", name: O, dashboardUrl: i }] : [], [u, O, i]), [q, f] = H(() => {
118
- var y;
119
- return ((y = (b ?? X1.preferences).widget_dashboard_config) == null ? void 0 : y.filters) ?? {};
120
- }), A = Q((B, y) => {
121
- f((X) => ({
122
- ...X,
123
- [B]: y
119
+ const q = i0(() => u && u.length > 0 ? u : O && i ? [{ id: "default", name: O, dashboardUrl: i }] : [], [u, O, i]), [f, A] = H(() => {
120
+ var X;
121
+ return ((X = (b ?? l1.preferences).widget_dashboard_config) == null ? void 0 : X.filters) ?? {};
122
+ }), W = Q((v, X) => {
123
+ A((S) => ({
124
+ ...S,
125
+ [v]: X
124
126
  }));
125
- }, []), [W, h] = H({}), [m, l] = H({}), R = Q((B, y) => {
126
- h((X) => ({
127
- ...X,
128
- [B]: y
127
+ }, []), [h, m] = H({}), [l, R] = H({}), g = Q((v, X) => {
128
+ m((S) => ({
129
+ ...S,
130
+ [v]: X
129
131
  }));
130
- }, []), g = Q((B, y) => {
131
- l((X) => ({
132
- ...X,
133
- [B]: y
132
+ }, []), y = Q((v, X) => {
133
+ R((S) => ({
134
+ ...S,
135
+ [v]: X
134
136
  }));
135
- }, []), v = i0(() => (c ?? X1.sharedCourseData).map((y) => {
136
- const X = m[y.courseId];
137
+ }, []), T = i0(() => (c ?? l1.sharedCourseData).map((X) => {
138
+ const S = l[X.courseId];
137
139
  return {
138
- ...y,
139
- courseColor: W[y.courseId] ?? y.courseColor,
140
- courseName: X ?? y.courseName
140
+ ...X,
141
+ courseColor: h[X.courseId] ?? X.courseColor,
142
+ courseName: S ?? X.courseName
141
143
  };
142
- }), [c, W, m]), T = i0(
144
+ }), [c, h, l]), B = i0(
143
145
  () => ({
144
- preferences: b ?? X1.preferences,
145
- observedUsersList: M ?? X1.observedUsersList,
146
- canAddObservee: t ?? X1.canAddObservee,
147
- currentUser: o ?? X1.currentUser,
148
- observedUserId: z ?? X1.observedUserId,
149
- currentUserRoles: p ?? X1.currentUserRoles,
150
- sharedCourseData: v,
151
- dashboardFeatures: a ?? X1.dashboardFeatures,
152
- accounts: d,
153
- isDark: r ?? X1.isDark,
154
- queryPersister: n,
155
- widgetConfig: q,
156
- updateWidgetConfig: A,
157
- updateCourseColor: R,
158
- updateCourseNickname: g
146
+ preferences: b ?? l1.preferences,
147
+ observedUsersList: M ?? l1.observedUsersList,
148
+ canAddObservee: t ?? l1.canAddObservee,
149
+ currentUser: o ?? l1.currentUser,
150
+ observedUserId: z ?? l1.observedUserId,
151
+ currentUserRoles: p ?? l1.currentUserRoles,
152
+ sharedCourseData: T,
153
+ dashboardFeatures: a ?? l1.dashboardFeatures,
154
+ accounts: q,
155
+ customWidgets: r ?? l1.customWidgets,
156
+ isDark: n ?? l1.isDark,
157
+ queryPersister: d,
158
+ widgetConfig: f,
159
+ updateWidgetConfig: W,
160
+ updateCourseColor: g,
161
+ updateCourseNickname: y
159
162
  }),
160
163
  [
161
164
  b,
@@ -164,23 +167,24 @@ const sc = w2({
164
167
  o,
165
168
  z,
166
169
  p,
167
- v,
170
+ T,
168
171
  a,
169
- d,
172
+ q,
170
173
  r,
171
174
  n,
172
- q,
173
- A,
174
- R,
175
- g
175
+ d,
176
+ f,
177
+ W,
178
+ g,
179
+ y
176
180
  ]
177
181
  );
178
- return /* @__PURE__ */ s(uc.Provider, { value: T, children: e });
182
+ return /* @__PURE__ */ s(uc.Provider, { value: B, children: e });
179
183
  };
180
- function E0() {
184
+ function C0() {
181
185
  return Z2(uc);
182
186
  }
183
- const X1 = {
187
+ const l1 = {
184
188
  preferences: {
185
189
  dashboard_view: "cards",
186
190
  hide_dashcard_color_overlays: !1,
@@ -197,6 +201,7 @@ const X1 = {
197
201
  currentUserRoles: [],
198
202
  sharedCourseData: [],
199
203
  dashboardFeatures: {},
204
+ customWidgets: {},
200
205
  isDark: !1
201
206
  }, I2 = {
202
207
  DASHBOARD: "dashboard",
@@ -473,7 +478,7 @@ const cr = (e, b) => {
473
478
  return e.map((c) => c.id === b ? { ...c, position: { ...c.position, row: p } } : c.position.col === M.position.col && c.id !== b && o.findIndex((O) => O.id === c.id) > z ? { ...c, position: { ...c.position, row: c.position.row - 1 } } : c);
474
479
  }, Zl = ({ children: e }) => {
475
480
  var A;
476
- const { preferences: b } = E0(), { translations: M, announceForScreenReader: t } = e0(), [o, z] = H(() => {
481
+ const { preferences: b } = C0(), { translations: M, announceForScreenReader: t } = e0(), [o, z] = H(() => {
477
482
  var h;
478
483
  return ((h = b.widget_dashboard_config) == null ? void 0 : h.layout) || oo;
479
484
  }), [p, c] = H(() => {
@@ -529,10 +534,10 @@ const cr = (e, b) => {
529
534
  (W, h, m) => {
530
535
  z((l) => {
531
536
  if (!l.widgets.find((B) => B.id === W)) return l;
532
- const g = l.widgets.map((B) => B.id === W ? { ...B, position: { ...B.position, col: h, row: m } } : B.position.col === h && B.position.row >= m && B.id !== W ? { ...B, position: { ...B.position, row: B.position.row + 1 } } : B), v = n2(
537
+ const g = l.widgets.map((B) => B.id === W ? { ...B, position: { ...B.position, col: h, row: m } } : B.position.col === h && B.position.row >= m && B.id !== W ? { ...B, position: { ...B.position, row: B.position.row + 1 } } : B), y = n2(
533
538
  n2(g, Y0),
534
539
  $0
535
- ), T = Ie(v);
540
+ ), T = Ie(y);
536
541
  return { ...l, widgets: T };
537
542
  }), a();
538
543
  },
@@ -540,7 +545,7 @@ const cr = (e, b) => {
540
545
  ), r = Q(
541
546
  (W, h = M.widget) => {
542
547
  z((m) => {
543
- const l = m.widgets.filter((v) => v.id !== W), R = n2(
548
+ const l = m.widgets.filter((y) => y.id !== W), R = n2(
544
549
  n2(l, Y0),
545
550
  $0
546
551
  ), g = Ie(R);
@@ -552,15 +557,15 @@ const cr = (e, b) => {
552
557
  (W, h, m, l) => {
553
558
  z((R) => {
554
559
  var S;
555
- const g = ((S = crypto == null ? void 0 : crypto.randomUUID) == null ? void 0 : S.call(crypto)) ?? "", v = {
560
+ const g = ((S = crypto == null ? void 0 : crypto.randomUUID) == null ? void 0 : S.call(crypto)) ?? "", y = {
556
561
  id: g ? `${W}-widget-${g}` : `${W}-widget`,
557
562
  type: W,
558
563
  position: { col: m, row: l, relative: 0 },
559
564
  title: h
560
- }, B = [...R.widgets.map((k) => k.position.col === m && k.position.row >= l ? { ...k, position: { ...k.position, row: k.position.row + 1 } } : k), v], y = n2(
565
+ }, B = [...R.widgets.map((k) => k.position.col === m && k.position.row >= l ? { ...k, position: { ...k.position, row: k.position.row + 1 } } : k), y], v = n2(
561
566
  n2(B, Y0),
562
567
  $0
563
- ), X = Ie(y);
568
+ ), X = Ie(v);
564
569
  return { ...R, widgets: X };
565
570
  }), a(), t == null || t(M.widgetAdded.replace("%{widgetName}", h));
566
571
  },
@@ -592,7 +597,7 @@ const s2 = void 0, lr = ({
592
597
  onReject: M
593
598
  }) => {
594
599
  var r;
595
- const { executeQuery: t } = h0(), { translations: o, translate: z } = e0(), p = B1(), c = C1({
600
+ const { executeQuery: t } = h0(), { translations: o, translate: z } = e0(), p = T1(), c = C1({
596
601
  mutationFn: async (n) => t(br, {
597
602
  enrollmentUuid: n
598
603
  }),
@@ -708,7 +713,7 @@ function fc(e) {
708
713
  });
709
714
  }), M;
710
715
  }
711
- var l1 = {}, q1 = {}, jb = {}, f1 = {}, De = {}, ro;
716
+ var q1 = {}, f1 = {}, jb = {}, W1 = {}, De = {}, ro;
712
717
  function qr() {
713
718
  return ro || (ro = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.default = new Uint16Array(
714
719
  // prettier-ignore
@@ -781,25 +786,25 @@ function io() {
781
786
  var so;
782
787
  function zb() {
783
788
  return so || (so = 1, function(e) {
784
- var b = f1 && f1.__createBinding || (Object.create ? function(y, X, S, k) {
789
+ var b = W1 && W1.__createBinding || (Object.create ? function(v, X, S, k) {
785
790
  k === void 0 && (k = S);
786
791
  var C = Object.getOwnPropertyDescriptor(X, S);
787
792
  (!C || ("get" in C ? !X.__esModule : C.writable || C.configurable)) && (C = { enumerable: !0, get: function() {
788
793
  return X[S];
789
- } }), Object.defineProperty(y, k, C);
790
- } : function(y, X, S, k) {
791
- k === void 0 && (k = S), y[k] = X[S];
792
- }), M = f1 && f1.__setModuleDefault || (Object.create ? function(y, X) {
793
- Object.defineProperty(y, "default", { enumerable: !0, value: X });
794
- } : function(y, X) {
795
- y.default = X;
796
- }), t = f1 && f1.__importStar || function(y) {
797
- if (y && y.__esModule) return y;
794
+ } }), Object.defineProperty(v, k, C);
795
+ } : function(v, X, S, k) {
796
+ k === void 0 && (k = S), v[k] = X[S];
797
+ }), M = W1 && W1.__setModuleDefault || (Object.create ? function(v, X) {
798
+ Object.defineProperty(v, "default", { enumerable: !0, value: X });
799
+ } : function(v, X) {
800
+ v.default = X;
801
+ }), t = W1 && W1.__importStar || function(v) {
802
+ if (v && v.__esModule) return v;
798
803
  var X = {};
799
- if (y != null) for (var S in y) S !== "default" && Object.prototype.hasOwnProperty.call(y, S) && b(X, y, S);
800
- return M(X, y), X;
801
- }, o = f1 && f1.__importDefault || function(y) {
802
- return y && y.__esModule ? y : { default: y };
804
+ if (v != null) for (var S in v) S !== "default" && Object.prototype.hasOwnProperty.call(v, S) && b(X, v, S);
805
+ return M(X, v), X;
806
+ }, o = W1 && W1.__importDefault || function(v) {
807
+ return v && v.__esModule ? v : { default: v };
803
808
  };
804
809
  Object.defineProperty(e, "__esModule", { value: !0 }), e.decodeXML = e.decodeHTMLStrict = e.decodeHTMLAttribute = e.decodeHTML = e.determineBranch = e.EntityDecoder = e.DecodingMode = e.BinTrieFlags = e.fromCodePoint = e.replaceCodePoint = e.decodeCodePoint = e.xmlDecodeTree = e.htmlDecodeTree = void 0;
805
810
  var z = o(/* @__PURE__ */ qr());
@@ -815,42 +820,42 @@ function zb() {
815
820
  return a.fromCodePoint;
816
821
  } });
817
822
  var O;
818
- (function(y) {
819
- y[y.NUM = 35] = "NUM", y[y.SEMI = 59] = "SEMI", y[y.EQUALS = 61] = "EQUALS", y[y.ZERO = 48] = "ZERO", y[y.NINE = 57] = "NINE", y[y.LOWER_A = 97] = "LOWER_A", y[y.LOWER_F = 102] = "LOWER_F", y[y.LOWER_X = 120] = "LOWER_X", y[y.LOWER_Z = 122] = "LOWER_Z", y[y.UPPER_A = 65] = "UPPER_A", y[y.UPPER_F = 70] = "UPPER_F", y[y.UPPER_Z = 90] = "UPPER_Z";
823
+ (function(v) {
824
+ v[v.NUM = 35] = "NUM", v[v.SEMI = 59] = "SEMI", v[v.EQUALS = 61] = "EQUALS", v[v.ZERO = 48] = "ZERO", v[v.NINE = 57] = "NINE", v[v.LOWER_A = 97] = "LOWER_A", v[v.LOWER_F = 102] = "LOWER_F", v[v.LOWER_X = 120] = "LOWER_X", v[v.LOWER_Z = 122] = "LOWER_Z", v[v.UPPER_A = 65] = "UPPER_A", v[v.UPPER_F = 70] = "UPPER_F", v[v.UPPER_Z = 90] = "UPPER_Z";
820
825
  })(O || (O = {}));
821
826
  var i = 32, u;
822
- (function(y) {
823
- y[y.VALUE_LENGTH = 49152] = "VALUE_LENGTH", y[y.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", y[y.JUMP_TABLE = 127] = "JUMP_TABLE";
827
+ (function(v) {
828
+ v[v.VALUE_LENGTH = 49152] = "VALUE_LENGTH", v[v.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", v[v.JUMP_TABLE = 127] = "JUMP_TABLE";
824
829
  })(u = e.BinTrieFlags || (e.BinTrieFlags = {}));
825
- function r(y) {
826
- return y >= O.ZERO && y <= O.NINE;
830
+ function r(v) {
831
+ return v >= O.ZERO && v <= O.NINE;
827
832
  }
828
- function n(y) {
829
- return y >= O.UPPER_A && y <= O.UPPER_F || y >= O.LOWER_A && y <= O.LOWER_F;
833
+ function n(v) {
834
+ return v >= O.UPPER_A && v <= O.UPPER_F || v >= O.LOWER_A && v <= O.LOWER_F;
830
835
  }
831
- function d(y) {
832
- return y >= O.UPPER_A && y <= O.UPPER_Z || y >= O.LOWER_A && y <= O.LOWER_Z || r(y);
836
+ function d(v) {
837
+ return v >= O.UPPER_A && v <= O.UPPER_Z || v >= O.LOWER_A && v <= O.LOWER_Z || r(v);
833
838
  }
834
- function q(y) {
835
- return y === O.EQUALS || d(y);
839
+ function q(v) {
840
+ return v === O.EQUALS || d(v);
836
841
  }
837
842
  var f;
838
- (function(y) {
839
- y[y.EntityStart = 0] = "EntityStart", y[y.NumericStart = 1] = "NumericStart", y[y.NumericDecimal = 2] = "NumericDecimal", y[y.NumericHex = 3] = "NumericHex", y[y.NamedEntity = 4] = "NamedEntity";
843
+ (function(v) {
844
+ v[v.EntityStart = 0] = "EntityStart", v[v.NumericStart = 1] = "NumericStart", v[v.NumericDecimal = 2] = "NumericDecimal", v[v.NumericHex = 3] = "NumericHex", v[v.NamedEntity = 4] = "NamedEntity";
840
845
  })(f || (f = {}));
841
846
  var A;
842
- (function(y) {
843
- y[y.Legacy = 0] = "Legacy", y[y.Strict = 1] = "Strict", y[y.Attribute = 2] = "Attribute";
847
+ (function(v) {
848
+ v[v.Legacy = 0] = "Legacy", v[v.Strict = 1] = "Strict", v[v.Attribute = 2] = "Attribute";
844
849
  })(A = e.DecodingMode || (e.DecodingMode = {}));
845
850
  var W = (
846
851
  /** @class */
847
852
  function() {
848
- function y(X, S, k) {
853
+ function v(X, S, k) {
849
854
  this.decodeTree = X, this.emitCodePoint = S, this.errors = k, this.state = f.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = A.Strict;
850
855
  }
851
- return y.prototype.startEntity = function(X) {
856
+ return v.prototype.startEntity = function(X) {
852
857
  this.decodeMode = X, this.state = f.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
853
- }, y.prototype.write = function(X, S) {
858
+ }, v.prototype.write = function(X, S) {
854
859
  switch (this.state) {
855
860
  case f.EntityStart:
856
861
  return X.charCodeAt(S) === O.NUM ? (this.state = f.NumericStart, this.consumed += 1, this.stateNumericStart(X, S + 1)) : (this.state = f.NamedEntity, this.stateNamedEntity(X, S));
@@ -863,14 +868,14 @@ function zb() {
863
868
  case f.NamedEntity:
864
869
  return this.stateNamedEntity(X, S);
865
870
  }
866
- }, y.prototype.stateNumericStart = function(X, S) {
871
+ }, v.prototype.stateNumericStart = function(X, S) {
867
872
  return S >= X.length ? -1 : (X.charCodeAt(S) | i) === O.LOWER_X ? (this.state = f.NumericHex, this.consumed += 1, this.stateNumericHex(X, S + 1)) : (this.state = f.NumericDecimal, this.stateNumericDecimal(X, S));
868
- }, y.prototype.addToNumericResult = function(X, S, k, C) {
873
+ }, v.prototype.addToNumericResult = function(X, S, k, C) {
869
874
  if (S !== k) {
870
875
  var Z = k - S;
871
876
  this.result = this.result * Math.pow(C, Z) + parseInt(X.substr(S, Z), C), this.consumed += Z;
872
877
  }
873
- }, y.prototype.stateNumericHex = function(X, S) {
878
+ }, v.prototype.stateNumericHex = function(X, S) {
874
879
  for (var k = S; S < X.length; ) {
875
880
  var C = X.charCodeAt(S);
876
881
  if (r(C) || n(C))
@@ -879,7 +884,7 @@ function zb() {
879
884
  return this.addToNumericResult(X, k, S, 16), this.emitNumericEntity(C, 3);
880
885
  }
881
886
  return this.addToNumericResult(X, k, S, 16), -1;
882
- }, y.prototype.stateNumericDecimal = function(X, S) {
887
+ }, v.prototype.stateNumericDecimal = function(X, S) {
883
888
  for (var k = S; S < X.length; ) {
884
889
  var C = X.charCodeAt(S);
885
890
  if (r(C))
@@ -888,7 +893,7 @@ function zb() {
888
893
  return this.addToNumericResult(X, k, S, 10), this.emitNumericEntity(C, 2);
889
894
  }
890
895
  return this.addToNumericResult(X, k, S, 10), -1;
891
- }, y.prototype.emitNumericEntity = function(X, S) {
896
+ }, v.prototype.emitNumericEntity = function(X, S) {
892
897
  var k;
893
898
  if (this.consumed <= S)
894
899
  return (k = this.errors) === null || k === void 0 || k.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
@@ -897,7 +902,7 @@ function zb() {
897
902
  else if (this.decodeMode === A.Strict)
898
903
  return 0;
899
904
  return this.emitCodePoint((0, c.replaceCodePoint)(this.result), this.consumed), this.errors && (X !== O.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
900
- }, y.prototype.stateNamedEntity = function(X, S) {
905
+ }, v.prototype.stateNamedEntity = function(X, S) {
901
906
  for (var k = this.decodeTree, C = k[this.treeIndex], Z = (C & u.VALUE_LENGTH) >> 14; S < X.length; S++, this.excess++) {
902
907
  var U = X.charCodeAt(S);
903
908
  if (this.treeIndex = m(k, C, this.treeIndex + Math.max(1, Z), U), this.treeIndex < 0)
@@ -912,13 +917,13 @@ function zb() {
912
917
  }
913
918
  }
914
919
  return -1;
915
- }, y.prototype.emitNotTerminatedNamedEntity = function() {
920
+ }, v.prototype.emitNotTerminatedNamedEntity = function() {
916
921
  var X, S = this, k = S.result, C = S.decodeTree, Z = (C[k] & u.VALUE_LENGTH) >> 14;
917
922
  return this.emitNamedEntityData(k, Z, this.consumed), (X = this.errors) === null || X === void 0 || X.missingSemicolonAfterCharacterReference(), this.consumed;
918
- }, y.prototype.emitNamedEntityData = function(X, S, k) {
923
+ }, v.prototype.emitNamedEntityData = function(X, S, k) {
919
924
  var C = this.decodeTree;
920
925
  return this.emitCodePoint(S === 1 ? C[X] & ~u.VALUE_LENGTH : C[X + 1], k), S === 3 && this.emitCodePoint(C[X + 2], k), k;
921
- }, y.prototype.end = function() {
926
+ }, v.prototype.end = function() {
922
927
  var X;
923
928
  switch (this.state) {
924
929
  case f.NamedEntity:
@@ -932,12 +937,12 @@ function zb() {
932
937
  case f.EntityStart:
933
938
  return 0;
934
939
  }
935
- }, y;
940
+ }, v;
936
941
  }()
937
942
  );
938
943
  e.EntityDecoder = W;
939
- function h(y) {
940
- var X = "", S = new W(y, function(k) {
944
+ function h(v) {
945
+ var X = "", S = new W(v, function(k) {
941
946
  return X += (0, c.fromCodePoint)(k);
942
947
  });
943
948
  return function(C, Z) {
@@ -958,44 +963,44 @@ function zb() {
958
963
  return X = "", q0;
959
964
  };
960
965
  }
961
- function m(y, X, S, k) {
966
+ function m(v, X, S, k) {
962
967
  var C = (X & u.BRANCH_LENGTH) >> 7, Z = X & u.JUMP_TABLE;
963
968
  if (C === 0)
964
969
  return Z !== 0 && k === Z ? S : -1;
965
970
  if (Z) {
966
971
  var U = k - Z;
967
- return U < 0 || U >= C ? -1 : y[S + U] - 1;
972
+ return U < 0 || U >= C ? -1 : v[S + U] - 1;
968
973
  }
969
974
  for (var $ = S, O0 = $ + C - 1; $ <= O0; ) {
970
- var q0 = $ + O0 >>> 1, w0 = y[q0];
975
+ var q0 = $ + O0 >>> 1, w0 = v[q0];
971
976
  if (w0 < k)
972
977
  $ = q0 + 1;
973
978
  else if (w0 > k)
974
979
  O0 = q0 - 1;
975
980
  else
976
- return y[q0 + C];
981
+ return v[q0 + C];
977
982
  }
978
983
  return -1;
979
984
  }
980
985
  e.determineBranch = m;
981
986
  var l = h(z.default), R = h(p.default);
982
- function g(y, X) {
983
- return X === void 0 && (X = A.Legacy), l(y, X);
987
+ function g(v, X) {
988
+ return X === void 0 && (X = A.Legacy), l(v, X);
984
989
  }
985
990
  e.decodeHTML = g;
986
- function v(y) {
987
- return l(y, A.Attribute);
991
+ function y(v) {
992
+ return l(v, A.Attribute);
988
993
  }
989
- e.decodeHTMLAttribute = v;
990
- function T(y) {
991
- return l(y, A.Strict);
994
+ e.decodeHTMLAttribute = y;
995
+ function T(v) {
996
+ return l(v, A.Strict);
992
997
  }
993
998
  e.decodeHTMLStrict = T;
994
- function B(y) {
995
- return R(y, A.Strict);
999
+ function B(v) {
1000
+ return R(v, A.Strict);
996
1001
  }
997
1002
  e.decodeXML = B;
998
- }(f1)), f1;
1003
+ }(W1)), W1;
999
1004
  }
1000
1005
  var uo;
1001
1006
  function Wc() {
@@ -1337,9 +1342,9 @@ function Wc() {
1337
1342
  }
1338
1343
  var Ao;
1339
1344
  function lo() {
1340
- if (Ao) return q1;
1345
+ if (Ao) return f1;
1341
1346
  Ao = 1;
1342
- var e = q1 && q1.__createBinding || (Object.create ? function(f, A, W, h) {
1347
+ var e = f1 && f1.__createBinding || (Object.create ? function(f, A, W, h) {
1343
1348
  h === void 0 && (h = W);
1344
1349
  var m = Object.getOwnPropertyDescriptor(A, W);
1345
1350
  (!m || ("get" in m ? !A.__esModule : m.writable || m.configurable)) && (m = { enumerable: !0, get: function() {
@@ -1347,17 +1352,17 @@ function lo() {
1347
1352
  } }), Object.defineProperty(f, h, m);
1348
1353
  } : function(f, A, W, h) {
1349
1354
  h === void 0 && (h = W), f[h] = A[W];
1350
- }), b = q1 && q1.__setModuleDefault || (Object.create ? function(f, A) {
1355
+ }), b = f1 && f1.__setModuleDefault || (Object.create ? function(f, A) {
1351
1356
  Object.defineProperty(f, "default", { enumerable: !0, value: A });
1352
1357
  } : function(f, A) {
1353
1358
  f.default = A;
1354
- }), M = q1 && q1.__importStar || function(f) {
1359
+ }), M = f1 && f1.__importStar || function(f) {
1355
1360
  if (f && f.__esModule) return f;
1356
1361
  var A = {};
1357
1362
  if (f != null) for (var W in f) W !== "default" && Object.prototype.hasOwnProperty.call(f, W) && e(A, f, W);
1358
1363
  return b(A, f), A;
1359
1364
  };
1360
- Object.defineProperty(q1, "__esModule", { value: !0 }), q1.Parser = void 0;
1365
+ Object.defineProperty(f1, "__esModule", { value: !0 }), f1.Parser = void 0;
1361
1366
  var t = M(/* @__PURE__ */ Wc()), o = /* @__PURE__ */ zb(), z = /* @__PURE__ */ new Set([
1362
1367
  "input",
1363
1368
  "option",
@@ -1480,17 +1485,17 @@ function lo() {
1480
1485
  }, f.prototype.onopentagend = function(A) {
1481
1486
  this.endIndex = A, this.endOpenTag(!1), this.startIndex = A + 1;
1482
1487
  }, f.prototype.onclosetag = function(A, W) {
1483
- var h, m, l, R, g, v;
1488
+ var h, m, l, R, g, y;
1484
1489
  this.endIndex = W;
1485
1490
  var T = this.getSlice(A, W);
1486
1491
  if (this.lowerCaseTagNames && (T = T.toLowerCase()), (r.has(T) || n.has(T)) && this.foreignContext.pop(), this.isVoidElement(T))
1487
- !this.options.xmlMode && T === "br" && ((m = (h = this.cbs).onopentagname) === null || m === void 0 || m.call(h, "br"), (R = (l = this.cbs).onopentag) === null || R === void 0 || R.call(l, "br", {}, !0), (v = (g = this.cbs).onclosetag) === null || v === void 0 || v.call(g, "br", !1));
1492
+ !this.options.xmlMode && T === "br" && ((m = (h = this.cbs).onopentagname) === null || m === void 0 || m.call(h, "br"), (R = (l = this.cbs).onopentag) === null || R === void 0 || R.call(l, "br", {}, !0), (y = (g = this.cbs).onclosetag) === null || y === void 0 || y.call(g, "br", !1));
1488
1493
  else {
1489
1494
  var B = this.stack.lastIndexOf(T);
1490
1495
  if (B !== -1)
1491
1496
  if (this.cbs.onclosetag)
1492
- for (var y = this.stack.length - B; y--; )
1493
- this.cbs.onclosetag(this.stack.pop(), y !== 0);
1497
+ for (var v = this.stack.length - B; v--; )
1498
+ this.cbs.onclosetag(this.stack.pop(), v !== 0);
1494
1499
  else
1495
1500
  this.stack.length = B;
1496
1501
  else !this.options.xmlMode && T === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
@@ -1535,10 +1540,10 @@ function lo() {
1535
1540
  var m, l, R, g;
1536
1541
  this.endIndex = W, (l = (m = this.cbs).oncomment) === null || l === void 0 || l.call(m, this.getSlice(A, W - h)), (g = (R = this.cbs).oncommentend) === null || g === void 0 || g.call(R), this.startIndex = W + 1;
1537
1542
  }, f.prototype.oncdata = function(A, W, h) {
1538
- var m, l, R, g, v, T, B, y, X, S;
1543
+ var m, l, R, g, y, T, B, v, X, S;
1539
1544
  this.endIndex = W;
1540
1545
  var k = this.getSlice(A, W - h);
1541
- this.options.xmlMode || this.options.recognizeCDATA ? ((l = (m = this.cbs).oncdatastart) === null || l === void 0 || l.call(m), (g = (R = this.cbs).ontext) === null || g === void 0 || g.call(R, k), (T = (v = this.cbs).oncdataend) === null || T === void 0 || T.call(v)) : ((y = (B = this.cbs).oncomment) === null || y === void 0 || y.call(B, "[CDATA[".concat(k, "]]")), (S = (X = this.cbs).oncommentend) === null || S === void 0 || S.call(X)), this.startIndex = W + 1;
1546
+ this.options.xmlMode || this.options.recognizeCDATA ? ((l = (m = this.cbs).oncdatastart) === null || l === void 0 || l.call(m), (g = (R = this.cbs).ontext) === null || g === void 0 || g.call(R, k), (T = (y = this.cbs).oncdataend) === null || T === void 0 || T.call(y)) : ((v = (B = this.cbs).oncomment) === null || v === void 0 || v.call(B, "[CDATA[".concat(k, "]]")), (S = (X = this.cbs).oncommentend) === null || S === void 0 || S.call(X)), this.startIndex = W + 1;
1542
1547
  }, f.prototype.onend = function() {
1543
1548
  var A, W;
1544
1549
  if (this.cbs.onclosetag) {
@@ -1587,7 +1592,7 @@ function lo() {
1587
1592
  }, f;
1588
1593
  }()
1589
1594
  );
1590
- return q1.Parser = q, q1;
1595
+ return f1.Parser = q, f1;
1591
1596
  }
1592
1597
  var h2 = {}, Hb = {}, qo;
1593
1598
  function Te() {
@@ -1609,24 +1614,24 @@ function Wo() {
1609
1614
  fo = 1;
1610
1615
  var e = d0 && d0.__extends || /* @__PURE__ */ function() {
1611
1616
  var l = function(R, g) {
1612
- return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, T) {
1613
- v.__proto__ = T;
1614
- } || function(v, T) {
1615
- for (var B in T) Object.prototype.hasOwnProperty.call(T, B) && (v[B] = T[B]);
1617
+ return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, T) {
1618
+ y.__proto__ = T;
1619
+ } || function(y, T) {
1620
+ for (var B in T) Object.prototype.hasOwnProperty.call(T, B) && (y[B] = T[B]);
1616
1621
  }, l(R, g);
1617
1622
  };
1618
1623
  return function(R, g) {
1619
1624
  if (typeof g != "function" && g !== null)
1620
1625
  throw new TypeError("Class extends value " + String(g) + " is not a constructor or null");
1621
1626
  l(R, g);
1622
- function v() {
1627
+ function y() {
1623
1628
  this.constructor = R;
1624
1629
  }
1625
- R.prototype = g === null ? Object.create(g) : (v.prototype = g.prototype, new v());
1630
+ R.prototype = g === null ? Object.create(g) : (y.prototype = g.prototype, new y());
1626
1631
  };
1627
1632
  }(), b = d0 && d0.__assign || function() {
1628
1633
  return b = Object.assign || function(l) {
1629
- for (var R, g = 1, v = arguments.length; g < v; g++) {
1634
+ for (var R, g = 1, y = arguments.length; g < y; g++) {
1630
1635
  R = arguments[g];
1631
1636
  for (var T in R) Object.prototype.hasOwnProperty.call(R, T) && (l[T] = R[T]);
1632
1637
  }
@@ -1691,8 +1696,8 @@ function Wo() {
1691
1696
  function(l) {
1692
1697
  e(R, l);
1693
1698
  function R(g) {
1694
- var v = l.call(this) || this;
1695
- return v.data = g, v;
1699
+ var y = l.call(this) || this;
1700
+ return y.data = g, y;
1696
1701
  }
1697
1702
  return Object.defineProperty(R.prototype, "nodeValue", {
1698
1703
  /**
@@ -1751,8 +1756,8 @@ function Wo() {
1751
1756
  /** @class */
1752
1757
  function(l) {
1753
1758
  e(R, l);
1754
- function R(g, v) {
1755
- var T = l.call(this, v) || this;
1759
+ function R(g, y) {
1760
+ var T = l.call(this, y) || this;
1756
1761
  return T.name = g, T.type = M.ElementType.Directive, T;
1757
1762
  }
1758
1763
  return Object.defineProperty(R.prototype, "nodeType", {
@@ -1770,8 +1775,8 @@ function Wo() {
1770
1775
  function(l) {
1771
1776
  e(R, l);
1772
1777
  function R(g) {
1773
- var v = l.call(this) || this;
1774
- return v.children = g, v;
1778
+ var y = l.call(this) || this;
1779
+ return y.children = g, y;
1775
1780
  }
1776
1781
  return Object.defineProperty(R.prototype, "firstChild", {
1777
1782
  // Aliases
@@ -1846,10 +1851,10 @@ function Wo() {
1846
1851
  /** @class */
1847
1852
  function(l) {
1848
1853
  e(R, l);
1849
- function R(g, v, T, B) {
1854
+ function R(g, y, T, B) {
1850
1855
  T === void 0 && (T = []), B === void 0 && (B = g === "script" ? M.ElementType.Script : g === "style" ? M.ElementType.Style : M.ElementType.Tag);
1851
- var y = l.call(this, T) || this;
1852
- return y.name = g, y.attribs = v, y.type = B, y;
1856
+ var v = l.call(this, T) || this;
1857
+ return v.name = g, v.attribs = y, v.type = B, v;
1853
1858
  }
1854
1859
  return Object.defineProperty(R.prototype, "nodeType", {
1855
1860
  get: function() {
@@ -1874,13 +1879,13 @@ function Wo() {
1874
1879
  }), Object.defineProperty(R.prototype, "attributes", {
1875
1880
  get: function() {
1876
1881
  var g = this;
1877
- return Object.keys(this.attribs).map(function(v) {
1882
+ return Object.keys(this.attribs).map(function(y) {
1878
1883
  var T, B;
1879
1884
  return {
1880
- name: v,
1881
- value: g.attribs[v],
1882
- namespace: (T = g["x-attribsNamespace"]) === null || T === void 0 ? void 0 : T[v],
1883
- prefix: (B = g["x-attribsPrefix"]) === null || B === void 0 ? void 0 : B[v]
1885
+ name: y,
1886
+ value: g.attribs[y],
1887
+ namespace: (T = g["x-attribsNamespace"]) === null || T === void 0 ? void 0 : T[y],
1888
+ prefix: (B = g["x-attribsPrefix"]) === null || B === void 0 ? void 0 : B[y]
1884
1889
  };
1885
1890
  });
1886
1891
  },
@@ -1926,20 +1931,20 @@ function Wo() {
1926
1931
  else if (q(l))
1927
1932
  g = new p(l.data);
1928
1933
  else if (r(l)) {
1929
- var v = R ? m(l.children) : [], T = new u(l.name, b({}, l.attribs), v);
1930
- v.forEach(function(S) {
1934
+ var y = R ? m(l.children) : [], T = new u(l.name, b({}, l.attribs), y);
1935
+ y.forEach(function(S) {
1931
1936
  return S.parent = T;
1932
1937
  }), l.namespace != null && (T.namespace = l.namespace), l["x-attribsNamespace"] && (T["x-attribsNamespace"] = b({}, l["x-attribsNamespace"])), l["x-attribsPrefix"] && (T["x-attribsPrefix"] = b({}, l["x-attribsPrefix"])), g = T;
1933
1938
  } else if (n(l)) {
1934
- var v = R ? m(l.children) : [], B = new O(v);
1935
- v.forEach(function(k) {
1939
+ var y = R ? m(l.children) : [], B = new O(y);
1940
+ y.forEach(function(k) {
1936
1941
  return k.parent = B;
1937
1942
  }), g = B;
1938
1943
  } else if (A(l)) {
1939
- var v = R ? m(l.children) : [], y = new i(v);
1940
- v.forEach(function(k) {
1941
- return k.parent = y;
1942
- }), l["x-mode"] && (y["x-mode"] = l["x-mode"]), g = y;
1944
+ var y = R ? m(l.children) : [], v = new i(y);
1945
+ y.forEach(function(k) {
1946
+ return k.parent = v;
1947
+ }), l["x-mode"] && (v["x-mode"] = l["x-mode"]), g = v;
1943
1948
  } else if (f(l)) {
1944
1949
  var X = new c(l.name, l.data);
1945
1950
  l["x-name"] != null && (X["x-name"] = l["x-name"], X["x-publicId"] = l["x-publicId"], X["x-systemId"] = l["x-systemId"]), g = X;
@@ -1949,8 +1954,8 @@ function Wo() {
1949
1954
  }
1950
1955
  d0.cloneNode = h;
1951
1956
  function m(l) {
1952
- for (var R = l.map(function(v) {
1953
- return h(v, !0);
1957
+ for (var R = l.map(function(y) {
1958
+ return h(y, !0);
1954
1959
  }), g = 1; g < R.length; g++)
1955
1960
  R[g].prev = R[g - 1], R[g - 1].next = R[g];
1956
1961
  return R;
@@ -2336,16 +2341,16 @@ function Rr() {
2336
2341
  return e = Object.assign || function(m) {
2337
2342
  for (var l, R = 1, g = arguments.length; R < g; R++) {
2338
2343
  l = arguments[R];
2339
- for (var v in l) Object.prototype.hasOwnProperty.call(l, v) && (m[v] = l[v]);
2344
+ for (var y in l) Object.prototype.hasOwnProperty.call(l, y) && (m[y] = l[y]);
2340
2345
  }
2341
2346
  return m;
2342
2347
  }, e.apply(this, arguments);
2343
2348
  }, b = z1 && z1.__createBinding || (Object.create ? function(m, l, R, g) {
2344
2349
  g === void 0 && (g = R);
2345
- var v = Object.getOwnPropertyDescriptor(l, R);
2346
- (!v || ("get" in v ? !l.__esModule : v.writable || v.configurable)) && (v = { enumerable: !0, get: function() {
2350
+ var y = Object.getOwnPropertyDescriptor(l, R);
2351
+ (!y || ("get" in y ? !l.__esModule : y.writable || y.configurable)) && (y = { enumerable: !0, get: function() {
2347
2352
  return l[R];
2348
- } }), Object.defineProperty(m, g, v);
2353
+ } }), Object.defineProperty(m, g, y);
2349
2354
  } : function(m, l, R, g) {
2350
2355
  g === void 0 && (g = R), m[g] = l[R];
2351
2356
  }), M = z1 && z1.__setModuleDefault || (Object.create ? function(m, l) {
@@ -2376,9 +2381,9 @@ function Rr() {
2376
2381
  var R;
2377
2382
  if (m) {
2378
2383
  var g = ((R = l.encodeEntities) !== null && R !== void 0 ? R : l.decodeEntities) === !1 ? a : l.xmlMode || l.encodeEntities !== "utf8" ? z.encodeXML : z.escapeAttribute;
2379
- return Object.keys(m).map(function(v) {
2380
- var T, B, y = (T = m[v]) !== null && T !== void 0 ? T : "";
2381
- return l.xmlMode === "foreign" && (v = (B = p.attributeNames.get(v)) !== null && B !== void 0 ? B : v), !l.emptyAttrs && !l.xmlMode && y === "" ? v : "".concat(v, '="').concat(g(y), '"');
2384
+ return Object.keys(m).map(function(y) {
2385
+ var T, B, v = (T = m[y]) !== null && T !== void 0 ? T : "";
2386
+ return l.xmlMode === "foreign" && (y = (B = p.attributeNames.get(y)) !== null && B !== void 0 ? B : y), !l.emptyAttrs && !l.xmlMode && v === "" ? y : "".concat(y, '="').concat(g(v), '"');
2382
2387
  }).join(" ");
2383
2388
  }
2384
2389
  }
@@ -2405,8 +2410,8 @@ function Rr() {
2405
2410
  ]);
2406
2411
  function u(m, l) {
2407
2412
  l === void 0 && (l = {});
2408
- for (var R = ("length" in m) ? m : [m], g = "", v = 0; v < R.length; v++)
2409
- g += r(R[v], l);
2413
+ for (var R = ("length" in m) ? m : [m], g = "", y = 0; y < R.length; y++)
2414
+ g += r(R[y], l);
2410
2415
  return g;
2411
2416
  }
2412
2417
  z1.render = u, z1.default = u;
@@ -2443,8 +2448,8 @@ function Rr() {
2443
2448
  function q(m, l) {
2444
2449
  var R;
2445
2450
  l.xmlMode === "foreign" && (m.name = (R = p.elementNames.get(m.name)) !== null && R !== void 0 ? R : m.name, m.parent && n.has(m.parent.name) && (l = e(e({}, l), { xmlMode: !1 }))), !l.xmlMode && d.has(m.name) && (l = e(e({}, l), { xmlMode: "foreign" }));
2446
- var g = "<".concat(m.name), v = O(m.attribs, l);
2447
- return v && (g += " ".concat(v)), m.children.length === 0 && (l.xmlMode ? (
2451
+ var g = "<".concat(m.name), y = O(m.attribs, l);
2452
+ return y && (g += " ".concat(y)), m.children.length === 0 && (l.xmlMode ? (
2448
2453
  // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
2449
2454
  l.selfClosingTags !== !1
2450
2455
  ) : (
@@ -2496,10 +2501,10 @@ function hc() {
2496
2501
  }
2497
2502
  return w1;
2498
2503
  }
2499
- var W1 = {}, To;
2504
+ var h1 = {}, To;
2500
2505
  function gr() {
2501
- if (To) return W1;
2502
- To = 1, Object.defineProperty(W1, "__esModule", { value: !0 }), W1.getChildren = b, W1.getParent = M, W1.getSiblings = t, W1.getAttributeValue = o, W1.hasAttrib = z, W1.getName = p, W1.nextElementSibling = c, W1.prevElementSibling = a;
2506
+ if (To) return h1;
2507
+ To = 1, Object.defineProperty(h1, "__esModule", { value: !0 }), h1.getChildren = b, h1.getParent = M, h1.getSiblings = t, h1.getAttributeValue = o, h1.hasAttrib = z, h1.getName = p, h1.nextElementSibling = c, h1.prevElementSibling = a;
2503
2508
  var e = /* @__PURE__ */ u2();
2504
2509
  function b(O) {
2505
2510
  return (0, e.hasChildren)(O) ? O.children : [];
@@ -2537,7 +2542,7 @@ function gr() {
2537
2542
  i = u, u = i.prev;
2538
2543
  return u;
2539
2544
  }
2540
- return W1;
2545
+ return h1;
2541
2546
  }
2542
2547
  var H1 = {}, Xo;
2543
2548
  function Lr() {
@@ -2791,8 +2796,8 @@ function yr() {
2791
2796
  R && (l.link = R);
2792
2797
  var g = O("summary", m) || O("content", m);
2793
2798
  g && (l.description = g);
2794
- var v = O("updated", m);
2795
- return v && (l.pubDate = new Date(v)), l;
2799
+ var y = O("updated", m);
2800
+ return y && (l.pubDate = new Date(y)), l;
2796
2801
  })
2797
2802
  };
2798
2803
  i(q, "id", "id", d), i(q, "title", "title", d);
@@ -2892,7 +2897,7 @@ function $b() {
2892
2897
  var Eo;
2893
2898
  function vr() {
2894
2899
  return Eo || (Eo = 1, function(e) {
2895
- var b = l1 && l1.__createBinding || (Object.create ? function(A, W, h, m) {
2900
+ var b = q1 && q1.__createBinding || (Object.create ? function(A, W, h, m) {
2896
2901
  m === void 0 && (m = h);
2897
2902
  var l = Object.getOwnPropertyDescriptor(W, h);
2898
2903
  (!l || ("get" in l ? !W.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
@@ -2900,16 +2905,16 @@ function vr() {
2900
2905
  } }), Object.defineProperty(A, m, l);
2901
2906
  } : function(A, W, h, m) {
2902
2907
  m === void 0 && (m = h), A[m] = W[h];
2903
- }), M = l1 && l1.__setModuleDefault || (Object.create ? function(A, W) {
2908
+ }), M = q1 && q1.__setModuleDefault || (Object.create ? function(A, W) {
2904
2909
  Object.defineProperty(A, "default", { enumerable: !0, value: W });
2905
2910
  } : function(A, W) {
2906
2911
  A.default = W;
2907
- }), t = l1 && l1.__importStar || function(A) {
2912
+ }), t = q1 && q1.__importStar || function(A) {
2908
2913
  if (A && A.__esModule) return A;
2909
2914
  var W = {};
2910
2915
  if (A != null) for (var h in A) h !== "default" && Object.prototype.hasOwnProperty.call(A, h) && b(W, A, h);
2911
2916
  return M(W, A), W;
2912
- }, o = l1 && l1.__importDefault || function(A) {
2917
+ }, o = q1 && q1.__importDefault || function(A) {
2913
2918
  return A && A.__esModule ? A : { default: A };
2914
2919
  };
2915
2920
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DomUtils = e.parseFeed = e.getFeed = e.ElementType = e.Tokenizer = e.createDomStream = e.parseDOM = e.parseDocument = e.DefaultHandler = e.DomHandler = e.Parser = void 0;
@@ -2950,7 +2955,7 @@ function vr() {
2950
2955
  return W === void 0 && (W = q), (0, n.getFeed)(i(A, W));
2951
2956
  }
2952
2957
  e.parseFeed = f, e.DomUtils = t(/* @__PURE__ */ $b());
2953
- }(l1)), l1;
2958
+ }(q1)), q1;
2954
2959
  }
2955
2960
  var Kb, Io;
2956
2961
  function Br() {
@@ -3113,9 +3118,9 @@ function _r() {
3113
3118
  }
3114
3119
  }
3115
3120
  function h() {
3116
- var m = !1, l, R, g, v, T = {}, B, y, X, S, k;
3117
- for (v = 0; v < r.length; v++)
3118
- B = r[v], y = B[B.length - 1], X = B.substring(0, B.length - 1), S = parseInt(X, 10), k = parseFloat(X), O.test(X) && y === "w" ? ((l || R) && (m = !0), S === 0 ? m = !0 : l = S) : i.test(X) && y === "x" ? ((l || R || g) && (m = !0), k < 0 ? m = !0 : R = k) : O.test(X) && y === "h" ? ((g || R) && (m = !0), S === 0 ? m = !0 : g = S) : m = !0;
3121
+ var m = !1, l, R, g, y, T = {}, B, v, X, S, k;
3122
+ for (y = 0; y < r.length; y++)
3123
+ B = r[y], v = B[B.length - 1], X = B.substring(0, B.length - 1), S = parseInt(X, 10), k = parseFloat(X), O.test(X) && v === "w" ? ((l || R) && (m = !0), S === 0 ? m = !0 : l = S) : i.test(X) && v === "x" ? ((l || R || g) && (m = !0), k < 0 ? m = !0 : R = k) : O.test(X) && v === "h" ? ((g || R) && (m = !0), S === 0 ? m = !0 : g = S) : m = !0;
3119
3124
  m ? console && console.log && console.log("Invalid srcset descriptor found in '" + b + "' at '" + B + "'.") : (T.url = u, l && (T.w = l), R && (T.d = R), g && (T.h = g), A.push(T));
3120
3125
  }
3121
3126
  };
@@ -3134,12 +3139,12 @@ function Sr() {
3134
3139
  const xr = {}, Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3135
3140
  __proto__: null,
3136
3141
  default: xr
3137
- }, Symbol.toStringTag, { value: "Module" })), h1 = /* @__PURE__ */ fc(Cr);
3142
+ }, Symbol.toStringTag, { value: "Module" })), m1 = /* @__PURE__ */ fc(Cr);
3138
3143
  var Zb, Fo;
3139
3144
  function it() {
3140
3145
  if (Fo) return Zb;
3141
3146
  Fo = 1;
3142
- let e = /* @__PURE__ */ Sr(), b = h1;
3147
+ let e = /* @__PURE__ */ Sr(), b = m1;
3143
3148
  class M extends Error {
3144
3149
  constructor(o, z, p, c, a, O) {
3145
3150
  super(o), this.name = "CssSyntaxError", this.reason = o, a && (this.file = a), c && (this.source = c), O && (this.plugin = O), typeof z < "u" && typeof p < "u" && (typeof z == "number" ? (this.line = z, this.column = p) : (this.line = z.line, this.column = z.column, this.endLine = p.line, this.endColumn = p.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, M);
@@ -3953,7 +3958,7 @@ var nM, ez;
3953
3958
  function Lc() {
3954
3959
  if (ez) return nM;
3955
3960
  ez = 1;
3956
- let { existsSync: e, readFileSync: b } = h1, { dirname: M, join: t } = h1, { SourceMapConsumer: o, SourceMapGenerator: z } = h1;
3961
+ let { existsSync: e, readFileSync: b } = m1, { dirname: M, join: t } = m1, { SourceMapConsumer: o, SourceMapGenerator: z } = m1;
3957
3962
  function p(a) {
3958
3963
  return Buffer ? Buffer.from(a, "base64").toString() : window.atob(a);
3959
3964
  }
@@ -4049,7 +4054,7 @@ var rM, bz;
4049
4054
  function yb() {
4050
4055
  if (bz) return rM;
4051
4056
  bz = 1;
4052
- let { nanoid: e } = /* @__PURE__ */ Er(), { isAbsolute: b, resolve: M } = h1, { SourceMapConsumer: t, SourceMapGenerator: o } = h1, { fileURLToPath: z, pathToFileURL: p } = h1, c = it(), a = Lc(), O = h1, i = Symbol("lineToIndexCache"), u = !!(t && o), r = !!(M && b);
4057
+ let { nanoid: e } = /* @__PURE__ */ Er(), { isAbsolute: b, resolve: M } = m1, { SourceMapConsumer: t, SourceMapGenerator: o } = m1, { fileURLToPath: z, pathToFileURL: p } = m1, c = it(), a = Lc(), O = m1, i = Symbol("lineToIndexCache"), u = !!(t && o), r = !!(M && b);
4053
4058
  function n(q) {
4054
4059
  if (q[i]) return q[i];
4055
4060
  let f = q.css.split(`
@@ -4076,21 +4081,21 @@ function yb() {
4076
4081
  this.file || (this.id = "<input css " + e(6) + ">"), this.map && (this.map.file = this.from);
4077
4082
  }
4078
4083
  error(f, A, W, h = {}) {
4079
- let m, l, R, g, v;
4084
+ let m, l, R, g, y;
4080
4085
  if (A && typeof A == "object") {
4081
- let B = A, y = W;
4086
+ let B = A, v = W;
4082
4087
  if (typeof B.offset == "number") {
4083
4088
  g = B.offset;
4084
4089
  let X = this.fromOffset(g);
4085
4090
  A = X.line, W = X.col;
4086
4091
  } else
4087
4092
  A = B.line, W = B.column, g = this.fromLineAndColumn(A, W);
4088
- if (typeof y.offset == "number") {
4089
- R = y.offset;
4093
+ if (typeof v.offset == "number") {
4094
+ R = v.offset;
4090
4095
  let X = this.fromOffset(R);
4091
4096
  l = X.line, m = X.col;
4092
4097
  } else
4093
- l = y.line, m = y.column, R = this.fromLineAndColumn(y.line, y.column);
4098
+ l = v.line, m = v.column, R = this.fromLineAndColumn(v.line, v.column);
4094
4099
  } else if (W)
4095
4100
  g = this.fromLineAndColumn(A, W);
4096
4101
  else {
@@ -4099,21 +4104,21 @@ function yb() {
4099
4104
  A = B.line, W = B.col;
4100
4105
  }
4101
4106
  let T = this.origin(A, W, l, m);
4102
- return T ? v = new c(
4107
+ return T ? y = new c(
4103
4108
  f,
4104
4109
  T.endLine === void 0 ? T.line : { column: T.column, line: T.line },
4105
4110
  T.endLine === void 0 ? T.column : { column: T.endColumn, line: T.endLine },
4106
4111
  T.source,
4107
4112
  T.file,
4108
4113
  h.plugin
4109
- ) : v = new c(
4114
+ ) : y = new c(
4110
4115
  f,
4111
4116
  l === void 0 ? A : { column: W, line: A },
4112
4117
  l === void 0 ? W : { column: m, line: l },
4113
4118
  this.css,
4114
4119
  this.file,
4115
4120
  h.plugin
4116
- ), v.input = {
4121
+ ), y.input = {
4117
4122
  column: W,
4118
4123
  endColumn: m,
4119
4124
  endLine: l,
@@ -4121,7 +4126,7 @@ function yb() {
4121
4126
  line: A,
4122
4127
  offset: g,
4123
4128
  source: this.css
4124
- }, this.file && (p && (v.input.url = p(this.file).toString()), v.input.file = this.file), v;
4129
+ }, this.file && (p && (y.input.url = p(this.file).toString()), y.input.file = this.file), y;
4125
4130
  }
4126
4131
  fromLineAndColumn(f, A) {
4127
4132
  return n(this)[f - 1] + A - 1;
@@ -4161,7 +4166,7 @@ function yb() {
4161
4166
  l.source,
4162
4167
  this.map.consumer().sourceRoot || p(this.map.mapFile)
4163
4168
  );
4164
- let v = {
4169
+ let y = {
4165
4170
  column: l.column,
4166
4171
  endColumn: R && R.column,
4167
4172
  endLine: R && R.line,
@@ -4170,11 +4175,11 @@ function yb() {
4170
4175
  };
4171
4176
  if (g.protocol === "file:")
4172
4177
  if (z)
4173
- v.file = z(g);
4178
+ y.file = z(g);
4174
4179
  else
4175
4180
  throw new Error("file: protocol is not available in this PostCSS build");
4176
4181
  let T = m.sourceContentFor(l.source);
4177
- return T && (v.source = T), v;
4182
+ return T && (y.source = T), y;
4178
4183
  }
4179
4184
  toJSON() {
4180
4185
  let f = {};
@@ -4300,7 +4305,7 @@ var uM, cz;
4300
4305
  function yc() {
4301
4306
  if (cz) return uM;
4302
4307
  cz = 1;
4303
- let { dirname: e, relative: b, resolve: M, sep: t } = h1, { SourceMapConsumer: o, SourceMapGenerator: z } = h1, { pathToFileURL: p } = h1, c = yb(), a = !!(o && z), O = !!(e && M && b && t);
4308
+ let { dirname: e, relative: b, resolve: M, sep: t } = m1, { SourceMapConsumer: o, SourceMapGenerator: z } = m1, { pathToFileURL: p } = m1, c = yb(), a = !!(o && z), O = !!(e && M && b && t);
4304
4309
  class i {
4305
4310
  constructor(r, n, d, q) {
4306
4311
  this.stringify = r, this.mapOpts = d.map || {}, this.root = n, this.opts = d, this.css = q, this.originalCSS = q, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
@@ -4478,13 +4483,13 @@ function Dr() {
4478
4483
  if (pz) return dM;
4479
4484
  pz = 1;
4480
4485
  const e = 39, b = 34, M = 92, t = 47, o = 10, z = 32, p = 12, c = 9, a = 13, O = 91, i = 93, u = 40, r = 41, n = 123, d = 125, q = 59, f = 42, A = 58, W = 64, h = /[\t\n\f\r "#'()/;[\\\]{}]/g, m = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, l = /.[\r\n"'(/\\]/, R = /[\da-f]/i;
4481
- return dM = function(v, T = {}) {
4482
- let B = v.css.valueOf(), y = T.ignoreErrors, X, S, k, C, Z, U, $, O0, q0, w0, a1 = B.length, z0 = 0, t0 = [], a0 = [], y0 = -1;
4486
+ return dM = function(y, T = {}) {
4487
+ let B = y.css.valueOf(), v = T.ignoreErrors, X, S, k, C, Z, U, $, O0, q0, w0, a1 = B.length, z0 = 0, t0 = [], a0 = [], y0 = -1;
4483
4488
  function u0() {
4484
4489
  return z0;
4485
4490
  }
4486
4491
  function I0(D) {
4487
- throw v.error("Unclosed " + D, z0);
4492
+ throw y.error("Unclosed " + D, z0);
4488
4493
  }
4489
4494
  function K0() {
4490
4495
  return a0.length === 0 && z0 >= a1;
@@ -4522,7 +4527,7 @@ function Dr() {
4522
4527
  C = z0;
4523
4528
  do {
4524
4529
  if ($ = !1, C = B.indexOf(")", C + 1), C === -1)
4525
- if (y || N) {
4530
+ if (v || N) {
4526
4531
  C = z0;
4527
4532
  break;
4528
4533
  } else
@@ -4539,7 +4544,7 @@ function Dr() {
4539
4544
  Z = X === e ? "'" : '"', C = z0;
4540
4545
  do {
4541
4546
  if ($ = !1, C = B.indexOf(Z, C + 1), C === -1)
4542
- if (y || N) {
4547
+ if (v || N) {
4543
4548
  C = z0 + 1;
4544
4549
  break;
4545
4550
  } else
@@ -4566,7 +4571,7 @@ function Dr() {
4566
4571
  break;
4567
4572
  }
4568
4573
  default: {
4569
- X === t && B.charCodeAt(z0 + 1) === f ? (C = B.indexOf("*/", z0 + 2) + 1, C === 0 && (y || N ? C = B.length : I0("comment")), U = ["comment", B.slice(z0, C + 1), z0, C], z0 = C) : (m.lastIndex = z0 + 1, m.test(B), m.lastIndex === 0 ? C = B.length - 1 : C = m.lastIndex - 2, U = ["word", B.slice(z0, C + 1), z0, C], t0.push(U), z0 = C);
4574
+ X === t && B.charCodeAt(z0 + 1) === f ? (C = B.indexOf("*/", z0 + 2) + 1, C === 0 && (v || N ? C = B.length : I0("comment")), U = ["comment", B.slice(z0, C + 1), z0, C], z0 = C) : (m.lastIndex = z0 + 1, m.test(B), m.lastIndex === 0 ? C = B.length - 1 : C = m.lastIndex - 2, U = ["word", B.slice(z0, C + 1), z0, C], t0.push(U), z0 = C);
4570
4575
  break;
4571
4576
  }
4572
4577
  }
@@ -5061,22 +5066,22 @@ function Tc() {
5061
5066
  }
5062
5067
  constructor(l, R, g) {
5063
5068
  this.stringified = !1, this.processed = !1;
5064
- let v;
5069
+ let y;
5065
5070
  if (typeof R == "object" && R !== null && (R.type === "root" || R.type === "document"))
5066
- v = A(R);
5071
+ y = A(R);
5067
5072
  else if (R instanceof h || R instanceof o)
5068
- v = A(R.root), R.map && (typeof g.map > "u" && (g.map = {}), g.map.inline || (g.map.inline = !1), g.map.prev = R.map);
5073
+ y = A(R.root), R.map && (typeof g.map > "u" && (g.map = {}), g.map.inline || (g.map.inline = !1), g.map.prev = R.map);
5069
5074
  else {
5070
5075
  let T = t;
5071
5076
  g.syntax && (T = g.syntax.parse), g.parser && (T = g.parser), T.parse && (T = T.parse);
5072
5077
  try {
5073
- v = T(R, g);
5078
+ y = T(R, g);
5074
5079
  } catch (B) {
5075
5080
  this.processed = !0, this.error = B;
5076
5081
  }
5077
- v && !v[a] && e.rebuild(v);
5082
+ y && !y[a] && e.rebuild(y);
5078
5083
  }
5079
- this.result = new o(l, v, g), this.helpers = { ...W, postcss: W, result: this.result }, this.plugins = this.processor.plugins.map((T) => typeof T == "object" && T.prepare ? { ...T, ...T.prepare(this.result) } : T);
5084
+ this.result = new o(l, y, g), this.helpers = { ...W, postcss: W, result: this.result }, this.plugins = this.processor.plugins.map((T) => typeof T == "object" && T.prepare ? { ...T, ...T.prepare(this.result) } : T);
5080
5085
  }
5081
5086
  async() {
5082
5087
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -5096,20 +5101,20 @@ function Tc() {
5096
5101
  if (R && R.addToError(l), this.error = l, l.name === "CssSyntaxError" && !l.plugin)
5097
5102
  l.plugin = g.postcssPlugin, l.setMessage();
5098
5103
  else if (g.postcssVersion && process.env.NODE_ENV !== "production") {
5099
- let v = g.postcssPlugin, T = g.postcssVersion, B = this.result.processor.version, y = T.split("."), X = B.split(".");
5100
- (y[0] !== X[0] || parseInt(y[1]) > parseInt(X[1])) && console.error(
5101
- "Unknown error from PostCSS plugin. Your current PostCSS version is " + B + ", but " + v + " uses " + T + ". Perhaps this is the source of the error below."
5104
+ let y = g.postcssPlugin, T = g.postcssVersion, B = this.result.processor.version, v = T.split("."), X = B.split(".");
5105
+ (v[0] !== X[0] || parseInt(v[1]) > parseInt(X[1])) && console.error(
5106
+ "Unknown error from PostCSS plugin. Your current PostCSS version is " + B + ", but " + y + " uses " + T + ". Perhaps this is the source of the error below."
5102
5107
  );
5103
5108
  }
5104
- } catch (v) {
5105
- console && console.error && console.error(v);
5109
+ } catch (y) {
5110
+ console && console.error && console.error(y);
5106
5111
  }
5107
5112
  return l;
5108
5113
  }
5109
5114
  prepareVisitors() {
5110
5115
  this.listeners = {};
5111
- let l = (R, g, v) => {
5112
- this.listeners[g] || (this.listeners[g] = []), this.listeners[g].push([R, v]);
5116
+ let l = (R, g, y) => {
5117
+ this.listeners[g] || (this.listeners[g] = []), this.listeners[g].push([R, y]);
5113
5118
  };
5114
5119
  for (let R of this.plugins)
5115
5120
  if (typeof R == "object")
@@ -5120,11 +5125,11 @@ function Tc() {
5120
5125
  );
5121
5126
  if (!r[g])
5122
5127
  if (typeof R[g] == "object")
5123
- for (let v in R[g])
5124
- v === "*" ? l(R, g, R[g][v]) : l(
5128
+ for (let y in R[g])
5129
+ y === "*" ? l(R, g, R[g][y]) : l(
5125
5130
  R,
5126
- g + "-" + v.toLowerCase(),
5127
- R[g][v]
5131
+ g + "-" + y.toLowerCase(),
5132
+ R[g][y]
5128
5133
  );
5129
5134
  else typeof R[g] == "function" && l(R, g, R[g]);
5130
5135
  }
@@ -5137,8 +5142,8 @@ function Tc() {
5137
5142
  if (d(g))
5138
5143
  try {
5139
5144
  await g;
5140
- } catch (v) {
5141
- throw this.handleError(v);
5145
+ } catch (y) {
5146
+ throw this.handleError(y);
5142
5147
  }
5143
5148
  }
5144
5149
  if (this.prepareVisitors(), this.hasListener) {
@@ -5151,9 +5156,9 @@ function Tc() {
5151
5156
  if (d(g))
5152
5157
  try {
5153
5158
  await g;
5154
- } catch (v) {
5159
+ } catch (y) {
5155
5160
  let T = R[R.length - 1].node;
5156
- throw this.handleError(v, T);
5161
+ throw this.handleError(y, T);
5157
5162
  }
5158
5163
  }
5159
5164
  }
@@ -5162,14 +5167,14 @@ function Tc() {
5162
5167
  this.result.lastPlugin = R;
5163
5168
  try {
5164
5169
  if (l.type === "document") {
5165
- let v = l.nodes.map(
5170
+ let y = l.nodes.map(
5166
5171
  (T) => g(T, this.helpers)
5167
5172
  );
5168
- await Promise.all(v);
5173
+ await Promise.all(y);
5169
5174
  } else
5170
5175
  await g(l, this.helpers);
5171
- } catch (v) {
5172
- throw this.handleError(v);
5176
+ } catch (y) {
5177
+ throw this.handleError(y);
5173
5178
  }
5174
5179
  }
5175
5180
  }
@@ -5201,8 +5206,8 @@ function Tc() {
5201
5206
  let g = this.result.root.source;
5202
5207
  if (l.map === void 0 && !(g && g.input && g.input.map)) {
5203
5208
  let B = "";
5204
- return R(this.result.root, (y) => {
5205
- B += y;
5209
+ return R(this.result.root, (v) => {
5210
+ B += v;
5206
5211
  }), this.result.css = B, this.result;
5207
5212
  }
5208
5213
  let T = new M(R, this.result.root, this.result.opts).generate();
@@ -5240,11 +5245,11 @@ function Tc() {
5240
5245
  return this.css;
5241
5246
  }
5242
5247
  visitSync(l, R) {
5243
- for (let [g, v] of l) {
5248
+ for (let [g, y] of l) {
5244
5249
  this.result.lastPlugin = g;
5245
5250
  let T;
5246
5251
  try {
5247
- T = v(R, this.helpers);
5252
+ T = y(R, this.helpers);
5248
5253
  } catch (B) {
5249
5254
  throw this.handleError(B, R.proxyOf);
5250
5255
  }
@@ -5255,25 +5260,25 @@ function Tc() {
5255
5260
  }
5256
5261
  }
5257
5262
  visitTick(l) {
5258
- let R = l[l.length - 1], { node: g, visitors: v } = R;
5263
+ let R = l[l.length - 1], { node: g, visitors: y } = R;
5259
5264
  if (g.type !== "root" && g.type !== "document" && !g.parent) {
5260
5265
  l.pop();
5261
5266
  return;
5262
5267
  }
5263
- if (v.length > 0 && R.visitorIndex < v.length) {
5264
- let [B, y] = v[R.visitorIndex];
5265
- R.visitorIndex += 1, R.visitorIndex === v.length && (R.visitors = [], R.visitorIndex = 0), this.result.lastPlugin = B;
5268
+ if (y.length > 0 && R.visitorIndex < y.length) {
5269
+ let [B, v] = y[R.visitorIndex];
5270
+ R.visitorIndex += 1, R.visitorIndex === y.length && (R.visitors = [], R.visitorIndex = 0), this.result.lastPlugin = B;
5266
5271
  try {
5267
- return y(g.toProxy(), this.helpers);
5272
+ return v(g.toProxy(), this.helpers);
5268
5273
  } catch (X) {
5269
5274
  throw this.handleError(X, g);
5270
5275
  }
5271
5276
  }
5272
5277
  if (R.iterator !== 0) {
5273
- let B = R.iterator, y;
5274
- for (; y = g.nodes[g.indexes[B]]; )
5275
- if (g.indexes[B] += 1, !y[c]) {
5276
- y[c] = !0, l.push(f(y));
5278
+ let B = R.iterator, v;
5279
+ for (; v = g.nodes[g.indexes[B]]; )
5280
+ if (g.indexes[B] += 1, !v[c]) {
5281
+ v[c] = !0, l.push(f(v));
5277
5282
  return;
5278
5283
  }
5279
5284
  R.iterator = 0, delete g.indexes[B];
@@ -5296,12 +5301,12 @@ function Tc() {
5296
5301
  let R = q(l);
5297
5302
  for (let g of R)
5298
5303
  if (g === n)
5299
- l.nodes && l.each((v) => {
5300
- v[c] || this.walkSync(v);
5304
+ l.nodes && l.each((y) => {
5305
+ y[c] || this.walkSync(y);
5301
5306
  });
5302
5307
  else {
5303
- let v = this.listeners[g];
5304
- if (v && this.visitSync(v, l.toProxy()))
5308
+ let y = this.listeners[g];
5309
+ if (y && this.visitSync(y, l.toProxy()))
5305
5310
  return;
5306
5311
  }
5307
5312
  }
@@ -5454,13 +5459,13 @@ https://www.w3ctech.com/topic/2226`
5454
5459
  let B = l(...T);
5455
5460
  return B.postcssPlugin = m, B.postcssVersion = new r().version, B;
5456
5461
  }
5457
- let v;
5462
+ let y;
5458
5463
  return Object.defineProperty(g, "postcss", {
5459
5464
  get() {
5460
- return v || (v = g()), v;
5465
+ return y || (y = g()), y;
5461
5466
  }
5462
- }), g.process = function(T, B, y) {
5463
- return W([g(y)]).process(T, B);
5467
+ }), g.process = function(T, B, v) {
5468
+ return W([g(v)]).process(T, B);
5464
5469
  }, g;
5465
5470
  }, W.stringify = f, W.parse = u, W.fromJSON = p, W.list = O, W.comment = (h) => new b(h), W.atRule = (h) => new e(h), W.decl = (h) => new o(h), W.rule = (h) => new q(h), W.root = (h) => new d(h), W.document = (h) => new z(h), W.CssSyntaxError = t, W.Declaration = o, W.Container = M, W.Processor = r, W.Document = z, W.Comment = b, W.Warning = A, W.AtRule = e, W.Result = n, W.Input = c, W.Rule = q, W.Root = d, W.Node = i, a.registerPostcss(W), gM = W, W.default = W, gM;
5466
5471
  }
@@ -5544,21 +5549,21 @@ and ensure you are accounting for this risk.
5544
5549
  "textarea",
5545
5550
  "option"
5546
5551
  ];
5547
- let v, T;
5548
- A.allowedAttributes && (v = {}, T = {}, a(A.allowedAttributes, function(x, D) {
5549
- v[D] = [];
5552
+ let y, T;
5553
+ A.allowedAttributes && (y = {}, T = {}, a(A.allowedAttributes, function(x, D) {
5554
+ y[D] = [];
5550
5555
  const N = [];
5551
5556
  x.forEach(function(_) {
5552
- typeof _ == "string" && _.indexOf("*") >= 0 ? N.push(b(_).replace(/\\\*/g, ".*")) : v[D].push(_);
5557
+ typeof _ == "string" && _.indexOf("*") >= 0 ? N.push(b(_).replace(/\\\*/g, ".*")) : y[D].push(_);
5553
5558
  }), N.length && (T[D] = new RegExp("^(" + N.join("|") + ")$"));
5554
5559
  }));
5555
- const B = {}, y = {}, X = {};
5560
+ const B = {}, v = {}, X = {};
5556
5561
  a(A.allowedClasses, function(x, D) {
5557
- if (v && (O(v, D) || (v[D] = []), v[D].push("class")), B[D] = x, Array.isArray(x)) {
5562
+ if (y && (O(y, D) || (y[D] = []), y[D].push("class")), B[D] = x, Array.isArray(x)) {
5558
5563
  const N = [];
5559
5564
  B[D] = [], X[D] = [], x.forEach(function(_) {
5560
5565
  typeof _ == "string" && _.indexOf("*") >= 0 ? N.push(b(_).replace(/\\\*/g, ".*")) : _ instanceof RegExp ? X[D].push(_) : B[D].push(_);
5561
- }), N.length && (y[D] = new RegExp("^(" + N.join("|") + ")$"));
5566
+ }), N.length && (v[D] = new RegExp("^(" + N.join("|") + ")$"));
5562
5567
  }
5563
5568
  });
5564
5569
  const S = {};
@@ -5592,7 +5597,7 @@ and ensure you are accounting for this risk.
5592
5597
  }
5593
5598
  h += "<" + x, x === "script" && (A.allowedScriptHostnames || A.allowedScriptDomains) && (N.innerText = ""), _ && (A.disallowedTagsMode === "escape" || A.disallowedTagsMode === "recursiveEscape") && A.preserveEscapedAttributes ? a(D, function(p0, b0) {
5594
5599
  h += " " + b0 + '="' + t0(p0 || "", !0) + '"';
5595
- }) : (!v || O(v, x) || v["*"]) && a(D, function(p0, b0) {
5600
+ }) : (!y || O(y, x) || y["*"]) && a(D, function(p0, b0) {
5596
5601
  if (!n.test(b0)) {
5597
5602
  delete N.attribs[b0];
5598
5603
  return;
@@ -5602,10 +5607,10 @@ and ensure you are accounting for this risk.
5602
5607
  return;
5603
5608
  }
5604
5609
  let X0 = !1;
5605
- if (!v || O(v, x) && v[x].indexOf(b0) !== -1 || v["*"] && v["*"].indexOf(b0) !== -1 || O(T, x) && T[x].test(b0) || T["*"] && T["*"].test(b0))
5610
+ if (!y || O(y, x) && y[x].indexOf(b0) !== -1 || y["*"] && y["*"].indexOf(b0) !== -1 || O(T, x) && T[x].test(b0) || T["*"] && T["*"].test(b0))
5606
5611
  X0 = !0;
5607
- else if (v && v[x]) {
5608
- for (const v0 of v[x])
5612
+ else if (y && y[x]) {
5613
+ for (const v0 of y[x])
5609
5614
  if (M(v0) && v0.name && v0.name === b0) {
5610
5615
  X0 = !0;
5611
5616
  let B0 = "";
@@ -5684,7 +5689,7 @@ and ensure you are accounting for this risk.
5684
5689
  return;
5685
5690
  }
5686
5691
  if (b0 === "class") {
5687
- const v0 = B[x], B0 = B["*"], W2 = y[x], j1 = X[x], A1 = X["*"], pn = y["*"], Jt = [
5692
+ const v0 = B[x], B0 = B["*"], W2 = v[x], j1 = X[x], A1 = X["*"], pn = v["*"], Jt = [
5688
5693
  W2,
5689
5694
  pn
5690
5695
  ].concat(j1, A1).filter(function(nn) {
@@ -6364,7 +6369,7 @@ function t3() {
6364
6369
  };
6365
6370
  }
6366
6371
  function M1(e, b, M, t) {
6367
- const { widgetConfig: o, updateWidgetConfig: z, observedUserId: p } = E0(), { executeQuery: c } = h0(), a = Q(
6372
+ const { widgetConfig: o, updateWidgetConfig: z, observedUserId: p } = C0(), { executeQuery: c } = h0(), a = Q(
6368
6373
  (n) => [
6369
6374
  "course-work-widget",
6370
6375
  "course-work-combined-widget",
@@ -6471,7 +6476,7 @@ function z3(e, b, M, t) {
6471
6476
  );
6472
6477
  }
6473
6478
  function ft(e) {
6474
- const { executeQuery: b, currentUserId: M } = h0(), { observedUserId: t } = E0(), o = [
6479
+ const { executeQuery: b, currentUserId: M } = h0(), { observedUserId: t } = C0(), o = [
6475
6480
  "courseWorkStatistics",
6476
6481
  M,
6477
6482
  e.startDate.toISOString(),
@@ -6678,7 +6683,7 @@ async function a3(e, b, M) {
6678
6683
  }
6679
6684
  }
6680
6685
  function wc() {
6681
- const [e, b] = H(0), { observedUserId: M, sharedCourseData: t } = E0(), { executeQuery: o, currentUserId: z } = h0(), p = t.map((S) => S.courseId), c = p.length > 0, a = J2.PROGRESS_OVERVIEW, {
6686
+ const [e, b] = H(0), { observedUserId: M, sharedCourseData: t } = C0(), { executeQuery: o, currentUserId: z } = h0(), p = t.map((S) => S.courseId), c = p.length > 0, a = J2.PROGRESS_OVERVIEW, {
6682
6687
  data: O,
6683
6688
  isLoading: i,
6684
6689
  error: u,
@@ -6716,14 +6721,14 @@ function wc() {
6716
6721
  retry: p1.RETRY.DISABLED,
6717
6722
  persister: s2,
6718
6723
  refetchOnMount: !1
6719
- }), A = c ? O : n, W = c ? i : d, h = c ? u : q, m = c ? r : f, l = h, R = W && !A, g = (A == null ? void 0 : A.length) ?? null, v = g !== null ? Math.ceil(g / a) : 0, T = i0(() => {
6724
+ }), A = c ? O : n, W = c ? i : d, h = c ? u : q, m = c ? r : f, l = h, R = W && !A, g = (A == null ? void 0 : A.length) ?? null, y = g !== null ? Math.ceil(g / a) : 0, T = i0(() => {
6720
6725
  if (!A) return;
6721
6726
  const S = e * a;
6722
6727
  return A.slice(S, S + a);
6723
6728
  }, [A, e, a]), B = Q((S) => {
6724
6729
  const k = S - 1;
6725
6730
  k >= 0 && b(k);
6726
- }, []), y = Q(() => {
6731
+ }, []), v = Q(() => {
6727
6732
  b(0);
6728
6733
  }, []), X = Q(() => {
6729
6734
  b(0), m();
@@ -6731,10 +6736,10 @@ function wc() {
6731
6736
  return {
6732
6737
  data: T,
6733
6738
  currentPageIndex: e,
6734
- totalPages: v,
6739
+ totalPages: y,
6735
6740
  totalCount: g,
6736
6741
  goToPage: B,
6737
- resetPagination: y,
6742
+ resetPagination: v,
6738
6743
  refetch: X,
6739
6744
  isLoading: R,
6740
6745
  error: l,
@@ -6980,9 +6985,9 @@ const i3 = ({
6980
6985
  isEditMode: n = !1,
6981
6986
  dragHandleProps: d
6982
6987
  }) => {
6983
- const { translations: q, translate: f, announceForScreenReader: A } = e0(), { isMobile: W, isDesktop: h } = z2(), { config: m, moveWidget: l, removeWidget: R } = mb(), g = b || e.title, v = `${e.id}-heading`, T = ob.useRef(null), [B, y] = ob.useState(null);
6988
+ const { translations: q, translate: f, announceForScreenReader: A } = e0(), { isMobile: W, isDesktop: h } = z2(), { config: m, moveWidget: l, removeWidget: R } = mb(), g = b || e.title, y = `${e.id}-heading`, T = ob.useRef(null), [B, v] = ob.useState(null);
6984
6989
  F0(() => {
6985
- T.current && y(T.current);
6990
+ T.current && v(T.current);
6986
6991
  }, []);
6987
6992
  const X = (Z) => {
6988
6993
  const U = Z;
@@ -7060,15 +7065,15 @@ const i3 = ({
7060
7065
  borderRadius: "large",
7061
7066
  background: "primary",
7062
7067
  "data-testid": `widget-${e.id}`,
7063
- "aria-labelledby": o && g ? v : void 0,
7068
+ "aria-labelledby": o && g ? y : void 0,
7064
7069
  role: "region",
7065
7070
  children: /* @__PURE__ */ w(L, { direction: "column", gap: "small", children: [
7066
7071
  o && g && (W ? /* @__PURE__ */ w(L, { direction: "column", gap: "x-small", children: [
7067
- /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(L1, { level: "h2", margin: "0", id: v, children: g }) }),
7072
+ /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(N1, { level: "h2", margin: "0", id: y, children: g }) }),
7068
7073
  z && /* @__PURE__ */ s(L.Item, { padding: "x-small 0 x-small x-small", children: z }),
7069
7074
  n && /* @__PURE__ */ s(L.Item, { padding: "x-small 0 x-small x-small", children: k })
7070
7075
  ] }) : /* @__PURE__ */ w(L, { direction: "row", alignItems: "center", justifyItems: "space-between", wrap: "wrap", children: [
7071
- /* @__PURE__ */ s(L.Item, { shouldGrow: !0, children: /* @__PURE__ */ s(L1, { level: "h2", variant: "titleCardSection", margin: "0", id: v, children: g }) }),
7076
+ /* @__PURE__ */ s(L.Item, { shouldGrow: !0, children: /* @__PURE__ */ s(N1, { level: "h2", variant: "titleCardSection", margin: "0", id: y, children: g }) }),
7072
7077
  z && /* @__PURE__ */ s(L.Item, { shouldGrow: !1, children: z }),
7073
7078
  n && /* @__PURE__ */ s(L.Item, { margin: "0 0 0 small", shouldGrow: !1, children: k })
7074
7079
  ] })),
@@ -7133,7 +7138,7 @@ function l3({
7133
7138
  }) {
7134
7139
  const { data: M } = t3();
7135
7140
  return /* @__PURE__ */ w(L, { alignItems: "center", justifyItems: "space-between", children: [
7136
- /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(L1, { level: "h3", margin: "0", children: e.name }) }),
7141
+ /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(N1, { level: "h3", margin: "0", children: e.name }) }),
7137
7142
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ w(L, { gap: "medium", alignItems: "center", children: [
7138
7143
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ w(
7139
7144
  P0,
@@ -7173,7 +7178,7 @@ function l3({
7173
7178
  ] });
7174
7179
  }
7175
7180
  const q3 = ({ widget: e, isEditMode: b = !1 }) => {
7176
- const { translations: M, translate: t } = e0(), { accounts: o } = E0(), z = n1(/* @__PURE__ */ new Map()), p = (r) => (z.current.has(r) || z.current.set(r, new Sn()), z.current.get(r)), [c, a] = M1(
7181
+ const { translations: M, translate: t } = e0(), { accounts: o } = C0(), z = n1(/* @__PURE__ */ new Map()), p = (r) => (z.current.has(r) || z.current.set(r, new Sn()), z.current.get(r)), [c, a] = M1(
7177
7182
  e.id,
7178
7183
  "selectedView",
7179
7184
  "assignmentsAndQuizzes",
@@ -7330,7 +7335,7 @@ async function m3(e, b, M, t, o) {
7330
7335
  };
7331
7336
  }
7332
7337
  function R3(e = {}) {
7333
- const [b, M] = H(0), [t, o] = H({}), [z, p] = H(null), { observedUserId: c } = E0(), { executeQuery: a, currentUserId: O } = h0(), {
7338
+ const [b, M] = H(0), [t, o] = H({}), [z, p] = H(null), { observedUserId: c } = C0(), { executeQuery: a, currentUserId: O } = h0(), {
7334
7339
  data: i,
7335
7340
  isFetching: u,
7336
7341
  error: r,
@@ -7371,8 +7376,8 @@ function R3(e = {}) {
7371
7376
  const A = Q(() => {
7372
7377
  o({}), p(null), M(0), n();
7373
7378
  }, [n]), W = e.limit || 3, h = z != null ? Math.ceil(z / W) : 0, m = Q((g) => {
7374
- const v = g - 1;
7375
- v >= 0 && M(v);
7379
+ const y = g - 1;
7380
+ y >= 0 && M(y);
7376
7381
  }, []), l = Q(() => {
7377
7382
  M(0);
7378
7383
  }, []);
@@ -7570,7 +7575,7 @@ const X3 = G0`
7570
7575
  }
7571
7576
  `;
7572
7577
  function w3() {
7573
- const e = B1(), { executeQuery: b, currentUserId: M } = h0();
7578
+ const e = T1(), { executeQuery: b, currentUserId: M } = h0();
7574
7579
  return C1({
7575
7580
  mutationFn: async (t) => {
7576
7581
  const o = await b(
@@ -7604,16 +7609,16 @@ const Nz = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ s(P, { title:
7604
7609
  readOnly: M = !1
7605
7610
  }) => {
7606
7611
  var h, m, l, R;
7607
- const { translations: t, translate: o } = e0(), { notify: z, locale: p, timezone: c } = h0(), { isDark: a } = E0(), O = w3(), [i, u] = H(e), [r, n] = H(!1), d = B1(), q = async () => {
7612
+ const { translations: t, translate: o } = e0(), { notify: z, locale: p, timezone: c } = h0(), { isDark: a } = C0(), O = w3(), [i, u] = H(e), [r, n] = H(!1), d = T1(), q = async () => {
7608
7613
  n(!0);
7609
7614
  try {
7610
7615
  const g = !i.isRead;
7611
7616
  await O.mutateAsync({
7612
7617
  discussionTopicId: i.id,
7613
7618
  read: g
7614
- }), b === "all" && u((v) => ({
7615
- ...v,
7616
- isRead: !v.isRead
7619
+ }), b === "all" && u((y) => ({
7620
+ ...y,
7621
+ isRead: !y.isRead
7617
7622
  })), z({
7618
7623
  type: "success",
7619
7624
  message: g ? o("announcementMarkedAsRead", { title: i.title }) : o("announcementMarkedAsUnread", { title: i.title })
@@ -7632,16 +7637,16 @@ const Nz = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ s(P, { title:
7632
7637
  ), A = () => {
7633
7638
  if (i.isRead) return;
7634
7639
  d.removeQueries({
7635
- predicate: (v) => v.queryKey[0] === re
7640
+ predicate: (y) => y.queryKey[0] === re
7636
7641
  });
7637
7642
  const g = [];
7638
- for (let v = 0; v < sessionStorage.length; v++) {
7639
- const T = sessionStorage.key(v);
7643
+ for (let y = 0; y < sessionStorage.length; y++) {
7644
+ const T = sessionStorage.key(y);
7640
7645
  T != null && T.includes(re) && g.push(T);
7641
7646
  }
7642
- g.forEach((v) => sessionStorage.removeItem(v));
7647
+ g.forEach((y) => sessionStorage.removeItem(y));
7643
7648
  }, W = () => {
7644
- const g = i.isRead, v = r ? t.updating : g ? o("markAnnouncementAsUnread", { title: i.title }) : o("markAnnouncementAsRead", { title: i.title }), T = r ? `updating-${i.id}` : `${g ? "mark-unread" : "mark-read"}-${i.id}`, B = r ? /* @__PURE__ */ s(S1, { size: "x-small", renderTitle: t.updatingReadStatus }) : g ? /* @__PURE__ */ s(tb, { color: "success", size: "x-small" }) : /* @__PURE__ */ s(fn, { color: "secondary", size: "x-small" });
7649
+ const g = i.isRead, y = r ? t.updating : g ? o("markAnnouncementAsUnread", { title: i.title }) : o("markAnnouncementAsRead", { title: i.title }), T = r ? `updating-${i.id}` : `${g ? "mark-unread" : "mark-read"}-${i.id}`, B = r ? /* @__PURE__ */ s(S1, { size: "x-small", renderTitle: t.updatingReadStatus }) : g ? /* @__PURE__ */ s(tb, { color: "success", size: "x-small" }) : /* @__PURE__ */ s(fn, { color: "secondary", size: "x-small" });
7645
7650
  return /* @__PURE__ */ s(
7646
7651
  X2,
7647
7652
  {
@@ -7651,7 +7656,7 @@ const Nz = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ s(P, { title:
7651
7656
  color: a ? "primary-inverse" : "secondary",
7652
7657
  onClick: r || M ? void 0 : q,
7653
7658
  disabled: r || M,
7654
- screenReaderLabel: v,
7659
+ screenReaderLabel: y,
7655
7660
  "aria-pressed": r ? void 0 : g,
7656
7661
  "data-testid": T,
7657
7662
  children: B
@@ -7733,7 +7738,7 @@ const Nz = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ s(P, { title:
7733
7738
  isEditMode: b = !1,
7734
7739
  dragHandleProps: M
7735
7740
  }) => {
7736
- const { translations: t } = e0(), { sharedCourseData: o, observedUserId: z } = E0(), [p, c] = M1(e.id, "filter", "unread"), {
7741
+ const { translations: t } = e0(), { sharedCourseData: o, observedUserId: z } = C0(), [p, c] = M1(e.id, "filter", "unread"), {
7737
7742
  currentPage: a,
7738
7743
  currentPageIndex: O,
7739
7744
  totalPages: i,
@@ -7750,7 +7755,7 @@ const Nz = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ s(P, { title:
7750
7755
  }, A = i0(() => ((a == null ? void 0 : a.announcements) || []).map((l) => {
7751
7756
  if (!l.course) return l;
7752
7757
  const R = l.course.id, g = o.find(
7753
- (v) => v.courseId === R || v.courseId === String(R)
7758
+ (y) => y.courseId === R || y.courseId === String(R)
7754
7759
  );
7755
7760
  return {
7756
7761
  ...l,
@@ -7834,7 +7839,7 @@ function E3(e) {
7834
7839
  };
7835
7840
  }
7836
7841
  function xc(e = {}) {
7837
- const { limit: b = D2.MAX_GRID_ITEMS } = e, [M, t] = H(0), { sharedCourseData: o } = E0(), z = i0(
7842
+ const { limit: b = D2.MAX_GRID_ITEMS } = e, [M, t] = H(0), { sharedCourseData: o } = C0(), z = i0(
7838
7843
  () => o.map(E3),
7839
7844
  [o]
7840
7845
  ), p = i0(() => {
@@ -7917,7 +7922,7 @@ const Dc = {
7917
7922
  useCustomColors: p = !0,
7918
7923
  maxWidth: c = "15rem"
7919
7924
  }) => {
7920
- const [a, O] = H(!1), { preferences: i, sharedCourseData: u } = E0(), r = u.find((f) => f.courseId === e), n = i0(() => {
7925
+ const [a, O] = H(!1), { preferences: i, sharedCourseData: u } = C0(), r = u.find((f) => f.courseId === e), n = i0(() => {
7921
7926
  if (z)
7922
7927
  return z;
7923
7928
  if (p && (i != null && i.custom_colors)) {
@@ -7986,7 +7991,7 @@ const Dc = {
7986
7991
  onGradeVisibilityChange: O
7987
7992
  }) => {
7988
7993
  var W;
7989
- const { translations: i, translate: u } = e0(), { ColorPicker: r } = U3(), { sharedCourseData: n, updateCourseColor: d } = E0(), q = a, f = (W = n.find((h) => h.courseId === e)) == null ? void 0 : W.courseColor, A = () => {
7994
+ const { translations: i, translate: u } = e0(), { ColorPicker: r } = U3(), { sharedCourseData: n, updateCourseColor: d } = C0(), q = a, f = (W = n.find((h) => h.courseId === e)) == null ? void 0 : W.courseColor, A = () => {
7990
7995
  const h = !q;
7991
7996
  O == null || O(h);
7992
7997
  };
@@ -8220,24 +8225,24 @@ const Dc = {
8220
8225
  m.courseId
8221
8226
  )) }) : Array.from({ length: 3 }, (m, l) => {
8222
8227
  const R = l;
8223
- return /* @__PURE__ */ s(te.Row, { children: Array.from({ length: D2.GRID_COLUMNS }, (g, v) => {
8224
- const T = v, B = R * D2.GRID_COLUMNS + T, y = q[B];
8225
- return /* @__PURE__ */ s(te.Col, { width: 6, children: y && /* @__PURE__ */ s(
8228
+ return /* @__PURE__ */ s(te.Row, { children: Array.from({ length: D2.GRID_COLUMNS }, (g, y) => {
8229
+ const T = y, B = R * D2.GRID_COLUMNS + T, v = q[B];
8230
+ return /* @__PURE__ */ s(te.Col, { width: 6, children: v && /* @__PURE__ */ s(
8226
8231
  Tz,
8227
8232
  {
8228
- courseId: y.courseId,
8229
- courseCode: y.courseCode,
8230
- courseName: y.courseName,
8231
- currentGrade: y.currentGrade,
8232
- gradingScheme: y.gradingScheme,
8233
- lastUpdated: y.lastUpdated,
8234
- image: y.image,
8235
- onShowGradebook: vz(y.courseId),
8233
+ courseId: v.courseId,
8234
+ courseCode: v.courseCode,
8235
+ courseName: v.courseName,
8236
+ currentGrade: v.currentGrade,
8237
+ gradingScheme: v.gradingScheme,
8238
+ lastUpdated: v.lastUpdated,
8239
+ image: v.image,
8240
+ onShowGradebook: vz(v.courseId),
8236
8241
  gridIndex: B,
8237
- globalGradeVisibility: z[y.courseId] ?? !0,
8238
- onGradeVisibilityChange: (X) => A(y.courseId, X)
8242
+ globalGradeVisibility: z[v.courseId] ?? !0,
8243
+ onGradeVisibilityChange: (X) => A(v.courseId, X)
8239
8244
  },
8240
- y.courseId
8245
+ v.courseId
8241
8246
  ) }, `grid-cell-${B}`);
8242
8247
  }) }, `grid-row-${R}`);
8243
8248
  })
@@ -8470,8 +8475,8 @@ async function J3(e, b = {}, M, t, o, z, p) {
8470
8475
  };
8471
8476
  }
8472
8477
  function Wt(e = {}) {
8473
- var g, v, T;
8474
- const { observedUserId: b } = E0(), { executeQuery: M, currentUserId: t, getAccount: o, perAccountLimit: z } = h0(), p = B1(), c = e.pageSize || 4, a = i0(
8478
+ var g, y, T;
8479
+ const { observedUserId: b } = C0(), { executeQuery: M, currentUserId: t, getAccount: o, perAccountLimit: z } = h0(), p = T1(), c = e.pageSize || 4, a = i0(
8475
8480
  () => JSON.stringify({
8476
8481
  courseFilter: e.courseFilter,
8477
8482
  endDate: e.endDate,
@@ -8502,7 +8507,7 @@ function Wt(e = {}) {
8502
8507
  e.courseFilter,
8503
8508
  e.endDate,
8504
8509
  (g = e.includeOverdue) == null ? void 0 : g.toString(),
8505
- (v = e.includeNoDueDate) == null ? void 0 : v.toString(),
8510
+ (y = e.includeNoDueDate) == null ? void 0 : y.toString(),
8506
8511
  (T = e.onlySubmitted) == null ? void 0 : T.toString(),
8507
8512
  JSON.stringify(e.accountIds ?? []),
8508
8513
  b ?? void 0
@@ -8531,8 +8536,8 @@ function Wt(e = {}) {
8531
8536
  retry: !1,
8532
8537
  placeholderData: ve
8533
8538
  }), A = (r == null ? void 0 : r.pageInfo.totalCount) ?? null, W = A != null ? Math.ceil(A / c) : 0, h = Q((B) => {
8534
- const y = B - 1;
8535
- y >= 0 && i(y);
8539
+ const v = B - 1;
8540
+ v >= 0 && i(v);
8536
8541
  }, []), m = Q(() => {
8537
8542
  i(0);
8538
8543
  }, []), l = Q(async () => (await p.invalidateQueries({
@@ -8767,7 +8772,7 @@ function cO(e, b, M, t = !1) {
8767
8772
  };
8768
8773
  }
8769
8774
  function Vc({ item: e }) {
8770
- const { translations: b, translate: M } = e0(), { timezone: t } = h0(), { isDark: o } = E0(), z = cO(e, M, t, o), { isMobile: p } = z2();
8775
+ const { translations: b, translate: M } = e0(), { timezone: t } = h0(), { isDark: o } = C0(), z = cO(e, M, t, o), { isMobile: p } = z2();
8771
8776
  return /* @__PURE__ */ s(
8772
8777
  L.Item,
8773
8778
  {
@@ -8861,7 +8866,7 @@ const Yc = ({
8861
8866
  summary: e,
8862
8867
  margin: b = "small 0 0 xx-small"
8863
8868
  }) => {
8864
- const { translations: M } = e0(), { isMobile: t } = z2(), { isDark: o } = E0(), z = oO(o), p = Hc(o), c = i0(
8869
+ const { translations: M } = e0(), { isMobile: t } = z2(), { isDark: o } = C0(), z = oO(o), p = Hc(o), c = i0(
8865
8870
  () => [
8866
8871
  {
8867
8872
  key: "due",
@@ -8938,7 +8943,7 @@ const Yc = ({
8938
8943
  goToPage: l,
8939
8944
  refetch: R,
8940
8945
  isLoading: g,
8941
- isPaginationLoading: v,
8946
+ isPaginationLoading: y,
8942
8947
  error: T
8943
8948
  } = Wt({
8944
8949
  pageSize: A,
@@ -8946,14 +8951,14 @@ const Yc = ({
8946
8951
  ...q
8947
8952
  }), {
8948
8953
  data: B,
8949
- isLoading: y,
8954
+ isLoading: v,
8950
8955
  error: X
8951
8956
  } = ft({
8952
8957
  startDate: f.startDate,
8953
8958
  endDate: f.endDate,
8954
8959
  courseId: d,
8955
8960
  enabled: r
8956
- }), S = (W == null ? void 0 : W.items) ?? [], k = b || g || y, C = M || (T ? T.message : null) || (X == null ? void 0 : X.message) || null, Z = Q(() => {
8961
+ }), S = (W == null ? void 0 : W.items) ?? [], k = b || g || v, C = M || (T ? T.message : null) || (X == null ? void 0 : X.message) || null, Z = Q(() => {
8957
8962
  t ? t() : R();
8958
8963
  }, [t, R]), U = Q(
8959
8964
  (q0, w0) => {
@@ -8987,7 +8992,7 @@ const Yc = ({
8987
8992
  ariaLabel: p.courseWorkPagination
8988
8993
  },
8989
8994
  loadingOverlay: {
8990
- isLoading: v,
8995
+ isLoading: y,
8991
8996
  ariaLabel: p.loadingCourseWork
8992
8997
  },
8993
8998
  headerActions: /* @__PURE__ */ s(
@@ -9093,12 +9098,12 @@ const Yc = ({
9093
9098
  pageSize: r,
9094
9099
  courseFilter: i,
9095
9100
  ...u
9096
- }), l = (n == null ? void 0 : n.items) || [], R = M || W, g = t || (m == null ? void 0 : m.message) || null, v = o || (() => A()), T = l, B = Q(
9101
+ }), l = (n == null ? void 0 : n.items) || [], R = M || W, g = t || (m == null ? void 0 : m.message) || null, y = o || (() => A()), T = l, B = Q(
9097
9102
  (X, S) => {
9098
9103
  S.value && typeof S.value == "string" && c(S.value);
9099
9104
  },
9100
9105
  [c]
9101
- ), y = Q(
9106
+ ), v = Q(
9102
9107
  (X, S) => {
9103
9108
  S.value && typeof S.value == "string" && O(S.value);
9104
9109
  },
@@ -9111,7 +9116,7 @@ const Yc = ({
9111
9116
  isEditMode: b,
9112
9117
  isLoading: R,
9113
9118
  error: g ? z.failedToLoadCourseWork : null,
9114
- onRetry: v,
9119
+ onRetry: y,
9115
9120
  pagination: {
9116
9121
  currentPage: d + 1,
9117
9122
  totalPages: q,
@@ -9129,7 +9134,7 @@ const Yc = ({
9129
9134
  selectedCourse: p,
9130
9135
  selectedDateFilter: a,
9131
9136
  onCourseChange: B,
9132
- onDateFilterChange: y
9137
+ onDateFilterChange: v
9133
9138
  }
9134
9139
  ) }),
9135
9140
  /* @__PURE__ */ s(L.Item, { shouldGrow: !0, children: T.length === 0 ? /* @__PURE__ */ s(L, { justifyItems: "center", padding: "large", children: /* @__PURE__ */ s(P, { color: "secondary", children: p === "all" ? z.noUpcomingCourseWork : z.noUpcomingCourseWorkForSelectedCourse }) }) : /* @__PURE__ */ s(I, { height: "100%", children: /* @__PURE__ */ s(L, { direction: "column", children: /* @__PURE__ */ s(j0, { isUnstyled: !0, margin: "0", children: T.map((X) => /* @__PURE__ */ s(j0.Item, { margin: "0", children: /* @__PURE__ */ s(Vc, { item: X }) }, X.id)) }) }) }) })
@@ -9247,7 +9252,7 @@ async function sO(e, b, M, t, o) {
9247
9252
  };
9248
9253
  }
9249
9254
  function uO(e = {}) {
9250
- const { courseIds: b = [], limit: M = 5, accountId: t } = e, o = B1(), [z, p] = H(0), [c, a] = H(t), { observedUserId: O } = E0(), {
9255
+ const { courseIds: b = [], limit: M = 5, accountId: t } = e, o = T1(), [z, p] = H(0), [c, a] = H(t), { observedUserId: O } = C0(), {
9251
9256
  executeQuery: i,
9252
9257
  currentUserId: u,
9253
9258
  getAccount: r
@@ -9280,8 +9285,8 @@ function uO(e = {}) {
9280
9285
  persister: s2,
9281
9286
  refetchOnMount: !1,
9282
9287
  retry: !1
9283
- }), R = (W == null ? void 0 : W.pageInfo.totalCount) ?? null, g = R != null ? Math.ceil(R / f) : 0, v = Q((y) => {
9284
- const X = y - 1;
9288
+ }), R = (W == null ? void 0 : W.pageInfo.totalCount) ?? null, g = R != null ? Math.ceil(R / f) : 0, y = Q((v) => {
9289
+ const X = v - 1;
9285
9290
  X >= 0 && p(X);
9286
9291
  }, []), T = Q(() => {
9287
9292
  p(0);
@@ -9293,7 +9298,7 @@ function uO(e = {}) {
9293
9298
  currentPageIndex: z,
9294
9299
  totalPages: g,
9295
9300
  totalCount: R,
9296
- goToPage: v,
9301
+ goToPage: y,
9297
9302
  resetPagination: T,
9298
9303
  refetch: B,
9299
9304
  isLoading: h,
@@ -9328,9 +9333,9 @@ function dO({
9328
9333
  accountId: a.length > 1 ? i : void 0
9329
9334
  }), W = (r == null ? void 0 : r.data) ?? [], h = t || (A ? p.failedToLoadInstructorData : null), m = !h && (M || f), l = Q(
9330
9335
  (g) => {
9331
- var y, X;
9332
- const v = a.length > 1 ? (y = O(i)) == null ? void 0 : y.canvasBaseUrl : (X = a[0]) == null ? void 0 : X.canvasBaseUrl;
9333
- if (!v) return;
9336
+ var v, X;
9337
+ const y = a.length > 1 ? (v = O(i)) == null ? void 0 : v.canvasBaseUrl : (X = a[0]) == null ? void 0 : X.canvasBaseUrl;
9338
+ if (!y) return;
9334
9339
  const T = g.enrollments[0].user_id, B = new URLSearchParams({
9335
9340
  user_id: T,
9336
9341
  user_name: g.name,
@@ -9340,7 +9345,7 @@ function dO({
9340
9345
  const S = g.enrollments[0].course_id;
9341
9346
  S && B.set("context_id", `course_${S}`);
9342
9347
  }
9343
- return `${v}/conversations?${B.toString()}`;
9348
+ return `${y}/conversations?${B.toString()}`;
9344
9349
  },
9345
9350
  [a, O, i]
9346
9351
  );
@@ -9367,7 +9372,7 @@ function dO({
9367
9372
  {
9368
9373
  renderLabel: p.account,
9369
9374
  value: i,
9370
- onChange: (g, { value: v }) => u(v),
9375
+ onChange: (g, { value: y }) => u(y),
9371
9376
  children: a.map((g) => /* @__PURE__ */ s(g0.Option, { id: g.id, value: g.id, children: g.name }, g.id))
9372
9377
  }
9373
9378
  ) }),
@@ -9407,10 +9412,10 @@ function dO({
9407
9412
  count: g.enrollments.length
9408
9413
  }) }),
9409
9414
  size: "small",
9410
- children: /* @__PURE__ */ s(I, { as: "div", borderWidth: "small 0 0 0", padding: "x-small 0 0 0", children: /* @__PURE__ */ s("ul", { style: { listStyleType: "disc", margin: 0, padding: 0 }, children: g.enrollments.map((v) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(P, { size: "x-small", color: "secondary", wrap: "break-word", children: c(p.roleInCourse, {
9411
- role: yM(v.role, p),
9412
- course: v.course_name ?? v.course_id
9413
- }) }) }, v.id)) }) })
9415
+ children: /* @__PURE__ */ s(I, { as: "div", borderWidth: "small 0 0 0", padding: "x-small 0 0 0", children: /* @__PURE__ */ s("ul", { style: { listStyleType: "disc", margin: 0, padding: 0 }, children: g.enrollments.map((y) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(P, { size: "x-small", color: "secondary", wrap: "break-word", children: c(p.roleInCourse, {
9416
+ role: yM(y.role, p),
9417
+ course: y.course_name ?? y.course_id
9418
+ }) }) }, y.id)) }) })
9414
9419
  }
9415
9420
  ) })
9416
9421
  ] }) }),
@@ -9468,7 +9473,7 @@ function lO(e, b) {
9468
9473
  } : (p = M.createDiscussionTopic) != null && p.discussionTopic ? { courseId: e, status: "success" } : { courseId: e, status: "error", error: "No discussion topic returned" };
9469
9474
  }
9470
9475
  function qO() {
9471
- const e = B1(), { executeQuery: b, currentUserId: M } = h0();
9476
+ const e = T1(), { executeQuery: b, currentUserId: M } = h0();
9472
9477
  return C1({
9473
9478
  mutationFn: async (t) => {
9474
9479
  const o = t.courseIds.map(
@@ -9585,7 +9590,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9585
9590
  showAllOption: u = !1,
9586
9591
  "data-testid": r
9587
9592
  }) => {
9588
- const { translations: n, translate: d, announceForScreenReader: q } = e0(), [f, A] = H(!1), [W, h] = H(null), [m, l] = H(""), R = n1(void 0), g = i0(() => new Map(e.map((t0) => [t0.id, t0])), [e]), v = i0(
9593
+ const { translations: n, translate: d, announceForScreenReader: q } = e0(), [f, A] = H(!1), [W, h] = H(null), [m, l] = H(""), R = n1(void 0), g = i0(() => new Map(e.map((t0) => [t0.id, t0])), [e]), y = i0(
9589
9594
  () => b.map((t0) => g.get(t0)).filter((t0) => t0 !== void 0),
9590
9595
  [b, g]
9591
9596
  ), T = i0(
@@ -9595,7 +9600,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9595
9600
  if (!m) return T;
9596
9601
  const t0 = m.toLowerCase();
9597
9602
  return T.filter((a0) => mO(a0, t0));
9598
- }, [T, m]), y = i0(
9603
+ }, [T, m]), v = i0(
9599
9604
  () => B.slice(0, vM),
9600
9605
  [B]
9601
9606
  );
@@ -9658,7 +9663,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9658
9663
  ariaLabel: n.removeAllCourses,
9659
9664
  testId: "course-tag-all"
9660
9665
  }
9661
- ] : v.map((a0) => ({
9666
+ ] : y.map((a0) => ({
9662
9667
  id: a0.id,
9663
9668
  text: a0.name,
9664
9669
  ariaLabel: d(n.removeCourse, { name: a0.name }),
@@ -9681,7 +9686,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9681
9686
  )) });
9682
9687
  }, [
9683
9688
  X,
9684
- v,
9689
+ y,
9685
9690
  S,
9686
9691
  d,
9687
9692
  n.allCourses,
@@ -9740,10 +9745,10 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9740
9745
  count: B.length - vM
9741
9746
  }) }, b1.moreHint), a1 = () => p ? U() : [
9742
9747
  ...u ? [$()] : [],
9743
- ...y.length === 0 ? [O0()] : [],
9744
- ...y.map(q0),
9748
+ ...v.length === 0 ? [O0()] : [],
9749
+ ...v.map(q0),
9745
9750
  ...B.length > vM ? [w0()] : []
9746
- ], z0 = X || v.length > 0;
9751
+ ], z0 = X || y.length > 0;
9747
9752
  return /* @__PURE__ */ s(
9748
9753
  x2,
9749
9754
  {
@@ -9865,7 +9870,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9865
9870
  onSubmit: t,
9866
9871
  isCreating: o
9867
9872
  }) => {
9868
- const { translations: z } = e0(), { locale: p, timezone: c } = h0(), [a, O] = H(""), [i, u] = H(""), [r, n] = H([]), d = _z({ defaultTime: RO }), q = _z({ defaultTime: gO }), [f, A] = H(!1), [W, h] = H(!1), [m, l] = H(!1), [R, g] = H(""), [v, T] = H(""), [B, y] = H(""), [X, S] = H(""), k = n1(null), C = n1(null), Z = n1(null);
9873
+ const { translations: z } = e0(), { locale: p, timezone: c } = h0(), [a, O] = H(""), [i, u] = H(""), [r, n] = H([]), d = _z({ defaultTime: RO }), q = _z({ defaultTime: gO }), [f, A] = H(!1), [W, h] = H(!1), [m, l] = H(!1), [R, g] = H(""), [y, T] = H(""), [B, v] = H(""), [X, S] = H(""), k = n1(null), C = n1(null), Z = n1(null);
9869
9874
  F0(() => {
9870
9875
  if (e) {
9871
9876
  if (n(b ?? []), M) {
@@ -9874,7 +9879,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9874
9879
  d.initFrom(x, D, p, c), q.initFrom(N, _, p, c), A(M.allowComments), h(M.enablePodcast), l(M.allowLiking);
9875
9880
  }
9876
9881
  return () => {
9877
- n([]), O(""), u(""), d.reset(), q.reset(), A(!1), h(!1), l(!1), g(""), T(""), y(""), S("");
9882
+ n([]), O(""), u(""), d.reset(), q.reset(), A(!1), h(!1), l(!1), g(""), T(""), v(""), S("");
9878
9883
  };
9879
9884
  }
9880
9885
  }, [
@@ -9891,9 +9896,9 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9891
9896
  const U = (x, D) => {
9892
9897
  O(D), R && D.trim() && D.length <= GM && g("");
9893
9898
  }, $ = (x) => {
9894
- u(x), B && x.trim() && y("");
9899
+ u(x), B && x.trim() && v("");
9895
9900
  }, O0 = (x) => {
9896
- n(x), v && x.length > 0 && T("");
9901
+ n(x), y && x.length > 0 && T("");
9897
9902
  }, q0 = Q(
9898
9903
  (x, D) => {
9899
9904
  q.onDateChange(x, D), X && S("");
@@ -9915,7 +9920,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9915
9920
  A(x.includes("allowComments")), h(x.includes("enablePodcast")), l(x.includes("allowLiking"));
9916
9921
  }, t0 = () => {
9917
9922
  let x = !1, D = null;
9918
- a.trim() ? a.length > GM ? (g(z.announcementTitleMaxLength), x = !0, D = k) : g("") : (g(z.announcementTitleRequired), x = !0, D = k), i.trim() ? new Blob([i]).size > LO ? (y(z.announcementContentTooLarge), x = !0, D || (D = Z)) : y("") : (y(z.announcementContentRequired), x = !0, D || (D = Z)), r.length === 0 ? (T(z.announcementCoursesRequired), x = !0, D || (D = C)) : T(""), d.hasInvalidInput && (x = !0, D || (D = d.inputRef)), q.hasInvalidInput && (x = !0, D || (D = q.inputRef));
9923
+ a.trim() ? a.length > GM ? (g(z.announcementTitleMaxLength), x = !0, D = k) : g("") : (g(z.announcementTitleRequired), x = !0, D = k), i.trim() ? new Blob([i]).size > LO ? (v(z.announcementContentTooLarge), x = !0, D || (D = Z)) : v("") : (v(z.announcementContentRequired), x = !0, D || (D = Z)), r.length === 0 ? (T(z.announcementCoursesRequired), x = !0, D || (D = C)) : T(""), d.hasInvalidInput && (x = !0, D || (D = d.inputRef)), q.hasInvalidInput && (x = !0, D || (D = q.inputRef));
9919
9924
  const N = mz(d.date, d.time), _ = mz(q.date, q.time);
9920
9925
  if (N && _ && new Date(_) < new Date(N) ? (S(z.announcementEndDateBeforeStart), x = !0, D || (D = q.inputRef)) : S(""), x) {
9921
9926
  queueMicrotask(() => {
@@ -9934,7 +9939,7 @@ const hO = ({ text: e }) => /* @__PURE__ */ s(
9934
9939
  enablePodcast: W,
9935
9940
  allowLiking: m
9936
9941
  });
9937
- }, a0 = o ? "disabled" : "enabled", y0 = R ? [{ type: "error", text: R }] : [], u0 = v ? [{ type: "error", text: v }] : [], I0 = B ? [{ type: "error", text: B }] : [], K0 = X ? [{ type: "error", text: X }] : [], F1 = [
9942
+ }, a0 = o ? "disabled" : "enabled", y0 = R ? [{ type: "error", text: R }] : [], u0 = y ? [{ type: "error", text: y }] : [], I0 = B ? [{ type: "error", text: B }] : [], K0 = X ? [{ type: "error", text: X }] : [], F1 = [
9938
9943
  f && "allowComments",
9939
9944
  W && "enablePodcast",
9940
9945
  m && "allowLiking"
@@ -10069,7 +10074,7 @@ const XO = ({
10069
10074
  interaction: n.interaction
10070
10075
  }
10071
10076
  ),
10072
- /* @__PURE__ */ s(L1, { children: a.createAnnouncement })
10077
+ /* @__PURE__ */ s(N1, { children: a.createAnnouncement })
10073
10078
  ] }),
10074
10079
  /* @__PURE__ */ s(Q0.Body, { children: /* @__PURE__ */ w(L, { direction: "column", gap: "medium", children: [
10075
10080
  /* @__PURE__ */ s(L.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ s(
@@ -10360,7 +10365,7 @@ function SO() {
10360
10365
  }
10361
10366
  const Qc = ({ icon: e, iconTestId: b, title: M, description: t }) => /* @__PURE__ */ s(I, { as: "div", role: "status", padding: "large", textAlign: "center", children: /* @__PURE__ */ w(L, { direction: "column", alignItems: "center", gap: "small", children: [
10362
10367
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(I, { as: "div", "data-testid": b, children: e }) }),
10363
- /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(L1, { level: "h3", children: M }) }),
10368
+ /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(N1, { level: "h3", children: M }) }),
10364
10369
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(P, { color: "secondary", children: t }) })
10365
10370
  ] }) }), xO = () => {
10366
10371
  const { translations: e } = e0();
@@ -11161,7 +11166,7 @@ class l0 {
11161
11166
  return this._refinement((t, o) => b(t) ? !0 : (o.addIssue(typeof M == "function" ? M(t, o) : M), !1));
11162
11167
  }
11163
11168
  _refinement(b) {
11164
- return new N1({
11169
+ return new y1({
11165
11170
  schema: this,
11166
11171
  typeName: n0.ZodEffects,
11167
11172
  effect: { type: "refinement", refinement: b }
@@ -11187,7 +11192,7 @@ class l0 {
11187
11192
  return this.nullable().optional();
11188
11193
  }
11189
11194
  array() {
11190
- return g1.create(this);
11195
+ return L1.create(this);
11191
11196
  }
11192
11197
  promise() {
11193
11198
  return Q2.create(this, this._def);
@@ -11199,7 +11204,7 @@ class l0 {
11199
11204
  return de.create(this, b, this._def);
11200
11205
  }
11201
11206
  transform(b) {
11202
- return new N1({
11207
+ return new y1({
11203
11208
  ...s0(this._def),
11204
11209
  schema: this,
11205
11210
  typeName: n0.ZodEffects,
@@ -11287,7 +11292,7 @@ function ha(e, b) {
11287
11292
  function ma(e, b) {
11288
11293
  return !!((b === "v4" || !b) && sa.test(e) || (b === "v6" || !b) && da.test(e));
11289
11294
  }
11290
- class m1 extends l0 {
11295
+ class R1 extends l0 {
11291
11296
  _parse(b) {
11292
11297
  if (this._def.coerce && (b.data = String(b.data)), this._getType(b) !== K.string) {
11293
11298
  const z = this._getOrReturnCtx(b);
@@ -11450,7 +11455,7 @@ class m1 extends l0 {
11450
11455
  });
11451
11456
  }
11452
11457
  _addCheck(b) {
11453
- return new m1({
11458
+ return new R1({
11454
11459
  ...this._def,
11455
11460
  checks: [...this._def.checks, b]
11456
11461
  });
@@ -11586,19 +11591,19 @@ class m1 extends l0 {
11586
11591
  return this.min(1, M0.errToObj(b));
11587
11592
  }
11588
11593
  trim() {
11589
- return new m1({
11594
+ return new R1({
11590
11595
  ...this._def,
11591
11596
  checks: [...this._def.checks, { kind: "trim" }]
11592
11597
  });
11593
11598
  }
11594
11599
  toLowerCase() {
11595
- return new m1({
11600
+ return new R1({
11596
11601
  ...this._def,
11597
11602
  checks: [...this._def.checks, { kind: "toLowerCase" }]
11598
11603
  });
11599
11604
  }
11600
11605
  toUpperCase() {
11601
- return new m1({
11606
+ return new R1({
11602
11607
  ...this._def,
11603
11608
  checks: [...this._def.checks, { kind: "toUpperCase" }]
11604
11609
  });
@@ -11664,7 +11669,7 @@ class m1 extends l0 {
11664
11669
  return b;
11665
11670
  }
11666
11671
  }
11667
- m1.create = (e) => new m1({
11672
+ R1.create = (e) => new R1({
11668
11673
  checks: [],
11669
11674
  typeName: n0.ZodString,
11670
11675
  coerce: (e == null ? void 0 : e.coerce) ?? !1,
@@ -12181,7 +12186,7 @@ ab.create = (e) => new ab({
12181
12186
  typeName: n0.ZodVoid,
12182
12187
  ...s0(e)
12183
12188
  });
12184
- class g1 extends l0 {
12189
+ class L1 extends l0 {
12185
12190
  _parse(b) {
12186
12191
  const { ctx: M, status: t } = this._processInputParams(b), o = this._def;
12187
12192
  if (M.parsedType !== K.array)
@@ -12225,19 +12230,19 @@ class g1 extends l0 {
12225
12230
  return this._def.type;
12226
12231
  }
12227
12232
  min(b, M) {
12228
- return new g1({
12233
+ return new L1({
12229
12234
  ...this._def,
12230
12235
  minLength: { value: b, message: M0.toString(M) }
12231
12236
  });
12232
12237
  }
12233
12238
  max(b, M) {
12234
- return new g1({
12239
+ return new L1({
12235
12240
  ...this._def,
12236
12241
  maxLength: { value: b, message: M0.toString(M) }
12237
12242
  });
12238
12243
  }
12239
12244
  length(b, M) {
12240
- return new g1({
12245
+ return new L1({
12241
12246
  ...this._def,
12242
12247
  exactLength: { value: b, message: M0.toString(M) }
12243
12248
  });
@@ -12246,7 +12251,7 @@ class g1 extends l0 {
12246
12251
  return this.min(1, b);
12247
12252
  }
12248
12253
  }
12249
- g1.create = (e, b) => new g1({
12254
+ L1.create = (e, b) => new L1({
12250
12255
  type: e,
12251
12256
  minLength: null,
12252
12257
  maxLength: null,
@@ -12255,22 +12260,22 @@ g1.create = (e, b) => new g1({
12255
12260
  ...s0(b)
12256
12261
  });
12257
12262
  function k2(e) {
12258
- if (e instanceof C0) {
12263
+ if (e instanceof E0) {
12259
12264
  const b = {};
12260
12265
  for (const M in e.shape) {
12261
12266
  const t = e.shape[M];
12262
12267
  b[M] = x1.create(k2(t));
12263
12268
  }
12264
- return new C0({
12269
+ return new E0({
12265
12270
  ...e._def,
12266
12271
  shape: () => b
12267
12272
  });
12268
- } else return e instanceof g1 ? new g1({
12273
+ } else return e instanceof L1 ? new L1({
12269
12274
  ...e._def,
12270
12275
  type: k2(e.element)
12271
12276
  }) : e instanceof x1 ? x1.create(k2(e.unwrap())) : e instanceof q2 ? q2.create(k2(e.unwrap())) : e instanceof D1 ? D1.create(e.items.map((b) => k2(b))) : e;
12272
12277
  }
12273
- class C0 extends l0 {
12278
+ class E0 extends l0 {
12274
12279
  constructor() {
12275
12280
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
12276
12281
  }
@@ -12347,7 +12352,7 @@ class C0 extends l0 {
12347
12352
  return this._def.shape();
12348
12353
  }
12349
12354
  strict(b) {
12350
- return M0.errToObj, new C0({
12355
+ return M0.errToObj, new E0({
12351
12356
  ...this._def,
12352
12357
  unknownKeys: "strict",
12353
12358
  ...b !== void 0 ? {
@@ -12364,13 +12369,13 @@ class C0 extends l0 {
12364
12369
  });
12365
12370
  }
12366
12371
  strip() {
12367
- return new C0({
12372
+ return new E0({
12368
12373
  ...this._def,
12369
12374
  unknownKeys: "strip"
12370
12375
  });
12371
12376
  }
12372
12377
  passthrough() {
12373
- return new C0({
12378
+ return new E0({
12374
12379
  ...this._def,
12375
12380
  unknownKeys: "passthrough"
12376
12381
  });
@@ -12393,7 +12398,7 @@ class C0 extends l0 {
12393
12398
  // }) as any;
12394
12399
  // };
12395
12400
  extend(b) {
12396
- return new C0({
12401
+ return new E0({
12397
12402
  ...this._def,
12398
12403
  shape: () => ({
12399
12404
  ...this._def.shape(),
@@ -12407,7 +12412,7 @@ class C0 extends l0 {
12407
12412
  * upgrade if you are experiencing issues.
12408
12413
  */
12409
12414
  merge(b) {
12410
- return new C0({
12415
+ return new E0({
12411
12416
  unknownKeys: b._def.unknownKeys,
12412
12417
  catchall: b._def.catchall,
12413
12418
  shape: () => ({
@@ -12477,7 +12482,7 @@ class C0 extends l0 {
12477
12482
  // return merged;
12478
12483
  // }
12479
12484
  catchall(b) {
12480
- return new C0({
12485
+ return new E0({
12481
12486
  ...this._def,
12482
12487
  catchall: b
12483
12488
  });
@@ -12486,7 +12491,7 @@ class C0 extends l0 {
12486
12491
  const M = {};
12487
12492
  for (const t of W0.objectKeys(b))
12488
12493
  b[t] && this.shape[t] && (M[t] = this.shape[t]);
12489
- return new C0({
12494
+ return new E0({
12490
12495
  ...this._def,
12491
12496
  shape: () => M
12492
12497
  });
@@ -12495,7 +12500,7 @@ class C0 extends l0 {
12495
12500
  const M = {};
12496
12501
  for (const t of W0.objectKeys(this.shape))
12497
12502
  b[t] || (M[t] = this.shape[t]);
12498
- return new C0({
12503
+ return new E0({
12499
12504
  ...this._def,
12500
12505
  shape: () => M
12501
12506
  });
@@ -12512,7 +12517,7 @@ class C0 extends l0 {
12512
12517
  const o = this.shape[t];
12513
12518
  b && !b[t] ? M[t] = o : M[t] = o.optional();
12514
12519
  }
12515
- return new C0({
12520
+ return new E0({
12516
12521
  ...this._def,
12517
12522
  shape: () => M
12518
12523
  });
@@ -12528,7 +12533,7 @@ class C0 extends l0 {
12528
12533
  z = z._def.innerType;
12529
12534
  M[t] = z;
12530
12535
  }
12531
- return new C0({
12536
+ return new E0({
12532
12537
  ...this._def,
12533
12538
  shape: () => M
12534
12539
  });
@@ -12537,21 +12542,21 @@ class C0 extends l0 {
12537
12542
  return Mp(W0.objectKeys(this.shape));
12538
12543
  }
12539
12544
  }
12540
- C0.create = (e, b) => new C0({
12545
+ E0.create = (e, b) => new E0({
12541
12546
  shape: () => e,
12542
12547
  unknownKeys: "strip",
12543
12548
  catchall: t2.create(),
12544
12549
  typeName: n0.ZodObject,
12545
12550
  ...s0(b)
12546
12551
  });
12547
- C0.strictCreate = (e, b) => new C0({
12552
+ E0.strictCreate = (e, b) => new E0({
12548
12553
  shape: () => e,
12549
12554
  unknownKeys: "strict",
12550
12555
  catchall: t2.create(),
12551
12556
  typeName: n0.ZodObject,
12552
12557
  ...s0(b)
12553
12558
  });
12554
- C0.lazycreate = (e, b) => new C0({
12559
+ E0.lazycreate = (e, b) => new E0({
12555
12560
  shape: e,
12556
12561
  unknownKeys: "strip",
12557
12562
  catchall: t2.create(),
@@ -12631,7 +12636,7 @@ ue.create = (e, b) => new ue({
12631
12636
  typeName: n0.ZodUnion,
12632
12637
  ...s0(b)
12633
12638
  });
12634
- const K1 = (e) => e instanceof le ? K1(e.schema) : e instanceof N1 ? K1(e.innerType()) : e instanceof qe ? [e.value] : e instanceof l2 ? e.options : e instanceof fe ? W0.objectValues(e.enum) : e instanceof We ? K1(e._def.innerType) : e instanceof ie ? [void 0] : e instanceof se ? [null] : e instanceof x1 ? [void 0, ...K1(e.unwrap())] : e instanceof q2 ? [null, ...K1(e.unwrap())] : e instanceof Nt || e instanceof me ? K1(e.unwrap()) : e instanceof he ? K1(e._def.innerType) : [];
12639
+ const K1 = (e) => e instanceof le ? K1(e.schema) : e instanceof y1 ? K1(e.innerType()) : e instanceof qe ? [e.value] : e instanceof l2 ? e.options : e instanceof fe ? W0.objectValues(e.enum) : e instanceof We ? K1(e._def.innerType) : e instanceof ie ? [void 0] : e instanceof se ? [null] : e instanceof x1 ? [void 0, ...K1(e.unwrap())] : e instanceof q2 ? [null, ...K1(e.unwrap())] : e instanceof Nt || e instanceof me ? K1(e.unwrap()) : e instanceof he ? K1(e._def.innerType) : [];
12635
12640
  class Bb extends l0 {
12636
12641
  _parse(b) {
12637
12642
  const { ctx: M } = this._processInputParams(b);
@@ -12842,7 +12847,7 @@ class Ae extends l0 {
12842
12847
  typeName: n0.ZodRecord,
12843
12848
  ...s0(t)
12844
12849
  }) : new Ae({
12845
- keyType: m1.create(),
12850
+ keyType: R1.create(),
12846
12851
  valueType: b,
12847
12852
  typeName: n0.ZodRecord,
12848
12853
  ...s0(M)
@@ -13203,7 +13208,7 @@ Q2.create = (e, b) => new Q2({
13203
13208
  typeName: n0.ZodPromise,
13204
13209
  ...s0(b)
13205
13210
  });
13206
- class N1 extends l0 {
13211
+ class y1 extends l0 {
13207
13212
  innerType() {
13208
13213
  return this._def.schema;
13209
13214
  }
@@ -13283,13 +13288,13 @@ class N1 extends l0 {
13283
13288
  W0.assertNever(o);
13284
13289
  }
13285
13290
  }
13286
- N1.create = (e, b, M) => new N1({
13291
+ y1.create = (e, b, M) => new y1({
13287
13292
  schema: e,
13288
13293
  typeName: n0.ZodEffects,
13289
13294
  effect: b,
13290
13295
  ...s0(M)
13291
13296
  });
13292
- N1.createWithPreprocess = (e, b, M) => new N1({
13297
+ y1.createWithPreprocess = (e, b, M) => new y1({
13293
13298
  schema: b,
13294
13299
  effect: { type: "preprocess", transform: e },
13295
13300
  typeName: n0.ZodEffects,
@@ -13490,7 +13495,7 @@ function tp(e, b = {}, M) {
13490
13495
  }) : K2.create();
13491
13496
  }
13492
13497
  const La = {
13493
- object: C0.lazycreate
13498
+ object: E0.lazycreate
13494
13499
  };
13495
13500
  var n0;
13496
13501
  (function(e) {
@@ -13498,8 +13503,8 @@ var n0;
13498
13503
  })(n0 || (n0 = {}));
13499
13504
  const Na = (e, b = {
13500
13505
  message: `Input not instance of ${e.name}`
13501
- }) => tp((M) => M instanceof e, b), yt = m1.create, op = d2.create, ya = sb.create, va = A2.create, vt = ae.create, Ba = B2.create, Ta = Ob.create, Xa = ie.create, wa = se.create, _a = K2.create, Sa = N2.create, xa = t2.create, Ca = ab.create, Ea = g1.create, Bt = C0.create, Ia = C0.strictCreate, Da = ue.create, ka = Bb.create, Pa = de.create, Ua = D1.create, Fa = Ae.create, ja = ib.create, Ga = T2.create, Ha = j2.create, Va = le.create, Ya = qe.create, $a = l2.create, Ka = fe.create, Qa = Q2.create, Iz = N1.create, Za = x1.create, Ja = q2.create, ei = N1.createWithPreprocess, bi = we.create, Mi = () => yt().optional(), ti = () => op().optional(), oi = () => vt().optional(), zp = {
13502
- string: (e) => m1.create({ ...e, coerce: !0 }),
13506
+ }) => tp((M) => M instanceof e, b), yt = R1.create, op = d2.create, ya = sb.create, va = A2.create, vt = ae.create, Ba = B2.create, Ta = Ob.create, Xa = ie.create, wa = se.create, _a = K2.create, Sa = N2.create, xa = t2.create, Ca = ab.create, Ea = L1.create, Bt = E0.create, Ia = E0.strictCreate, Da = ue.create, ka = Bb.create, Pa = de.create, Ua = D1.create, Fa = Ae.create, ja = ib.create, Ga = T2.create, Ha = j2.create, Va = le.create, Ya = qe.create, $a = l2.create, Ka = fe.create, Qa = Q2.create, Iz = y1.create, Za = x1.create, Ja = q2.create, ei = y1.createWithPreprocess, bi = we.create, Mi = () => yt().optional(), ti = () => op().optional(), oi = () => vt().optional(), zp = {
13507
+ string: (e) => R1.create({ ...e, coerce: !0 }),
13503
13508
  number: (e) => d2.create({ ...e, coerce: !0 }),
13504
13509
  boolean: (e) => ae.create({
13505
13510
  ...e,
@@ -13518,7 +13523,7 @@ const Na = (e, b = {
13518
13523
  ParseStatus: J0,
13519
13524
  Schema: l0,
13520
13525
  ZodAny: K2,
13521
- ZodArray: g1,
13526
+ ZodArray: L1,
13522
13527
  ZodBigInt: A2,
13523
13528
  ZodBoolean: ae,
13524
13529
  ZodBranded: Nt,
@@ -13526,7 +13531,7 @@ const Na = (e, b = {
13526
13531
  ZodDate: B2,
13527
13532
  ZodDefault: We,
13528
13533
  ZodDiscriminatedUnion: Bb,
13529
- ZodEffects: N1,
13534
+ ZodEffects: y1,
13530
13535
  ZodEnum: l2,
13531
13536
  ZodError: r1,
13532
13537
  get ZodFirstPartyTypeKind() {
@@ -13544,7 +13549,7 @@ const Na = (e, b = {
13544
13549
  ZodNull: se,
13545
13550
  ZodNullable: q2,
13546
13551
  ZodNumber: d2,
13547
- ZodObject: C0,
13552
+ ZodObject: E0,
13548
13553
  ZodOptional: x1,
13549
13554
  ZodParsedType: K,
13550
13555
  ZodPipeline: we,
@@ -13553,9 +13558,9 @@ const Na = (e, b = {
13553
13558
  ZodRecord: Ae,
13554
13559
  ZodSchema: l0,
13555
13560
  ZodSet: T2,
13556
- ZodString: m1,
13561
+ ZodString: R1,
13557
13562
  ZodSymbol: Ob,
13558
- ZodTransformer: N1,
13563
+ ZodTransformer: y1,
13559
13564
  ZodTuple: D1,
13560
13565
  ZodType: l0,
13561
13566
  ZodUndefined: ie,
@@ -13724,7 +13729,7 @@ const Oi = {
13724
13729
  type: "ontime",
13725
13730
  amount: Number(a)
13726
13731
  }
13727
- ].filter((d) => d.amount > 0), n = /* @__PURE__ */ s(L1, { level: "h3", variant: "titleCardMini", color: "primary", children: b });
13732
+ ].filter((d) => d.amount > 0), n = /* @__PURE__ */ s(N1, { level: "h3", variant: "titleCardMini", color: "primary", children: b });
13728
13733
  return /* @__PURE__ */ w(L, { as: "div", gap: "small", alignItems: "start", children: [
13729
13734
  /* @__PURE__ */ s(L.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ w(L, { direction: "column", gap: "x-small", children: [
13730
13735
  /* @__PURE__ */ s(L.Item, { overflowX: "visible", overflowY: "visible", children: M ? /* @__PURE__ */ s(P0, { href: M, "data-testid": `educator-todo-link-${e}`, children: n }) : n }),
@@ -13810,7 +13815,7 @@ const Oi = {
13810
13815
  const { translations: b } = e0(), { icon: M, iconTestId: t, titleKey: o, descriptionKey: z } = si[e];
13811
13816
  return /* @__PURE__ */ s(I, { as: "div", role: "status", padding: "large", textAlign: "center", children: /* @__PURE__ */ w(L, { direction: "column", alignItems: "center", gap: "small", children: [
13812
13817
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(I, { as: "div", "data-testid": t, children: M }) }),
13813
- /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(L1, { level: "h3", children: b[o] }) }),
13818
+ /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(N1, { level: "h3", children: b[o] }) }),
13814
13819
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(P, { color: "secondary", children: b[z] }) })
13815
13820
  ] }) });
13816
13821
  }, Dz = "all", ap = [
@@ -13891,7 +13896,7 @@ const XM = 100, fi = 10, Wi = ({ onDismiss: e }) => {
13891
13896
  screenReaderLabel: b.close
13892
13897
  }
13893
13898
  ),
13894
- /* @__PURE__ */ s(L1, { children: b.educatorTodoListModalHeading })
13899
+ /* @__PURE__ */ s(N1, { children: b.educatorTodoListModalHeading })
13895
13900
  ] }),
13896
13901
  /* @__PURE__ */ s(Q0.Body, { children: /* @__PURE__ */ s(
13897
13902
  Op,
@@ -13974,7 +13979,7 @@ function Ri({
13974
13979
  queryKey: e,
13975
13980
  broadcastChannel: b = "tanstack-query"
13976
13981
  }) {
13977
- const M = B1(), t = n1(!1), o = n1({}), z = xn(e);
13982
+ const M = T1(), t = n1(!1), o = n1({}), z = xn(e);
13978
13983
  F0(() => {
13979
13984
  const p = (n) => {
13980
13985
  t.current = !0, n(), t.current = !1;
@@ -14098,7 +14103,7 @@ function yi(e, b, M) {
14098
14103
  };
14099
14104
  }
14100
14105
  function vi(e = {}) {
14101
- const { limit: b = 5, filter: M = "unread" } = e, { translations: t } = e0(), { executeQuery: o, currentUserId: z } = h0(), { queryPersister: p } = E0(), c = [Kn, b, M], a = yi(
14106
+ const { limit: b = 5, filter: M = "unread" } = e, { translations: t } = e0(), { executeQuery: o, currentUserId: z } = h0(), { queryPersister: p } = C0(), c = [Kn, b, M], a = yi(
14102
14107
  o,
14103
14108
  z,
14104
14109
  t.noSubject
@@ -14337,7 +14342,7 @@ async function xi(e, b, M, t, o, z) {
14337
14342
  };
14338
14343
  }
14339
14344
  function Ci(e = {}) {
14340
- const { courseIds: b = [], limit: M = 5, accountId: t, enrollmentTypes: o } = e, z = B1(), [p, c] = H(0), [a, O] = H(t), { observedUserId: i } = E0(), {
14345
+ const { courseIds: b = [], limit: M = 5, accountId: t, enrollmentTypes: o } = e, z = T1(), [p, c] = H(0), [a, O] = H(t), { observedUserId: i } = C0(), {
14341
14346
  executeQuery: u,
14342
14347
  currentUserId: r,
14343
14348
  getAccount: n
@@ -14358,7 +14363,7 @@ function Ci(e = {}) {
14358
14363
  isLoading: l,
14359
14364
  isFetching: R,
14360
14365
  error: g,
14361
- refetch: v
14366
+ refetch: y
14362
14367
  } = t1({
14363
14368
  queryKey: h,
14364
14369
  queryFn: () => xi(
@@ -14379,18 +14384,18 @@ function Ci(e = {}) {
14379
14384
  F0(() => {
14380
14385
  c(0);
14381
14386
  }, [T, W]);
14382
- const B = (m == null ? void 0 : m.pageInfo.totalCount) ?? null, y = B != null ? Math.ceil(B / A) : 0, X = Q((Z) => {
14387
+ const B = (m == null ? void 0 : m.pageInfo.totalCount) ?? null, v = B != null ? Math.ceil(B / A) : 0, X = Q((Z) => {
14383
14388
  const U = Z - 1;
14384
14389
  U >= 0 && c(U);
14385
14390
  }, []), S = Q(() => {
14386
14391
  c(0);
14387
14392
  }, []), k = Q(async () => (await z.invalidateQueries({
14388
14393
  queryKey: [co]
14389
- }), v()), [z, v]);
14394
+ }), y()), [z, y]);
14390
14395
  return {
14391
14396
  currentPage: m,
14392
14397
  currentPageIndex: p,
14393
- totalPages: y,
14398
+ totalPages: v,
14394
14399
  totalCount: B,
14395
14400
  goToPage: X,
14396
14401
  resetPagination: S,
@@ -14458,13 +14463,13 @@ const Ii = ({
14458
14463
  totalPages: l,
14459
14464
  goToPage: R,
14460
14465
  isLoading: g,
14461
- isPaginationLoading: v,
14466
+ isPaginationLoading: y,
14462
14467
  error: T
14463
14468
  } = Ci({
14464
14469
  courseIds: A,
14465
14470
  limit: J2.PEOPLE,
14466
14471
  enrollmentTypes: W
14467
- }), B = (h == null ? void 0 : h.data) ?? [], y = t || (T ? c.failedToLoadInstructorData : null), X = !y && (M || g), S = (U) => {
14472
+ }), B = (h == null ? void 0 : h.data) ?? [], v = t || (T ? c.failedToLoadInstructorData : null), X = !v && (M || g), S = (U) => {
14468
14473
  const $ = U.enrollments[0];
14469
14474
  !($ != null && $.course_id) || !$.user_id || (d({
14470
14475
  id: $.user_id,
@@ -14492,7 +14497,7 @@ const Ii = ({
14492
14497
  isEditMode: b,
14493
14498
  dragHandleProps: z,
14494
14499
  isLoading: X,
14495
- error: y,
14500
+ error: v,
14496
14501
  onRetry: o,
14497
14502
  loadingText: c.loadingPeopleData,
14498
14503
  pagination: {
@@ -14502,7 +14507,7 @@ const Ii = ({
14502
14507
  ariaLabel: c.instructorsPagination
14503
14508
  },
14504
14509
  loadingOverlay: {
14505
- isLoading: v,
14510
+ isLoading: y,
14506
14511
  ariaLabel: c.loadingInstructors
14507
14512
  },
14508
14513
  children: [
@@ -14728,7 +14733,7 @@ const Ui = ({
14728
14733
  );
14729
14734
  }, Fi = ({ course: e }) => {
14730
14735
  var q;
14731
- const { translations: b, translate: M } = e0(), { preferences: t } = E0(), {
14736
+ const { translations: b, translate: M } = e0(), { preferences: t } = C0(), {
14732
14737
  courseId: o,
14733
14738
  courseName: z,
14734
14739
  submittedAndGradedCount: p,
@@ -14908,7 +14913,7 @@ function Hi(e, b) {
14908
14913
  return btoa(String(M));
14909
14914
  }
14910
14915
  function Vi(e = {}) {
14911
- const { executeQuery: b, currentUserId: M } = h0(), { observedUserId: t } = E0(), o = B1(), z = e.pageSize || 5;
14916
+ const { executeQuery: b, currentUserId: M } = h0(), { observedUserId: t } = C0(), o = T1(), z = e.pageSize || 5;
14912
14917
  i0(
14913
14918
  () => JSON.stringify({
14914
14919
  courseFilter: e.courseFilter,
@@ -14928,7 +14933,7 @@ function Vi(e = {}) {
14928
14933
  e.courseFilter,
14929
14934
  t ?? void 0
14930
14935
  ], O = async () => {
14931
- var v;
14936
+ var y;
14932
14937
  const h = Hi(p, z), m = await b(Gi, {
14933
14938
  userId: M,
14934
14939
  first: z,
@@ -14941,7 +14946,7 @@ function Vi(e = {}) {
14941
14946
  throw new Error(
14942
14947
  `GraphQL query failed: ${m.errors.map((T) => T.message).join(", ")}`
14943
14948
  );
14944
- if (!((v = m == null ? void 0 : m.legacyNode) != null && v.courseWorkSubmissionsConnection))
14949
+ if (!((y = m == null ? void 0 : m.legacyNode) != null && y.courseWorkSubmissionsConnection))
14945
14950
  return {
14946
14951
  submissions: [],
14947
14952
  pageInfo: {
@@ -15085,8 +15090,8 @@ const Yi = (e, b, M) => {
15085
15090
  courseFilter: c === "all" ? void 0 : c
15086
15091
  }), f = M || (d ? d.message : null), A = M ? !1 : b || n, W = (O == null ? void 0 : O.submissions) || [], h = (g) => {
15087
15092
  r(g);
15088
- }, m = (g, v) => {
15089
- a(v.value);
15093
+ }, m = (g, y) => {
15094
+ a(y.value);
15090
15095
  }, l = () => {
15091
15096
  t ? t() : q();
15092
15097
  }, R = {
@@ -15134,7 +15139,7 @@ function Y() {
15134
15139
  function Zi(e) {
15135
15140
  up = e;
15136
15141
  }
15137
- function y1(e) {
15142
+ function v1(e) {
15138
15143
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
15139
15144
  }
15140
15145
  function y2(e) {
@@ -15231,7 +15236,7 @@ function wt(e, b) {
15231
15236
  function Se(e) {
15232
15237
  wt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), _M === !1 && (_M = !0, Y.updateOffset(this), _M = !1);
15233
15238
  }
15234
- function v1(e) {
15239
+ function B1(e) {
15235
15240
  return e instanceof Se || e != null && e._isAMomentObject != null;
15236
15241
  }
15237
15242
  function Ap(e) {
@@ -15538,7 +15543,7 @@ function hs(e, b, M) {
15538
15543
  function Cb(e) {
15539
15544
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
15540
15545
  }
15541
- var Z0 = 0, J1 = 1, _1 = 2, H0 = 3, R1 = 4, e2 = 5, L2 = 6, ms = 7, Rs = 8;
15546
+ var Z0 = 0, J1 = 1, _1 = 2, H0 = 3, g1 = 4, e2 = 5, L2 = 6, ms = 7, Rs = 8;
15542
15547
  o0("Y", 0, 0, function() {
15543
15548
  var e = this.year();
15544
15549
  return e <= 9999 ? k1(e, 4) : "+" + e;
@@ -15684,10 +15689,10 @@ var vs = "January_February_March_April_May_June_July_August_September_October_No
15684
15689
  "_"
15685
15690
  ), Lp = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Np = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Bs = xe, Ts = xe;
15686
15691
  function Xs(e, b) {
15687
- return e ? y1(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Np).test(b) ? "format" : "standalone"][e.month()] : y1(this._months) ? this._months : this._months.standalone;
15692
+ return e ? v1(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Np).test(b) ? "format" : "standalone"][e.month()] : v1(this._months) ? this._months : this._months.standalone;
15688
15693
  }
15689
15694
  function ws(e, b) {
15690
- return e ? y1(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Np.test(b) ? "format" : "standalone"][e.month()] : y1(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
15695
+ return e ? v1(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Np.test(b) ? "format" : "standalone"][e.month()] : v1(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
15691
15696
  }
15692
15697
  function _s(e, b, M) {
15693
15698
  var t, o, z, p = e.toLocaleLowerCase();
@@ -15864,7 +15869,7 @@ function kt(e, b) {
15864
15869
  }
15865
15870
  var Vs = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Xp = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Ys = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), $s = xe, Ks = xe, Qs = xe;
15866
15871
  function Zs(e, b) {
15867
- var M = y1(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(b) ? "format" : "standalone"];
15872
+ var M = v1(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(b) ? "format" : "standalone"];
15868
15873
  return e === !0 ? kt(M, this._week.dow) : e ? M[e.day()] : M;
15869
15874
  }
15870
15875
  function Js(e) {
@@ -16018,19 +16023,19 @@ T0(["h", "hh"], function(e, b, M) {
16018
16023
  });
16019
16024
  T0("hmm", function(e, b, M) {
16020
16025
  var t = e.length - 2;
16021
- b[H0] = f0(e.substr(0, t)), b[R1] = f0(e.substr(t)), A0(M).bigHour = !0;
16026
+ b[H0] = f0(e.substr(0, t)), b[g1] = f0(e.substr(t)), A0(M).bigHour = !0;
16022
16027
  });
16023
16028
  T0("hmmss", function(e, b, M) {
16024
16029
  var t = e.length - 4, o = e.length - 2;
16025
- b[H0] = f0(e.substr(0, t)), b[R1] = f0(e.substr(t, 2)), b[e2] = f0(e.substr(o)), A0(M).bigHour = !0;
16030
+ b[H0] = f0(e.substr(0, t)), b[g1] = f0(e.substr(t, 2)), b[e2] = f0(e.substr(o)), A0(M).bigHour = !0;
16026
16031
  });
16027
16032
  T0("Hmm", function(e, b, M) {
16028
16033
  var t = e.length - 2;
16029
- b[H0] = f0(e.substr(0, t)), b[R1] = f0(e.substr(t));
16034
+ b[H0] = f0(e.substr(0, t)), b[g1] = f0(e.substr(t));
16030
16035
  });
16031
16036
  T0("Hmmss", function(e, b, M) {
16032
16037
  var t = e.length - 4, o = e.length - 2;
16033
- b[H0] = f0(e.substr(0, t)), b[R1] = f0(e.substr(t, 2)), b[e2] = f0(e.substr(o));
16038
+ b[H0] = f0(e.substr(0, t)), b[g1] = f0(e.substr(t, 2)), b[e2] = f0(e.substr(o));
16034
16039
  });
16035
16040
  function Ou(e) {
16036
16041
  return (e + "").toLowerCase().charAt(0) === "p";
@@ -16132,7 +16137,7 @@ function c2(e) {
16132
16137
  var b;
16133
16138
  if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
16134
16139
  return Ne;
16135
- if (!y1(e)) {
16140
+ if (!v1(e)) {
16136
16141
  if (b = Eb(e), b)
16137
16142
  return b;
16138
16143
  e = [e];
@@ -16144,7 +16149,7 @@ function qu() {
16144
16149
  }
16145
16150
  function jt(e) {
16146
16151
  var b, M = e._a;
16147
- return M && A0(e).overflow === -2 && (b = M[J1] < 0 || M[J1] > 11 ? J1 : M[_1] < 1 || M[_1] > Dt(M[Z0], M[J1]) ? _1 : M[H0] < 0 || M[H0] > 24 || M[H0] === 24 && (M[R1] !== 0 || M[e2] !== 0 || M[L2] !== 0) ? H0 : M[R1] < 0 || M[R1] > 59 ? R1 : M[e2] < 0 || M[e2] > 59 ? e2 : M[L2] < 0 || M[L2] > 999 ? L2 : -1, A0(e)._overflowDayOfYear && (b < Z0 || b > _1) && (b = _1), A0(e)._overflowWeeks && b === -1 && (b = ms), A0(e)._overflowWeekday && b === -1 && (b = Rs), A0(e).overflow = b), e;
16152
+ return M && A0(e).overflow === -2 && (b = M[J1] < 0 || M[J1] > 11 ? J1 : M[_1] < 1 || M[_1] > Dt(M[Z0], M[J1]) ? _1 : M[H0] < 0 || M[H0] > 24 || M[H0] === 24 && (M[g1] !== 0 || M[e2] !== 0 || M[L2] !== 0) ? H0 : M[g1] < 0 || M[g1] > 59 ? g1 : M[e2] < 0 || M[e2] > 59 ? e2 : M[L2] < 0 || M[L2] > 999 ? L2 : -1, A0(e)._overflowDayOfYear && (b < Z0 || b > _1) && (b = _1), A0(e)._overflowWeeks && b === -1 && (b = ms), A0(e)._overflowWeekday && b === -1 && (b = Rs), A0(e).overflow = b), e;
16148
16153
  }
16149
16154
  var fu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Wu = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, hu = /Z|[+-]\d\d(?::?\d\d)?/, Ye = [
16150
16155
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -16313,7 +16318,7 @@ function Gt(e) {
16313
16318
  e._a[b] = t[b] = o[b];
16314
16319
  for (; b < 7; b++)
16315
16320
  e._a[b] = t[b] = e._a[b] == null ? b === 2 ? 1 : 0 : e._a[b];
16316
- e._a[H0] === 24 && e._a[R1] === 0 && e._a[e2] === 0 && e._a[L2] === 0 && (e._nextDay = !0, e._a[H0] = 0), e._d = (e._useUTC ? ge : Is).apply(
16321
+ e._a[H0] === 24 && e._a[g1] === 0 && e._a[e2] === 0 && e._a[L2] === 0 && (e._nextDay = !0, e._a[H0] = 0), e._d = (e._useUTC ? ge : Is).apply(
16317
16322
  null,
16318
16323
  t
16319
16324
  ), z = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[H0] = 24), e._w && typeof e._w.d < "u" && e._w.d !== z && (A0(e).weekdayMismatch = !0);
@@ -16383,17 +16388,17 @@ function Cu(e) {
16383
16388
  }
16384
16389
  function Ep(e) {
16385
16390
  var b = e._i, M = e._f;
16386
- return e._locale = e._locale || c2(e._l), b === null || M === void 0 && b === "" ? Tb({ nullInput: !0 }) : (typeof b == "string" && (e._i = b = e._locale.preparse(b)), v1(b) ? new Se(jt(b)) : (_e(b) ? e._d = b : y1(M) ? Su(e) : M ? Ht(e) : Eu(e), Xt(e) || (e._d = null), e));
16391
+ return e._locale = e._locale || c2(e._l), b === null || M === void 0 && b === "" ? Tb({ nullInput: !0 }) : (typeof b == "string" && (e._i = b = e._locale.preparse(b)), B1(b) ? new Se(jt(b)) : (_e(b) ? e._d = b : v1(M) ? Su(e) : M ? Ht(e) : Eu(e), Xt(e) || (e._d = null), e));
16387
16392
  }
16388
16393
  function Eu(e) {
16389
16394
  var b = e._i;
16390
- c1(b) ? e._d = new Date(Y.now()) : _e(b) ? e._d = new Date(b.valueOf()) : typeof b == "string" ? Tu(e) : y1(b) ? (e._a = dp(b.slice(0), function(M) {
16395
+ c1(b) ? e._d = new Date(Y.now()) : _e(b) ? e._d = new Date(b.valueOf()) : typeof b == "string" ? Tu(e) : v1(b) ? (e._a = dp(b.slice(0), function(M) {
16391
16396
  return parseInt(M, 10);
16392
16397
  }), Gt(e)) : y2(b) ? xu(e) : o2(b) ? e._d = new Date(b) : Y.createFromInputFallback(e);
16393
16398
  }
16394
16399
  function Ip(e, b, M, t, o) {
16395
16400
  var z = {};
16396
- return (b === !0 || b === !1) && (t = b, b = void 0), (M === !0 || M === !1) && (t = M, M = void 0), (y2(e) && Tt(e) || y1(e) && e.length === 0) && (e = void 0), z._isAMomentObject = !0, z._useUTC = z._isUTC = o, z._l = M, z._i = e, z._f = b, z._strict = t, Cu(z);
16401
+ return (b === !0 || b === !1) && (t = b, b = void 0), (M === !0 || M === !1) && (t = M, M = void 0), (y2(e) && Tt(e) || v1(e) && e.length === 0) && (e = void 0), z._isAMomentObject = !0, z._useUTC = z._isUTC = o, z._l = M, z._i = e, z._f = b, z._strict = t, Cu(z);
16397
16402
  }
16398
16403
  function _0(e, b, M, t) {
16399
16404
  return Ip(e, b, M, t, !1);
@@ -16413,7 +16418,7 @@ var Iu = u1(
16413
16418
  );
16414
16419
  function Dp(e, b) {
16415
16420
  var M, t;
16416
- if (b.length === 1 && y1(b[0]) && (b = b[0]), !b.length)
16421
+ if (b.length === 1 && v1(b[0]) && (b = b[0]), !b.length)
16417
16422
  return _0();
16418
16423
  for (M = b[0], t = 1; t < b.length; ++t)
16419
16424
  (!b[t].isValid() || b[t][e](M)) && (M = b[t]);
@@ -16457,7 +16462,7 @@ function ju() {
16457
16462
  return this._isValid;
16458
16463
  }
16459
16464
  function Gu() {
16460
- return T1(NaN);
16465
+ return X1(NaN);
16461
16466
  }
16462
16467
  function Ib(e) {
16463
16468
  var b = xt(e), M = b.year || 0, t = b.quarter || 0, o = b.month || 0, z = b.week || b.isoWeek || 0, p = b.day || 0, c = b.hour || 0, a = b.minute || 0, O = b.second || 0, i = b.millisecond || 0;
@@ -16497,7 +16502,7 @@ function Vt(e, b) {
16497
16502
  }
16498
16503
  function Yt(e, b) {
16499
16504
  var M, t;
16500
- return b._isUTC ? (M = b.clone(), t = (v1(e) || _e(e) ? e.valueOf() : _0(e).valueOf()) - M.valueOf(), M._d.setTime(M._d.valueOf() + t), Y.updateOffset(M, !1), M) : _0(e).local();
16505
+ return b._isUTC ? (M = b.clone(), t = (B1(e) || _e(e) ? e.valueOf() : _0(e).valueOf()) - M.valueOf(), M._d.setTime(M._d.valueOf() + t), Y.updateOffset(M, !1), M) : _0(e).local();
16501
16506
  }
16502
16507
  function ot(e) {
16503
16508
  return -Math.round(e._d.getTimezoneOffset());
@@ -16515,7 +16520,7 @@ function Yu(e, b, M) {
16515
16520
  } else Math.abs(e) < 16 && !M && (e = e * 60);
16516
16521
  return !this._isUTC && b && (o = ot(this)), this._offset = e, this._isUTC = !0, o != null && this.add(o, "m"), t !== e && (!b || this._changeInProgress ? Fp(
16517
16522
  this,
16518
- T1(e - t, "m"),
16523
+ X1(e - t, "m"),
16519
16524
  1,
16520
16525
  !1
16521
16526
  ) : this._changeInProgress || (this._changeInProgress = !0, Y.updateOffset(this, !0), this._changeInProgress = null)), this;
@@ -16562,7 +16567,7 @@ function Pp() {
16562
16567
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
16563
16568
  }
16564
16569
  var od = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, zd = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
16565
- function T1(e, b) {
16570
+ function X1(e, b) {
16566
16571
  var M = e, t = null, o, z, p;
16567
16572
  return eb(e) ? M = {
16568
16573
  ms: e._milliseconds,
@@ -16572,7 +16577,7 @@ function T1(e, b) {
16572
16577
  y: 0,
16573
16578
  d: f0(t[_1]) * o,
16574
16579
  h: f0(t[H0]) * o,
16575
- m: f0(t[R1]) * o,
16580
+ m: f0(t[g1]) * o,
16576
16581
  s: f0(t[e2]) * o,
16577
16582
  ms: f0(tt(t[L2] * 1e3)) * o
16578
16583
  // the millisecond decimal point is included in the match
@@ -16589,8 +16594,8 @@ function T1(e, b) {
16589
16594
  _0(M.to)
16590
16595
  ), M = {}, M.ms = p.milliseconds, M.M = p.months), z = new Ib(M), eb(e) && L0(e, "_locale") && (z._locale = e._locale), eb(e) && L0(e, "_isValid") && (z._isValid = e._isValid), z;
16591
16596
  }
16592
- T1.fn = Ib.prototype;
16593
- T1.invalid = Gu;
16597
+ X1.fn = Ib.prototype;
16598
+ X1.invalid = Gu;
16594
16599
  function g2(e, b) {
16595
16600
  var M = e && parseFloat(e.replace(",", "."));
16596
16601
  return (isNaN(M) ? 0 : M) * b;
@@ -16609,7 +16614,7 @@ function Up(e, b) {
16609
16614
  return t !== null && !isNaN(+t) && (lp(
16610
16615
  b,
16611
16616
  "moment()." + b + "(period, number) is deprecated. Please use moment()." + b + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
16612
- ), z = M, M = t, t = z), o = T1(M, t), Fp(this, o, e), this;
16617
+ ), z = M, M = t, t = z), o = X1(M, t), Fp(this, o, e), this;
16613
16618
  };
16614
16619
  }
16615
16620
  function Fp(e, b, M, t) {
@@ -16621,7 +16626,7 @@ function jp(e) {
16621
16626
  return typeof e == "string" || e instanceof String;
16622
16627
  }
16623
16628
  function rd(e) {
16624
- return v1(e) || _e(e) || jp(e) || o2(e) || ad(e) || Od(e) || e === null || e === void 0;
16629
+ return B1(e) || _e(e) || jp(e) || o2(e) || ad(e) || Od(e) || e === null || e === void 0;
16625
16630
  }
16626
16631
  function Od(e) {
16627
16632
  var b = y2(e) && !Tt(e), M = !1, t = [
@@ -16655,7 +16660,7 @@ function Od(e) {
16655
16660
  return b && M;
16656
16661
  }
16657
16662
  function ad(e) {
16658
- var b = y1(e), M = !1;
16663
+ var b = v1(e), M = !1;
16659
16664
  return b && (M = e.filter(function(t) {
16660
16665
  return !o2(t) && jp(e);
16661
16666
  }).length === 0), b && M;
@@ -16688,19 +16693,19 @@ function dd() {
16688
16693
  return new Se(this);
16689
16694
  }
16690
16695
  function Ad(e, b) {
16691
- var M = v1(e) ? e : _0(e);
16696
+ var M = B1(e) ? e : _0(e);
16692
16697
  return this.isValid() && M.isValid() ? (b = d1(b) || "millisecond", b === "millisecond" ? this.valueOf() > M.valueOf() : M.valueOf() < this.clone().startOf(b).valueOf()) : !1;
16693
16698
  }
16694
16699
  function ld(e, b) {
16695
- var M = v1(e) ? e : _0(e);
16700
+ var M = B1(e) ? e : _0(e);
16696
16701
  return this.isValid() && M.isValid() ? (b = d1(b) || "millisecond", b === "millisecond" ? this.valueOf() < M.valueOf() : this.clone().endOf(b).valueOf() < M.valueOf()) : !1;
16697
16702
  }
16698
16703
  function qd(e, b, M, t) {
16699
- var o = v1(e) ? e : _0(e), z = v1(b) ? b : _0(b);
16704
+ var o = B1(e) ? e : _0(e), z = B1(b) ? b : _0(b);
16700
16705
  return this.isValid() && o.isValid() && z.isValid() ? (t = t || "()", (t[0] === "(" ? this.isAfter(o, M) : !this.isBefore(o, M)) && (t[1] === ")" ? this.isBefore(z, M) : !this.isAfter(z, M))) : !1;
16701
16706
  }
16702
16707
  function fd(e, b) {
16703
- var M = v1(e) ? e : _0(e), t;
16708
+ var M = B1(e) ? e : _0(e), t;
16704
16709
  return this.isValid() && M.isValid() ? (b = d1(b) || "millisecond", b === "millisecond" ? this.valueOf() === M.valueOf() : (t = M.valueOf(), this.clone().startOf(b).valueOf() <= t && t <= this.clone().endOf(b).valueOf())) : !1;
16705
16710
  }
16706
16711
  function Wd(e, b) {
@@ -16780,13 +16785,13 @@ function Nd(e) {
16780
16785
  return this.localeData().postformat(b);
16781
16786
  }
16782
16787
  function yd(e, b) {
16783
- return this.isValid() && (v1(e) && e.isValid() || _0(e).isValid()) ? T1({ to: this, from: e }).locale(this.locale()).humanize(!b) : this.localeData().invalidDate();
16788
+ return this.isValid() && (B1(e) && e.isValid() || _0(e).isValid()) ? X1({ to: this, from: e }).locale(this.locale()).humanize(!b) : this.localeData().invalidDate();
16784
16789
  }
16785
16790
  function vd(e) {
16786
16791
  return this.from(_0(), e);
16787
16792
  }
16788
16793
  function Bd(e, b) {
16789
- return this.isValid() && (v1(e) && e.isValid() || _0(e).isValid()) ? T1({ from: this, to: e }).locale(this.locale()).humanize(!b) : this.localeData().invalidDate();
16794
+ return this.isValid() && (B1(e) && e.isValid() || _0(e).isValid()) ? X1({ from: this, to: e }).locale(this.locale()).humanize(!b) : this.localeData().invalidDate();
16790
16795
  }
16791
16796
  function Td(e) {
16792
16797
  return this.to(_0(), e);
@@ -17211,7 +17216,7 @@ function OA(e) {
17211
17216
  o0("m", ["mm", 2], 0, "minute");
17212
17217
  J("m", S0, It);
17213
17218
  J("mm", S0, O1);
17214
- T0(["m", "mm"], R1);
17219
+ T0(["m", "mm"], g1);
17215
17220
  var aA = Me("Minutes", !1);
17216
17221
  o0("s", ["ss", 2], 0, "second");
17217
17222
  J("s", S0, It);
@@ -17480,7 +17485,7 @@ function RA() {
17480
17485
  return this._milliseconds = $1(this._milliseconds), this._days = $1(this._days), this._months = $1(this._months), e.milliseconds = $1(e.milliseconds), e.seconds = $1(e.seconds), e.minutes = $1(e.minutes), e.hours = $1(e.hours), e.months = $1(e.months), e.years = $1(e.years), this;
17481
17486
  }
17482
17487
  function Mn(e, b, M, t) {
17483
- var o = T1(b, M);
17488
+ var o = X1(b, M);
17484
17489
  return e._milliseconds += t * o._milliseconds, e._days += t * o._days, e._months += t * o._months, e._bubble();
17485
17490
  }
17486
17491
  function gA(e, b) {
@@ -17540,7 +17545,7 @@ function p2(e) {
17540
17545
  }
17541
17546
  var on = p2("ms"), vA = p2("s"), BA = p2("m"), TA = p2("h"), XA = p2("d"), wA = p2("w"), _A = p2("M"), SA = p2("Q"), xA = p2("y"), CA = on;
17542
17547
  function EA() {
17543
- return T1(this);
17548
+ return X1(this);
17544
17549
  }
17545
17550
  function IA(e) {
17546
17551
  return e = d1(e), this.isValid() ? this[e + "s"]() : NaN;
@@ -17574,7 +17579,7 @@ function VA(e, b, M, t, o) {
17574
17579
  return o.relativeTime(b || 1, !!M, e, t);
17575
17580
  }
17576
17581
  function YA(e, b, M, t) {
17577
- var o = T1(e).abs(), z = Q1(o.as("s")), p = Q1(o.as("m")), c = Q1(o.as("h")), a = Q1(o.as("d")), O = Q1(o.as("M")), i = Q1(o.as("w")), u = Q1(o.as("y")), r = z <= M.ss && ["s", z] || z < M.s && ["ss", z] || p <= 1 && ["m"] || p < M.m && ["mm", p] || c <= 1 && ["h"] || c < M.h && ["hh", c] || a <= 1 && ["d"] || a < M.d && ["dd", a];
17582
+ var o = X1(e).abs(), z = Q1(o.as("s")), p = Q1(o.as("m")), c = Q1(o.as("h")), a = Q1(o.as("d")), O = Q1(o.as("M")), i = Q1(o.as("w")), u = Q1(o.as("y")), r = z <= M.ss && ["s", z] || z < M.s && ["ss", z] || p <= 1 && ["m"] || p < M.m && ["mm", p] || c <= 1 && ["h"] || c < M.h && ["hh", c] || a <= 1 && ["d"] || a < M.d && ["dd", a];
17578
17583
  return M.w != null && (r = r || i <= 1 && ["w"] || i < M.w && ["ww", i]), r = r || O <= 1 && ["M"] || O < M.M && ["MM", O] || u <= 1 && ["y"] || ["yy", u], r[2] = b, r[3] = +e > 0, r[4] = t, VA.apply(null, r);
17579
17584
  }
17580
17585
  function $A(e) {
@@ -17660,8 +17665,8 @@ Y.months = qA;
17660
17665
  Y.isDate = _e;
17661
17666
  Y.locale = i2;
17662
17667
  Y.invalid = Tb;
17663
- Y.duration = T1;
17664
- Y.isMoment = v1;
17668
+ Y.duration = X1;
17669
+ Y.isMoment = B1;
17665
17670
  Y.weekdays = WA;
17666
17671
  Y.parseZone = lA;
17667
17672
  Y.localeData = c2;
@@ -17818,7 +17823,7 @@ function b4() {
17818
17823
  E = new l(new Date(N.at + G)), E.offset === N.offset ? N = E : _ = E;
17819
17824
  return N;
17820
17825
  }
17821
- function v() {
17826
+ function y() {
17822
17827
  var N = (/* @__PURE__ */ new Date()).getFullYear() - 2, _ = new l(new Date(N, 0, 1)), E = _.offset, G = [_], r0, R0, p0, b0;
17823
17828
  for (b0 = 1; b0 < 48; b0++)
17824
17829
  p0 = new Date(N, b0, 1).getTimezoneOffset(), p0 !== E && (R0 = new l(new Date(N, b0, 1)), r0 = g(_, R0), G.push(r0), G.push(new l(new Date(r0.at + 6e4))), _ = R0, E = p0);
@@ -17834,7 +17839,7 @@ function b4() {
17834
17839
  for (d(_), E = 0; E < _.length; E++)
17835
17840
  G = _[E], c[G] = c[G] || {}, c[G][N] = !0;
17836
17841
  }
17837
- function y(N) {
17842
+ function v(N) {
17838
17843
  var _ = N.length, E = {}, G = [], r0 = {}, R0, p0, b0, X0;
17839
17844
  for (R0 = 0; R0 < _; R0++)
17840
17845
  if (b0 = N[R0].offset, !r0.hasOwnProperty(b0)) {
@@ -17858,7 +17863,7 @@ function b4() {
17858
17863
  }
17859
17864
  } catch {
17860
17865
  }
17861
- var E = v(), G = E.length, r0 = y(E), R0 = [], p0, b0, X0;
17866
+ var E = y(), G = E.length, r0 = v(E), R0 = [], p0, b0, X0;
17862
17867
  for (b0 = 0; b0 < r0.length; b0++) {
17863
17868
  for (p0 = new R(Z(r0[b0])), X0 = 0; X0 < G; X0++)
17864
17869
  p0.scoreOffsetAt(E[X0]);
@@ -18010,15 +18015,15 @@ const EM = /* @__PURE__ */ qc(n4), $e = 255, IM = 1e4, r4 = ({
18010
18015
  todo_date: (u == null ? void 0 : u.toISOString()) || (/* @__PURE__ */ new Date()).toISOString(),
18011
18016
  details: n.trim() || void 0,
18012
18017
  course_id: q
18013
- }), v());
18014
- }, v = () => {
18018
+ }), y());
18019
+ }, y = () => {
18015
18020
  i(""), r(EM.tz(p).endOf("day")), d(""), f(void 0), W(""), m(""), R("");
18016
18021
  }, T = () => {
18017
- v(), b();
18022
+ y(), b();
18018
18023
  }, B = (U, $) => {
18019
18024
  const O0 = $ || "";
18020
18025
  r(EM.tz(O0, p)), h && O0 && m("");
18021
- }, y = (U, $) => {
18026
+ }, v = (U, $) => {
18022
18027
  const O0 = typeof $.value == "string" ? $.value : void 0;
18023
18028
  O0 && f(O0 === "none" ? void 0 : O0);
18024
18029
  }, X = (U, $) => U ? a(c.invalidDate, { date: U }) : c.youMustProvideDateTime, S = O.trim().length > 0 && u && u.isValid(), k = {
@@ -18052,7 +18057,7 @@ const EM = /* @__PURE__ */ qc(n4), $e = 255, IM = 1e4, r4 = ({
18052
18057
  interaction: t ? "disabled" : "enabled"
18053
18058
  }
18054
18059
  ),
18055
- /* @__PURE__ */ s(L1, { children: c.addToDo })
18060
+ /* @__PURE__ */ s(N1, { children: c.addToDo })
18056
18061
  ] }),
18057
18062
  /* @__PURE__ */ s(Q0.Body, { children: /* @__PURE__ */ w(L, { direction: "column", gap: "medium", children: [
18058
18063
  /* @__PURE__ */ s(L.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ s(
@@ -18096,7 +18101,7 @@ const EM = /* @__PURE__ */ qc(n4), $e = 255, IM = 1e4, r4 = ({
18096
18101
  assistiveText: c.useArrowKeysToNavigate,
18097
18102
  "data-testid": "create-todo-course-select",
18098
18103
  value: Z,
18099
- onChange: y,
18104
+ onChange: v,
18100
18105
  interaction: t ? "disabled" : "enabled",
18101
18106
  children: [k, ...C].map((U) => /* @__PURE__ */ s(g0.Option, { id: U.value, value: U.value, children: U.label }, U.value))
18102
18107
  }
@@ -18241,9 +18246,9 @@ function u4(e = {}) {
18241
18246
  F0(() => {
18242
18247
  f && (O([f.items]), u([f.nextUrl]));
18243
18248
  }, [f]), F0(() => {
18244
- const B = p, y = B - 1;
18245
- if (B >= a.length && y >= 0 && y < i.length && i[y]) {
18246
- const X = i[y];
18249
+ const B = p, v = B - 1;
18250
+ if (B >= a.length && v >= 0 && v < i.length && i[v]) {
18251
+ const X = i[v];
18247
18252
  !r && d.current !== B && (d.current = B, n(!0), Kz(q, X).then((S) => {
18248
18253
  O((k) => {
18249
18254
  const C = [...k];
@@ -18263,7 +18268,7 @@ function u4(e = {}) {
18263
18268
  c(0);
18264
18269
  }, []), R = Q(() => {
18265
18270
  O([]), u([]), c(0), d.current = null, h();
18266
- }, [h]), g = a[p] || [], v = p < i.length && !!i[p], T = a.length + (v ? 1 : 0);
18271
+ }, [h]), g = a[p] || [], y = p < i.length && !!i[p], T = a.length + (y ? 1 : 0);
18267
18272
  return {
18268
18273
  currentPage: g,
18269
18274
  currentPageIndex: p,
@@ -18276,7 +18281,7 @@ function u4(e = {}) {
18276
18281
  };
18277
18282
  }
18278
18283
  function d4() {
18279
- const e = B1();
18284
+ const e = T1();
18280
18285
  return C1({
18281
18286
  mutationFn: (b) => s4(b),
18282
18287
  onSuccess: () => {
@@ -18285,7 +18290,7 @@ function d4() {
18285
18290
  });
18286
18291
  }
18287
18292
  function A4() {
18288
- const e = B1(), { translations: b } = e0(), M = C1({
18293
+ const e = T1(), { translations: b } = e0(), M = C1({
18289
18294
  mutationFn: async ({ item: t, markedComplete: o }) => t.planner_override ? i4(t.planner_override.id, {
18290
18295
  marked_complete: o
18291
18296
  }) : a4({
@@ -18452,10 +18457,10 @@ const m4 = ({ widget: e, isEditMode: b = !1 }) => {
18452
18457
  ), i = i0(() => {
18453
18458
  const B = /* @__PURE__ */ new Date();
18454
18459
  B.setDate(B.getDate() - 14);
18455
- const y = /* @__PURE__ */ new Date();
18456
- return y.setFullYear(y.getFullYear() + 1), {
18460
+ const v = /* @__PURE__ */ new Date();
18461
+ return v.setFullYear(v.getFullYear() + 1), {
18457
18462
  startDate: B.toISOString(),
18458
- endDate: y.toISOString()
18463
+ endDate: v.toISOString()
18459
18464
  };
18460
18465
  }, []), {
18461
18466
  currentPage: u,
@@ -18475,7 +18480,7 @@ const m4 = ({ widget: e, isEditMode: b = !1 }) => {
18475
18480
  ob.useEffect(() => {
18476
18481
  W();
18477
18482
  }, [W]);
18478
- const { mutate: h, isPending: m } = d4(), { sharedCourseData: l } = E0(), R = (B) => {
18483
+ const { mutate: h, isPending: m } = d4(), { sharedCourseData: l } = C0(), R = (B) => {
18479
18484
  h(B, {
18480
18485
  onSuccess: () => {
18481
18486
  c(!1), Qz({
@@ -18497,14 +18502,14 @@ const m4 = ({ widget: e, isEditMode: b = !1 }) => {
18497
18502
  is_student: !0
18498
18503
  })),
18499
18504
  [l]
18500
- ), v = z || Intl.DateTimeFormat().resolvedOptions().timeZone, T = () => /* @__PURE__ */ w(I, { as: "div", children: [
18505
+ ), y = z || Intl.DateTimeFormat().resolvedOptions().timeZone, T = () => /* @__PURE__ */ w(I, { as: "div", children: [
18501
18506
  /* @__PURE__ */ s(I, { as: "div", padding: "small 0", borderWidth: "0 0 small 0", children: /* @__PURE__ */ w(
18502
18507
  g0,
18503
18508
  {
18504
18509
  renderLabel: M.filter,
18505
18510
  value: a,
18506
- onChange: (B, { value: y }) => {
18507
- O(y);
18511
+ onChange: (B, { value: v }) => {
18512
+ O(v);
18508
18513
  },
18509
18514
  width: "200px",
18510
18515
  "data-testid": "todo-filter-select",
@@ -18547,7 +18552,7 @@ const m4 = ({ widget: e, isEditMode: b = !1 }) => {
18547
18552
  isCreating: m,
18548
18553
  courses: g,
18549
18554
  locale: o,
18550
- timeZone: v
18555
+ timeZone: y
18551
18556
  }
18552
18557
  )
18553
18558
  ] });
@@ -18716,7 +18721,7 @@ function B4({
18716
18721
  pageSize: d,
18717
18722
  accountIds: r,
18718
18723
  ...n
18719
- }), g = (q == null ? void 0 : q.items) || [], v = M || l, T = t || (R == null ? void 0 : R.message) || null, B = o || (() => m()), y = Q(
18724
+ }), g = (q == null ? void 0 : q.items) || [], y = M || l, T = t || (R == null ? void 0 : R.message) || null, B = o || (() => m()), v = Q(
18720
18725
  (S, k) => {
18721
18726
  k.value && typeof k.value == "string" && (O(k.value), h());
18722
18727
  },
@@ -18732,7 +18737,7 @@ function B4({
18732
18737
  {
18733
18738
  widget: e,
18734
18739
  isEditMode: b,
18735
- isLoading: v,
18740
+ isLoading: y,
18736
18741
  error: T ? z.failedToLoadCourseWork : null,
18737
18742
  onRetry: B,
18738
18743
  pagination: {
@@ -18748,7 +18753,7 @@ function B4({
18748
18753
  {
18749
18754
  selectedTimeFilter: a,
18750
18755
  selectedAccountId: c ? i : void 0,
18751
- onTimeFilterChange: y,
18756
+ onTimeFilterChange: v,
18752
18757
  onAccountChange: c ? X : void 0
18753
18758
  }
18754
18759
  ) }),
@@ -18842,11 +18847,15 @@ const T4 = {
18842
18847
  description: "View upcoming assignments and tasks across all accounts"
18843
18848
  }
18844
18849
  }, X4 = ({ widget: e, ...b }) => {
18845
- const M = T4[e.type];
18846
- if (!M)
18850
+ const { customWidgets: M } = C0(), t = M[e.type], o = T4[e.type];
18851
+ t && o && console.warn(
18852
+ `Widget type "${e.type}" is registered in both customWidgets and the built-in registry. customWidgets takes precedence.`
18853
+ );
18854
+ const z = t ?? o;
18855
+ if (!z)
18847
18856
  return console.warn(`Widget type "${e.type}" not found in registry`), null;
18848
- const t = M.component;
18849
- return /* @__PURE__ */ s(t, { widget: e, ...b });
18857
+ const p = z.component;
18858
+ return /* @__PURE__ */ s(p, { widget: e, ...b });
18850
18859
  }, w4 = ({
18851
18860
  config: e,
18852
18861
  isEditMode: b
@@ -18862,7 +18871,7 @@ const T4 = {
18862
18871
  };
18863
18872
  var tc;
18864
18873
  const S4 = typeof window < "u" && ((tc = window.ENV) == null ? void 0 : tc.FEATURES), x4 = () => {
18865
- const { preferences: e } = E0(), { translations: b } = e0(), { currentTab: M, handleTabChange: t } = Jr(
18874
+ const { preferences: e } = C0(), { translations: b } = e0(), { currentTab: M, handleTabChange: t } = Jr(
18866
18875
  (e == null ? void 0 : e.learner_dashboard_tab_selection) || I2.DASHBOARD
18867
18876
  ), o = [
18868
18877
  {
@@ -19027,7 +19036,7 @@ function j4({
19027
19036
  screenReaderLabel: o.close
19028
19037
  }
19029
19038
  ),
19030
- /* @__PURE__ */ s(L1, { children: o.addStudentModalTitle })
19039
+ /* @__PURE__ */ s(N1, { children: o.addStudentModalTitle })
19031
19040
  ] }),
19032
19041
  /* @__PURE__ */ w(Q0.Body, { children: [
19033
19042
  /* @__PURE__ */ s(P, { children: o.addStudentModalDescription }),
@@ -19064,7 +19073,7 @@ function G4(e) {
19064
19073
  }));
19065
19074
  }
19066
19075
  function H4() {
19067
- const { observedUsersList: e, canAddObservee: b, currentUser: M, currentUserRoles: t } = E0(), { translations: o, translate: z } = e0(), [p] = H(() => G4(e)), [c, a] = H(""), [O, i] = H(null), [u, r] = H(!1), [n, d] = H(null), q = i0(() => P4(), []), f = Q(
19076
+ const { observedUsersList: e, canAddObservee: b, currentUser: M, currentUserRoles: t } = C0(), { translations: o, translate: z } = e0(), [p] = H(() => G4(e)), [c, a] = H(""), [O, i] = H(null), [u, r] = H(!1), [n, d] = H(null), q = i0(() => P4(), []), f = Q(
19068
19077
  (R) => {
19069
19078
  a(R.name), i(R), M && (q(R.id), Jz(M.id, R.id));
19070
19079
  },
@@ -19072,13 +19081,13 @@ function H4() {
19072
19081
  );
19073
19082
  F0(() => {
19074
19083
  if (p.length > 0 && M) {
19075
- const R = k4(M.id), g = p.find((v) => v.id === R);
19084
+ const R = k4(M.id), g = p.find((y) => y.id === R);
19076
19085
  f(g || p[0]);
19077
19086
  }
19078
19087
  }, []);
19079
19088
  const A = Q(
19080
19089
  (R) => {
19081
- const g = p.find((v) => v.id === R);
19090
+ const g = p.find((y) => y.id === R);
19082
19091
  g && f(g);
19083
19092
  },
19084
19093
  [p, f]
@@ -19173,7 +19182,7 @@ function H4() {
19173
19182
  ) }) : null : null;
19174
19183
  }
19175
19184
  const eq = () => {
19176
- const { translations: e } = e0(), { dashboardFeatures: b } = E0(), { isMobile: M, isDesktop: t } = z2(), {
19185
+ const { translations: e } = e0(), { dashboardFeatures: b } = C0(), { isMobile: M, isDesktop: t } = z2(), {
19177
19186
  isEditMode: o,
19178
19187
  isDirty: z,
19179
19188
  isSaving: p,
@@ -19212,7 +19221,7 @@ const eq = () => {
19212
19221
  }
19213
19222
  ),
19214
19223
  /* @__PURE__ */ s(L, { margin: "0 0 medium", alignItems: "center", children: /* @__PURE__ */ s(L.Item, { shouldGrow: !0, children: /* @__PURE__ */ w(L, { gap: "small", direction: M ? "column" : "row", alignItems: "center", children: [
19215
- /* @__PURE__ */ s(L.Item, { shouldGrow: !0, children: /* @__PURE__ */ s(L1, { level: "h1", margin: "0", "data-testid": "dashboard-heading", children: e.dashboard }) }),
19224
+ /* @__PURE__ */ s(L.Item, { shouldGrow: !0, children: /* @__PURE__ */ s(N1, { level: "h1", margin: "0", "data-testid": "dashboard-heading", children: e.dashboard }) }),
19216
19225
  d && t && (o ? /* @__PURE__ */ w(f2, { children: [
19217
19226
  /* @__PURE__ */ s(L.Item, { children: /* @__PURE__ */ s(
19218
19227
  V0,
@@ -19476,8 +19485,8 @@ export {
19476
19485
  U3 as useRenderSlots,
19477
19486
  z2 as useResponsiveContext,
19478
19487
  e0 as useTranslations,
19479
- E0 as useWidgetDashboard,
19488
+ C0 as useWidgetDashboard,
19480
19489
  at as useWidgetDashboardEdit,
19481
19490
  mb as useWidgetLayout,
19482
- X1 as widgetDashboardDefaultProps
19491
+ l1 as widgetDashboardDefaultProps
19483
19492
  };