@pie-element/rubric 8.1.2-next.27 → 8.1.2-next.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{dist-BVrRc-cO.js → dist-CyZy25hh.js} +2 -2
- package/dist/browser/{dist-BVrRc-cO.js.map → dist-CyZy25hh.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{dist-JSpQV6Mr.js → dist-BGZk27NB.js} +2 -2
- package/dist/browser/editor-runtime/{dist-JSpQV6Mr.js.map → dist-BGZk27NB.js.map} +1 -1
- package/dist/browser/editor-runtime/{main-CW6jUmrC.js → main-BVaFOfzB.js} +2 -2
- package/dist/browser/editor-runtime/{main-CW6jUmrC.js.map → main-BVaFOfzB.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/{main-Bjg4r2Yy.js → main-BYn8hraT.js} +2 -2
- package/dist/browser/{main-Bjg4r2Yy.js.map → main-BYn8hraT.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/index.iife.js +1 -1
- package/module/print.js +1 -1
- package/module/print.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-CHQKHQ89.js";
|
|
2
|
-
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-
|
|
2
|
+
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-BGZk27NB.js";
|
|
3
3
|
import l from "react";
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
//#region src/delivery/main.tsx
|
|
@@ -151,4 +151,4 @@ var h = m(a, "UiLayout") || m(v.UiLayout, "UiLayout"), g = s, _ = g.default, v =
|
|
|
151
151
|
//#endregion
|
|
152
152
|
export { O as t };
|
|
153
153
|
|
|
154
|
-
//# sourceMappingURL=main-
|
|
154
|
+
//# sourceMappingURL=main-BVaFOfzB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-CW6jUmrC.js","names":[],"sources":["../../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/rubric/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":";;;;;;AAiBA,SAAS,EAA6B,GAAY;CAChD,OACE,OAAO,KAAU,cAChB,OAAO,KAAU,cAAY,KAAkB,OAAO,EAAM,YAAa;AAE9E;AAEA,SAAS,EAAyB,GAAkB,GAAsB;CAUxE,OATI,CAAC,KACD,EAA6B,CAAW,IAAU,IAClD,EAA6B,EAAY,OAAO,IAAU,EAAY,UACtE,KAAe,EAA6B,EAAY,EAAY,IAC/D,EAAY,KAEjB,KAAe,EAA6B,EAAY,EAAY,EAAE,OAAO,IACxE,EAAY,EAAY,CAAC,UAE3B;AACT;AACA,IAAM,IAAW,EAAyB,GAAgB,UAAU,KAAK,EAAyB,EAAS,UAAU,UAAU,GAEzH,IAAuB,GACvB,IAAuB,EAAqB,SAC5C,IACJ,KAAwB,OAAO,KAAyB,WACpD,IACA,GAGA,IAAsB,EAAO,CAAQ,CAAC,CAAC;CAC3C,OAAO,EAAM,KAAK;CAClB,iBAAiB,EAAM,WAAW;CAElC,yBAAyB,EACvB,gBAAgB,WAClB;CACA,sDAAsD;EACpD,SAAS;EACT,WAAW;CACb;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GAAD;IAA+B;cAA/B,CAEE,kBAAC,GAAD,EAAA,UAAoB,SAA0B,CAAA,GAC5C,IAgDA,IA/CA,kBAAC,EAAM,UAAP,EAAA,UAAA,CACE,kBAAC,GAAD;KACE,IAAI;KACJ,UAAU;KACV,MAAK;KACL,iBAAe,KAAK,MAAM;KAC1B,SAAS,KAAK;KACd,aAAa,MAAM;MACjB,CAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,QAAK,KAAK,aAAa;KAC5D;eARF;MAUG,KAAK,MAAM;MAAW;MACvB,kBAAC,GAAD;OAAc,eAAY;iBACvB,KAAK,MAAM,aACV,kBAAC,OAAD;QACE,OAAM;QACN,QAAO;QACP,SAAQ;QACR,MAAK;QACL,QAAO;QACP,aAAY;QACZ,eAAc;QACd,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,kBAA4B,CAAA;OAC1C,CAAA,IAEL,kBAAC,OAAD;QACE,OAAM;QACN,QAAO;QACP,SAAQ;QACR,MAAK;QACL,QAAO;QACP,aAAY;QACZ,eAAc;QACd,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,iBAA2B,CAAA;OACzC,CAAA;MAEK,CAAA;KACF;QACd,kBAAC,GAAD;KAAU,IAAI,KAAK,MAAM;KAAY,SAAS;MAAE,OAAO;MAAK,MAAM;KAAI;eACnE;IACO,CAAA,CACI,EAAA,CAAA,CAIJ;;EAEpB,OACE,OAAO;CAEX;AACF"}
|
|
1
|
+
{"version":3,"file":"main-BVaFOfzB.js","names":[],"sources":["../../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/rubric/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment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,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,kBAA4B,CAAA;OAC1C,CAAA,IAEL,kBAAC,OAAD;QACE,OAAM;QACN,QAAO;QACP,SAAQ;QACR,MAAK;QACL,QAAO;QACP,aAAY;QACZ,eAAc;QACd,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,iBAA2B,CAAA;OACzC,CAAA;MAEK,CAAA;KACF;QACd,kBAAC,GAAD;KAAU,IAAI,KAAK,MAAM;KAAY,SAAS;MAAE,OAAO;MAAK,MAAM;KAAI;eACnE;IACO,CAAA,CACI,EAAA,CAAA,CAIJ;;EAEpB,OACE,OAAO;CAEX;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "../rolldown-runtime-CHQKHQ89.js";
|
|
2
|
-
import { _ as t, y as n } from "../dist-
|
|
3
|
-
import { t as r } from "../main-
|
|
2
|
+
import { _ as t, y as n } from "../dist-BGZk27NB.js";
|
|
3
|
+
import { t as r } from "../main-BVaFOfzB.js";
|
|
4
4
|
import { c as i } from "../dist-B8zq6W6A.js";
|
|
5
5
|
import a from "react";
|
|
6
6
|
import { createRoot as o } from "react-dom/client";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-
|
|
2
|
+
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-CyZy25hh.js";
|
|
3
3
|
import l from "react";
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
//#region src/delivery/main.tsx
|
|
@@ -151,4 +151,4 @@ var h = m(a, "UiLayout") || m(v.UiLayout, "UiLayout"), g = s, _ = g.default, v =
|
|
|
151
151
|
//#endregion
|
|
152
152
|
export { O as t };
|
|
153
153
|
|
|
154
|
-
//# sourceMappingURL=main-
|
|
154
|
+
//# sourceMappingURL=main-BYn8hraT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-Bjg4r2Yy.js","names":[],"sources":["../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/rubric/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":";;;;;;AAiBA,SAAS,EAA6B,GAAY;CAChD,OACE,OAAO,KAAU,cAChB,OAAO,KAAU,cAAY,KAAkB,OAAO,EAAM,YAAa;AAE9E;AAEA,SAAS,EAAyB,GAAkB,GAAsB;CAUxE,OATI,CAAC,KACD,EAA6B,CAAW,IAAU,IAClD,EAA6B,EAAY,OAAO,IAAU,EAAY,UACtE,KAAe,EAA6B,EAAY,EAAY,IAC/D,EAAY,KAEjB,KAAe,EAA6B,EAAY,EAAY,EAAE,OAAO,IACxE,EAAY,EAAY,CAAC,UAE3B;AACT;AACA,IAAM,IAAW,EAAyB,GAAgB,UAAU,KAAK,EAAyB,EAAS,UAAU,UAAU,GAEzH,IAAuB,GACvB,IAAuB,EAAqB,SAC5C,IACJ,KAAwB,OAAO,KAAyB,WACpD,IACA,GAGA,IAAsB,EAAO,CAAQ,CAAC,CAAC;CAC3C,OAAO,EAAM,KAAK;CAClB,iBAAiB,EAAM,WAAW;CAElC,yBAAyB,EACvB,gBAAgB,WAClB;CACA,sDAAsD;EACpD,SAAS;EACT,WAAW;CACb;CAEA,kBAAkB;EAChB,cAAc;EACd,WAAW;EACX,YAAY;CACd;AACF,CAAC,GAEK,IAAsB,EAAO,CAAQ,CAAC,CAAC;CAC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,EAAA,UAAA,CACE,kBAAC,GAAD;KACE,IAAI;KACJ,UAAU;KACV,MAAK;KACL,iBAAe,KAAK,MAAM;KAC1B,SAAS,KAAK;KACd,aAAa,MAAM;MACjB,CAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,QAAK,KAAK,aAAa;KAC5D;eARF;MAUG,KAAK,MAAM;MAAW;MACvB,kBAAC,GAAD;OAAc,eAAY;iBACvB,KAAK,MAAM,aACV,kBAAC,OAAD;QACE,OAAM;QACN,QAAO;QACP,SAAQ;QACR,MAAK;QACL,QAAO;QACP,aAAY;QACZ,eAAc;QACd,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,kBAA4B,CAAA;OAC1C,CAAA,IAEL,kBAAC,OAAD;QACE,OAAM;QACN,QAAO;QACP,SAAQ;QACR,MAAK;QACL,QAAO;QACP,aAAY;QACZ,eAAc;QACd,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,iBAA2B,CAAA;OACzC,CAAA;MAEK,CAAA;KACF;QACd,kBAAC,GAAD;KAAU,IAAI,KAAK,MAAM;KAAY,SAAS;MAAE,OAAO;MAAK,MAAM;KAAI;eACnE;IACO,CAAA,CACI,EAAA,CAAA,CAIJ;;EAEpB,OACE,OAAO;CAEX;AACF"}
|
|
1
|
+
{"version":3,"file":"main-BYn8hraT.js","names":[],"sources":["../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/rubric/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":";;;;;;AAiBA,SAAS,E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;QACP,SAAQ;QACR,MAAK;QACL,QAAO;QACP,aAAY;QACZ,eAAc;QACd,gBAAe;kBAEf,kBAAC,YAAD,EAAU,QAAO,iBAA2B,CAAA;OACzC,CAAA;MAEK,CAAA;KACF;QACd,kBAAC,GAAD;KAAU,IAAI,KAAK,MAAM;KAAY,SAAS;MAAE,OAAO;MAAK,MAAM;KAAI;eACnE;IACO,CAAA,CACI,EAAA,CAAA,CAIJ;;EAEpB,OACE,OAAO;CAEX;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "../rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { _ as t, y as n } from "../dist-
|
|
3
|
-
import { t as r } from "../main-
|
|
2
|
+
import { _ as t, y as n } from "../dist-CyZy25hh.js";
|
|
3
|
+
import { t as r } from "../main-BYn8hraT.js";
|
|
4
4
|
import { c as i } from "../dist-B8zq6W6A.js";
|
|
5
5
|
import a from "react";
|
|
6
6
|
import { createRoot as o } from "react-dom/client";
|
package/dist/index.iife.js
CHANGED
|
@@ -115,7 +115,7 @@ Error generating stack: `+e.message+`
|
|
|
115
115
|
}
|
|
116
116
|
`,Os=I.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=go({props:e,name:`MuiTouchRipple`}),[o,s]=I.useState([]),c=I.useRef(0),l=I.useRef(null);I.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=I.useRef(!1),d=ys(),f=I.useRef(null),p=I.useRef(null),m=I.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,R.jsx)(Ds,{classes:{ripple:H(r.ripple,xs.ripple),rippleVisible:H(r.rippleVisible,xs.rippleVisible),ripplePulsate:H(r.ripplePulsate,xs.ripplePulsate),child:H(r.child,xs.child),childLeaving:H(r.childLeaving,xs.childLeaving),childPulsate:H(r.childPulsate,xs.childPulsate)},timeout:Ss,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=I.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=I.useCallback(()=>{h({},{pulsate:!0})},[h]),_=I.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return I.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,R.jsx)(Es,{className:H(xs.root,r.root,i),ref:p,...a,children:(0,R.jsx)(hs,{component:null,exit:!0,children:o})})});function ks(e){return Or(`MuiButtonBase`,e)}var As=kr(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),js=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=qi({root:[`root`,t&&`disabled`,n&&`focusVisible`]},ks,i);return n&&r&&(a.root+=` ${r}`),a},Ms=J(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${As.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),Ns=I.forwardRef(function(e,t){let n=go({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:ee=0,TouchRippleProps:te,touchRippleRef:O,type:k,...A}=n,j=I.useRef(null),M=Po(),N=yo(M.ref,O),[ne,P]=I.useState(!1);c&&ne&&P(!1),I.useImperativeHandle(r,()=>({focusVisible:()=>{P(!0),j.current.focus()}}),[]);let F=M.shouldMount&&!l&&!c;I.useEffect(()=>{ne&&d&&!l&&M.pulsate()},[l,d,ne,M]);let re=Ps(M,`start`,S,u),ie=Ps(M,`stop`,g,u),ae=Ps(M,`stop`,_,u),oe=Ps(M,`stop`,w,u),se=Ps(M,`stop`,e=>{ne&&e.preventDefault(),C&&C(e)},u),ce=Ps(M,`start`,D,u),le=Ps(M,`stop`,T,u),ue=Ps(M,`stop`,E,u),de=Ps(M,`stop`,e=>{Oo(e.target)||P(!1),m&&m(e)},!1),fe=Ao(e=>{j.current||=e.currentTarget,Oo(e.target)&&(P(!0),y&&y(e)),v&&v(e)}),pe=()=>{let e=j.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},me=Ao(e=>{d&&!e.repeat&&ne&&e.key===` `&&M.stop(e,()=>{M.start(e)}),e.target===e.currentTarget&&pe()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&pe()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),he=Ao(e=>{d&&e.key===` `&&ne&&!e.defaultPrevented&&M.stop(e,()=>{M.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&pe()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),ge=s;ge===`button`&&(A.href||A.to)&&(ge=p);let _e={};if(ge===`button`){let e=!!A.formAction;_e.type=k===void 0&&!e?`button`:k,_e.disabled=c}else!A.href&&!A.to&&(_e.role=`button`),c&&(_e[`aria-disabled`]=c);let ve=yo(t,j),ye={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:ee,focusVisible:ne},be=js(ye);return(0,R.jsxs)(Ms,{as:ge,className:H(be.root,o),ownerState:ye,onBlur:de,onClick:h,onContextMenu:ie,onFocus:fe,onKeyDown:me,onKeyUp:he,onMouseDown:re,onMouseLeave:se,onMouseUp:oe,onDragLeave:ae,onTouchEnd:le,onTouchMove:ue,onTouchStart:ce,ref:ve,tabIndex:c?-1:ee,type:k,..._e,...A,children:[a,F?(0,R.jsx)(Os,{ref:N,center:i,...te}):null]})});function Ps(e,t,n,r=!1){return Ao(i=>(n&&n(i),r||e[t](i),!0))}var Fs=Ur,Is=kr(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function Ls(e){return Or(`MuiListItemSecondaryAction`,e)}kr(`MuiListItemSecondaryAction`,[`root`,`disableGutters`]);var Rs=e=>{let{disableGutters:t,classes:n}=e;return qi({root:[`root`,t&&`disableGutters`]},Ls,n)},zs=J(`div`,{name:`MuiListItemSecondaryAction`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Bs=I.forwardRef(function(e,t){let n=go({props:e,name:`MuiListItemSecondaryAction`}),{className:r,...i}=n,a=I.useContext(Eo),o={...n,disableGutters:a.disableGutters},s=Rs(o);return(0,R.jsx)(zs,{className:H(s.root,r),ownerState:o,ref:t,...i})});Bs.muiName=`ListItemSecondaryAction`;var Vs=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Hs=e=>{let{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:o,hasSecondaryAction:s}=e;return qi({root:[`root`,r&&`dense`,!i&&`gutters`,!a&&`padding`,o&&`divider`,t===`flex-start`&&`alignItemsFlexStart`,s&&`secondaryAction`],container:[`container`],secondaryAction:[`secondaryAction`]},Do,n)},Us=J(`div`,{name:`MuiListItem`,slot:`Root`,overridesResolver:Vs})(ho(({theme:e})=>({display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,width:`100%`,boxSizing:`border-box`,textAlign:`left`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Is.root}`]:{paddingRight:48}}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),Ws=J(`li`,{name:`MuiListItem`,slot:`Container`})({position:`relative`}),Gs=I.forwardRef(function(e,t){let n=go({props:e,name:`MuiListItem`}),{alignItems:r=`center`,children:i,className:a,component:o,components:s={},componentsProps:c={},ContainerComponent:l=`li`,ContainerProps:{className:u,...d}={},dense:f=!1,disableGutters:p=!1,disablePadding:m=!1,divider:h=!1,secondaryAction:g,slotProps:_={},slots:v={},...y}=n,b=I.useContext(Eo),x=I.useMemo(()=>({dense:f||b.dense||!1,alignItems:r,disableGutters:p}),[r,b.dense,f,p]),S=I.useRef(null),C=I.Children.toArray(i),w=C.length&&_o(C[C.length-1],[`ListItemSecondaryAction`]),T={...n,alignItems:r,dense:x.dense,disableGutters:p,disablePadding:m,divider:h,hasSecondaryAction:w},E=Hs(T),D=yo(S,t),[ee,te]=To(`secondaryAction`,{elementType:Bs,externalForwardedProps:{slots:v,slotProps:_},ownerState:T,className:E.secondaryAction}),O=v.root||s.Root||Us,k=_.root||c.root||{},A={className:H(E.root,k.className,a),...y},j=o||`li`;return w?(j=!A.component&&!o?`div`:j,l===`li`&&(j===`li`?j=`div`:A.component===`li`&&(A.component=`div`)),(0,R.jsx)(Eo.Provider,{value:x,children:(0,R.jsxs)(Ws,{as:l,className:H(E.container,u),ref:D,ownerState:T,...d,children:[(0,R.jsx)(O,{...k,...!Y(O)&&{as:j,ownerState:{...T,...k.ownerState}},...A,children:C}),C.pop()]})})):(0,R.jsx)(Eo.Provider,{value:x,children:(0,R.jsxs)(O,{...k,as:j,ref:D,...!Y(O)&&{ownerState:{...T,...k.ownerState}},...A,children:[C,g&&(0,R.jsx)(ee,{...te,children:g})]})})});function Ks(e){return Or(`MuiList`,e)}kr(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var qs=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return qi({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Ks,t)},Js=J(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ys=I.forwardRef(function(e,t){let n=go({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=I.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=qs(d);return(0,R.jsx)(Eo.Provider,{value:u,children:(0,R.jsxs)(Js,{as:a,className:H(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Xs=e=>e.scrollTop;function Zs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Qs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function $s(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}}var ec=vn;function tc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function nc(e){return Or(`MuiSvgIcon`,e)}kr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var rc=e=>{let{color:t,fontSize:n,classes:r}=e;return qi({root:[`root`,t!==`inherit`&&`color${ec(t)}`,`fontSize${ec(n)}`]},nc,r)},ic=J(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${ec(n.color)}`],t[`fontSize${ec(n.fontSize)}`]]}})(ho(({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}}]}))),ac=I.forwardRef(function(e,t){let n=go({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=rc(m);return(0,R.jsxs)(ic,{as:o,className:H(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]})});ac.muiName=`SvgIcon`;function oc(e,t){function n(t,n){return(0,R.jsx)(ac,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ac.muiName,I.memo(I.forwardRef(n))}function sc(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var cc=sc;function lc(e){return e&&e.ownerDocument||document}var uc=lc;function dc(e){return lc(e).defaultView||window}var fc=dc;function pc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var X=xi;function mc(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function hc(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{mc(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=H(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=H(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 gc(e){return Or(`MuiCollapse`,e)}kr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var _c=e=>{let{orientation:t,classes:n}=e;return qi({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},gc,n)},vc=J(`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]}})(ho(({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`}}]}))),yc=J(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),bc=J(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),xc=I.forwardRef(function(e,t){let n=go({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=Oa.standard,TransitionComponent:x=ns,...S}=n,C={...n,orientation:g,collapsedSize:o},w=_c(C),T=io(),E=ys(),D=I.useRef(null),ee=I.useRef(),te=typeof o==`number`?`${o}px`:o,O=g===`horizontal`,k=O?`width`:`height`,A=I.useRef(null),j=yo(t,A),M=()=>D.current?D.current[O?`clientWidth`:`clientHeight`]:0,N=Zs(A,(e,t)=>{D.current&&O&&(D.current.style.position=`absolute`),e.style[k]=te,u&&u(e,t)}),ne=Zs(A,(e,t)=>{let n=M();D.current&&O&&(D.current.style.position=``);let{duration:r,easing:i}=$s({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[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),P=Zs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),F=Zs(A,e=>{e.style[k]=`${M()}px`,p&&p(e)}),re=Zs(A,m),ie=Zs(A,e=>{let t=M(),{duration:n,easing:r}=$s({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[k]=te,e.style.transitionTimingFunction=r,h&&h(e)}),ae=e=>{b===`auto`&&E.start(ee.current||0,e),r&&r(A.current,e)},oe={slots:_,slotProps:v,component:s},[se,ce]=To(`root`,{ref:j,className:H(w.root,a),elementType:vc,externalForwardedProps:oe,ownerState:C,additionalProps:{style:{[O?`minWidth`:`minHeight`]:te,...y}}}),[le,ue]=To(`wrapper`,{ref:D,className:w.wrapper,elementType:yc,externalForwardedProps:oe,ownerState:C}),[de,fe]=To(`wrapperInner`,{className:w.wrapperInner,elementType:bc,externalForwardedProps:oe,ownerState:C});return(0,R.jsx)(x,{in:l,onEnter:N,onEntered:P,onEntering:ne,onExit:F,onExited:re,onExiting:ie,addEndListener:ae,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,R.jsx)(se,{...ce,className:H(ce.className,{entered:w.entered,exited:!l&&te===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,R.jsx)(le,{...ue,ownerState:r,children:(0,R.jsx)(de,{...fe,ownerState:r,children:i})})})}})});xc&&(xc.muiSupportAuto=!0);var Sc=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,Cc=({size:e,children:t})=>(e=Sc(e),(0,R.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));Cc.propTypes={size:L.number,children:L.oneOfType([L.arrayOf(L.node),L.node]).isRequired};var wc=({size:e,children:t,sx:n})=>(0,R.jsx)(Cc,{size:e,children:(0,R.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});wc.propTypes={size:L.oneOfType([L.string,L.number]),children:L.oneOfType([L.arrayOf(L.node),L.node]).isRequired,sx:L.object};var Tc=({fill:e})=>(0,R.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});Tc.propTypes={fill:L.string.isRequired};var Ec=({fill:e})=>(0,R.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});Ec.propTypes={fill:L.string.isRequired};var Dc=({fill:e})=>(0,R.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});Dc.propTypes={fill:L.string.isRequired};var Oc=({fill:e})=>(0,R.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});Oc.propTypes={fill:L.string.isRequired};var kc=({fill:e})=>(0,R.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});kc.propTypes={fill:L.string.isRequired};var Ac=(e,t)=>{class n extends I.Component{static propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,size:L.oneOfType([L.number,L.string]),fg:L.string,bg:L.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,R.jsx)(e,{fill:s}):(0,R.jsx)(t,{fill:s}),u=n===`check`?(0,R.jsx)(e,{fill:c}):(0,R.jsx)(t,{fill:c});return a?(0,R.jsx)(wc,{size:o,children:u}):(0,R.jsxs)(wc,{size:o,children:[i===`feedback`?r===`round`?(0,R.jsx)(Dc,{fill:c}):(0,R.jsx)(Ec,{fill:c}):r===`round`?(0,R.jsx)(Oc,{fill:c}):(0,R.jsx)(kc,{fill:c}),l]})}}return n},jc=({fill:e})=>(0,R.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,R.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
|
|
117
117
|
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,R.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,R.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});jc.propTypes={fill:L.string.isRequired};var Mc=({fill:e,x:t=0,y:n=0})=>(0,R.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});Mc.propTypes={fill:L.string.isRequired,x:L.number,y:L.number};var Nc=Ac(Mc,jc);Nc.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},Nc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var Pc=({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})]});Pc.propTypes={fill:L.string.isRequired};var Fc=({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})]});Fc.propTypes={fill:L.string.isRequired};var Ic=Ac(Pc,Fc);Ic.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},Ic.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Lc=({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})]});Lc.propTypes={fill:L.string.isRequired};var Rc=({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});Rc.propTypes={fill:L.string.isRequired};var zc=({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
|
|
118
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});zc.propTypes={fill:L.string.isRequired};var Bc=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(Lc,{fill:t})]}),emoji:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),feedback:{check:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),emoji:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),square:{check:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(Lc,{fill:t})]}),emoji:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),open:{check:(0,R.jsx)(wc,{children:(0,R.jsx)(Lc,{fill:n})}),emoji:(0,R.jsx)(wc,{children:(0,R.jsx)(zc,{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]}};Bc.propTypes={iconSet:L.oneOf([`emoji`,`check`,void 0]),shape:L.oneOf([`square`,void 0]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string},Bc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Vc=({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})]});Vc.propTypes={fill:L.string.isRequired};var Hc=({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})]});Hc.propTypes={fill:L.string.isRequired};var Z=Ac(Vc,Hc);Z.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},Z.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Uc(e){return e?.ref||null}function Wc(e){return`scale(${e}, ${e**2})`}var Gc={entering:{opacity:1,transform:Wc(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Wc(.75)},exited:{opacity:0,transform:Wc(.75)}},Kc={opacity:0,transform:Wc(.75),visibility:`hidden`},qc=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=ys(),_=I.useRef(),v=io(),y=I.useRef(null),b=yo(y,Uc(i),t),x=Zs(y,l),S=Zs(y,(e,t)=>{Xs(e);let{duration:n,delay:r,easing:i}=$s({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=Zs(y,c),w=Zs(y,f),T=Zs(y,e=>{let{duration:t,delay:n,easing:r}=$s({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=Wc(.75),u&&u(e)}),E=Zs(y,e=>{e.style.transition=``,d&&d(e)});return(0,R.jsx)(ns,{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=Qs(e,o,Gc,Kc,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});qc&&(qc.muiSupportAuto=!0);function Jc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yc(e){let t=lc(e);return t.body===e?dc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Zc(e){return parseFloat(dc(e).getComputedStyle(e).paddingRight)||0}function Qc(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 $c(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Qc(e);t&&n&&Xc(e,i)})}function el(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function tl(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Yc(r)){let e=Jc(dc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Zc(r)+e}px`;let t=lc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Zc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=lc(r).body;else{let t=r.parentElement,n=dc(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 nl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var rl=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&&Xc(e.modalRef,!1);let r=nl(t);$c(t,e.mount,e.modalRef,r,!0);let i=el(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=el(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=tl(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=el(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&&Xc(e.modalRef,t),$c(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&&Xc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function il(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 al=il;function ol(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var sl=ol,cl=`data-mui-focusable`;function ll(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${cl}]`):null}var ul=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function dl(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 fl(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 pl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||fl(e))}function ml(e){let t=[],n=[];return Array.from(e.querySelectorAll(ul)).forEach((e,r)=>{let i=dl(e);i===-1||!pl(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 hl(){return!0}function gl(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ml,isEnabled:o=hl,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=vo(Uc(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=sl(lc(m.current)),t=ll(m.current)??m.current;return al(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=lc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&sl(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=sl(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(al(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=sl(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 _l(e){return typeof e==`function`?e():e}var vl=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=vo(I.isValidElement(n)?Uc(n):null,t);if(Ur(()=>{i||o(_l(r)||document.body)},[r,i]),Ur(()=>{if(a&&!i)return pc(t,a),()=>{pc(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Xo.createPortal(n,a)}),yl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},bl={opacity:0,visibility:`hidden`},xl=I.forwardRef(function(e,t){let n=io(),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=yo(v,Uc(o),t),b=Zs(v,d),x=Zs(v,(e,t)=>{Xs(e);let r=$s({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Zs(v,u),C=Zs(v,m),w=Zs(v,e=>{let t=$s({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Zs(v,e=>{e.style.transition=``,p&&p(e)});return(0,R.jsx)(ns,{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=Qs(e,c,yl,bl,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function Sl(e){return Or(`MuiBackdrop`,e)}kr(`MuiBackdrop`,[`root`,`invisible`]);var Cl=e=>{let{classes:t,invisible:n}=e;return qi({root:[`root`,n&&`invisible`]},Sl,t)},wl=J(`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`}}]}),Tl=I.forwardRef(function(e,t){let n=go({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=Cl(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=To(`root`,{elementType:wl,externalForwardedProps:_,className:H(g.root,i),ownerState:h}),[b,x]=To(`transition`,{elementType:xl,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 El(e){return typeof e==`function`?e():e}function Dl(e){return e?e.props.hasOwnProperty(`in`):!1}var Ol=()=>{},kl=new rl;function Al(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=vo(p,u),[h,g]=I.useState(!l),_=Dl(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>lc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{kl.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ko(()=>{let e=El(t)||y().body;kl.add(b(),e),p.current&&x()}),C=()=>kl.isTopModal(b()),w=ko(e=>{f.current=e,e&&(l&&C()?x():p.current&&Xc(p.current,v))}),T=I.useCallback(()=>{kl.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=So(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:tc(()=>{g(!1),a&&a()},s?.props.onEnter??Ol),onExited:tc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Ol)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function jl(e){return Or(`MuiModal`,e)}kr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Ml=e=>{let{open:t,exited:n,classes:r}=e;return qi({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},jl,r)},Nl=J(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ho(({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`}}]}))),Pl=J(Tl,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Fl=I.forwardRef(function(e,t){let n=go({name:`MuiModal`,props:e}),{BackdropComponent:r=Pl,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:O,getBackdropProps:k,getTransitionProps:A,portalRef:j,isTopModal:M,exited:N,hasTransition:ne}=Al({...te,rootRef:t}),P={...te,exited:N},F=Ml(P),re={};if(c.props.tabIndex===void 0&&(re.tabIndex=`-1`),ne){let{onEnter:e,onExited:t}=A();re.onEnter=e,re.onExited=t}let ie={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ae,oe]=To(`root`,{ref:t,elementType:Nl,externalForwardedProps:{...ie,...ee,component:u},getSlotProps:O,ownerState:P,className:H(o,F?.root,!P.open&&P.exited&&F?.hidden)}),[se,ce]=To(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:H(i?.className,F?.backdrop),ownerState:P});return!b&&!w&&(!ne||N)?null:(0,R.jsx)(vl,{ref:j,container:l,disablePortal:g,children:(0,R.jsxs)(ae,{...oe,children:[!y&&r?(0,R.jsx)(se,{...ce}):null,(0,R.jsx)(gl,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:I.cloneElement(c,re)})]})})});function Il(e){return Or(`MuiPaper`,e)}kr(`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 Ll=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return qi({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Il,i)},Rl=J(`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}`]]}})(ho(({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)`}}]}))),zl=I.forwardRef(function(e,t){let n=go({props:e,name:`MuiPaper`}),r=io(),{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=Ll(u);return(0,R.jsx)(Rl,{as:a,ownerState:u,className:H(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(${ei(`#fff`,za(o))}, ${ei(`#fff`,za(o))})`}},...l.style}})});function Bl(e){return Or(`MuiPopover`,e)}kr(`MuiPopover`,[`root`,`paper`]);function Vl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Hl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Ul(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Wl(e){return typeof e==`function`?e():e}var Gl=e=>{let{classes:t}=e;return qi({root:[`root`],paper:[`paper`]},Bl,t)},Kl=J(Fl,{name:`MuiPopover`,slot:`Root`})({}),ql=J(zl,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Jl=I.forwardRef(function(e,t){let n=go({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=Gl(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Wl(i),t=(e&&e.nodeType===1?e:uc(C.current).body).getBoundingClientRect();return{top:t.top+Vl(t,a.vertical),left:t.left+Hl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:Vl(e,_.vertical),horizontal:Hl(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:Ul(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=fc(Wl(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:Ul(n)}},[i,s,E,D,f]),[te,O]=I.useState(p),k=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,O(!0)},[ee]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},j=()=>{O(!1)};I.useEffect(()=>{p&&k()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),I.useEffect(()=>{if(!p)return;let e=cc(()=>{k()}),t=fc(Wl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let M=y,N={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ne,P]=To(`transition`,{elementType:qc,externalForwardedProps:N,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),j()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ne.muiSupportAuto&&(M=void 0);let F=u||(i?uc(Wl(i)).body:void 0),[re,{slots:ie,slotProps:ae,...oe}]=To(`root`,{ref:t,elementType:Kl,externalForwardedProps:{...N,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:hc(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:F,open:p},ownerState:w,className:H(T.root,l)}),[se,ce]=To(`paper`,{ref:C,className:T.paper,elementType:ql,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:te?void 0:{opacity:0}},ownerState:w});return(0,R.jsx)(re,{...oe,...!Y(re)&&{slots:ie,slotProps:ae,disableScrollLock:x},children:(0,R.jsx)(ne,{...P,timeout:M,children:(0,R.jsx)(se,{...ce,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`},Xl={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`},Zl=s({background:()=>xu,backgroundDark:()=>Su,black:()=>Fu,blueGrey100:()=>Uu,blueGrey300:()=>Wu,blueGrey600:()=>Gu,blueGrey900:()=>Ku,border:()=>Ou,borderDark:()=>Au,borderGray:()=>ju,borderLight:()=>ku,buttonBorder:()=>$u,buttonFocusOutline:()=>Hu,buttonHoverBg:()=>ed,correct:()=>ru,correctSecondary:()=>iu,correctTertiary:()=>au,correctWithIcon:()=>ou,defaults:()=>Q,disabled:()=>eu,disabledSecondary:()=>tu,disabledText:()=>nu,dropdownBackground:()=>wu,fadedPrimary:()=>gu,focusChecked:()=>Ru,focusCheckedBorder:()=>zu,focusUnchecked:()=>Bu,focusUncheckedBorder:()=>Vu,incorrect:()=>su,incorrectSecondary:()=>lu,incorrectWithIcon:()=>cu,keyBoardFocusIndicator:()=>Qu,keypadButton:()=>qu,keypadButtonHover:()=>Xu,keypadButtonOperator:()=>Ju,keypadButtonOperatorHover:()=>Zu,keypadEmptyPlaceholder:()=>Yu,missing:()=>uu,missingWithIcon:()=>du,primary:()=>fu,primaryDark:()=>mu,primaryLight:()=>pu,primaryText:()=>hu,secondary:()=>_u,secondaryBackground:()=>Cu,secondaryDark:()=>yu,secondaryLight:()=>vu,secondaryText:()=>bu,surface:()=>Tu,tableGrid:()=>Mu,tableGridLight:()=>Nu,tableStripe:()=>Pu,tertiary:()=>Eu,tertiaryLight:()=>Du,text:()=>$l,transparent:()=>Lu,v:()=>Ql,visualElementsColors:()=>td,white:()=>Iu}),Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:na[500],CORRECT_SECONDARY:na[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:$i[500],INCORRECT_SECONDARY:Qi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Qi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Xl[500],PRIMARY_LIGHT:Xl[200],PRIMARY_DARK:Xl[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(Q);var Ql=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},$=Ql(`pie`),$l=()=>$(`text`,Q.TEXT),eu=()=>$(`disabled`,Q.DISABLED),tu=()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),nu=()=>$(`disabled-text`,`text`,Q.DISABLED_TEXT),ru=()=>$(`correct`,Q.CORRECT),iu=()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),au=()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),ou=()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),su=()=>$(`incorrect`,Q.INCORRECT),cu=()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),lu=()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),uu=()=>$(`missing`,Q.MISSING),du=()=>$(`missing-icon`,Q.MISSING_WITH_ICON),fu=()=>$(`primary`,Q.PRIMARY),pu=()=>$(`primary-light`,Q.PRIMARY_LIGHT),mu=()=>$(`primary-dark`,Q.PRIMARY_DARK),hu=()=>$(`primary-text`,`text`,Q.TEXT),gu=()=>$(`faded-primary`,Q.FADED_PRIMARY),_u=()=>$(`secondary`,Q.SECONDARY),vu=()=>$(`secondary-light`,Q.SECONDARY_LIGHT),yu=()=>$(`secondary-dark`,Q.SECONDARY_DARK),bu=()=>$(`secondary-text`,`text`,Q.TEXT),xu=()=>$(`background`,Q.BACKGROUND),Su=()=>$(`background-dark`,Q.BACKGROUND_DARK),Cu=()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),wu=()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),Tu=()=>$(`surface`,Q.SURFACE),Eu=()=>$(`tertiary`,Q.TERTIARY),Du=()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),Ou=()=>$(`border`,Q.BORDER),ku=()=>$(`border-light`,Q.BORDER_LIGHT),Au=()=>$(`border-dark`,Q.BORDER_DARK),ju=()=>$(`border-gray`,Q.BORDER_GRAY),Mu=()=>$(`table-grid`,`text`,Q.TABLE_GRID),Nu=()=>$(`table-grid-light`,`border-light`,Q.TABLE_GRID_LIGHT),Pu=()=>$(`table-stripe`,`background-dark`,Q.TABLE_STRIPE),Fu=()=>$(`black`,Q.BLACK),Iu=()=>$(`white`,Q.WHITE),Lu=()=>Q.TRANSPARENT,Ru=()=>$(`focus-checked`,Q.FOCUS_CHECKED),zu=()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),Bu=()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),Vu=()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),Hu=()=>$(`button-focus-outline`,Q.BUTTON_FOCUS_OUTLINE),Uu=()=>$(`blue-grey-100`,Q.BLUE_GREY100),Wu=()=>$(`blue-grey-300`,Q.BLUE_GREY300),Gu=()=>$(`blue-grey-600`,Q.BLUE_GREY600),Ku=()=>$(`blue-grey-900`,Q.BLUE_GREY900),qu=()=>$(`keypad-button`,Q.KEYPAD_BUTTON),Ju=()=>$(`keypad-button-operator`,Q.KEYPAD_BUTTON_OPERATOR),Yu=()=>$(`keypad-empty-placeholder`,Q.KEYPAD_EMPTY_PLACEHOLDER),Xu=()=>$(`keypad-button-hover`,Q.KEYPAD_BUTTON_HOVER),Zu=()=>$(`keypad-button-operator-hover`,Q.KEYPAD_BUTTON_OPERATOR_HOVER),Qu=()=>$(`keyboard-focus-indicator`,Q.KEY_BOARD_FOCUS_INDICATOR),$u=()=>$(`button-border`,Q.BUTTON_BORDER),ed=()=>$(`button-hover-bg`,Q.BUTTON_HOVER_BG),td={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},nd=J(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),rd=J(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${eu()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${ru()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${su()})`}}),id=J(`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`}}),ad=class extends I.Component{static propTypes={correctness:L.string,feedback:L.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,R.jsx)(os,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,R.jsx)(id,{ref:this.nodeRef,children:(0,R.jsx)(nd,{children:(0,R.jsx)(rd,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,R.jsx)(`div`,{children:(0,R.jsx)(hs,{children:this.renderFeedback()})})}},od=()=>{};function sd(){let e=function(){};return e.enabled=!1,e.log=od,e.extend=()=>e,e.destroy=od,e}sd.log=od,sd.enable=od,sd.disable=()=>``,sd.enabled=()=>!1;var cd=s({Correct:()=>md,Incorrect:()=>hd,NothingSubmitted:()=>_d,PartiallyCorrect:()=>gd}),ld=sd(`pie-libs:render-ui:response-indicators`),ud=J(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),dd=J(Jl)({cursor:`pointer`}),fd=J(`div`)({padding:`0`,borderRadius:`4px`}),pd=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{ld(`[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)(ud,{hasFeedback:!!n,children:[(0,R.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,R.jsx)(e,{})}),n&&(0,R.jsx)(dd,{PaperComponent:fd,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,R.jsx)(ad,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:L.string},n},md=pd(Nc,`correct`),hd=pd(Ic,`incorrect`),gd=pd(Z,`partially-correct`),_d=pd(Bc,`nothing-submitted`),vd=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,yd=`pie-mathjax-version-conflict`,bd=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function xd(e,t){if(typeof window>`u`)return;let n=globalThis;n[bd]??={logged:!1,conditions:[]};let r=n[bd];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${vd}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(yd,{detail:{condition:e,message:i,docsUrl:vd}}))}function Sd(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var Cd=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,wd={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},Td=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Ed=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Dd=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Od=/\\embed\{newLine\}\[\]/g,kd=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Ad=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),jd=`PIE-MJX-CHTML-styles`,Md=`MJX-CHTML-styles`,Nd=[Md,`MJX-SVG-styles`],Pd=201;function Fd(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function Id(){return window.MathJax}function Ld(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of kd)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function Rd(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${Ld(e)}\\)`.replace(Od,`\\newline `),t.dataset.mathHandled=`true`)}}function zd(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Dd:Ed).test(e.textContent??``)}function Bd(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=Id(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&Vd(e),r?.defaultReady?.(),i&&Hd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...wd}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(Td),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Cd,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function Vd(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=jd)}function Hd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Fd(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Pd,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Fd(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Md&&(r.id=jd),Gd()}function Ud(e){return e instanceof HTMLStyleElement&&Nd.includes(e.id)}function Wd(e){xd(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Gd(){let e=document.head,t=[...e.children].find(Ud);if(t){Wd(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Ud);if(e){Wd(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Kd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Id()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function qd(e){let t=Id();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Kd(t):Bd(e)}function Jd(e){return qd(e).then(()=>{typeof Id()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Yd(e){let t=globalThis,n=t[Ad];return n||(n=Jd(e),t[Ad]=n),n}function Xd(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=Sd();r&&xd(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Rd(n);let i=Yd(e);if(!zd(n,t)){i.catch(()=>{});return}await i;let a=Id();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),Fd(n))}}var Zd=`@pie-lib/math-rendering`,Qd=`@pie-lib/math-rendering@2`,$d=null;function ef(){return!!window[Qd]?.opts?.useSingleDollar}function tf(){return $d||=Xd({useSingleDollar:ef()}),$d}function nf(){if(typeof window>`u`)return null;let e=window[Zd];return typeof e?.renderMath==`function`?e:null}var rf=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=nf();return r?await r.renderMath?.(n):await tf()(n),t?n.innerHTML:void 0},af=J(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),of=J(xc)(({theme:e})=>({paddingTop:e.spacing(2)})),sf=class extends I.Component{static propTypes={className:L.string,children:L.object,labels:L.shape({visible:L.string,hidden:L.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){rf(this.root)}componentDidUpdate(){rf(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)(af,{children:r})}),(0,R.jsx)(of,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function cf(e){return typeof e.main==`string`}function lf(e,t=[]){if(!cf(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function uf(e=[]){return([,t])=>t&&lf(t,e)}function df(e){return Or(`MuiCircularProgress`,e)}kr(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var ff=44,pf=Ot`
|
|
118
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});zc.propTypes={fill:L.string.isRequired};var Bc=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(Lc,{fill:t})]}),emoji:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),feedback:{check:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),emoji:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),square:{check:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(Lc,{fill:t})]}),emoji:(0,R.jsxs)(wc,{children:[(0,R.jsx)(Rc,{fill:n}),(0,R.jsx)(zc,{fill:t})]}),open:{check:(0,R.jsx)(wc,{children:(0,R.jsx)(Lc,{fill:n})}),emoji:(0,R.jsx)(wc,{children:(0,R.jsx)(zc,{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]}};Bc.propTypes={iconSet:L.oneOf([`emoji`,`check`,void 0]),shape:L.oneOf([`square`,void 0]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string},Bc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Vc=({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})]});Vc.propTypes={fill:L.string.isRequired};var Hc=({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})]});Hc.propTypes={fill:L.string.isRequired};var Z=Ac(Vc,Hc);Z.propTypes={iconSet:L.oneOf([`emoji`,`check`]),shape:L.oneOf([`round`,`square`]),category:L.oneOf([`feedback`,void 0]),open:L.bool,fg:L.string,bg:L.string,size:L.oneOfType([L.string,L.number])},Z.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Uc(e){return e?.ref||null}function Wc(e){return`scale(${e}, ${e**2})`}var Gc={entering:{opacity:1,transform:Wc(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Wc(.75)},exited:{opacity:0,transform:Wc(.75)}},Kc={opacity:0,transform:Wc(.75),visibility:`hidden`},qc=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=ys(),_=I.useRef(),v=io(),y=I.useRef(null),b=yo(y,Uc(i),t),x=Zs(y,l),S=Zs(y,(e,t)=>{Xs(e);let{duration:n,delay:r,easing:i}=$s({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=Zs(y,c),w=Zs(y,f),T=Zs(y,e=>{let{duration:t,delay:n,easing:r}=$s({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=Wc(.75),u&&u(e)}),E=Zs(y,e=>{e.style.transition=``,d&&d(e)});return(0,R.jsx)(ns,{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=Qs(e,o,Gc,Kc,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});qc&&(qc.muiSupportAuto=!0);function Jc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Yc(e){let t=lc(e);return t.body===e?dc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Zc(e){return parseFloat(dc(e).getComputedStyle(e).paddingRight)||0}function Qc(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 $c(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Qc(e);t&&n&&Xc(e,i)})}function el(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function tl(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Yc(r)){let e=Jc(dc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Zc(r)+e}px`;let t=lc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Zc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=lc(r).body;else{let t=r.parentElement,n=dc(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 nl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var rl=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&&Xc(e.modalRef,!1);let r=nl(t);$c(t,e.mount,e.modalRef,r,!0);let i=el(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=el(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=tl(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=el(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&&Xc(e.modalRef,t),$c(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&&Xc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function il(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 al=il;function ol(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var sl=ol,cl=`data-mui-focusable`;function ll(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${cl}]`):null}var ul=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function dl(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 fl(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 pl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||fl(e))}function ml(e){let t=[],n=[];return Array.from(e.querySelectorAll(ul)).forEach((e,r)=>{let i=dl(e);i===-1||!pl(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 hl(){return!0}function gl(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ml,isEnabled:o=hl,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=vo(Uc(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=sl(lc(m.current)),t=ll(m.current)??m.current;return al(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=lc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&sl(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=sl(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(al(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=sl(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 _l(e){return typeof e==`function`?e():e}var vl=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=vo(I.isValidElement(n)?Uc(n):null,t);if(Ur(()=>{i||o(_l(r)||document.body)},[r,i]),Ur(()=>{if(a&&!i)return pc(t,a),()=>{pc(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Xo.createPortal(n,a)}),yl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},bl={opacity:0,visibility:`hidden`},xl=I.forwardRef(function(e,t){let n=io(),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=yo(v,Uc(o),t),b=Zs(v,d),x=Zs(v,(e,t)=>{Xs(e);let r=$s({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Zs(v,u),C=Zs(v,m),w=Zs(v,e=>{let t=$s({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Zs(v,e=>{e.style.transition=``,p&&p(e)});return(0,R.jsx)(ns,{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=Qs(e,c,yl,bl,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function Sl(e){return Or(`MuiBackdrop`,e)}kr(`MuiBackdrop`,[`root`,`invisible`]);var Cl=e=>{let{classes:t,invisible:n}=e;return qi({root:[`root`,n&&`invisible`]},Sl,t)},wl=J(`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`}}]}),Tl=I.forwardRef(function(e,t){let n=go({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=Cl(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=To(`root`,{elementType:wl,externalForwardedProps:_,className:H(g.root,i),ownerState:h}),[b,x]=To(`transition`,{elementType:xl,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 El(e){return typeof e==`function`?e():e}function Dl(e){return e?e.props.hasOwnProperty(`in`):!1}var Ol=()=>{},kl=new rl;function Al(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=vo(p,u),[h,g]=I.useState(!l),_=Dl(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>lc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{kl.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ko(()=>{let e=El(t)||y().body;kl.add(b(),e),p.current&&x()}),C=()=>kl.isTopModal(b()),w=ko(e=>{f.current=e,e&&(l&&C()?x():p.current&&Xc(p.current,v))}),T=I.useCallback(()=>{kl.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=So(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:tc(()=>{g(!1),a&&a()},s?.props.onEnter??Ol),onExited:tc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Ol)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function jl(e){return Or(`MuiModal`,e)}kr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Ml=e=>{let{open:t,exited:n,classes:r}=e;return qi({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},jl,r)},Nl=J(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ho(({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`}}]}))),Pl=J(Tl,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Fl=I.forwardRef(function(e,t){let n=go({name:`MuiModal`,props:e}),{BackdropComponent:r=Pl,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:O,getBackdropProps:k,getTransitionProps:A,portalRef:j,isTopModal:M,exited:N,hasTransition:ne}=Al({...te,rootRef:t}),P={...te,exited:N},F=Ml(P),re={};if(c.props.tabIndex===void 0&&(re.tabIndex=`-1`),ne){let{onEnter:e,onExited:t}=A();re.onEnter=e,re.onExited=t}let ie={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ae,oe]=To(`root`,{ref:t,elementType:Nl,externalForwardedProps:{...ie,...ee,component:u},getSlotProps:O,ownerState:P,className:H(o,F?.root,!P.open&&P.exited&&F?.hidden)}),[se,ce]=To(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:H(i?.className,F?.backdrop),ownerState:P});return!b&&!w&&(!ne||N)?null:(0,R.jsx)(vl,{ref:j,container:l,disablePortal:g,children:(0,R.jsxs)(ae,{...oe,children:[!y&&r?(0,R.jsx)(se,{...ce}):null,(0,R.jsx)(gl,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:I.cloneElement(c,re)})]})})});function Il(e){return Or(`MuiPaper`,e)}kr(`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 Ll=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return qi({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Il,i)},Rl=J(`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}`]]}})(ho(({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)`}}]}))),zl=I.forwardRef(function(e,t){let n=go({props:e,name:`MuiPaper`}),r=io(),{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=Ll(u);return(0,R.jsx)(Rl,{as:a,ownerState:u,className:H(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(${ei(`#fff`,za(o))}, ${ei(`#fff`,za(o))})`}},...l.style}})});function Bl(e){return Or(`MuiPopover`,e)}kr(`MuiPopover`,[`root`,`paper`]);function Vl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Hl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Ul(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Wl(e){return typeof e==`function`?e():e}var Gl=e=>{let{classes:t}=e;return qi({root:[`root`],paper:[`paper`]},Bl,t)},Kl=J(Fl,{name:`MuiPopover`,slot:`Root`})({}),ql=J(zl,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Jl=I.forwardRef(function(e,t){let n=go({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=Gl(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Wl(i),t=(e&&e.nodeType===1?e:uc(C.current).body).getBoundingClientRect();return{top:t.top+Vl(t,a.vertical),left:t.left+Hl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:Vl(e,_.vertical),horizontal:Hl(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:Ul(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=fc(Wl(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:Ul(n)}},[i,s,E,D,f]),[te,O]=I.useState(p),k=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,O(!0)},[ee]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},j=()=>{O(!1)};I.useEffect(()=>{p&&k()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),I.useEffect(()=>{if(!p)return;let e=cc(()=>{k()}),t=fc(Wl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let M=y,N={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ne,P]=To(`transition`,{elementType:qc,externalForwardedProps:N,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),j()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ne.muiSupportAuto&&(M=void 0);let F=u||(i?uc(Wl(i)).body:void 0),[re,{slots:ie,slotProps:ae,...oe}]=To(`root`,{ref:t,elementType:Kl,externalForwardedProps:{...N,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:hc(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:F,open:p},ownerState:w,className:H(T.root,l)}),[se,ce]=To(`paper`,{ref:C,className:T.paper,elementType:ql,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:te?void 0:{opacity:0}},ownerState:w});return(0,R.jsx)(re,{...oe,...!Y(re)&&{slots:ie,slotProps:ae,disableScrollLock:x},children:(0,R.jsx)(ne,{...P,timeout:M,children:(0,R.jsx)(se,{...ce,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`},Xl={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`},Zl=s({background:()=>xu,backgroundDark:()=>Su,black:()=>Fu,blueGrey100:()=>Uu,blueGrey300:()=>Wu,blueGrey600:()=>Gu,blueGrey900:()=>Ku,border:()=>Ou,borderDark:()=>Au,borderGray:()=>ju,borderLight:()=>ku,buttonBorder:()=>$u,buttonFocusOutline:()=>Hu,buttonHoverBg:()=>ed,correct:()=>ru,correctSecondary:()=>iu,correctTertiary:()=>au,correctWithIcon:()=>ou,defaults:()=>Q,disabled:()=>eu,disabledSecondary:()=>tu,disabledText:()=>nu,dropdownBackground:()=>wu,fadedPrimary:()=>gu,focusChecked:()=>Ru,focusCheckedBorder:()=>zu,focusUnchecked:()=>Bu,focusUncheckedBorder:()=>Vu,incorrect:()=>su,incorrectSecondary:()=>lu,incorrectWithIcon:()=>cu,keyBoardFocusIndicator:()=>Qu,keypadButton:()=>qu,keypadButtonHover:()=>Xu,keypadButtonOperator:()=>Ju,keypadButtonOperatorHover:()=>Zu,keypadEmptyPlaceholder:()=>Yu,missing:()=>uu,missingWithIcon:()=>du,primary:()=>fu,primaryDark:()=>mu,primaryLight:()=>pu,primaryText:()=>hu,secondary:()=>_u,secondaryBackground:()=>Cu,secondaryDark:()=>yu,secondaryLight:()=>vu,secondaryText:()=>bu,surface:()=>Tu,tableGrid:()=>Mu,tableGridLight:()=>Nu,tableStripe:()=>Pu,tertiary:()=>Eu,tertiaryLight:()=>Du,text:()=>$l,transparent:()=>Lu,v:()=>Ql,visualElementsColors:()=>td,white:()=>Iu}),Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:na[500],CORRECT_SECONDARY:na[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:$i[500],INCORRECT_SECONDARY:Qi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Qi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Xl[500],PRIMARY_LIGHT:Xl[200],PRIMARY_DARK:Xl[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:`#81848F`,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(Q);var Ql=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},$=Ql(`pie`),$l=()=>$(`text`,Q.TEXT),eu=()=>$(`disabled`,Q.DISABLED),tu=()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),nu=()=>$(`disabled-text`,`text`,Q.DISABLED_TEXT),ru=()=>$(`correct`,Q.CORRECT),iu=()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),au=()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),ou=()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),su=()=>$(`incorrect`,Q.INCORRECT),cu=()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),lu=()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),uu=()=>$(`missing`,Q.MISSING),du=()=>$(`missing-icon`,Q.MISSING_WITH_ICON),fu=()=>$(`primary`,Q.PRIMARY),pu=()=>$(`primary-light`,Q.PRIMARY_LIGHT),mu=()=>$(`primary-dark`,Q.PRIMARY_DARK),hu=()=>$(`primary-text`,`text`,Q.TEXT),gu=()=>$(`faded-primary`,Q.FADED_PRIMARY),_u=()=>$(`secondary`,Q.SECONDARY),vu=()=>$(`secondary-light`,Q.SECONDARY_LIGHT),yu=()=>$(`secondary-dark`,Q.SECONDARY_DARK),bu=()=>$(`secondary-text`,`text`,Q.TEXT),xu=()=>$(`background`,Q.BACKGROUND),Su=()=>$(`background-dark`,Q.BACKGROUND_DARK),Cu=()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),wu=()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),Tu=()=>$(`surface`,Q.SURFACE),Eu=()=>$(`tertiary`,Q.TERTIARY),Du=()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),Ou=()=>$(`border`,Q.BORDER),ku=()=>$(`border-light`,Q.BORDER_LIGHT),Au=()=>$(`border-dark`,Q.BORDER_DARK),ju=()=>$(`border-gray`,Q.BORDER_GRAY),Mu=()=>$(`table-grid`,`text`,Q.TABLE_GRID),Nu=()=>$(`table-grid-light`,`border-light`,Q.TABLE_GRID_LIGHT),Pu=()=>$(`table-stripe`,`background-dark`,Q.TABLE_STRIPE),Fu=()=>$(`black`,Q.BLACK),Iu=()=>$(`white`,Q.WHITE),Lu=()=>Q.TRANSPARENT,Ru=()=>$(`focus-checked`,Q.FOCUS_CHECKED),zu=()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),Bu=()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),Vu=()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),Hu=()=>$(`button-focus-outline`,Q.BUTTON_FOCUS_OUTLINE),Uu=()=>$(`blue-grey-100`,Q.BLUE_GREY100),Wu=()=>$(`blue-grey-300`,Q.BLUE_GREY300),Gu=()=>$(`blue-grey-600`,Q.BLUE_GREY600),Ku=()=>$(`blue-grey-900`,Q.BLUE_GREY900),qu=()=>$(`keypad-button`,Q.KEYPAD_BUTTON),Ju=()=>$(`keypad-button-operator`,Q.KEYPAD_BUTTON_OPERATOR),Yu=()=>$(`keypad-empty-placeholder`,Q.KEYPAD_EMPTY_PLACEHOLDER),Xu=()=>$(`keypad-button-hover`,Q.KEYPAD_BUTTON_HOVER),Zu=()=>$(`keypad-button-operator-hover`,Q.KEYPAD_BUTTON_OPERATOR_HOVER),Qu=()=>$(`keyboard-focus-indicator`,Q.KEY_BOARD_FOCUS_INDICATOR),$u=()=>$(`button-border`,Q.BUTTON_BORDER),ed=()=>$(`button-hover-bg`,Q.BUTTON_HOVER_BG),td={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},nd=J(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),rd=J(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${eu()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${ru()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${su()})`}}),id=J(`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`}}),ad=class extends I.Component{static propTypes={correctness:L.string,feedback:L.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,R.jsx)(os,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,R.jsx)(id,{ref:this.nodeRef,children:(0,R.jsx)(nd,{children:(0,R.jsx)(rd,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,R.jsx)(`div`,{children:(0,R.jsx)(hs,{children:this.renderFeedback()})})}},od=()=>{};function sd(){let e=function(){};return e.enabled=!1,e.log=od,e.extend=()=>e,e.destroy=od,e}sd.log=od,sd.enable=od,sd.disable=()=>``,sd.enabled=()=>!1;var cd=s({Correct:()=>md,Incorrect:()=>hd,NothingSubmitted:()=>_d,PartiallyCorrect:()=>gd}),ld=sd(`pie-libs:render-ui:response-indicators`),ud=J(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),dd=J(Jl)({cursor:`pointer`}),fd=J(`div`)({padding:`0`,borderRadius:`4px`}),pd=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{ld(`[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)(ud,{hasFeedback:!!n,children:[(0,R.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,R.jsx)(e,{})}),n&&(0,R.jsx)(dd,{PaperComponent:fd,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,R.jsx)(ad,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:L.string},n},md=pd(Nc,`correct`),hd=pd(Ic,`incorrect`),gd=pd(Z,`partially-correct`),_d=pd(Bc,`nothing-submitted`),vd=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,yd=`pie-mathjax-version-conflict`,bd=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function xd(e,t){if(typeof window>`u`)return;let n=globalThis;n[bd]??={logged:!1,conditions:[]};let r=n[bd];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${vd}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(yd,{detail:{condition:e,message:i,docsUrl:vd}}))}function Sd(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var Cd=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,wd={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},Td=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Ed=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Dd=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,Od=/\\embed\{newLine\}\[\]/g,kd=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Ad=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),jd=`PIE-MJX-CHTML-styles`,Md=`MJX-CHTML-styles`,Nd=[Md,`MJX-SVG-styles`],Pd=201;function Fd(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function Id(){return window.MathJax}function Ld(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of kd)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function Rd(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${Ld(e)}\\)`.replace(Od,`\\newline `),t.dataset.mathHandled=`true`)}}function zd(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Dd:Ed).test(e.textContent??``)}function Bd(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=Id(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&Vd(e),r?.defaultReady?.(),i&&Hd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...wd}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(Td),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Cd,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function Vd(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=jd)}function Hd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Fd(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Pd,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Fd(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Md&&(r.id=jd),Gd()}function Ud(e){return e instanceof HTMLStyleElement&&Nd.includes(e.id)}function Wd(e){xd(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Gd(){let e=document.head,t=[...e.children].find(Ud);if(t){Wd(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Ud);if(e){Wd(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Kd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Id()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function qd(e){let t=Id();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Kd(t):Bd(e)}function Jd(e){return qd(e).then(()=>{typeof Id()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Yd(e){let t=globalThis,n=t[Ad];return n||(n=Jd(e),t[Ad]=n),n}function Xd(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=Sd();r&&xd(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Rd(n);let i=Yd(e);if(!zd(n,t)){i.catch(()=>{});return}await i;let a=Id();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),Fd(n))}}var Zd=`@pie-lib/math-rendering`,Qd=`@pie-lib/math-rendering@2`,$d=null;function ef(){return!!window[Qd]?.opts?.useSingleDollar}function tf(){return $d||=Xd({useSingleDollar:ef()}),$d}function nf(){if(typeof window>`u`)return null;let e=window[Zd];return typeof e?.renderMath==`function`?e:null}var rf=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=nf();return r?await r.renderMath?.(n):await tf()(n),t?n.innerHTML:void 0},af=J(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),of=J(xc)(({theme:e})=>({paddingTop:e.spacing(2)})),sf=class extends I.Component{static propTypes={className:L.string,children:L.object,labels:L.shape({visible:L.string,hidden:L.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){rf(this.root)}componentDidUpdate(){rf(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)(af,{children:r})}),(0,R.jsx)(of,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function cf(e){return typeof e.main==`string`}function lf(e,t=[]){if(!cf(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function uf(e=[]){return([,t])=>t&&lf(t,e)}function df(e){return Or(`MuiCircularProgress`,e)}kr(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var ff=44,pf=Ot`
|
|
119
119
|
0% {
|
|
120
120
|
transform: rotate(0deg);
|
|
121
121
|
}
|
package/module/print.js
CHANGED
|
@@ -11345,7 +11345,7 @@ var Ec = Object.defineProperty, Dc = (e, t) => {
|
|
|
11345
11345
|
FOCUS_UNCHECKED_BORDER: "#757575",
|
|
11346
11346
|
BUTTON_FOCUS_OUTLINE: "#3B82F6",
|
|
11347
11347
|
BLUE_GREY100: "#F3F5F7",
|
|
11348
|
-
BLUE_GREY300: "#
|
|
11348
|
+
BLUE_GREY300: "#81848F",
|
|
11349
11349
|
BLUE_GREY600: "#7E8494",
|
|
11350
11350
|
BLUE_GREY900: "#152452",
|
|
11351
11351
|
FADED_PRIMARY: "#DCDAFB",
|