@pie-element/match 12.1.2-next.17 → 12.1.2-next.19

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dist-C4gh2n2Z.js","names":[],"sources":["../../../../../shared/lodash/dist/index.js"],"sourcesContent":["//#region src/index.ts\nvar e = Object.prototype;\nfunction t(e) {\n\treturn typeof e == \"object\" && !!e;\n}\nfunction n(e) {\n\treturn Array.isArray(e) ? e : typeof e == \"number\" ? [e] : e.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\").filter(Boolean);\n}\nfunction r(e) {\n\treturn (t) => x(t, e);\n}\nfunction i(e) {\n\treturn (n) => t(n) ? Object.entries(e).every(([e, t]) => A(n[e], t)) : !1;\n}\nfunction a(e) {\n\treturn typeof e == \"function\" ? e : typeof e == \"string\" ? r(e) : t(e) ? i(e) : ((e) => e);\n}\nfunction o(e, ...t) {\n\treturn Object.assign(e, ...t.filter(Boolean));\n}\nfunction s(e, t = 1) {\n\tif (!e?.length || t < 1) return [];\n\tlet n = [];\n\tfor (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));\n\treturn n;\n}\nfunction c(e) {\n\treturn Array.isArray(e) ? e.slice() : t(e) ? { ...e } : e;\n}\nfunction l(e) {\n\tif (!t(e)) return e;\n\tif (e instanceof Date) return new Date(e.getTime());\n\tif (Array.isArray(e)) return e.map((e) => l(e));\n\tlet n = {};\n\tfor (let [t, r] of Object.entries(e)) n[t] = l(r);\n\treturn n;\n}\nfunction u(e) {\n\treturn (e ?? []).filter(Boolean);\n}\nfunction d(e, ...t) {\n\tlet n = [...e ?? []];\n\tfor (let e of t) Array.isArray(e) ? n.push(...e) : n.push(e);\n\treturn n;\n}\nfunction f(e, t = 0, n = {}) {\n\tlet r, i, a, o, s, c = n.leading === !0, l = n.trailing !== !1, u = () => {\n\t\tif (!a) return s;\n\t\tlet t = a, n = o;\n\t\treturn a = void 0, o = void 0, s = e.apply(n, t), s;\n\t}, d = () => {\n\t\tr && clearTimeout(r), i && clearTimeout(i), r = void 0, i = void 0, a = void 0, o = void 0;\n\t}, f = function(...e) {\n\t\tlet d = c && !r;\n\t\treturn a = e, o = this, d && u(), r && clearTimeout(r), r = setTimeout(() => {\n\t\t\tr = void 0, i &&= (clearTimeout(i), void 0), l ? u() : (a = void 0, o = void 0);\n\t\t}, t), n.maxWait !== void 0 && !i && (i = setTimeout(() => {\n\t\t\tr && clearTimeout(r), r = void 0, i = void 0, l || !c ? u() : (a = void 0, o = void 0);\n\t\t}, n.maxWait)), s;\n\t};\n\treturn f.cancel = d, f.flush = () => (r &&= (clearTimeout(r), void 0), i &&= (clearTimeout(i), void 0), u()), f;\n}\nfunction p(e, ...t) {\n\tfor (let n of t) if (n) for (let [t, r] of Object.entries(n)) e[t] === void 0 && (e[t] = r);\n\treturn e;\n}\nfunction m(e, ...t) {\n\tlet n = new Set(t.flat());\n\treturn (e ?? []).filter((e) => !n.has(e));\n}\nfunction h(e, t, n) {\n\treturn (e ?? []).filter((e) => !(t ?? []).some((t) => n(e, t)));\n}\nfunction g(e, t) {\n\tlet n = a(t), r = Array.isArray(e) ? e.entries() : Object.entries(e ?? {});\n\tfor (let [t, i] of r) if (!n(i, t, e)) return !1;\n\treturn !0;\n}\nfunction ee(e) {\n\treturn String(e).replace(/&/g, \"&amp;\").replace(/</g, \"&lt;\").replace(/>/g, \"&gt;\").replace(/\"/g, \"&quot;\").replace(/'/g, \"&#39;\");\n}\nfunction _(e, t) {\n\tlet n = a(t), r = Array.isArray(e) ? e.entries() : Object.entries(e ?? {});\n\tfor (let [t, i] of r) if (n(i, t, e)) return i;\n}\nfunction v(e, t) {\n\tlet n = a(t);\n\tfor (let [t, r] of Object.entries(e ?? {})) if (n(r, t, e)) return t;\n}\nfunction y(e) {\n\tlet t = [];\n\tfor (let n of e ?? []) Array.isArray(n) ? t.push(...n) : t.push(n);\n\treturn t;\n}\nfunction te(e, t) {\n\treturn R(e, t).flat();\n}\nfunction b(e, t) {\n\tlet n = Array.isArray(e) ? e.entries() : Object.entries(e ?? {});\n\tfor (let [r, i] of n) t(i, r, e);\n\treturn e;\n}\nfunction x(e, t, r) {\n\tif (!Array.isArray(t) && e != null && Object.prototype.hasOwnProperty.call(Object(e), t)) {\n\t\tlet n = e[t];\n\t\treturn n === void 0 ? r : n;\n\t}\n\tlet i = e;\n\tfor (let e of n(t)) {\n\t\tif (i == null) return r;\n\t\ti = i[e];\n\t}\n\treturn i === void 0 ? r : i;\n}\nfunction S(e, t) {\n\tlet n = a(t);\n\treturn K(e, (t, r, i) => {\n\t\tlet a = String(n(r, i, e));\n\t\treturn (t[a] ??= []).push(r), t;\n\t}, {});\n}\nfunction C(e) {\n\treturn e?.[0];\n}\nfunction w(e) {\n\treturn (e ?? []).slice(0, -1);\n}\nfunction T(e, t) {\n\treturn typeof e == \"string\" ? e.includes(String(t)) : Array.isArray(e) ? e.includes(t) : Object.values(e ?? {}).includes(t);\n}\nfunction E(...e) {\n\tlet [t, ...n] = e;\n\treturn $((t ?? []).filter((e) => n.every((t) => (t ?? []).includes(e))));\n}\nfunction D(e) {\n\treturn Array.isArray(e);\n}\nfunction O(e) {\n\treturn e == null ? !0 : typeof e == \"string\" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : !t(e) || Object.keys(e).length === 0;\n}\nfunction k(n, r, i) {\n\tlet a = i?.(n, r);\n\tif (a !== void 0) return !!a;\n\tif (Object.is(n, r)) return !0;\n\tif (!t(n) || !t(r)) return !1;\n\tif (n instanceof Date || r instanceof Date) return n instanceof Date && r instanceof Date && n.getTime() === r.getTime();\n\tif (Array.isArray(n) || Array.isArray(r)) return Array.isArray(n) && Array.isArray(r) && n.length === r.length && n.every((e, t) => k(e, r[t], i));\n\tlet o = Object.keys(n), s = Object.keys(r);\n\treturn o.length === s.length && o.every((t) => e.hasOwnProperty.call(r, t) && k(n[t], r[t], i));\n}\nfunction A(e, t) {\n\treturn k(e, t);\n}\nfunction j(e, t, n) {\n\treturn k(e, t, n);\n}\nfunction M(e) {\n\treturn Number.isFinite(e);\n}\nfunction N(e) {\n\treturn typeof e == \"function\";\n}\nfunction P(e) {\n\treturn typeof e == \"number\" || e instanceof Number;\n}\nfunction F(e) {\n\treturn typeof e == \"object\" && !!e || typeof e == \"function\";\n}\nfunction I(e) {\n\treturn typeof e == \"string\" || e instanceof String;\n}\nfunction L(e) {\n\treturn e === void 0;\n}\nfunction R(e, t) {\n\tlet n = a(t), r = Array.isArray(e) ? e.entries() : Object.entries(e ?? {}), i = [];\n\tfor (let [t, a] of r) i.push(n(a, t, e));\n\treturn i;\n}\nfunction z(e) {\n\treturn e?.length ? Math.max(...e) : void 0;\n}\nfunction B(e, ...n) {\n\tfor (let r of n) if (r) for (let [n, i] of Object.entries(r)) t(i) && !Array.isArray(i) && t(e[n]) ? B(e[n], i) : e[n] = l(i);\n\treturn e;\n}\nfunction V(e, t) {\n\tlet n = { ...e ?? {} };\n\tfor (let e of Array.isArray(t) ? t : [t]) delete n[e];\n\treturn n;\n}\nfunction H(e, t) {\n\tlet n = a(t), r = {};\n\tfor (let [t, i] of Object.entries(e ?? {})) n(i, t, e) || (r[t] = i);\n\treturn r;\n}\nfunction U(e, ...t) {\n\tlet n = {};\n\tfor (let r of t.flat()) e && r in e && (n[r] = e[r]);\n\treturn n;\n}\nfunction W(e, t, n = 1) {\n\tlet r = t ?? e, i = t === void 0 ? 0 : e;\n\tif (n === 0) return [];\n\tlet a = [], o = n > 0;\n\tfor (let e = i; o ? e < r : e > r; e += n) a.push(e);\n\treturn a;\n}\nfunction G(e, t, n = 1) {\n\treturn W(e, t, n).reverse();\n}\nfunction K(e, t, n) {\n\tlet r = n, i = Array.isArray(e) ? e.entries() : Object.entries(e ?? {});\n\tfor (let [n, a] of i) r = t(r, a, n, e);\n\treturn r;\n}\nfunction q(e, t) {\n\tlet n = a(t), r = [];\n\tfor (let t = e.length - 1; t >= 0; t--) n(e[t], t, e) && r.unshift(...e.splice(t, 1));\n\treturn r;\n}\nfunction J(e, t, r) {\n\tlet i = n(t), a = e;\n\treturn i.forEach((e, t) => {\n\t\tif (t === i.length - 1) {\n\t\t\ta[e] = r;\n\t\t\treturn;\n\t\t}\n\t\tlet n = i[t + 1];\n\t\ta[e] ??= typeof n == \"number\" || /^\\d+$/.test(String(n)) ? [] : {}, a = a[e];\n\t}), e;\n}\nfunction Y(e) {\n\tlet t = [...e ?? []];\n\tfor (let e = t.length - 1; e > 0; e--) {\n\t\tlet n = Math.floor(Math.random() * (e + 1));\n\t\t[t[e], t[n]] = [t[n], t[e]];\n\t}\n\treturn t;\n}\nfunction X(e) {\n\treturn (e ?? []).slice(1);\n}\nfunction Z(e, t = 1) {\n\treturn t <= 0 ? [] : (e ?? []).slice(-t);\n}\nfunction Q(e, t = 0, n = {}) {\n\treturn f(e, t, {\n\t\tleading: n.leading !== !1,\n\t\ttrailing: n.trailing !== !1,\n\t\tmaxWait: t\n\t});\n}\nfunction ne(e, t) {\n\tlet n = t ?? ((e) => e);\n\treturn Array.from({ length: Math.max(0, e) }, (e, t) => n(t));\n}\nvar re = 0;\nfunction ie(e = \"\") {\n\treturn re += 1, `${e}${re}`;\n}\nfunction $(e) {\n\treturn e != null && e.length ? Array.from(new Set(Array.from(e))) : [];\n}\nfunction ae(e, t) {\n\tlet n = [];\n\tfor (let r of e ?? []) n.some((e) => t(r, e)) || n.push(r);\n\treturn n;\n}\nfunction oe(...e) {\n\tlet t = Math.max(0, ...e.map((e) => e.length));\n\treturn Array.from({ length: t }, (t, n) => e.map((e) => e[n]));\n}\nvar se = {\n\tassign: o,\n\tchunk: s,\n\tclone: c,\n\tcloneDeep: l,\n\tcompact: u,\n\tconcat: d,\n\tdebounce: f,\n\tdefaults: p,\n\tdifference: m,\n\tdifferenceWith: h,\n\tevery: g,\n\tescape: ee,\n\tfind: _,\n\tfindKey: v,\n\tflatten: y,\n\tflatMap: te,\n\tforEach: b,\n\tget: x,\n\tgroupBy: S,\n\thead: C,\n\tincludes: T,\n\tinitial: w,\n\tintersection: E,\n\tisArray: D,\n\tisEmpty: O,\n\tisEqual: A,\n\tisEqualWith: j,\n\tisFinite: M,\n\tisFunction: N,\n\tisNumber: P,\n\tisObject: F,\n\tisString: I,\n\tisUndefined: L,\n\tmap: R,\n\tmax: z,\n\tmerge: B,\n\tomit: V,\n\tomitBy: H,\n\tpick: U,\n\trange: W,\n\trangeRight: G,\n\treduce: K,\n\tremove: q,\n\tset: J,\n\tshuffle: Y,\n\ttail: X,\n\ttakeRight: Z,\n\tthrottle: Q,\n\ttimes: ne,\n\tuniqueId: ie,\n\tuniq: $,\n\tuniqWith: ae,\n\tzip: oe\n};\n//#endregion\nexport { o as assign, s as chunk, c as clone, l as cloneDeep, u as compact, d as concat, f as debounce, se as default, p as defaults, m as difference, h as differenceWith, ee as escape, g as every, _ as find, v as findKey, te as flatMap, y as flatten, b as forEach, x as get, S as groupBy, C as head, T as includes, w as initial, E as intersection, D as isArray, O as isEmpty, A as isEqual, j as isEqualWith, M as isFinite, N as isFunction, P as isNumber, F as isObject, I as isString, L as isUndefined, R as map, z as max, B as merge, V as omit, H as omitBy, U as pick, W as range, G as rangeRight, K as reduce, q as remove, J as set, Y as shuffle, X as tail, Z as takeRight, Q as throttle, ne as times, $ as uniq, ae as uniqWith, ie as uniqueId, oe as zip };\n"],"mappings":";AACA,IAAI,IAAI,OAAO;AACf,SAAS,EAAE,GAAG;CACb,OAAO,OAAO,KAAK,YAAY,CAAC,CAAC;AAClC;AACA,SAAS,EAAE,GAAG;CACb,OAAO,MAAM,QAAQ,CAAC,IAAI,IAAI,OAAO,KAAK,WAAW,CAAC,CAAC,IAAI,EAAE,QAAQ,cAAc,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO;AACpH;AAsBA,SAAS,EAAE,GAAG;CACb,IAAI,CAAC,EAAE,CAAC,GAAG,OAAO;CAClB,IAAI,aAAa,MAAM,OAAO,IAAI,KAAK,EAAE,QAAQ,CAAC;CAClD,IAAI,MAAM,QAAQ,CAAC,GAAG,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC;CAC9C,IAAI,IAAI,CAAC;CACT,KAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC;CAChD,OAAO;AACR;AACA,SAAS,EAAE,GAAG;CACb,QAAQ,KAAK,CAAC,EAAA,CAAG,OAAO,OAAO;AAChC;AAMA,SAAS,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG;CAC5B,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,EAAE,YAAY,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC,GAAG,UAAU;EACzE,IAAI,CAAC,GAAG,OAAO;EACf,IAAI,IAAI,GAAG,IAAI;EACf,OAAO,IAAI,KAAK,GAAG,IAAI,KAAK,GAAG,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG;CACnD,GAAG,UAAU;EACZ,KAAK,aAAa,CAAC,GAAG,KAAK,aAAa,CAAC,GAAG,IAAI,KAAK,GAAG,IAAI,KAAK,GAAG,IAAI,KAAK,GAAG,IAAI,KAAK;CAC1F,GAAG,IAAI,SAAS,GAAG,GAAG;EACrB,IAAI,IAAI,KAAK,CAAC;EACd,OAAO,IAAI,GAAG,IAAI,MAAM,KAAK,EAAE,GAAG,KAAK,aAAa,CAAC,GAAG,IAAI,iBAAiB;GAC5E,IAAI,KAAK,GAAG,OAAO,aAAa,CAAC,GAAG,KAAK,IAAI,IAAI,EAAE,KAAK,IAAI,KAAK,GAAG,IAAI,KAAK;EAC9E,GAAG,CAAC,GAAG,EAAE,YAAY,KAAK,KAAK,CAAC,MAAM,IAAI,iBAAiB;GAC1D,KAAK,aAAa,CAAC,GAAG,IAAI,KAAK,GAAG,IAAI,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,KAAK,GAAG,IAAI,KAAK;EACrF,GAAG,EAAE,OAAO,IAAI;CACjB;CACA,OAAO,EAAE,SAAS,GAAG,EAAE,eAAe,OAAO,aAAa,CAAC,GAAG,KAAK,IAAI,OAAO,aAAa,CAAC,GAAG,KAAK,IAAI,EAAE,IAAI;AAC/G;AA4BA,SAAS,EAAE,GAAG;CACb,IAAI,IAAI,CAAC;CACT,KAAK,IAAI,KAAK,KAAK,CAAC,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC;CACjE,OAAO;AACR;AASA,SAAS,EAAE,GAAG,GAAG,GAAG;CACnB,IAAI,CAAC,MAAM,QAAQ,CAAC,KAAK,KAAK,QAAQ,OAAO,UAAU,eAAe,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG;EACzF,IAAI,IAAI,EAAE;EACV,OAAO,MAAM,KAAK,IAAI,IAAI;CAC3B;CACA,IAAI,IAAI;CACR,KAAK,IAAI,KAAK,EAAE,CAAC,GAAG;EACnB,IAAI,KAAK,MAAM,OAAO;EACtB,IAAI,EAAE;CACP;CACA,OAAO,MAAM,KAAK,IAAI,IAAI;AAC3B;AAwBA,SAAS,EAAE,GAAG;CACb,OAAO,KAAK,OAAO,CAAC,IAAI,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC,IAAI,EAAE,WAAW,IAAI,aAAa,OAAO,aAAa,MAAM,EAAE,SAAS,IAAI,CAAC,EAAE,CAAC,KAAK,OAAO,KAAK,CAAC,CAAC,CAAC,WAAW;AAC9K;AACA,SAAS,EAAE,GAAG,GAAG,GAAG;CACnB,IAAI,IAAI,IAAI,GAAG,CAAC;CAChB,IAAI,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC;CAC3B,IAAI,OAAO,GAAG,GAAG,CAAC,GAAG,OAAO,CAAC;CAC7B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;CAC5B,IAAI,aAAa,QAAQ,aAAa,MAAM,OAAO,aAAa,QAAQ,aAAa,QAAQ,EAAE,QAAQ,MAAM,EAAE,QAAQ;CACvH,IAAI,MAAM,QAAQ,CAAC,KAAK,MAAM,QAAQ,CAAC,GAAG,OAAO,MAAM,QAAQ,CAAC,KAAK,MAAM,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;CACjJ,IAAI,IAAI,OAAO,KAAK,CAAC,GAAG,IAAI,OAAO,KAAK,CAAC;CACzC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,MAAM,EAAE,eAAe,KAAK,GAAG,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC/F;AACA,SAAS,EAAE,GAAG,GAAG;CAChB,OAAO,EAAE,GAAG,CAAC;AACd;AAIA,SAAS,EAAE,GAAG;CACb,OAAO,OAAO,SAAS,CAAC;AACzB;AAwBA,SAAS,EAAE,GAAG,GAAG,GAAG;CACnB,KAAK,IAAI,KAAK,GAAG,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;CAC5H,OAAO;AACR;AACA,SAAS,EAAE,GAAG,GAAG;CAChB,IAAI,IAAI,EAAE,GAAG,KAAK,CAAC,EAAE;CACrB,KAAK,IAAI,KAAK,MAAM,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE;CACnD,OAAO;AACR;AA+BA,SAAS,EAAE,GAAG,GAAG,GAAG;CACnB,IAAI,IAAI,EAAE,CAAC,GAAG,IAAI;CAClB,OAAO,EAAE,SAAS,GAAG,MAAM;EAC1B,IAAI,MAAM,EAAE,SAAS,GAAG;GACvB,EAAE,KAAK;GACP;EACD;EACA,IAAI,IAAI,EAAE,IAAI;EACd,EAAE,OAAO,OAAO,KAAK,YAAY,QAAQ,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE;CAC3E,CAAC,GAAG;AACL;AAsBA,SAAS,EAAG,GAAG,GAAG;CACjB,IAAI,IAAI,OAAO,MAAM;CACrB,OAAO,MAAM,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,CAAC,CAAC;AAC7D;AAaA,SAAS,EAAG,GAAG,GAAG;CACjB,IAAI,IAAI,KAAK,IAAI,GAAG,GAAG,EAAE,KAAK,MAAM,EAAE,MAAM,CAAC;CAC7C,OAAO,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,MAAM,EAAE,EAAE,CAAC;AAC9D"}
@@ -45,7 +45,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
45
45
  M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,R.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});us.propTypes={bgFill:v.string.isRequired,fgFill:v.string.isRequired};var ds=({bgFill:e,fgFill:t,borderFill:n})=>(0,R.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,R.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
46
46
  C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,R.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,R.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,R.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
47
47
  M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,R.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});ds.propTypes={bgFill:v.string.isRequired,fgFill:v.string.isRequired,borderFill:v.string.isRequired};var fs=q(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),ps=({open:e,size:t})=>(0,R.jsx)(fs,{size:t,children:e?(0,R.jsx)(us,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,R.jsx)(ds,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});ps.propTypes={open:v.bool,size:v.string},ps.defaultProps={open:!1};var ms=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,R.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,R.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});ms.propTypes={fill:v.string.isRequired};var hs=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,R.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,R.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,R.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});hs.propTypes={fill:v.string.isRequired};var gs=os(ms,hs);gs.propTypes={iconSet:v.oneOf([`emoji`,`check`]),shape:v.oneOf([`round`,`square`]),category:v.oneOf([`feedback`,void 0]),open:v.bool,fg:v.string,bg:v.string,size:v.oneOfType([v.string,v.number])},gs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var _s=({fill:e})=>(0,R.jsxs)(`g`,{children:[(0,R.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,R.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});_s.propTypes={fill:v.string.isRequired};var vs=({fill:e})=>(0,R.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});vs.propTypes={fill:v.string.isRequired};var ys=({fill:e})=>(0,R.jsxs)(`g`,{children:[(0,R.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,R.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,R.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
48
- C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});ys.propTypes={fill:v.string.isRequired};var bs=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(_s,{fill:t})]}),emoji:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),feedback:{check:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),emoji:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),square:{check:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(_s,{fill:t})]}),emoji:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),open:{check:(0,R.jsx)(es,{children:(0,R.jsx)(_s,{fill:n})}),emoji:(0,R.jsx)(es,{children:(0,R.jsx)(ys,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};bs.propTypes={iconSet:v.oneOf([`emoji`,`check`,void 0]),shape:v.oneOf([`square`,void 0]),category:v.oneOf([`feedback`,void 0]),open:v.bool,fg:v.string,bg:v.string},bs.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var xs=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,R.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,R.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});xs.propTypes={fill:v.string.isRequired};var Ss=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,R.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,R.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,R.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Ss.propTypes={fill:v.string.isRequired};var Cs=os(xs,Ss);Cs.propTypes={iconSet:v.oneOf([`emoji`,`check`]),shape:v.oneOf([`round`,`square`]),category:v.oneOf([`feedback`,void 0]),open:v.bool,fg:v.string,bg:v.string,size:v.oneOfType([v.string,v.number])},Cs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function ws(e){return typeof e==`string`}function Ts(){return Mr}function Es(e){return Ti(e)}function Ds(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Os=Ds;function ks(e){return e&&e.ownerDocument||document}var As=ks;function js(e){return ks(e).defaultView||window}var Ms=js,Ns={};function Ps(e,t){let n=I.useRef(Ns);return n.current===Ns&&(n.current=e(t)),n}var Fs=[];function Is(e){I.useEffect(e,Fs)}var Ls=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Rs(){let e=Ps(Ls.create).current;return Is(e.disposeEffect),e}function zs(e){return e?.ref||null}var Bs=e=>e.scrollTop;function Vs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Hs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Us(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Ws(...e){let t=I.useRef(void 0),n=I.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return I.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Gs=Ws;function Ks(e){return`scale(${e}, ${e**2})`}var qs={entering:{opacity:1,transform:Ks(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Ks(.75)},exited:{opacity:0,transform:Ks(.75)}},Js={opacity:0,transform:Ks(.75),visibility:`hidden`},Ys=I.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Rs(),_=I.useRef(),v=fo(),y=I.useRef(null),b=Gs(y,zs(i),t),x=Vs(y,l),S=Vs(y,(e,t)=>{Bs(e);let{duration:n,delay:r,easing:i}=Us({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=Vs(y,c),w=Vs(y,f),T=Vs(y,e=>{let{duration:t,delay:n,easing:r}=Us({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Ks(.75),u&&u(e)}),E=Vs(y,e=>{e.style.transition=``,d&&d(e)});return(0,R.jsx)(Ro,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=Hs(e,o,qs,Js,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});Ys&&(Ys.muiSupportAuto=!0);function Xs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Zs(e){let t=ks(e);return t.body===e?js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qs(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function $s(e){return parseFloat(js(e).getComputedStyle(e).paddingRight)||0}function ec(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function tc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!ec(e);t&&n&&Qs(e,i)})}function nc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function rc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Zs(r)){let e=Xs(js(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${$s(r)+e}px`;let t=ks(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${$s(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ks(r).body;else{let t=r.parentElement,n=js(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function ic(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ac=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Qs(e.modalRef,!1);let r=ic(t);tc(t,e.mount,e.modalRef,r,!0);let i=nc(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=nc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=rc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=nc(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Qs(e.modalRef,t),tc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Qs(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function oc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var sc=oc;function cc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var lc=cc,uc=`data-mui-focusable`;function dc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${uc}]`):null}var fc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function pc(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function mc(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function hc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||mc(e))}function J(e){let t=[],n=[];return Array.from(e.querySelectorAll(fc)).forEach((e,r)=>{let i=pc(e);i===-1||!hc(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function gc(){return!0}function _c(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=J,isEnabled:o=gc,open:s}=e,c=I.useRef(!1),l=I.useRef(null),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),p=I.useRef(!1),m=I.useRef(null),h=Ws(zs(t),m),g=I.useRef(null);I.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),I.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=lc(ks(m.current)),t=dc(m.current)??m.current;return sc(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;let e=ks(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&lc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=lc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(sc(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=lc(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,R.jsxs)(I.Fragment,{children:[(0,R.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),I.cloneElement(t,{ref:h,onFocus:_}),(0,R.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function vc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function yc(e){return typeof e==`function`?e():e}var bc=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=Ws(I.isValidElement(n)?zs(n):null,t);if(Qr(()=>{i||o(yc(r)||document.body)},[r,i]),Qr(()=>{if(a&&!i)return vc(t,a),()=>{vc(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Mo.createPortal(n,a)}),xc=Fi;function Sc(e,t,n){return e===void 0||ws(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Cc(e,t,n){return typeof e==`function`?e(t,n):e}function wc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Tc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Ec(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=z(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=wc({...i,...r}),s=Tc(r),c=Tc(i),l=t(o),u=z(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Dc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Cc(d[e],i),{props:{component:h,...g},internalRef:_}=Ec({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Ws(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Sc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Oc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},kc={opacity:0,visibility:`hidden`},Ac=I.forwardRef(function(e,t){let n=fo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=I.useRef(null),y=Gs(v,zs(o),t),b=Vs(v,d),x=Vs(v,(e,t)=>{Bs(e);let r=Us({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Vs(v,u),C=Vs(v,m),w=Vs(v,e=>{let t=Us({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Vs(v,e=>{e.style.transition=``,p&&p(e)});return(0,R.jsx)(Ro,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=Hs(e,c,Oc,kc,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function jc(e){return Lr(`MuiBackdrop`,e)}Rr(`MuiBackdrop`,[`root`,`invisible`]);var Mc=e=>{let{classes:t,invisible:n}=e;return ea({root:[`root`,n&&`invisible`]},jc,t)},Nc=q(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Pc=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Mc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Dc(`root`,{elementType:Nc,externalForwardedProps:_,className:z(g.root,i),ownerState:h}),[b,x]=Dc(`transition`,{elementType:Ac,externalForwardedProps:_,ownerState:h});return(0,R.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,R.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Fc(e){let t=I.useRef(e);return Qr(()=>{t.current=e}),I.useRef((...e)=>(0,t.current)(...e)).current}function Ic(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Lc(e){return typeof e==`function`?e():e}function Rc(e){return e?e.props.hasOwnProperty(`in`):!1}var zc=()=>{},Bc=new ac;function Vc(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=I.useRef({}),f=I.useRef(null),p=I.useRef(null),m=Ws(p,u),[h,g]=I.useState(!l),_=Rc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>ks(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Bc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Fc(()=>{let e=Lc(t)||y().body;Bc.add(b(),e),p.current&&x()}),C=()=>Bc.isTopModal(b()),w=Fc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Qs(p.current,v))}),T=I.useCallback(()=>{Bc.remove(b(),v)},[v]);I.useEffect(()=>()=>{T()},[T]),I.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=wc(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Ic(()=>{g(!1),a&&a()},s?.props.onEnter??zc),onExited:Ic(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??zc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Hc(e){return Lr(`MuiModal`,e)}Rr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Uc=e=>{let{open:t,exited:n,classes:r}=e;return ea({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Hc,r)},Wc=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(xc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Y=q(Pc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Gc=I.forwardRef(function(e,t){let n=Es({name:`MuiModal`,props:e}),{BackdropComponent:r=Y,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...ee}=n,te={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ne,getBackdropProps:O,getTransitionProps:k,portalRef:re,isTopModal:A,exited:j,hasTransition:ie}=Vc({...te,rootRef:t}),ae={...te,exited:j},oe=Uc(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=k();M.onEnter=e,M.onExited=t}let N={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[se,P]=Dc(`root`,{ref:t,elementType:Wc,externalForwardedProps:{...N,...ee,component:u},getSlotProps:ne,ownerState:ae,className:z(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ce,le]=Dc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:z(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||j)?null:(0,R.jsx)(bc,{ref:re,container:l,disablePortal:g,children:(0,R.jsxs)(se,{...P,children:[!y&&r?(0,R.jsx)(ce,{...le}):null,(0,R.jsx)(_c,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:A,open:w,children:I.cloneElement(c,M)})]})})});function Kc(e){return Lr(`MuiPaper`,e)}Rr(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var qc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ea({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Kc,i)},Jc=q(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(xc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Yc=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiPaper`}),r=fo(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=qc(u);return(0,R.jsx)(Jc,{as:a,ownerState:u,className:z(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${B(`#fff`,Ka(o))}, ${B(`#fff`,Ka(o))})`}},...l.style}})});function Xc(e){return Lr(`MuiPopover`,e)}Rr(`MuiPopover`,[`root`,`paper`]);var X=Cn,Zc=Ic;function Qc(e){return Lr(`MuiSvgIcon`,e)}Rr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var $c=e=>{let{color:t,fontSize:n,classes:r}=e;return ea({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},Qc,r)},el=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(xc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),tl=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=I.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=$c(m);return(0,R.jsxs)(el,{as:o,className:z(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,R.jsx)(`title`,{children:u}):null]})});tl.muiName=`SvgIcon`;function nl(e,t){function n(t,n){return(0,R.jsx)(tl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=tl.muiName,I.memo(I.forwardRef(n))}var rl=ta,il=Qr,al=ki;function ol(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=I.useRef(t!==void 0),[o,s]=I.useState(n);return[a?t:o,I.useCallback(e=>{a||s(e)},[])]}var sl=ol,cl=Fc;function ll(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function ul(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{ll(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=z(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=z(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function dl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function fl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function pl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function ml(e){return typeof e==`function`?e():e}var hl=e=>{let{classes:t}=e;return ea({root:[`root`],paper:[`paper`]},Xc,t)},gl=q(Gc,{name:`MuiPopover`,slot:`Root`})({}),_l=q(Yc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),vl=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=I.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=hl(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=ml(i),t=(e&&e.nodeType===1?e:As(C.current).body).getBoundingClientRect();return{top:t.top+dl(t,a.vertical),left:t.left+fl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:dl(e,_.vertical),horizontal:fl(e,_.horizontal)}),[_.horizontal,_.vertical]),ee=I.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:pl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Ms(ml(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:pl(n)}},[i,s,E,D,f]),[te,ne]=I.useState(p),O=I.useCallback(()=>{let e=C.current;if(!e)return;let t=ee(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ne(!0)},[ee]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,O),()=>window.removeEventListener(`scroll`,O)),[i,x,O]);let k=()=>{O()},re=()=>{ne(!1)};I.useEffect(()=>{p&&O()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{O()}}:null,[p,O]),I.useEffect(()=>{if(!p)return;let e=Os(()=>{O()}),t=Ms(ml(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,O]);let A=y,j={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=Dc(`transition`,{elementType:Ys,externalForwardedProps:j,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),k()},onExited:t=>{e.onExited?.(t),re()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(A=void 0);let oe=u||(i?As(ml(i)).body:void 0),[M,{slots:N,slotProps:se,...P}]=Dc(`root`,{ref:t,elementType:gl,externalForwardedProps:{...j,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:ul(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:z(T.root,l)}),[ce,le]=Dc(`paper`,{ref:C,className:T.paper,elementType:_l,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:te?void 0:{opacity:0}},ownerState:w});return(0,R.jsx)(M,{...P,...!ws(M)&&{slots:N,slotProps:se,disableScrollLock:x},children:(0,R.jsx)(ie,{...ae,timeout:A,children:(0,R.jsx)(ce,{...le,children:c})})})}),yl={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},bl={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},xl=s({background:()=>Gl,backgroundDark:()=>Kl,black:()=>au,blueGrey100:()=>pu,blueGrey300:()=>mu,blueGrey600:()=>hu,blueGrey900:()=>gu,border:()=>Ql,borderDark:()=>eu,borderGray:()=>tu,borderLight:()=>$l,buttonBorder:()=>Cu,buttonFocusOutline:()=>fu,buttonHoverBg:()=>wu,correct:()=>Dl,correctSecondary:()=>Ol,correctTertiary:()=>kl,correctWithIcon:()=>Al,defaults:()=>Z,disabled:()=>wl,disabledSecondary:()=>Tl,disabledText:()=>El,dropdownBackground:()=>Jl,fadedPrimary:()=>Bl,focusChecked:()=>cu,focusCheckedBorder:()=>lu,focusUnchecked:()=>uu,focusUncheckedBorder:()=>du,incorrect:()=>jl,incorrectSecondary:()=>Nl,incorrectWithIcon:()=>Ml,keyBoardFocusIndicator:()=>Su,keypadButton:()=>_u,keypadButtonHover:()=>bu,keypadButtonOperator:()=>vu,keypadButtonOperatorHover:()=>xu,keypadEmptyPlaceholder:()=>yu,missing:()=>Pl,missingWithIcon:()=>Fl,primary:()=>Il,primaryDark:()=>Rl,primaryLight:()=>Ll,primaryText:()=>zl,secondary:()=>Vl,secondaryBackground:()=>ql,secondaryDark:()=>Ul,secondaryLight:()=>Hl,secondaryText:()=>Wl,surface:()=>Yl,tableGrid:()=>nu,tableGridLight:()=>ru,tableStripe:()=>iu,tertiary:()=>Xl,tertiaryLight:()=>Zl,text:()=>Cl,transparent:()=>su,v:()=>Sl,visualElementsColors:()=>Tu,white:()=>ou}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:la[500],CORRECT_SECONDARY:la[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:oa[500],INCORRECT_SECONDARY:aa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:aa[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:bl[500],PRIMARY_LIGHT:bl[200],PRIMARY_DARK:bl[800],SECONDARY:yl.A400,SECONDARY_LIGHT:yl[200],SECONDARY_DARK:yl[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var Sl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=Sl(`pie`),Cl=()=>Q(`text`,Z.TEXT),wl=()=>Q(`disabled`,Z.DISABLED),Tl=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),El=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),Dl=()=>Q(`correct`,Z.CORRECT),Ol=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),kl=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),Al=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),jl=()=>Q(`incorrect`,Z.INCORRECT),Ml=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),Nl=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),Pl=()=>Q(`missing`,Z.MISSING),Fl=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),Il=()=>Q(`primary`,Z.PRIMARY),Ll=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),Rl=()=>Q(`primary-dark`,Z.PRIMARY_DARK),zl=()=>Q(`primary-text`,`text`,Z.TEXT),Bl=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Vl=()=>Q(`secondary`,Z.SECONDARY),Hl=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ul=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Wl=()=>Q(`secondary-text`,`text`,Z.TEXT),Gl=()=>Q(`background`,Z.BACKGROUND),Kl=()=>Q(`background-dark`,Z.BACKGROUND_DARK),ql=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),Jl=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Yl=()=>Q(`surface`,Z.SURFACE),Xl=()=>Q(`tertiary`,Z.TERTIARY),Zl=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Ql=()=>Q(`border`,Z.BORDER),$l=()=>Q(`border-light`,Z.BORDER_LIGHT),eu=()=>Q(`border-dark`,Z.BORDER_DARK),tu=()=>Q(`border-gray`,Z.BORDER_GRAY),nu=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),ru=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),iu=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),au=()=>Q(`black`,Z.BLACK),ou=()=>Q(`white`,Z.WHITE),su=()=>Z.TRANSPARENT,cu=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),lu=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),uu=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),du=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),fu=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),pu=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),mu=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),hu=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),gu=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),_u=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),vu=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),yu=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),bu=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),xu=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),Su=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),Cu=()=>Q(`button-border`,Z.BUTTON_BORDER),wu=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),Tu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Eu=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Du=q(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${wl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Dl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${jl()})`}}),Ou=q(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),ku=class extends I.Component{static propTypes={correctness:v.string,feedback:v.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,R.jsx)(Ho,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,R.jsx)(Ou,{ref:this.nodeRef,children:(0,R.jsx)(Eu,{children:(0,R.jsx)(Du,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,R.jsx)(`div`,{children:(0,R.jsx)(Zo,{children:this.renderFeedback()})})}};function Au(){return()=>{}}var ju=s({Correct:()=>Lu,Incorrect:()=>Ru,NothingSubmitted:()=>Bu,PartiallyCorrect:()=>zu}),Mu=Au(`pie-libs:render-ui:response-indicators`),Nu=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Pu=q(vl)({cursor:`pointer`}),Fu=q(`div`)({padding:`0`,borderRadius:`4px`}),Iu=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Mu(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,R.jsxs)(Nu,{hasFeedback:!!n,children:[(0,R.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,R.jsx)(e,{})}),n&&(0,R.jsx)(Pu,{PaperComponent:Fu,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,R.jsx)(ku,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:v.string},n},Lu=Iu(ls,`correct`),Ru=Iu(gs,`incorrect`),zu=Iu(Cs,`partially-correct`),Bu=Iu(bs,`nothing-submitted`);function Vu(e){return Lr(`MuiCollapse`,e)}Rr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Hu=e=>{let{orientation:t,classes:n}=e;return ea({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Vu,n)},Uu=q(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(xc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Wu=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Gu=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ku=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Fa.standard,TransitionComponent:x=Ro,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Hu(C),T=fo(),E=Rs(),D=I.useRef(null),ee=I.useRef(),te=typeof o==`number`?`${o}px`:o,ne=g===`horizontal`,O=ne?`width`:`height`,k=I.useRef(null),re=Gs(t,k),A=()=>D.current?D.current[ne?`clientWidth`:`clientHeight`]:0,j=Vs(k,(e,t)=>{D.current&&ne&&(D.current.style.position=`absolute`),e.style[O]=te,u&&u(e,t)}),ie=Vs(k,(e,t)=>{let n=A();D.current&&ne&&(D.current.style.position=``);let{duration:r,easing:i}=Us({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,ee.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[O]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Vs(k,(e,t)=>{e.style[O]=`auto`,d&&d(e,t)}),oe=Vs(k,e=>{e.style[O]=`${A()}px`,p&&p(e)}),M=Vs(k,m),N=Vs(k,e=>{let t=A(),{duration:n,easing:r}=Us({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,ee.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[O]=te,e.style.transitionTimingFunction=r,h&&h(e)}),se=e=>{b===`auto`&&E.start(ee.current||0,e),r&&r(k.current,e)},P={slots:_,slotProps:v,component:s},[ce,le]=Dc(`root`,{ref:re,className:z(w.root,a),elementType:Uu,externalForwardedProps:P,ownerState:C,additionalProps:{style:{[ne?`minWidth`:`minHeight`]:te,...y}}}),[ue,de]=Dc(`wrapper`,{ref:D,className:w.wrapper,elementType:Wu,externalForwardedProps:P,ownerState:C}),[fe,pe]=Dc(`wrapperInner`,{className:w.wrapperInner,elementType:Gu,externalForwardedProps:P,ownerState:C});return(0,R.jsx)(x,{in:l,onEnter:j,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:N,addEndListener:se,nodeRef:k,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,R.jsx)(ce,{...le,className:z(le.className,{entered:w.entered,exited:!l&&te===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,R.jsx)(ue,{...de,ownerState:r,children:(0,R.jsx)(fe,{...pe,ownerState:r,children:i})})})}})});Ku&&(Ku.muiSupportAuto=!0);var qu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Ju=null;function Yu(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():Ju||(Ju=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||qu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),Ju)}function Xu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Zu(e={}){return async t=>{if(await Yu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Xu()}}var Qu=`@pie-lib/math-rendering`,$u=null;function ed(){return $u||=Zu({accessibility:!0,useSingleDollar:!0}),$u}function td(){if(typeof window>`u`)return null;let e=window[Qu];return typeof e?.renderMath==`function`?e:null}var nd=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=td();return r?await r.renderMath?.(n):await ed()(n),t?n.innerHTML:void 0},rd=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),id=q(Ku)(({theme:e})=>({paddingTop:e.spacing(2)})),ad=class extends I.Component{static propTypes={className:v.string,children:v.object,labels:v.shape({visible:v.string,hidden:v.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){nd(this.root)}componentDidUpdate(){nd(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,R.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,R.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,R.jsx)(rd,{children:r})}),(0,R.jsx)(id,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function od(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var sd=class e{static create(){return new e}static use(){let t=Ps(e.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=ld(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function cd(){return sd.use()}function ld(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function ud(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=I.useState(!1),f=z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=z(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),I.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,R.jsx)(`span`,{className:f,style:p,children:(0,R.jsx)(`span`,{className:m})})}var dd=Rr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),fd=550,pd=Ft`
48
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});ys.propTypes={fill:v.string.isRequired};var bs=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(_s,{fill:t})]}),emoji:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),feedback:{check:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),emoji:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),square:{check:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(_s,{fill:t})]}),emoji:(0,R.jsxs)(es,{children:[(0,R.jsx)(vs,{fill:n}),(0,R.jsx)(ys,{fill:t})]}),open:{check:(0,R.jsx)(es,{children:(0,R.jsx)(_s,{fill:n})}),emoji:(0,R.jsx)(es,{children:(0,R.jsx)(ys,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};bs.propTypes={iconSet:v.oneOf([`emoji`,`check`,void 0]),shape:v.oneOf([`square`,void 0]),category:v.oneOf([`feedback`,void 0]),open:v.bool,fg:v.string,bg:v.string},bs.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var xs=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,R.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,R.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});xs.propTypes={fill:v.string.isRequired};var Ss=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,R.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,R.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,R.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Ss.propTypes={fill:v.string.isRequired};var Cs=os(xs,Ss);Cs.propTypes={iconSet:v.oneOf([`emoji`,`check`]),shape:v.oneOf([`round`,`square`]),category:v.oneOf([`feedback`,void 0]),open:v.bool,fg:v.string,bg:v.string,size:v.oneOfType([v.string,v.number])},Cs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function ws(e){return typeof e==`string`}function Ts(){return Mr}function Es(e){return Ti(e)}function Ds(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Os=Ds;function ks(e){return e&&e.ownerDocument||document}var As=ks;function js(e){return ks(e).defaultView||window}var Ms=js,Ns={};function Ps(e,t){let n=I.useRef(Ns);return n.current===Ns&&(n.current=e(t)),n}var Fs=[];function Is(e){I.useEffect(e,Fs)}var Ls=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Rs(){let e=Ps(Ls.create).current;return Is(e.disposeEffect),e}function zs(e){return e?.ref||null}var Bs=e=>e.scrollTop;function Vs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Hs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Us(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Ws(...e){let t=I.useRef(void 0),n=I.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return I.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Gs=Ws;function Ks(e){return`scale(${e}, ${e**2})`}var qs={entering:{opacity:1,transform:Ks(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Ks(.75)},exited:{opacity:0,transform:Ks(.75)}},Js={opacity:0,transform:Ks(.75),visibility:`hidden`},Ys=I.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Rs(),_=I.useRef(),v=fo(),y=I.useRef(null),b=Gs(y,zs(i),t),x=Vs(y,l),S=Vs(y,(e,t)=>{Bs(e);let{duration:n,delay:r,easing:i}=Us({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=Vs(y,c),w=Vs(y,f),T=Vs(y,e=>{let{duration:t,delay:n,easing:r}=Us({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Ks(.75),u&&u(e)}),E=Vs(y,e=>{e.style.transition=``,d&&d(e)});return(0,R.jsx)(Ro,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=Hs(e,o,qs,Js,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});Ys&&(Ys.muiSupportAuto=!0);function Xs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Zs(e){let t=ks(e);return t.body===e?js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qs(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function $s(e){return parseFloat(js(e).getComputedStyle(e).paddingRight)||0}function ec(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function tc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!ec(e);t&&n&&Qs(e,i)})}function nc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function rc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Zs(r)){let e=Xs(js(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${$s(r)+e}px`;let t=ks(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${$s(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ks(r).body;else{let t=r.parentElement,n=js(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function ic(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ac=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Qs(e.modalRef,!1);let r=ic(t);tc(t,e.mount,e.modalRef,r,!0);let i=nc(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=nc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=rc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=nc(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Qs(e.modalRef,t),tc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Qs(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function oc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var sc=oc;function cc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var lc=cc,uc=`data-mui-focusable`;function dc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${uc}]`):null}var fc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function pc(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function mc(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function hc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||mc(e))}function J(e){let t=[],n=[];return Array.from(e.querySelectorAll(fc)).forEach((e,r)=>{let i=pc(e);i===-1||!hc(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function gc(){return!0}function _c(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=J,isEnabled:o=gc,open:s}=e,c=I.useRef(!1),l=I.useRef(null),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),p=I.useRef(!1),m=I.useRef(null),h=Ws(zs(t),m),g=I.useRef(null);I.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),I.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=lc(ks(m.current)),t=dc(m.current)??m.current;return sc(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;let e=ks(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&lc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=lc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(sc(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=lc(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,R.jsxs)(I.Fragment,{children:[(0,R.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),I.cloneElement(t,{ref:h,onFocus:_}),(0,R.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function vc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function yc(e){return typeof e==`function`?e():e}var bc=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=Ws(I.isValidElement(n)?zs(n):null,t);if(Qr(()=>{i||o(yc(r)||document.body)},[r,i]),Qr(()=>{if(a&&!i)return vc(t,a),()=>{vc(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Mo.createPortal(n,a)}),xc=Fi;function Sc(e,t,n){return e===void 0||ws(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Cc(e,t,n){return typeof e==`function`?e(t,n):e}function wc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Tc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Ec(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=z(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=wc({...i,...r}),s=Tc(r),c=Tc(i),l=t(o),u=z(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Dc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Cc(d[e],i),{props:{component:h,...g},internalRef:_}=Ec({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Ws(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Sc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Oc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},kc={opacity:0,visibility:`hidden`},Ac=I.forwardRef(function(e,t){let n=fo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=I.useRef(null),y=Gs(v,zs(o),t),b=Vs(v,d),x=Vs(v,(e,t)=>{Bs(e);let r=Us({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Vs(v,u),C=Vs(v,m),w=Vs(v,e=>{let t=Us({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Vs(v,e=>{e.style.transition=``,p&&p(e)});return(0,R.jsx)(Ro,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=Hs(e,c,Oc,kc,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function jc(e){return Lr(`MuiBackdrop`,e)}Rr(`MuiBackdrop`,[`root`,`invisible`]);var Mc=e=>{let{classes:t,invisible:n}=e;return ea({root:[`root`,n&&`invisible`]},jc,t)},Nc=q(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Pc=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Mc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Dc(`root`,{elementType:Nc,externalForwardedProps:_,className:z(g.root,i),ownerState:h}),[b,x]=Dc(`transition`,{elementType:Ac,externalForwardedProps:_,ownerState:h});return(0,R.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,R.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Fc(e){let t=I.useRef(e);return Qr(()=>{t.current=e}),I.useRef((...e)=>(0,t.current)(...e)).current}function Ic(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Lc(e){return typeof e==`function`?e():e}function Rc(e){return e?e.props.hasOwnProperty(`in`):!1}var zc=()=>{},Bc=new ac;function Vc(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=I.useRef({}),f=I.useRef(null),p=I.useRef(null),m=Ws(p,u),[h,g]=I.useState(!l),_=Rc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>ks(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Bc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Fc(()=>{let e=Lc(t)||y().body;Bc.add(b(),e),p.current&&x()}),C=()=>Bc.isTopModal(b()),w=Fc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Qs(p.current,v))}),T=I.useCallback(()=>{Bc.remove(b(),v)},[v]);I.useEffect(()=>()=>{T()},[T]),I.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=wc(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Ic(()=>{g(!1),a&&a()},s?.props.onEnter??zc),onExited:Ic(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??zc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Hc(e){return Lr(`MuiModal`,e)}Rr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Uc=e=>{let{open:t,exited:n,classes:r}=e;return ea({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Hc,r)},Wc=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(xc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Y=q(Pc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Gc=I.forwardRef(function(e,t){let n=Es({name:`MuiModal`,props:e}),{BackdropComponent:r=Y,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...ee}=n,te={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ne,getBackdropProps:O,getTransitionProps:k,portalRef:re,isTopModal:A,exited:j,hasTransition:ie}=Vc({...te,rootRef:t}),ae={...te,exited:j},oe=Uc(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=k();M.onEnter=e,M.onExited=t}let N={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[se,P]=Dc(`root`,{ref:t,elementType:Wc,externalForwardedProps:{...N,...ee,component:u},getSlotProps:ne,ownerState:ae,className:z(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ce,le]=Dc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:z(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||j)?null:(0,R.jsx)(bc,{ref:re,container:l,disablePortal:g,children:(0,R.jsxs)(se,{...P,children:[!y&&r?(0,R.jsx)(ce,{...le}):null,(0,R.jsx)(_c,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:A,open:w,children:I.cloneElement(c,M)})]})})});function Kc(e){return Lr(`MuiPaper`,e)}Rr(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var qc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ea({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Kc,i)},Jc=q(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(xc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Yc=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiPaper`}),r=fo(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=qc(u);return(0,R.jsx)(Jc,{as:a,ownerState:u,className:z(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${B(`#fff`,Ka(o))}, ${B(`#fff`,Ka(o))})`}},...l.style}})});function Xc(e){return Lr(`MuiPopover`,e)}Rr(`MuiPopover`,[`root`,`paper`]);var X=Cn,Zc=Ic;function Qc(e){return Lr(`MuiSvgIcon`,e)}Rr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var $c=e=>{let{color:t,fontSize:n,classes:r}=e;return ea({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},Qc,r)},el=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(xc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),tl=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=I.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=$c(m);return(0,R.jsxs)(el,{as:o,className:z(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,R.jsx)(`title`,{children:u}):null]})});tl.muiName=`SvgIcon`;function nl(e,t){function n(t,n){return(0,R.jsx)(tl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=tl.muiName,I.memo(I.forwardRef(n))}var rl=ta,il=Qr,al=ki;function ol(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=I.useRef(t!==void 0),[o,s]=I.useState(n);return[a?t:o,I.useCallback(e=>{a||s(e)},[])]}var sl=ol,cl=Fc;function ll(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function ul(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{ll(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=z(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=z(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function dl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function fl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function pl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function ml(e){return typeof e==`function`?e():e}var hl=e=>{let{classes:t}=e;return ea({root:[`root`],paper:[`paper`]},Xc,t)},gl=q(Gc,{name:`MuiPopover`,slot:`Root`})({}),_l=q(Yc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),vl=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=I.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=hl(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=ml(i),t=(e&&e.nodeType===1?e:As(C.current).body).getBoundingClientRect();return{top:t.top+dl(t,a.vertical),left:t.left+fl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:dl(e,_.vertical),horizontal:fl(e,_.horizontal)}),[_.horizontal,_.vertical]),ee=I.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:pl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Ms(ml(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:pl(n)}},[i,s,E,D,f]),[te,ne]=I.useState(p),O=I.useCallback(()=>{let e=C.current;if(!e)return;let t=ee(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ne(!0)},[ee]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,O),()=>window.removeEventListener(`scroll`,O)),[i,x,O]);let k=()=>{O()},re=()=>{ne(!1)};I.useEffect(()=>{p&&O()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{O()}}:null,[p,O]),I.useEffect(()=>{if(!p)return;let e=Os(()=>{O()}),t=Ms(ml(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,O]);let A=y,j={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=Dc(`transition`,{elementType:Ys,externalForwardedProps:j,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),k()},onExited:t=>{e.onExited?.(t),re()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(A=void 0);let oe=u||(i?As(ml(i)).body:void 0),[M,{slots:N,slotProps:se,...P}]=Dc(`root`,{ref:t,elementType:gl,externalForwardedProps:{...j,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:ul(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:z(T.root,l)}),[ce,le]=Dc(`paper`,{ref:C,className:T.paper,elementType:_l,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:te?void 0:{opacity:0}},ownerState:w});return(0,R.jsx)(M,{...P,...!ws(M)&&{slots:N,slotProps:se,disableScrollLock:x},children:(0,R.jsx)(ie,{...ae,timeout:A,children:(0,R.jsx)(ce,{...le,children:c})})})}),yl={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},bl={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},xl=s({background:()=>Gl,backgroundDark:()=>Kl,black:()=>au,blueGrey100:()=>pu,blueGrey300:()=>mu,blueGrey600:()=>hu,blueGrey900:()=>gu,border:()=>Ql,borderDark:()=>eu,borderGray:()=>tu,borderLight:()=>$l,buttonBorder:()=>Cu,buttonFocusOutline:()=>fu,buttonHoverBg:()=>wu,correct:()=>Dl,correctSecondary:()=>Ol,correctTertiary:()=>kl,correctWithIcon:()=>Al,defaults:()=>Z,disabled:()=>wl,disabledSecondary:()=>Tl,disabledText:()=>El,dropdownBackground:()=>Jl,fadedPrimary:()=>Bl,focusChecked:()=>cu,focusCheckedBorder:()=>lu,focusUnchecked:()=>uu,focusUncheckedBorder:()=>du,incorrect:()=>jl,incorrectSecondary:()=>Nl,incorrectWithIcon:()=>Ml,keyBoardFocusIndicator:()=>Su,keypadButton:()=>_u,keypadButtonHover:()=>bu,keypadButtonOperator:()=>vu,keypadButtonOperatorHover:()=>xu,keypadEmptyPlaceholder:()=>yu,missing:()=>Pl,missingWithIcon:()=>Fl,primary:()=>Il,primaryDark:()=>Rl,primaryLight:()=>Ll,primaryText:()=>zl,secondary:()=>Vl,secondaryBackground:()=>ql,secondaryDark:()=>Ul,secondaryLight:()=>Hl,secondaryText:()=>Wl,surface:()=>Yl,tableGrid:()=>nu,tableGridLight:()=>ru,tableStripe:()=>iu,tertiary:()=>Xl,tertiaryLight:()=>Zl,text:()=>Cl,transparent:()=>su,v:()=>Sl,visualElementsColors:()=>Tu,white:()=>ou}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:la[500],CORRECT_SECONDARY:la[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:oa[500],INCORRECT_SECONDARY:aa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:aa[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:bl[500],PRIMARY_LIGHT:bl[200],PRIMARY_DARK:bl[800],SECONDARY:yl.A400,SECONDARY_LIGHT:yl[200],SECONDARY_DARK:yl[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var Sl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=Sl(`pie`),Cl=()=>Q(`text`,Z.TEXT),wl=()=>Q(`disabled`,Z.DISABLED),Tl=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),El=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),Dl=()=>Q(`correct`,Z.CORRECT),Ol=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),kl=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),Al=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),jl=()=>Q(`incorrect`,Z.INCORRECT),Ml=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),Nl=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),Pl=()=>Q(`missing`,Z.MISSING),Fl=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),Il=()=>Q(`primary`,Z.PRIMARY),Ll=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),Rl=()=>Q(`primary-dark`,Z.PRIMARY_DARK),zl=()=>Q(`primary-text`,`text`,Z.TEXT),Bl=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Vl=()=>Q(`secondary`,Z.SECONDARY),Hl=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ul=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Wl=()=>Q(`secondary-text`,`text`,Z.TEXT),Gl=()=>Q(`background`,Z.BACKGROUND),Kl=()=>Q(`background-dark`,Z.BACKGROUND_DARK),ql=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),Jl=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Yl=()=>Q(`surface`,Z.SURFACE),Xl=()=>Q(`tertiary`,Z.TERTIARY),Zl=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Ql=()=>Q(`border`,Z.BORDER),$l=()=>Q(`border-light`,Z.BORDER_LIGHT),eu=()=>Q(`border-dark`,Z.BORDER_DARK),tu=()=>Q(`border-gray`,Z.BORDER_GRAY),nu=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),ru=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),iu=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),au=()=>Q(`black`,Z.BLACK),ou=()=>Q(`white`,Z.WHITE),su=()=>Z.TRANSPARENT,cu=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),lu=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),uu=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),du=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),fu=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),pu=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),mu=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),hu=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),gu=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),_u=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),vu=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),yu=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),bu=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),xu=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),Su=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),Cu=()=>Q(`button-border`,Z.BUTTON_BORDER),wu=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),Tu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Eu=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Du=q(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${wl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Dl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${jl()})`}}),Ou=q(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),ku=class extends I.Component{static propTypes={correctness:v.string,feedback:v.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,R.jsx)(Ho,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,R.jsx)(Ou,{ref:this.nodeRef,children:(0,R.jsx)(Eu,{children:(0,R.jsx)(Du,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,R.jsx)(`div`,{children:(0,R.jsx)(Zo,{children:this.renderFeedback()})})}};function Au(){return()=>{}}var ju=s({Correct:()=>Lu,Incorrect:()=>Ru,NothingSubmitted:()=>Bu,PartiallyCorrect:()=>zu}),Mu=Au(`pie-libs:render-ui:response-indicators`),Nu=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Pu=q(vl)({cursor:`pointer`}),Fu=q(`div`)({padding:`0`,borderRadius:`4px`}),Iu=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Mu(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,R.jsxs)(Nu,{hasFeedback:!!n,children:[(0,R.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,R.jsx)(e,{})}),n&&(0,R.jsx)(Pu,{PaperComponent:Fu,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,R.jsx)(ku,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:v.string},n},Lu=Iu(ls,`correct`),Ru=Iu(gs,`incorrect`),zu=Iu(Cs,`partially-correct`),Bu=Iu(bs,`nothing-submitted`);function Vu(e){return Lr(`MuiCollapse`,e)}Rr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Hu=e=>{let{orientation:t,classes:n}=e;return ea({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Vu,n)},Uu=q(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(xc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Wu=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Gu=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ku=I.forwardRef(function(e,t){let n=Es({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Fa.standard,TransitionComponent:x=Ro,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Hu(C),T=fo(),E=Rs(),D=I.useRef(null),ee=I.useRef(),te=typeof o==`number`?`${o}px`:o,ne=g===`horizontal`,O=ne?`width`:`height`,k=I.useRef(null),re=Gs(t,k),A=()=>D.current?D.current[ne?`clientWidth`:`clientHeight`]:0,j=Vs(k,(e,t)=>{D.current&&ne&&(D.current.style.position=`absolute`),e.style[O]=te,u&&u(e,t)}),ie=Vs(k,(e,t)=>{let n=A();D.current&&ne&&(D.current.style.position=``);let{duration:r,easing:i}=Us({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,ee.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[O]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Vs(k,(e,t)=>{e.style[O]=`auto`,d&&d(e,t)}),oe=Vs(k,e=>{e.style[O]=`${A()}px`,p&&p(e)}),M=Vs(k,m),N=Vs(k,e=>{let t=A(),{duration:n,easing:r}=Us({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,ee.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[O]=te,e.style.transitionTimingFunction=r,h&&h(e)}),se=e=>{b===`auto`&&E.start(ee.current||0,e),r&&r(k.current,e)},P={slots:_,slotProps:v,component:s},[ce,le]=Dc(`root`,{ref:re,className:z(w.root,a),elementType:Uu,externalForwardedProps:P,ownerState:C,additionalProps:{style:{[ne?`minWidth`:`minHeight`]:te,...y}}}),[ue,de]=Dc(`wrapper`,{ref:D,className:w.wrapper,elementType:Wu,externalForwardedProps:P,ownerState:C}),[fe,pe]=Dc(`wrapperInner`,{className:w.wrapperInner,elementType:Gu,externalForwardedProps:P,ownerState:C});return(0,R.jsx)(x,{in:l,onEnter:j,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:N,addEndListener:se,nodeRef:k,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,R.jsx)(ce,{...le,className:z(le.className,{entered:w.entered,exited:!l&&te===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,R.jsx)(ue,{...de,ownerState:r,children:(0,R.jsx)(fe,{...pe,ownerState:r,children:i})})})}})});Ku&&(Ku.muiSupportAuto=!0);var qu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Ju=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`);function Yu(e){if(typeof window>`u`||window.MathJax?.typesetPromise)return Promise.resolve();let t=globalThis,n=t[Ju];if(n)return n;let r=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||qu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)});return t[Ju]=r,r}function Xu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Zu(e={}){return async t=>{if(await Yu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Xu()}}var Qu=`@pie-lib/math-rendering`,$u=null;function ed(){return $u||=Zu({accessibility:!0,useSingleDollar:!0}),$u}function td(){if(typeof window>`u`)return null;let e=window[Qu];return typeof e?.renderMath==`function`?e:null}var nd=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=td();return r?await r.renderMath?.(n):await ed()(n),t?n.innerHTML:void 0},rd=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),id=q(Ku)(({theme:e})=>({paddingTop:e.spacing(2)})),ad=class extends I.Component{static propTypes={className:v.string,children:v.object,labels:v.shape({visible:v.string,hidden:v.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){nd(this.root)}componentDidUpdate(){nd(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,R.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,R.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,R.jsx)(rd,{children:r})}),(0,R.jsx)(id,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function od(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var sd=class e{static create(){return new e}static use(){let t=Ps(e.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=ld(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function cd(){return sd.use()}function ld(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function ud(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=I.useState(!1),f=z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=z(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),I.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,R.jsx)(`span`,{className:f,style:p,children:(0,R.jsx)(`span`,{className:m})})}var dd=Rr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),fd=550,pd=Ft`
49
49
  0% {
50
50
  transform: scale(0);
51
51
  opacity: 0.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/match",
3
- "version": "12.1.2-next.17",
3
+ "version": "12.1.2-next.19",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,31 +9,29 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@emotion/react": "^11.14.0",
12
- "@emotion/style": "^0.8.0",
13
12
  "@mui/icons-material": "^7.3.4",
14
13
  "@mui/material": "^7.3.4",
15
- "@pie-lib/correct-answer-toggle": "5.0.0-next.47",
16
- "@pie-lib/render-ui": "6.2.0-next.45",
17
- "@pie-lib/test-utils": "3.0.0-next.2",
14
+ "@pie-lib/correct-answer-toggle": "5.0.0-next.48",
15
+ "@pie-lib/render-ui": "6.2.0-next.46",
18
16
  "debug": "^4.1.1",
19
17
  "prop-types": "^15.8.1",
20
18
  "clsx": "^2.1.1",
21
19
  "@pie-element/shared-lodash": "0.1.1-next.2",
22
- "@pie-lib/editable-html-tip-tap": "3.0.0-next.39",
23
- "@pie-lib/drag": "4.1.0-next.45",
24
- "@pie-lib/config-ui": "14.0.0-next.39",
20
+ "@pie-lib/editable-html-tip-tap": "3.0.0-next.40",
21
+ "@pie-lib/drag": "4.1.0-next.46",
22
+ "@pie-lib/config-ui": "14.0.0-next.40",
25
23
  "@pie-element/shared-configure-events": "0.1.1-next.0",
26
24
  "@dnd-kit/core": "^6.3.1",
27
25
  "@pie-element/shared-feedback": "0.1.1-next.0",
28
- "@pie-element/shared-controller-utils": "0.1.1-next.2",
26
+ "@pie-element/shared-controller-utils": "0.1.1-next.3",
29
27
  "@pie-element/shared-player-events": "0.1.1-next.1",
30
- "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.1",
28
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.2",
31
29
  "react": "^18.2.0",
32
30
  "react-dom": "^18.2.0"
33
31
  },
34
32
  "peerDependencies": {
35
- "react": "^18.0.0",
36
- "react-dom": "^18.0.0"
33
+ "react": "^18.2.0 || ^19.0.0",
34
+ "react-dom": "^18.2.0 || ^19.0.0"
37
35
  },
38
36
  "exports": {
39
37
  ".": {
@@ -72,7 +70,8 @@
72
70
  "./runtime-support": {
73
71
  "types": "./dist/runtime-support.d.ts",
74
72
  "default": "./dist/runtime-support.js"
75
- }
73
+ },
74
+ "./package.json": "./package.json"
76
75
  },
77
76
  "type": "module",
78
77
  "main": "./dist/index.js",
@@ -85,7 +84,7 @@
85
84
  ],
86
85
  "sideEffects": false,
87
86
  "scripts": {
88
- "build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
87
+ "build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config ../../../tools/vite/element-browser-editor-runtime.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
89
88
  "dev": "bun x vite",
90
89
  "demo": "bun x vite --mode demo",
91
90
  "test": "bun x vitest run"
@@ -96,6 +95,15 @@
96
95
  "browserSharedDependencies": {
97
96
  "react": "18.2.0",
98
97
  "react-dom": "18.2.0"
98
+ },
99
+ "browserEditorRuntime": {
100
+ "name": "@pie-element/shared-editor-runtime",
101
+ "version": "0.1.1-next.0",
102
+ "views": {
103
+ "delivery": "editor-runtime/delivery",
104
+ "author": "editor-runtime/author",
105
+ "controller": "editor-runtime/controller"
106
+ }
99
107
  }
100
108
  }
101
109
  }