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,EAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,AAChD,EACA,aAAc,CACZ,QAAS,EACX,CACF,EAGA,UAAW,CACT,SAAU,UACZ,EAGA,aAAc,CAAC,EAGf,MAAO,CACL,WAAY,EACZ,cAAe,CACjB,EAGA,oBAAqB,CACnB,WAAY,YACd,EAGA,SAAU,CAAC,EAGX,QAAS,CACP,aAAc,aAAa,MAAM,CAAC,EAAM,OAAO,CAAC,OAAO,EACvD,eAAgB,aAClB,EAGA,QAAS,CACP,YAAa,GACb,aAAc,EAChB,EAGA,OAAQ,CACN,WAAY,EAAM,WAAW,CAAC,MAAM,CAAC,mBAAoB,CACvD,SAAU,EAAM,WAAW,CAAC,QAAQ,CAAC,QAAQ,AAC/C,GACA,UAAW,CACT,eAAgB,OAChB,gBAAiB,EAAM,OAAO,CAAC,MAAM,CAAC,KAAK,CAE3C,uBAAwB,CACtB,gBAAiB,aACnB,CACF,CACF,EAGA,gBAAiB,CAGf,aAAc,EAChB,EAGA,SAAU,CAAC,CACb,CACF,EA2MkC,CAChC,KAAM,aACR,GAAG,E","sources":["","src/containers/Questionnaire.js","node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js","node_modules/@material-ui/icons/Warning.js","node_modules/jexl/lib/Jexl.js","node_modules/jexl/lib/Expression.js","node_modules/jexl/lib/evaluator/Evaluator.js","node_modules/jexl/lib/evaluator/handlers.js","node_modules/jexl/lib/Lexer.js","node_modules/jexl/lib/parser/Parser.js","node_modules/jexl/lib/parser/handlers.js","node_modules/jexl/lib/parser/states.js","node_modules/jexl/lib/PromiseSync.js","node_modules/jexl/lib/grammar.js","src/components/Stepper/LinearStepper.js","src/hooks/useListEntries.js","src/components/Stepper/LinearStepperItem.js","src/components/Stepper/QuestionTypography.js","src/containers/Eligible.js","src/containers/NotEligible.js","node_modules/@material-ui/core/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","node_modules/@material-ui/core/node_modules/@babel/runtime/helpers/esm/createClass.js","node_modules/@material-ui/core/esm/utils/isMuiElement.js","node_modules/@material-ui/core/esm/List/ListContext.js","node_modules/@material-ui/core/esm/ListItem/ListItem.js"],"sourcesContent":["\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true, configurable: true});\n}\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n var parcelRequire = $parcel$global[\"parcelRequire3c7f\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"7kKfH\", function(module, exports) {\n\n$parcel$defineInteropFlag(module.exports);\n\n$parcel$export(module.exports, \"popoverVisibilityInterval\", function () { return $556e475fd486b1c9$export$b45ff0bd86f138c8; });\n$parcel$export(module.exports, \"default\", function () { return $556e475fd486b1c9$export$2e2bcd8739ae039; });\n/* eslint-disable react/jsx-no-bind */ /* eslint-disable react/require-default-props */ /* eslint-disable react/prop-types */ parcelRequire(\"gEGqG\");\n\nvar $bIgYU = parcelRequire(\"bIgYU\");\n\nvar $igMFf = parcelRequire(\"igMFf\");\n\nvar $38zXy = parcelRequire(\"38zXy\");\n\nvar $3rs4B = parcelRequire(\"3rs4B\");\n\nvar $7b1Lp = parcelRequire(\"7b1Lp\");\nvar $6WDy5 = parcelRequire(\"6WDy5\");\n\nvar $1GRlU = parcelRequire(\"1GRlU\");\n\nvar $a1Q65 = parcelRequire(\"a1Q65\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $kV13H = parcelRequire(\"kV13H\");\nvar $4uhmr = parcelRequire(\"4uhmr\");\n\nvar $k4Dr6 = parcelRequire(\"k4Dr6\");\n\nvar $lu1BS = parcelRequire(\"lu1BS\");\n\nvar $kvHhM = parcelRequire(\"kvHhM\");\n\nvar $2Hhgv = parcelRequire(\"2Hhgv\");\nparcelRequire(\"8u8eZ\");\n\nvar $aeuny = parcelRequire(\"aeuny\");\n\nvar $hgf0k = parcelRequire(\"hgf0k\");\n\nvar $1YSJM = parcelRequire(\"1YSJM\");\n\nvar $1uQg8 = parcelRequire(\"1uQg8\");\n\nvar $dSWGo = parcelRequire(\"dSWGo\");\nconst $556e475fd486b1c9$export$b45ff0bd86f138c8 = 3000;\nconst $556e475fd486b1c9$var$useStyles = (0, $7b1Lp.default)((theme)=>({\n content: {\n flexGrow: 1\n },\n contentLoading: {\n opacity: 0.5,\n pointerEvents: \"none\"\n },\n introText: {\n [theme.breakpoints.down(\"xs\")]: {\n marginBottom: theme.spacing(4)\n },\n marginTop: 0,\n marginBottom: theme.spacing(6)\n },\n footerProgress: {\n width: 240,\n height: 40,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n whiteSpace: \"nowrap\",\n [theme.breakpoints.down(\"xs\")]: {\n flexDirection: \"row\",\n alignItems: \"center\",\n width: \"100%\",\n height: \"unset\"\n }\n },\n footerProgressText: {\n [theme.breakpoints.down(\"xs\")]: {\n marginRight: 16\n },\n color: theme.palette.grey[700],\n marginBottom: 0\n },\n popoverText: {\n margin: 0,\n padding: `${theme.spacing(1)}px ${theme.spacing(2)}px`\n }\n }));\nfunction $556e475fd486b1c9$var$WarningIconButton({ onClick: onClick, skippedQuestions: skippedQuestions }) {\n const intl = (0, $4uhmr.default)();\n if (skippedQuestions.length < 1) return null;\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $bIgYU.default), {\n color: \"inherit\",\n onClick: onClick,\n title: intl.formatMessage({\n id: \"Warning.SkippedQuestions\",\n defaultMessage: \"{count} questions skipped\"\n }, {\n count: skippedQuestions.length\n })\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, (/*@__PURE__*/$parcel$interopDefault($3rs4B))), null));\n}\nfunction $556e475fd486b1c9$var$parseAnswer(answer, type) {\n if (type === \"checkbox\" || type === \"radiobutton\") try {\n return JSON.parse(answer);\n } catch (_) {\n return answer;\n }\n return answer;\n}\nfunction $556e475fd486b1c9$var$getVisibleQuestions({ questions: questions, answers: answers, context: context }) {\n const ctx = {\n ...context,\n answer: Object.fromEntries(questions.map(({ id: id, key: key, type: type })=>[\n key,\n $556e475fd486b1c9$var$parseAnswer(answers[id], type)\n ]))\n };\n return questions.filter((q)=>!q.visibleIf || (0, (/*@__PURE__*/$parcel$interopDefault($a1Q65))).evalSync(q.visibleIf, ctx));\n}\nfunction $556e475fd486b1c9$var$getAnsweredQuestions({ visibleQuestions: visibleQuestions, answers: answers = {} }) {\n const visibleIds = visibleQuestions.map(({ id: id })=>id);\n return Object.keys(answers).filter((key)=>visibleIds.indexOf(key) >= 0).length;\n}\nfunction $556e475fd486b1c9$var$getSkippedQuestions({ visibleQuestions: visibleQuestions, answers: answers = {} }) {\n const visibleIds = visibleQuestions.map(({ id: id })=>id);\n const answersIds = Object.keys(answers);\n if (answersIds.length < 1) return [];\n const notAnswered = (id)=>!answersIds.includes(id);\n const maxIndex = (prev, id, i)=>Math.max(prev, notAnswered(id) ? -1 : i);\n const lastAnswerIndex = visibleIds.reduce(maxIndex, -1);\n return visibleIds.slice(0, lastAnswerIndex + 1).filter(notAnswered);\n}\nfunction $556e475fd486b1c9$var$deepEqual(a, b) {\n return typeof a === typeof b && JSON.stringify(a) === JSON.stringify(b);\n}\nfunction $556e475fd486b1c9$var$mapOldAnswers(oldAnswers = []) {\n return Object.fromEntries(oldAnswers.map(({ questionId: questionId, answer: answer })=>[\n questionId,\n answer\n ]));\n}\nfunction $556e475fd486b1c9$var$Questionnaire({ api: { getQuestionnaireResults: getQuestionnaireResults, submitQuestion: submitQuestion }, questions: questions, answers: oldAnswers, context: context, navigateModal: navigateModal, closeModal: closeModal, pageName: pageName, nextPageName: nextPageName, prevPageName: prevPageName, country: country, contentId: contentId, steps: steps, setSites: setSites, customPages: customPages = {}, questionnaireConfig: questionnaireConfig = {}, autoScroll: autoScroll = false }) {\n const useGlobal = (0, $hgf0k.useGlobalScope)(pageName);\n const [subPage, setSubPage] = useGlobal(\"subPage\");\n const [answers, setAnswers] = useGlobal(\"answers\", $556e475fd486b1c9$var$mapOldAnswers(oldAnswers));\n const [answerMetas, _, setAnswerMetaProperty] = useGlobal(\"answerMetas\", {});\n (0, $aeuny.useCloseConfirmation)(subPage !== \"not-eligible\");\n const [loading, setLoading] = (0, $cQNHH.useState)(false);\n const [popoverRef, setPopoverRef] = (0, $cQNHH.useState)(null);\n const aria = (0, $1YSJM.default)();\n const visibleQuestions = $556e475fd486b1c9$var$getVisibleQuestions({\n questions: questions,\n answers: answers,\n context: context\n });\n const answeredQuestions = $556e475fd486b1c9$var$getAnsweredQuestions({\n visibleQuestions: visibleQuestions,\n answers: answers\n });\n const skippedQuestions = $556e475fd486b1c9$var$getSkippedQuestions({\n visibleQuestions: visibleQuestions,\n answers: answers\n });\n const percentage = answeredQuestions / visibleQuestions.length * 100;\n const skippedQuestionsCallbacks = [];\n const handleWarningBtnClick = (event)=>{\n setPopoverRef(event.currentTarget);\n if ($556e475fd486b1c9$export$b45ff0bd86f138c8 > 0) setTimeout(()=>setPopoverRef(null), $556e475fd486b1c9$export$b45ff0bd86f138c8);\n skippedQuestionsCallbacks.forEach((callback)=>callback());\n };\n async function setAnswer({ id: id, value: value }) {\n const newAnswers = {\n ...answers,\n [id]: value\n };\n const valueDefined = typeof value !== \"undefined\";\n if (!valueDefined) delete newAnswers[id];\n setAnswers(newAnswers);\n (0, $2Hhgv.submitMetric)(\"answeredQuestion\");\n if (valueDefined && !$556e475fd486b1c9$var$deepEqual(answers[id], value)) await submitQuestion(id, value);\n }\n function setMeta({ id: id, path: path, value: value }) {\n setAnswerMetaProperty(`${id}.${path}`, value);\n }\n async function handleContinueClick() {\n if (subPage !== null) {\n navigateModal({\n forward: true\n });\n setSubPage(null);\n return;\n }\n setLoading(true);\n /**\n * !Danger\n * getQuestionnaireResults is not idempotent don't run it twice\n */ const { eligible: eligible, sites: sites } = await getQuestionnaireResults();\n setSites(sites);\n if (subPage === null && !eligible) {\n await setSubPage(\"not-eligible\");\n setLoading(false);\n } else if (subPage === null && eligible && steps.includes(\"questionnaire.eligible\")) {\n await setSubPage(\"eligible\");\n setLoading(false);\n } else {\n navigateModal({\n forward: true,\n sites: sites\n });\n setSubPage(null);\n }\n }\n const classes = $556e475fd486b1c9$var$useStyles();\n const renderFooter = (customPage = {})=>{\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).Fragment, null, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $k4Dr6.default), {\n footerText: customPage.buttonText,\n formIsComplete: percentage >= 100,\n liveRegionId: contentId,\n loading: loading,\n nextPageName: nextPageName,\n onContinueClick: handleContinueClick,\n prevPageName: prevPageName,\n warning: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement($556e475fd486b1c9$var$WarningIconButton, {\n onClick: handleWarningBtnClick,\n skippedQuestions: skippedQuestions\n })\n }, subPage === null && /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n \"aria-hidden\": \"true\",\n className: classes.footerProgress\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kvHhM.NormalText), {\n className: classes.footerProgressText\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"{questionsAnswered} of {totalQuestions} answered\",\n id: \"Questionnaire.Progress\",\n values: {\n questionsAnswered: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"b\", null, answeredQuestions),\n totalQuestions: visibleQuestions.length\n }\n })), /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $igMFf.default), {\n value: percentage,\n variant: \"determinate\"\n }))), /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $38zXy.default), {\n anchorEl: popoverRef,\n anchorOrigin: {\n vertical: \"top\",\n horizontal: \"center\"\n },\n onClose: ()=>setPopoverRef(null),\n open: Boolean(popoverRef),\n transformOrigin: {\n vertical: \"bottom\",\n horizontal: \"center\"\n }\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kvHhM.NormalText), {\n className: classes.popoverText\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"{count} questions skipped\",\n id: \"Warning.SkippedQuestions\",\n values: {\n count: skippedQuestions.length\n }\n }))));\n };\n const { ref: ref, ...restAria } = aria;\n const theme = (0, $6WDy5.default)();\n // Possibility to overwrite some questionnaire properties using `questionnaireConfig` with fallback to default.\n const config = {\n heading: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kvHhM.MainHeadingSmaller), {\n align: theme.direction === \"rtl\" ? \"right\" : \"left\",\n className: classes.introText\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Please answer the following questions to find out if you are suitable for the study.\",\n id: \"Questionnaire.Prompt\"\n })),\n eligible: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).Fragment, null, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $1uQg8.default), {\n customPage: customPages.eligible,\n nextPageName: nextPageName\n }), renderFooter(customPages.eligible)),\n notEligible: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $dSWGo.default), {\n customPage: customPages.ineligible,\n onButtonClick: closeModal\n }),\n ...questionnaireConfig\n };\n if (subPage === null) return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).Fragment, null, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $lu1BS.default), {\n autoScroll: autoScroll,\n className: (0, (/*@__PURE__*/$parcel$interopDefault($1GRlU)))(classes.content, {\n [classes.contentLoading]: loading\n }),\n containerRef: ref,\n country: country,\n heading: config.heading,\n setAnswer: setAnswer,\n setMeta: setMeta,\n skippedQuestions: skippedQuestions,\n skippedQuestionsCallbacks: skippedQuestionsCallbacks,\n stepperItems: visibleQuestions.map((q)=>({\n ...q,\n value: answers[q.id],\n meta: answerMetas[q.id]\n })),\n ...restAria\n }), renderFooter(config));\n else if (subPage === \"eligible\") return config.eligible;\n else if (subPage === \"not-eligible\") return config.notEligible;\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"span\", null, \"Oops, that ID was not found!\");\n}\nvar $556e475fd486b1c9$export$2e2bcd8739ae039 = $556e475fd486b1c9$var$Questionnaire;\n\n});\nparcelRegister(\"igMFf\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $d4cf784fa9621636$export$2e2bcd8739ae039; });\n\nvar $gtn2B = parcelRequire(\"gtn2B\");\n\nvar $fsWgf = parcelRequire(\"fsWgf\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $1xEYC = parcelRequire(\"1xEYC\");\n\nvar $bKF6r = parcelRequire(\"bKF6r\");\n\nvar $5beWR = parcelRequire(\"5beWR\");\n\nvar $eyd6T = parcelRequire(\"eyd6T\");\n\nvar $80wVS = parcelRequire(\"80wVS\");\n\nvar $ki4tF = parcelRequire(\"ki4tF\");\nvar $d4cf784fa9621636$var$TRANSITION_DURATION = 4; // seconds\nvar $d4cf784fa9621636$export$9dd6ff9ea0189349 = function styles(theme) {\n var getColor = function getColor(color) {\n return theme.palette.type === \"light\" ? (0, $80wVS.lighten)(color, 0.62) : (0, $80wVS.darken)(color, 0.5);\n };\n var backgroundPrimary = getColor(theme.palette.primary.main);\n var backgroundSecondary = getColor(theme.palette.secondary.main);\n return {\n /* Styles applied to the root element. */ root: {\n position: \"relative\",\n overflow: \"hidden\",\n height: 4,\n \"@media print\": {\n colorAdjust: \"exact\"\n }\n },\n /* Styles applied to the root and bar2 element if `color=\"primary\"`; bar2 if `variant=\"buffer\"`. */ colorPrimary: {\n backgroundColor: backgroundPrimary\n },\n /* Styles applied to the root and bar2 elements if `color=\"secondary\"`; bar2 if `variant=\"buffer\"`. */ colorSecondary: {\n backgroundColor: backgroundSecondary\n },\n /* Styles applied to the root element if `variant=\"determinate\"`. */ determinate: {},\n /* Styles applied to the root element if `variant=\"indeterminate\"`. */ indeterminate: {},\n /* Styles applied to the root element if `variant=\"buffer\"`. */ buffer: {\n backgroundColor: \"transparent\"\n },\n /* Styles applied to the root element if `variant=\"query\"`. */ query: {\n transform: \"rotate(180deg)\"\n },\n /* Styles applied to the additional bar element if `variant=\"buffer\"`. */ dashed: {\n position: \"absolute\",\n marginTop: 0,\n height: \"100%\",\n width: \"100%\",\n animation: \"$buffer 3s infinite linear\"\n },\n /* Styles applied to the additional bar element if `variant=\"buffer\"` and `color=\"primary\"`. */ dashedColorPrimary: {\n backgroundImage: \"radial-gradient(\".concat(backgroundPrimary, \" 0%, \").concat(backgroundPrimary, \" 16%, transparent 42%)\"),\n backgroundSize: \"10px 10px\",\n backgroundPosition: \"0 -23px\"\n },\n /* Styles applied to the additional bar element if `variant=\"buffer\"` and `color=\"secondary\"`. */ dashedColorSecondary: {\n backgroundImage: \"radial-gradient(\".concat(backgroundSecondary, \" 0%, \").concat(backgroundSecondary, \" 16%, transparent 42%)\"),\n backgroundSize: \"10px 10px\",\n backgroundPosition: \"0 -23px\"\n },\n /* Styles applied to the layered bar1 and bar2 elements. */ bar: {\n width: \"100%\",\n position: \"absolute\",\n left: 0,\n bottom: 0,\n top: 0,\n transition: \"transform 0.2s linear\",\n transformOrigin: \"left\"\n },\n /* Styles applied to the bar elements if `color=\"primary\"`; bar2 if `variant` not \"buffer\". */ barColorPrimary: {\n backgroundColor: theme.palette.primary.main\n },\n /* Styles applied to the bar elements if `color=\"secondary\"`; bar2 if `variant` not \"buffer\". */ barColorSecondary: {\n backgroundColor: theme.palette.secondary.main\n },\n /* Styles applied to the bar1 element if `variant=\"indeterminate or query\"`. */ bar1Indeterminate: {\n width: \"auto\",\n animation: \"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite\"\n },\n /* Styles applied to the bar1 element if `variant=\"determinate\"`. */ bar1Determinate: {\n transition: \"transform .\".concat($d4cf784fa9621636$var$TRANSITION_DURATION, \"s linear\")\n },\n /* Styles applied to the bar1 element if `variant=\"buffer\"`. */ bar1Buffer: {\n zIndex: 1,\n transition: \"transform .\".concat($d4cf784fa9621636$var$TRANSITION_DURATION, \"s linear\")\n },\n /* Styles applied to the bar2 element if `variant=\"indeterminate or query\"`. */ bar2Indeterminate: {\n width: \"auto\",\n animation: \"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite\"\n },\n /* Styles applied to the bar2 element if `variant=\"buffer\"`. */ bar2Buffer: {\n transition: \"transform .\".concat($d4cf784fa9621636$var$TRANSITION_DURATION, \"s linear\")\n },\n // Legends:\n // || represents the viewport\n // - represents a light background\n // x represents a dark background\n \"@keyframes indeterminate1\": {\n // |-----|---x-||-----||-----|\n \"0%\": {\n left: \"-35%\",\n right: \"100%\"\n },\n // |-----|-----||-----||xxxx-|\n \"60%\": {\n left: \"100%\",\n right: \"-90%\"\n },\n \"100%\": {\n left: \"100%\",\n right: \"-90%\"\n }\n },\n \"@keyframes indeterminate2\": {\n // |xxxxx|xxxxx||-----||-----|\n \"0%\": {\n left: \"-200%\",\n right: \"100%\"\n },\n // |-----|-----||-----||-x----|\n \"60%\": {\n left: \"107%\",\n right: \"-8%\"\n },\n \"100%\": {\n left: \"107%\",\n right: \"-8%\"\n }\n },\n \"@keyframes buffer\": {\n \"0%\": {\n opacity: 1,\n backgroundPosition: \"0 -23px\"\n },\n \"50%\": {\n opacity: 0,\n backgroundPosition: \"0 -23px\"\n },\n \"100%\": {\n opacity: 1,\n backgroundPosition: \"-200px -23px\"\n }\n }\n };\n};\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */ var $d4cf784fa9621636$var$LinearProgress = /*#__PURE__*/ $cQNHH.forwardRef(function LinearProgress(props, ref) {\n var classes = props.classes, className = props.className, _props$color = props.color, color = _props$color === void 0 ? \"primary\" : _props$color, value = props.value, valueBuffer = props.valueBuffer, _props$variant = props.variant, variant = _props$variant === void 0 ? \"indeterminate\" : _props$variant, other = (0, $fsWgf.default)(props, [\n \"classes\",\n \"className\",\n \"color\",\n \"value\",\n \"valueBuffer\",\n \"variant\"\n ]);\n var theme = (0, $ki4tF.default)();\n var rootProps = {};\n var inlineStyles = {\n bar1: {},\n bar2: {}\n };\n if (variant === \"determinate\" || variant === \"buffer\") {\n if (value !== undefined) {\n rootProps[\"aria-valuenow\"] = Math.round(value);\n rootProps[\"aria-valuemin\"] = 0;\n rootProps[\"aria-valuemax\"] = 100;\n var transform = value - 100;\n if (theme.direction === \"rtl\") transform = -transform;\n inlineStyles.bar1.transform = \"translateX(\".concat(transform, \"%)\");\n } else console.error(\"Material-UI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .\");\n }\n if (variant === \"buffer\") {\n if (valueBuffer !== undefined) {\n var _transform = (valueBuffer || 0) - 100;\n if (theme.direction === \"rtl\") _transform = -_transform;\n inlineStyles.bar2.transform = \"translateX(\".concat(_transform, \"%)\");\n } else console.error(\"Material-UI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.\");\n }\n return /*#__PURE__*/ $cQNHH.createElement(\"div\", (0, $gtn2B.default)({\n className: (0, $bKF6r.default)(classes.root, classes[\"color\".concat((0, $5beWR.default)(color))], className, {\n \"determinate\": classes.determinate,\n \"indeterminate\": classes.indeterminate,\n \"buffer\": classes.buffer,\n \"query\": classes.query\n }[variant]),\n role: \"progressbar\"\n }, rootProps, {\n ref: ref\n }, other), variant === \"buffer\" ? /*#__PURE__*/ $cQNHH.createElement(\"div\", {\n className: (0, $bKF6r.default)(classes.dashed, classes[\"dashedColor\".concat((0, $5beWR.default)(color))])\n }) : null, /*#__PURE__*/ $cQNHH.createElement(\"div\", {\n className: (0, $bKF6r.default)(classes.bar, classes[\"barColor\".concat((0, $5beWR.default)(color))], (variant === \"indeterminate\" || variant === \"query\") && classes.bar1Indeterminate, {\n \"determinate\": classes.bar1Determinate,\n \"buffer\": classes.bar1Buffer\n }[variant]),\n style: inlineStyles.bar1\n }), variant === \"determinate\" ? null : /*#__PURE__*/ $cQNHH.createElement(\"div\", {\n className: (0, $bKF6r.default)(classes.bar, (variant === \"indeterminate\" || variant === \"query\") && classes.bar2Indeterminate, variant === \"buffer\" ? [\n classes[\"color\".concat((0, $5beWR.default)(color))],\n classes.bar2Buffer\n ] : classes[\"barColor\".concat((0, $5beWR.default)(color))]),\n style: inlineStyles.bar2\n }));\n});\n$d4cf784fa9621636$var$LinearProgress.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */ classes: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).object,\n /**\n * @ignore\n */ className: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).string,\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */ color: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).oneOf([\n \"primary\",\n \"secondary\"\n ]),\n /**\n * The value of the progress indicator for the determinate and buffer variants.\n * Value between 0 and 100.\n */ value: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).number,\n /**\n * The value for the buffer variant.\n * Value between 0 and 100.\n */ valueBuffer: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).number,\n /**\n * The variant to use.\n * Use indeterminate or query when there is no progress value.\n */ variant: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).oneOf([\n \"buffer\",\n \"determinate\",\n \"indeterminate\",\n \"query\"\n ])\n};\nvar $d4cf784fa9621636$export$2e2bcd8739ae039 = (0, $eyd6T.default)($d4cf784fa9621636$export$9dd6ff9ea0189349, {\n name: \"MuiLinearProgress\"\n})($d4cf784fa9621636$var$LinearProgress);\n\n});\n\nparcelRegister(\"3rs4B\", function(module, exports) {\n\"use strict\";\n\nvar $kFrsj = parcelRequire(\"kFrsj\");\n\nvar $8jEx7 = parcelRequire(\"8jEx7\");\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.default = void 0;\n\nvar $2819ab7350ef6715$var$React = $8jEx7((parcelRequire(\"cQNHH\")));\n\nvar $2819ab7350ef6715$var$_createSvgIcon = $kFrsj((parcelRequire(\"bXzXC\")));\nvar $2819ab7350ef6715$var$_default = (0, $2819ab7350ef6715$var$_createSvgIcon.default)(/*#__PURE__*/ $2819ab7350ef6715$var$React.createElement(\"path\", {\n d: \"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"\n}), \"Warning\");\nmodule.exports.default = $2819ab7350ef6715$var$_default;\n\n});\n\nparcelRegister(\"a1Q65\", function(module, exports) {\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ \nvar $6rgoo = parcelRequire(\"6rgoo\");\n\nvar $4Y457 = parcelRequire(\"4Y457\");\nvar $74d268cea43d4efb$require$defaultGrammar = $4Y457.elements;\n/**\n * Jexl is the Javascript Expression Language, capable of parsing and\n * evaluating basic to complex expression strings, combined with advanced\n * xpath-like drilldown into native Javascript objects.\n * @constructor\n */ class $74d268cea43d4efb$var$Jexl {\n /**\n * Adds a binary operator to Jexl at the specified precedence. The higher the\n * precedence, the earlier the operator is applied in the order of operations.\n * For example, * has a higher precedence than +, because multiplication comes\n * before division.\n *\n * Please see grammar.js for a listing of all default operators and their\n * precedence values in order to choose the appropriate precedence for the\n * new operator.\n * @param {string} operator The operator string to be added\n * @param {number} precedence The operator's precedence\n * @param {function} fn A function to run to calculate the result. The function\n * will be called with two arguments: left and right, denoting the values\n * on either side of the operator. It should return either the resulting\n * value, or a Promise that resolves with the resulting value.\n */ addBinaryOp(operator, precedence, fn) {\n this._addGrammarElement(operator, {\n type: \"binaryOp\",\n precedence: precedence,\n eval: fn\n });\n }\n /**\n * Adds a unary operator to Jexl. Unary operators are currently only supported\n * on the left side of the value on which it will operate.\n * @param {string} operator The operator string to be added\n * @param {function} fn A function to run to calculate the result. The function\n * will be called with one argument: the literal value to the right of the\n * operator. It should return either the resulting value, or a Promise\n * that resolves with the resulting value.\n */ addUnaryOp(operator, fn) {\n this._addGrammarElement(operator, {\n type: \"unaryOp\",\n weight: Infinity,\n eval: fn\n });\n }\n /**\n * Adds or replaces a transform function in this Jexl instance.\n * @param {string} name The name of the transform function, as it will be used\n * within Jexl expressions\n * @param {function} fn The function to be executed when this transform is\n * invoked. It will be provided with at least one argument:\n * - {*} value: The value to be transformed\n * - {...*} args: The arguments for this transform\n */ addTransform(name, fn) {\n this._transforms[name] = fn;\n }\n /**\n * Syntactic sugar for calling {@link #addTransform} repeatedly. This function\n * accepts a map of one or more transform names to their transform function.\n * @param {{}} map A map of transform names to transform functions\n */ addTransforms(map) {\n for(let key in map)if (map.hasOwnProperty(key)) this._transforms[key] = map[key];\n }\n /**\n * Creates an Expression object from the given Jexl expression string, and\n * immediately compiles it. The returned Expression object can then be\n * evaluated multiple times with new contexts, without generating any\n * additional string processing overhead.\n * @param {string} expression The Jexl expression to be compiled\n * @returns {Expression} The compiled Expression object\n */ compile(expression) {\n const exprObj = this.createExpression(expression);\n return exprObj.compile();\n }\n /**\n * Constructs an Expression object from a Jexl expression string.\n * @param {string} expression The Jexl expression to be wrapped in an\n * Expression object\n * @returns {Expression} The Expression object representing the given string\n */ createExpression(expression) {\n const lang = this._getLang();\n return new $6rgoo(lang, expression);\n }\n /**\n * Retrieves a previously set transform function.\n * @param {string} name The name of the transform function\n * @returns {function} The transform function\n */ getTransform(name) {\n return this._transforms[name];\n }\n /**\n * Asynchronously evaluates a Jexl string within an optional context.\n * @param {string} expression The Jexl expression to be evaluated\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {Promise<*>} resolves with the result of the evaluation.\n */ eval(expression, context = {}) {\n const exprObj = this.createExpression(expression);\n return exprObj.eval(context);\n }\n /**\n * Synchronously evaluates a Jexl string within an optional context.\n * @param {string} expression The Jexl expression to be evaluated\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {*} the result of the evaluation.\n * @throws {*} on error\n */ evalSync(expression, context = {}) {\n const exprObj = this.createExpression(expression);\n return exprObj.evalSync(context);\n }\n expr(strs, ...args) {\n const exprStr = strs.reduce((acc, str, idx)=>{\n const arg = idx < args.length ? args[idx] : \"\";\n acc += str + arg;\n return acc;\n }, \"\");\n return this.createExpression(exprStr);\n }\n /**\n * Removes a binary or unary operator from the Jexl grammar.\n * @param {string} operator The operator string to be removed\n */ removeOp(operator) {\n if (this._grammar[operator] && (this._grammar[operator].type === \"binaryOp\" || this._grammar[operator].type === \"unaryOp\")) delete this._grammar[operator];\n }\n /**\n * Adds an element to the grammar map used by this Jexl instance.\n * @param {string} str The key string to be added\n * @param {{type: }} obj A map of configuration options for this\n * grammar element\n * @private\n */ _addGrammarElement(str, obj) {\n this._grammar[str] = obj;\n }\n /**\n * Gets an object defining the dynamic language elements of this Jexl\n * instance.\n * @returns {{ grammar: object, transforms: object }} A language definition\n * object\n * @private\n */ _getLang() {\n return {\n grammar: this._grammar,\n transforms: this._transforms\n };\n }\n constructor(){\n // Allow expr to be called outside of the jexl context\n this.expr = this.expr.bind(this);\n this._grammar = Object.assign({}, $74d268cea43d4efb$require$defaultGrammar);\n this._lexer = null;\n this._transforms = {};\n }\n}\nmodule.exports = new $74d268cea43d4efb$var$Jexl();\nmodule.exports.Jexl = $74d268cea43d4efb$var$Jexl;\n\n});\nparcelRegister(\"6rgoo\", function(module, exports) {\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ \nvar $hQqtV = parcelRequire(\"hQqtV\");\n\nvar $5k9w8 = parcelRequire(\"5k9w8\");\n\nvar $6VpwJ = parcelRequire(\"6VpwJ\");\n\nvar $5ESAN = parcelRequire(\"5ESAN\");\nclass $4b01fadf5374043b$var$Expression {\n /**\n * Forces a compilation of the expression string that this Expression object\n * was constructed with. This function can be called multiple times; useful\n * if the language elements of the associated Jexl instance change.\n * @returns {Expression} this Expression instance, for convenience\n */ compile() {\n const lexer = new $5k9w8(this._lang.grammar);\n const parser = new $6VpwJ(this._lang.grammar);\n const tokens = lexer.tokenize(this._exprStr);\n parser.addTokens(tokens);\n this._ast = parser.complete();\n return this;\n }\n /**\n * Asynchronously evaluates the expression within an optional context.\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {Promise<*>} resolves with the result of the evaluation.\n */ eval(context = {}) {\n return this._eval(context, Promise);\n }\n /**\n * Synchronously evaluates the expression within an optional context.\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {*} the result of the evaluation.\n * @throws {*} on error\n */ evalSync(context = {}) {\n const res = this._eval(context, $5ESAN);\n if (res.error) throw res.error;\n return res.value;\n }\n _eval(context, promise) {\n return promise.resolve().then(()=>{\n const ast = this._getAst();\n const evaluator = new $hQqtV(this._lang.grammar, this._lang.transforms, context, undefined, promise);\n return evaluator.eval(ast);\n });\n }\n _getAst() {\n if (!this._ast) this.compile();\n return this._ast;\n }\n constructor(lang, exprStr){\n this._lang = lang;\n this._lexer = new $5k9w8(lang.grammar);\n this._exprStr = exprStr;\n this._ast = null;\n }\n}\nmodule.exports = $4b01fadf5374043b$var$Expression;\n\n});\nparcelRegister(\"hQqtV\", function(module, exports) {\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ \nvar $1o0cD = parcelRequire(\"1o0cD\");\n/**\n * The Evaluator takes a Jexl expression tree as generated by the\n * {@link Parser} and calculates its value within a given context. The\n * collection of transforms, context, and a relative context to be used as the\n * root for relative identifiers, are all specific to an Evaluator instance.\n * When any of these things change, a new instance is required. However, a\n * single instance can be used to simultaneously evaluate many different\n * expressions, and does not have to be reinstantiated for each.\n * @param {{}} grammar A grammar map against which to evaluate the expression\n * tree\n * @param {{}} [transforms] A map of transform names to transform functions. A\n * transform function takes two arguments:\n * - {*} val: A value to be transformed\n * - {{}} args: A map of argument keys to their evaluated values, as\n * specified in the expression string\n * The transform function should return either the transformed value, or\n * a Promises/A+ Promise object that resolves with the value and rejects\n * or throws only when an unrecoverable error occurs. Transforms should\n * generally return undefined when they don't make sense to be used on the\n * given value type, rather than throw/reject. An error is only\n * appropriate when the transform would normally return a value, but\n * cannot due to some other failure.\n * @param {{}} [context] A map of variable keys to their values. This will be\n * accessed to resolve the value of each non-relative identifier. Any\n * Promise values will be passed to the expression as their resolved\n * value.\n * @param {{}|Array<{}|Array>} [relativeContext] A map or array to be accessed\n * to resolve the value of a relative identifier.\n * @param {function} promise A constructor for the Promise class to be used;\n * probably either Promise or PromiseSync.\n */ class $cfdbd5baac55d1fd$var$Evaluator {\n /**\n * Evaluates an expression tree within the configured context.\n * @param {{}} ast An expression tree object\n * @returns {Promise<*>} resolves with the resulting value of the expression.\n */ eval(ast) {\n return this.Promise.resolve().then(()=>{\n return $1o0cD[ast.type].call(this, ast);\n });\n }\n /**\n * Simultaneously evaluates each expression within an array, and delivers the\n * response as an array with the resulting values at the same indexes as their\n * originating expressions.\n * @param {Array} arr An array of expression strings to be evaluated\n * @returns {Promise>} resolves with the result array\n */ evalArray(arr) {\n return this.Promise.all(arr.map((elem)=>this.eval(elem)));\n }\n /**\n * Simultaneously evaluates each expression within a map, and delivers the\n * response as a map with the same keys, but with the evaluated result for each\n * as their value.\n * @param {{}} map A map of expression names to expression trees to be\n * evaluated\n * @returns {Promise<{}>} resolves with the result map.\n */ evalMap(map) {\n const keys = Object.keys(map);\n const result = {};\n const asts = keys.map((key)=>{\n return this.eval(map[key]);\n });\n return this.Promise.all(asts).then((vals)=>{\n vals.forEach((val, idx)=>{\n result[keys[idx]] = val;\n });\n return result;\n });\n }\n /**\n * Applies a filter expression with relative identifier elements to a subject.\n * The intent is for the subject to be an array of subjects that will be\n * individually used as the relative context against the provided expression\n * tree. Only the elements whose expressions result in a truthy value will be\n * included in the resulting array.\n *\n * If the subject is not an array of values, it will be converted to a single-\n * element array before running the filter.\n * @param {*} subject The value to be filtered usually an array. If this value is\n * not an array, it will be converted to an array with this value as the\n * only element.\n * @param {{}} expr The expression tree to run against each subject. If the\n * tree evaluates to a truthy result, then the value will be included in\n * the returned array otherwise, it will be eliminated.\n * @returns {Promise} resolves with an array of values that passed the\n * expression filter.\n * @private\n */ _filterRelative(subject, expr) {\n const promises = [];\n if (!Array.isArray(subject)) subject = subject === undefined ? [] : [\n subject\n ];\n subject.forEach((elem)=>{\n const evalInst = new $cfdbd5baac55d1fd$var$Evaluator(this._grammar, this._transforms, this._context, elem, this.Promise);\n promises.push(evalInst.eval(expr));\n });\n return this.Promise.all(promises).then((values)=>{\n const results = [];\n values.forEach((value, idx)=>{\n if (value) results.push(subject[idx]);\n });\n return results;\n });\n }\n /**\n * Applies a static filter expression to a subject value. If the filter\n * expression evaluates to boolean true, the subject is returned if false,\n * undefined.\n *\n * For any other resulting value of the expression, this function will attempt\n * to respond with the property at that name or index of the subject.\n * @param {*} subject The value to be filtered. Usually an Array (for which\n * the expression would generally resolve to a numeric index) or an\n * Object (for which the expression would generally resolve to a string\n * indicating a property name)\n * @param {{}} expr The expression tree to run against the subject\n * @returns {Promise<*>} resolves with the value of the drill-down.\n * @private\n */ _filterStatic(subject, expr) {\n return this.eval(expr).then((res)=>{\n if (typeof res === \"boolean\") return res ? subject : undefined;\n return subject[res];\n });\n }\n constructor(grammar, transforms, context, relativeContext, promise = Promise){\n this._grammar = grammar;\n this._transforms = transforms || {};\n this._context = context || {};\n this._relContext = relativeContext || this._context;\n this.Promise = promise;\n }\n}\nmodule.exports = $cfdbd5baac55d1fd$var$Evaluator;\n\n});\nparcelRegister(\"1o0cD\", function(module, exports) {\n\n$parcel$export(module.exports, \"ArrayLiteral\", function () { return $102830973611cf01$export$2477073908a0de26; }, function (v) { return $102830973611cf01$export$2477073908a0de26 = v; });\n$parcel$export(module.exports, \"BinaryExpression\", function () { return $102830973611cf01$export$5351bc98fa48e09c; }, function (v) { return $102830973611cf01$export$5351bc98fa48e09c = v; });\n$parcel$export(module.exports, \"ConditionalExpression\", function () { return $102830973611cf01$export$12447f42bd680fc8; }, function (v) { return $102830973611cf01$export$12447f42bd680fc8 = v; });\n$parcel$export(module.exports, \"FilterExpression\", function () { return $102830973611cf01$export$6b8d6da04b395169; }, function (v) { return $102830973611cf01$export$6b8d6da04b395169 = v; });\n$parcel$export(module.exports, \"Identifier\", function () { return $102830973611cf01$export$989167234458594d; }, function (v) { return $102830973611cf01$export$989167234458594d = v; });\n$parcel$export(module.exports, \"Literal\", function () { return $102830973611cf01$export$e175ae9e414693bc; }, function (v) { return $102830973611cf01$export$e175ae9e414693bc = v; });\n$parcel$export(module.exports, \"ObjectLiteral\", function () { return $102830973611cf01$export$4c0cd5cfd47f57a6; }, function (v) { return $102830973611cf01$export$4c0cd5cfd47f57a6 = v; });\n$parcel$export(module.exports, \"Transform\", function () { return $102830973611cf01$export$563a914cafbdc389; }, function (v) { return $102830973611cf01$export$563a914cafbdc389 = v; });\n$parcel$export(module.exports, \"UnaryExpression\", function () { return $102830973611cf01$export$b832e164a8af4bc7; }, function (v) { return $102830973611cf01$export$b832e164a8af4bc7 = v; });\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ /**\n * Evaluates an ArrayLiteral by returning its value, with each element\n * independently run through the evaluator.\n * @param {{type: 'ObjectLiteral', value: <{}>}} ast An expression tree with an\n * ObjectLiteral as the top node\n * @returns {Promise.<[]>} resolves to a map contained evaluated values.\n * @private\n */ var $102830973611cf01$export$2477073908a0de26;\n/**\n * Evaluates a BinaryExpression node by running the Grammar's evaluator for\n * the given operator.\n * @param {{type: 'BinaryExpression', operator: , left: {},\n * right: {}}} ast An expression tree with a BinaryExpression as the top\n * node\n * @returns {Promise<*>} resolves with the value of the BinaryExpression.\n * @private\n */ var $102830973611cf01$export$5351bc98fa48e09c;\n/**\n * Evaluates a ConditionalExpression node by first evaluating its test branch,\n * and resolving with the consequent branch if the test is truthy, or the\n * alternate branch if it is not. If there is no consequent branch, the test\n * result will be used instead.\n * @param {{type: 'ConditionalExpression', test: {}, consequent: {},\n * alternate: {}}} ast An expression tree with a ConditionalExpression as\n * the top node\n * @private\n */ var $102830973611cf01$export$12447f42bd680fc8;\n/**\n * Evaluates a FilterExpression by applying it to the subject value.\n * @param {{type: 'FilterExpression', relative: , expr: {},\n * subject: {}}} ast An expression tree with a FilterExpression as the top\n * node\n * @returns {Promise<*>} resolves with the value of the FilterExpression.\n * @private\n */ var $102830973611cf01$export$6b8d6da04b395169;\n/**\n * Evaluates an Identifier by either stemming from the evaluated 'from'\n * expression tree or accessing the context provided when this Evaluator was\n * constructed.\n * @param {{type: 'Identifier', value: , [from]: {}}} ast An expression\n * tree with an Identifier as the top node\n * @returns {Promise<*>|*} either the identifier's value, or a Promise that\n * will resolve with the identifier's value.\n * @private\n */ var $102830973611cf01$export$989167234458594d;\n/**\n * Evaluates a Literal by returning its value property.\n * @param {{type: 'Literal', value: }} ast An expression\n * tree with a Literal as its only node\n * @returns {string|number|boolean} The value of the Literal node\n * @private\n */ var $102830973611cf01$export$e175ae9e414693bc;\n/**\n * Evaluates an ObjectLiteral by returning its value, with each key\n * independently run through the evaluator.\n * @param {{type: 'ObjectLiteral', value: <{}>}} ast An expression tree with an\n * ObjectLiteral as the top node\n * @returns {Promise<{}>} resolves to a map contained evaluated values.\n * @private\n */ var $102830973611cf01$export$4c0cd5cfd47f57a6;\n/**\n * Evaluates a Transform node by applying a function from the transforms map\n * to the subject value.\n * @param {{type: 'Transform', name: , subject: {}}} ast An\n * expression tree with a Transform as the top node\n * @returns {Promise<*>|*} the value of the transformation, or a Promise that\n * will resolve with the transformed value.\n * @private\n */ var $102830973611cf01$export$563a914cafbdc389;\n/**\n * Evaluates a Unary expression by passing the right side through the\n * operator's eval function.\n * @param {{type: 'UnaryExpression', operator: , right: {}}} ast An\n * expression tree with a UnaryExpression as the top node\n * @returns {Promise<*>} resolves with the value of the UnaryExpression.\n * @constructor\n */ var $102830973611cf01$export$b832e164a8af4bc7;\n$102830973611cf01$export$2477073908a0de26 = function(ast) {\n return this.evalArray(ast.value);\n};\n$102830973611cf01$export$5351bc98fa48e09c = function(ast) {\n return this.Promise.all([\n this.eval(ast.left),\n this.eval(ast.right)\n ]).then((arr)=>this._grammar[ast.operator].eval(arr[0], arr[1]));\n};\n$102830973611cf01$export$12447f42bd680fc8 = function(ast) {\n return this.eval(ast.test).then((res)=>{\n if (res) {\n if (ast.consequent) return this.eval(ast.consequent);\n return res;\n }\n return this.eval(ast.alternate);\n });\n};\n$102830973611cf01$export$6b8d6da04b395169 = function(ast) {\n return this.eval(ast.subject).then((subject)=>{\n if (ast.relative) return this._filterRelative(subject, ast.expr);\n return this._filterStatic(subject, ast.expr);\n });\n};\n$102830973611cf01$export$989167234458594d = function(ast) {\n if (!ast.from) return ast.relative ? this._relContext[ast.value] : this._context[ast.value];\n return this.eval(ast.from).then((context)=>{\n if (context === undefined || context === null) return undefined;\n if (Array.isArray(context)) context = context[0];\n return context[ast.value];\n });\n};\n$102830973611cf01$export$e175ae9e414693bc = function(ast) {\n return ast.value;\n};\n$102830973611cf01$export$4c0cd5cfd47f57a6 = function(ast) {\n return this.evalMap(ast.value);\n};\n$102830973611cf01$export$563a914cafbdc389 = function(ast) {\n const transform = this._transforms[ast.name];\n if (!transform) throw new Error(`Transform ${ast.name} is not defined.`);\n return this.Promise.all([\n this.eval(ast.subject),\n this.evalArray(ast.args || [])\n ]).then((arr)=>transform.apply(null, [\n arr[0]\n ].concat(arr[1])));\n};\n$102830973611cf01$export$b832e164a8af4bc7 = function(ast) {\n return this.eval(ast.right).then((right)=>this._grammar[ast.operator].eval(right));\n};\n\n});\n\n\nparcelRegister(\"5k9w8\", function(module, exports) {\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ const $3e0633f6a20d9d7b$var$numericRegex = /^-?(?:(?:[0-9]*\\.[0-9]+)|[0-9]+)$/;\nconst $3e0633f6a20d9d7b$var$identRegex = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;\nconst $3e0633f6a20d9d7b$var$escEscRegex = /\\\\\\\\/;\nconst $3e0633f6a20d9d7b$var$whitespaceRegex = /^\\s*$/;\nconst $3e0633f6a20d9d7b$var$preOpRegexElems = [\n // Strings\n \"'(?:(?:\\\\\\\\')|[^'])*'\",\n '\"(?:(?:\\\\\\\\\")|[^\"])*\"',\n // Whitespace\n \"\\\\s+\",\n // Booleans\n \"\\\\btrue\\\\b\",\n \"\\\\bfalse\\\\b\"\n];\nconst $3e0633f6a20d9d7b$var$postOpRegexElems = [\n // Identifiers\n \"[a-zA-Z_\\\\$][a-zA-Z0-9_\\\\$]*\",\n // Numerics (without negative symbol)\n \"(?:(?:[0-9]*\\\\.[0-9]+)|[0-9]+)\"\n];\nconst $3e0633f6a20d9d7b$var$minusNegatesAfter = [\n \"binaryOp\",\n \"unaryOp\",\n \"openParen\",\n \"openBracket\",\n \"question\",\n \"colon\"\n];\n/**\n * Lexer is a collection of stateless, statically-accessed functions for the\n * lexical parsing of a Jexl string. Its responsibility is to identify the\n * \"parts of speech\" of a Jexl expression, and tokenize and label each, but\n * to do only the most minimal syntax checking; the only errors the Lexer\n * should be concerned with are if it's unable to identify the utility of\n * any of its tokens. Errors stemming from these tokens not being in a\n * sensible configuration should be left for the Parser to handle.\n * @type {{}}\n */ class $3e0633f6a20d9d7b$var$Lexer {\n /**\n * Splits a Jexl expression string into an array of expression elements.\n * @param {string} str A Jexl expression string\n * @returns {Array} An array of substrings defining the functional\n * elements of the expression.\n */ getElements(str) {\n const regex = this._getSplitRegex();\n return str.split(regex).filter((elem)=>{\n // Remove empty strings\n return elem;\n });\n }\n /**\n * Converts an array of expression elements into an array of tokens. Note that\n * the resulting array may not equal the element array in length, as any\n * elements that consist only of whitespace get appended to the previous\n * token's \"raw\" property. For the structure of a token object, please see\n * {@link Lexer#tokenize}.\n * @param {Array} elements An array of Jexl expression elements to be\n * converted to tokens\n * @returns {Array<{type, value, raw}>} an array of token objects.\n */ getTokens(elements) {\n const tokens = [];\n let negate = false;\n for(let i = 0; i < elements.length; i++){\n if (this._isWhitespace(elements[i])) {\n if (tokens.length) tokens[tokens.length - 1].raw += elements[i];\n } else if (elements[i] === \"-\" && this._isNegative(tokens)) negate = true;\n else {\n if (negate) {\n elements[i] = \"-\" + elements[i];\n negate = false;\n }\n tokens.push(this._createToken(elements[i]));\n }\n }\n // Catch a - at the end of the string. Let the parser handle that issue.\n if (negate) tokens.push(this._createToken(\"-\"));\n return tokens;\n }\n /**\n * Converts a Jexl string into an array of tokens. Each token is an object\n * in the following format:\n *\n * {\n * type: ,\n * [name]: ,\n * value: ,\n * raw: \n * }\n *\n * Type is one of the following:\n *\n * literal, identifier, binaryOp, unaryOp\n *\n * OR, if the token is a control character its type is the name of the element\n * defined in the Grammar.\n *\n * Name appears only if the token is a control string found in\n * {@link grammar#elements}, and is set to the name of the element.\n *\n * Value is the value of the token in the correct type (boolean or numeric as\n * appropriate). Raw is the string representation of this value taken directly\n * from the expression string, including any trailing spaces.\n * @param {string} str The Jexl string to be tokenized\n * @returns {Array<{type, value, raw}>} an array of token objects.\n * @throws {Error} if the provided string contains an invalid token.\n */ tokenize(str) {\n const elements = this.getElements(str);\n return this.getTokens(elements);\n }\n /**\n * Creates a new token object from an element of a Jexl string. See\n * {@link Lexer#tokenize} for a description of the token object.\n * @param {string} element The element from which a token should be made\n * @returns {{value: number|boolean|string, [name]: string, type: string,\n * raw: string}} a token object describing the provided element.\n * @throws {Error} if the provided string is not a valid expression element.\n * @private\n */ _createToken(element) {\n const token = {\n type: \"literal\",\n value: element,\n raw: element\n };\n if (element[0] === '\"' || element[0] === \"'\") token.value = this._unquote(element);\n else if (element.match($3e0633f6a20d9d7b$var$numericRegex)) token.value = parseFloat(element);\n else if (element === \"true\" || element === \"false\") token.value = element === \"true\";\n else if (this._grammar[element]) token.type = this._grammar[element].type;\n else if (element.match($3e0633f6a20d9d7b$var$identRegex)) token.type = \"identifier\";\n else throw new Error(`Invalid expression token: ${element}`);\n return token;\n }\n /**\n * Escapes a string so that it can be treated as a string literal within a\n * regular expression.\n * @param {string} str The string to be escaped\n * @returns {string} the RegExp-escaped string.\n * @see https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions\n * @private\n */ _escapeRegExp(str) {\n str = str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n if (str.match($3e0633f6a20d9d7b$var$identRegex)) str = \"\\\\b\" + str + \"\\\\b\";\n return str;\n }\n /**\n * Gets a RegEx object appropriate for splitting a Jexl string into its core\n * elements.\n * @returns {RegExp} An element-splitting RegExp object\n * @private\n */ _getSplitRegex() {\n if (!this._splitRegex) {\n // Sort by most characters to least, then regex escape each\n const elemArray = Object.keys(this._grammar).sort((a, b)=>{\n return b.length - a.length;\n }).map((elem)=>{\n return this._escapeRegExp(elem);\n }, this);\n this._splitRegex = new RegExp(\"(\" + [\n $3e0633f6a20d9d7b$var$preOpRegexElems.join(\"|\"),\n elemArray.join(\"|\"),\n $3e0633f6a20d9d7b$var$postOpRegexElems.join(\"|\")\n ].join(\"|\") + \")\");\n }\n return this._splitRegex;\n }\n /**\n * Determines whether the addition of a '-' token should be interpreted as a\n * negative symbol for an upcoming number, given an array of tokens already\n * processed.\n * @param {Array} tokens An array of tokens already processed\n * @returns {boolean} true if adding a '-' should be considered a negative\n * symbol; false otherwise\n * @private\n */ _isNegative(tokens) {\n if (!tokens.length) return true;\n return $3e0633f6a20d9d7b$var$minusNegatesAfter.some((type)=>type === tokens[tokens.length - 1].type);\n }\n /**\n * A utility function to determine if a string consists of only space\n * characters.\n * @param {string} str A string to be tested\n * @returns {boolean} true if the string is empty or consists of only spaces;\n * false otherwise.\n * @private\n */ _isWhitespace(str) {\n return !!str.match($3e0633f6a20d9d7b$var$whitespaceRegex);\n }\n /**\n * Removes the beginning and trailing quotes from a string, unescapes any\n * escaped quotes on its interior, and unescapes any escaped escape\n * characters. Note that this function is not defensive; it assumes that the\n * provided string is not empty, and that its first and last characters are\n * actually quotes.\n * @param {string} str A string whose first and last characters are quotes\n * @returns {string} a string with the surrounding quotes stripped and escapes\n * properly processed.\n * @private\n */ _unquote(str) {\n const quote = str[0];\n const escQuoteRegex = new RegExp(\"\\\\\\\\\" + quote, \"g\");\n return str.substr(1, str.length - 2).replace(escQuoteRegex, quote).replace($3e0633f6a20d9d7b$var$escEscRegex, \"\\\\\");\n }\n constructor(grammar){\n this._grammar = grammar;\n }\n}\nmodule.exports = $3e0633f6a20d9d7b$var$Lexer;\n\n});\n\nparcelRegister(\"6VpwJ\", function(module, exports) {\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ \nvar $bjg7u = parcelRequire(\"bjg7u\");\n\nvar $7zqOM = parcelRequire(\"7zqOM\");\nvar $50abde1022c356b4$require$states = $7zqOM.states;\n/**\n * The Parser is a state machine that converts tokens from the {@link Lexer}\n * into an Abstract Syntax Tree (AST), capable of being evaluated in any\n * context by the {@link Evaluator}. The Parser expects that all tokens\n * provided to it are legal and typed properly according to the grammar, but\n * accepts that the tokens may still be in an invalid order or in some other\n * unparsable configuration that requires it to throw an Error.\n * @param {{}} grammar The grammar map to use to parse Jexl strings\n * @param {string} [prefix] A string prefix to prepend to the expression string\n * for error messaging purposes. This is useful for when a new Parser is\n * instantiated to parse an subexpression, as the parent Parser's\n * expression string thus far can be passed for a more user-friendly\n * error message.\n * @param {{}} [stopMap] A mapping of token types to any truthy value. When the\n * token type is encountered, the parser will return the mapped value\n * instead of boolean false.\n */ class $50abde1022c356b4$var$Parser {\n /**\n * Processes a new token into the AST and manages the transitions of the state\n * machine.\n * @param {{type: }} token A token object, as provided by the\n * {@link Lexer#tokenize} function.\n * @throws {Error} if a token is added when the Parser has been marked as\n * complete by {@link #complete}, or if an unexpected token type is added.\n * @returns {boolean|*} the stopState value if this parser encountered a token\n * in the stopState mapb false if tokens can continue.\n */ addToken(token) {\n if (this._state === \"complete\") throw new Error(\"Cannot add a new token to a completed Parser\");\n const state = $50abde1022c356b4$require$states[this._state];\n const startExpr = this._exprStr;\n this._exprStr += token.raw;\n if (state.subHandler) {\n if (!this._subParser) this._startSubExpression(startExpr);\n const stopState = this._subParser.addToken(token);\n if (stopState) {\n this._endSubExpression();\n if (this._parentStop) return stopState;\n this._state = stopState;\n }\n } else if (state.tokenTypes[token.type]) {\n const typeOpts = state.tokenTypes[token.type];\n let handleFunc = $bjg7u[token.type];\n if (typeOpts.handler) handleFunc = typeOpts.handler;\n if (handleFunc) handleFunc.call(this, token);\n if (typeOpts.toState) this._state = typeOpts.toState;\n } else if (this._stopMap[token.type]) return this._stopMap[token.type];\n else throw new Error(`Token ${token.raw} (${token.type}) unexpected in expression: ${this._exprStr}`);\n return false;\n }\n /**\n * Processes an array of tokens iteratively through the {@link #addToken}\n * function.\n * @param {Array<{type: }>} tokens An array of tokens, as provided by\n * the {@link Lexer#tokenize} function.\n */ addTokens(tokens) {\n tokens.forEach(this.addToken, this);\n }\n /**\n * Marks this Parser instance as completed and retrieves the full AST.\n * @returns {{}|null} a full expression tree, ready for evaluation by the\n * {@link Evaluator#eval} function, or null if no tokens were passed to\n * the parser before complete was called\n * @throws {Error} if the parser is not in a state where it's legal to end\n * the expression, indicating that the expression is incomplete\n */ complete() {\n if (this._cursor && !$50abde1022c356b4$require$states[this._state].completable) throw new Error(`Unexpected end of expression: ${this._exprStr}`);\n if (this._subParser) this._endSubExpression();\n this._state = \"complete\";\n return this._cursor ? this._tree : null;\n }\n /**\n * Indicates whether the expression tree contains a relative path identifier.\n * @returns {boolean} true if a relative identifier exists false otherwise.\n */ isRelative() {\n return this._relative;\n }\n /**\n * Ends a subexpression by completing the subParser and passing its result\n * to the subHandler configured in the current state.\n * @private\n */ _endSubExpression() {\n $50abde1022c356b4$require$states[this._state].subHandler.call(this, this._subParser.complete());\n this._subParser = null;\n }\n /**\n * Places a new tree node at the current position of the cursor (to the 'right'\n * property) and then advances the cursor to the new node. This function also\n * handles setting the parent of the new node.\n * @param {{type: }} node A node to be added to the AST\n * @private\n */ _placeAtCursor(node) {\n if (!this._cursor) this._tree = node;\n else {\n this._cursor.right = node;\n this._setParent(node, this._cursor);\n }\n this._cursor = node;\n }\n /**\n * Places a tree node before the current position of the cursor, replacing\n * the node that the cursor currently points to. This should only be called in\n * cases where the cursor is known to exist, and the provided node already\n * contains a pointer to what's at the cursor currently.\n * @param {{type: }} node A node to be added to the AST\n * @private\n */ _placeBeforeCursor(node) {\n this._cursor = this._cursor._parent;\n this._placeAtCursor(node);\n }\n /**\n * Sets the parent of a node by creating a non-enumerable _parent property\n * that points to the supplied parent argument.\n * @param {{type: }} node A node of the AST on which to set a new\n * parent\n * @param {{type: }} parent An existing node of the AST to serve as the\n * parent of the new node\n * @private\n */ _setParent(node, parent) {\n Object.defineProperty(node, \"_parent\", {\n value: parent,\n writable: true\n });\n }\n /**\n * Prepares the Parser to accept a subexpression by (re)instantiating the\n * subParser.\n * @param {string} [exprStr] The expression string to prefix to the new Parser\n * @private\n */ _startSubExpression(exprStr) {\n let endStates = $50abde1022c356b4$require$states[this._state].endStates;\n if (!endStates) {\n this._parentStop = true;\n endStates = this._stopMap;\n }\n this._subParser = new $50abde1022c356b4$var$Parser(this._grammar, exprStr, endStates);\n }\n constructor(grammar, prefix, stopMap){\n this._grammar = grammar;\n this._state = \"expectOperand\";\n this._tree = null;\n this._exprStr = prefix || \"\";\n this._relative = false;\n this._stopMap = stopMap || {};\n }\n}\nmodule.exports = $50abde1022c356b4$var$Parser;\n\n});\nparcelRegister(\"bjg7u\", function(module, exports) {\n\n$parcel$export(module.exports, \"argVal\", function () { return $83bdf9189b4392c1$export$bf99ae2731a267af; }, function (v) { return $83bdf9189b4392c1$export$bf99ae2731a267af = v; });\n$parcel$export(module.exports, \"arrayStart\", function () { return $83bdf9189b4392c1$export$dbbb5fc86f066522; }, function (v) { return $83bdf9189b4392c1$export$dbbb5fc86f066522 = v; });\n$parcel$export(module.exports, \"arrayVal\", function () { return $83bdf9189b4392c1$export$56baa95599a4a114; }, function (v) { return $83bdf9189b4392c1$export$56baa95599a4a114 = v; });\n$parcel$export(module.exports, \"binaryOp\", function () { return $83bdf9189b4392c1$export$bf7110d4c5a71b17; }, function (v) { return $83bdf9189b4392c1$export$bf7110d4c5a71b17 = v; });\n$parcel$export(module.exports, \"dot\", function () { return $83bdf9189b4392c1$export$94132a0e348806d4; }, function (v) { return $83bdf9189b4392c1$export$94132a0e348806d4 = v; });\n$parcel$export(module.exports, \"filter\", function () { return $83bdf9189b4392c1$export$3dea766d36a8935f; }, function (v) { return $83bdf9189b4392c1$export$3dea766d36a8935f = v; });\n$parcel$export(module.exports, \"identifier\", function () { return $83bdf9189b4392c1$export$c2ab62c7bf24634; }, function (v) { return $83bdf9189b4392c1$export$c2ab62c7bf24634 = v; });\n$parcel$export(module.exports, \"literal\", function () { return $83bdf9189b4392c1$export$c8ec6e1ec9fefcb0; }, function (v) { return $83bdf9189b4392c1$export$c8ec6e1ec9fefcb0 = v; });\n$parcel$export(module.exports, \"objKey\", function () { return $83bdf9189b4392c1$export$a7e3a597b5fb619; }, function (v) { return $83bdf9189b4392c1$export$a7e3a597b5fb619 = v; });\n$parcel$export(module.exports, \"objStart\", function () { return $83bdf9189b4392c1$export$ae43e9a7db1a053e; }, function (v) { return $83bdf9189b4392c1$export$ae43e9a7db1a053e = v; });\n$parcel$export(module.exports, \"objVal\", function () { return $83bdf9189b4392c1$export$316663dec3b13f08; }, function (v) { return $83bdf9189b4392c1$export$316663dec3b13f08 = v; });\n$parcel$export(module.exports, \"subExpression\", function () { return $83bdf9189b4392c1$export$64f55baf472b5db; }, function (v) { return $83bdf9189b4392c1$export$64f55baf472b5db = v; });\n$parcel$export(module.exports, \"ternaryEnd\", function () { return $83bdf9189b4392c1$export$4747a6a8ead63555; }, function (v) { return $83bdf9189b4392c1$export$4747a6a8ead63555 = v; });\n$parcel$export(module.exports, \"ternaryMid\", function () { return $83bdf9189b4392c1$export$b9522f35ae4fd641; }, function (v) { return $83bdf9189b4392c1$export$b9522f35ae4fd641 = v; });\n$parcel$export(module.exports, \"ternaryStart\", function () { return $83bdf9189b4392c1$export$193e5ad6f5c47f1; }, function (v) { return $83bdf9189b4392c1$export$193e5ad6f5c47f1 = v; });\n$parcel$export(module.exports, \"transform\", function () { return $83bdf9189b4392c1$export$51186ad6e864892a; }, function (v) { return $83bdf9189b4392c1$export$51186ad6e864892a = v; });\n$parcel$export(module.exports, \"unaryOp\", function () { return $83bdf9189b4392c1$export$a47f90b6064508f9; }, function (v) { return $83bdf9189b4392c1$export$a47f90b6064508f9 = v; });\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ /**\n * Handles a subexpression that's used to define a transform argument's value.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$bf99ae2731a267af;\n/**\n * Handles new array literals by adding them as a new node in the AST,\n * initialized with an empty array.\n */ var $83bdf9189b4392c1$export$dbbb5fc86f066522;\n/**\n * Handles a subexpression representing an element of an array literal.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$56baa95599a4a114;\n/**\n * Handles tokens of type 'binaryOp', indicating an operation that has two\n * inputs: a left side and a right side.\n * @param {{type: }} token A token object\n */ var $83bdf9189b4392c1$export$bf7110d4c5a71b17;\n/**\n * Handles successive nodes in an identifier chain. More specifically, it\n * sets values that determine how the following identifier gets placed in the\n * AST.\n */ var $83bdf9189b4392c1$export$94132a0e348806d4;\n/**\n * Handles a subexpression used for filtering an array returned by an\n * identifier chain.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$3dea766d36a8935f;\n/**\n * Handles identifier tokens by adding them as a new node in the AST.\n * @param {{type: }} token A token object\n */ var $83bdf9189b4392c1$export$c2ab62c7bf24634;\n/**\n * Handles literal values, such as strings, booleans, and numerics, by adding\n * them as a new node in the AST.\n * @param {{type: }} token A token object\n */ var $83bdf9189b4392c1$export$c8ec6e1ec9fefcb0;\n/**\n * Queues a new object literal key to be written once a value is collected.\n * @param {{type: }} token A token object\n */ var $83bdf9189b4392c1$export$a7e3a597b5fb619;\n/**\n * Handles new object literals by adding them as a new node in the AST,\n * initialized with an empty object.\n */ var $83bdf9189b4392c1$export$ae43e9a7db1a053e;\n/**\n * Handles an object value by adding its AST to the queued key on the object\n * literal node currently at the cursor.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$316663dec3b13f08;\n/**\n * Handles traditional subexpressions, delineated with the groupStart and\n * groupEnd elements.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$64f55baf472b5db;\n/**\n * Handles a completed alternate subexpression of a ternary operator.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$4747a6a8ead63555;\n/**\n * Handles a completed consequent subexpression of a ternary operator.\n * @param {{type: }} ast The subexpression tree\n */ var $83bdf9189b4392c1$export$b9522f35ae4fd641;\n/**\n * Handles the start of a new ternary expression by encapsulating the entire\n * AST in a ConditionalExpression node, and using the existing tree as the\n * test element.\n */ var $83bdf9189b4392c1$export$193e5ad6f5c47f1;\n/**\n * Handles identifier tokens when used to indicate the name of a transform to\n * be applied.\n * @param {{type: }} token A token object\n */ var $83bdf9189b4392c1$export$51186ad6e864892a;\n/**\n * Handles token of type 'unaryOp', indicating that the operation has only\n * one input: a right side.\n * @param {{type: }} token A token object\n */ var $83bdf9189b4392c1$export$a47f90b6064508f9;\n$83bdf9189b4392c1$export$bf99ae2731a267af = function(ast) {\n this._cursor.args.push(ast);\n};\n$83bdf9189b4392c1$export$dbbb5fc86f066522 = function() {\n this._placeAtCursor({\n type: \"ArrayLiteral\",\n value: []\n });\n};\n$83bdf9189b4392c1$export$56baa95599a4a114 = function(ast) {\n if (ast) this._cursor.value.push(ast);\n};\n$83bdf9189b4392c1$export$bf7110d4c5a71b17 = function(token) {\n const precedence = this._grammar[token.value].precedence || 0;\n let parent = this._cursor._parent;\n while(parent && parent.operator && this._grammar[parent.operator].precedence >= precedence){\n this._cursor = parent;\n parent = parent._parent;\n }\n const node = {\n type: \"BinaryExpression\",\n operator: token.value,\n left: this._cursor\n };\n this._setParent(this._cursor, node);\n this._cursor = parent;\n this._placeAtCursor(node);\n};\n$83bdf9189b4392c1$export$94132a0e348806d4 = function() {\n this._nextIdentEncapsulate = this._cursor && this._cursor.type !== \"UnaryExpression\" && (this._cursor.type !== \"BinaryExpression\" || this._cursor.type === \"BinaryExpression\" && this._cursor.right);\n this._nextIdentRelative = !this._cursor || this._cursor && !this._nextIdentEncapsulate;\n if (this._nextIdentRelative) this._relative = true;\n};\n$83bdf9189b4392c1$export$3dea766d36a8935f = function(ast) {\n this._placeBeforeCursor({\n type: \"FilterExpression\",\n expr: ast,\n relative: this._subParser.isRelative(),\n subject: this._cursor\n });\n};\n$83bdf9189b4392c1$export$c2ab62c7bf24634 = function(token) {\n const node = {\n type: \"Identifier\",\n value: token.value\n };\n if (this._nextIdentEncapsulate) {\n node.from = this._cursor;\n this._placeBeforeCursor(node);\n this._nextIdentEncapsulate = false;\n } else {\n if (this._nextIdentRelative) {\n node.relative = true;\n this._nextIdentRelative = false;\n }\n this._placeAtCursor(node);\n }\n};\n$83bdf9189b4392c1$export$c8ec6e1ec9fefcb0 = function(token) {\n this._placeAtCursor({\n type: \"Literal\",\n value: token.value\n });\n};\n$83bdf9189b4392c1$export$a7e3a597b5fb619 = function(token) {\n this._curObjKey = token.value;\n};\n$83bdf9189b4392c1$export$ae43e9a7db1a053e = function() {\n this._placeAtCursor({\n type: \"ObjectLiteral\",\n value: {}\n });\n};\n$83bdf9189b4392c1$export$316663dec3b13f08 = function(ast) {\n this._cursor.value[this._curObjKey] = ast;\n};\n$83bdf9189b4392c1$export$64f55baf472b5db = function(ast) {\n this._placeAtCursor(ast);\n};\n$83bdf9189b4392c1$export$4747a6a8ead63555 = function(ast) {\n this._cursor.alternate = ast;\n};\n$83bdf9189b4392c1$export$b9522f35ae4fd641 = function(ast) {\n this._cursor.consequent = ast;\n};\n$83bdf9189b4392c1$export$193e5ad6f5c47f1 = function() {\n this._tree = {\n type: \"ConditionalExpression\",\n test: this._tree\n };\n this._cursor = this._tree;\n};\n$83bdf9189b4392c1$export$51186ad6e864892a = function(token) {\n this._placeBeforeCursor({\n type: \"Transform\",\n name: token.value,\n args: [],\n subject: this._cursor\n });\n};\n$83bdf9189b4392c1$export$a47f90b6064508f9 = function(token) {\n this._placeAtCursor({\n type: \"UnaryExpression\",\n operator: token.value\n });\n};\n\n});\n\nparcelRegister(\"7zqOM\", function(module, exports) {\n\n$parcel$export(module.exports, \"states\", function () { return $58309acc7a276ed4$export$b782dad1d219cf26; }, function (v) { return $58309acc7a276ed4$export$b782dad1d219cf26 = v; });\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ /**\n * A mapping of all states in the finite state machine to a set of instructions\n * for handling or transitioning into other states. Each state can be handled\n * in one of two schemes: a tokenType map, or a subHandler.\n *\n * Standard expression elements are handled through the tokenType object. This\n * is an object map of all legal token types to encounter in this state (and\n * any unexpected token types will generate a thrown error) to an options\n * object that defines how they're handled. The available options are:\n *\n * {string} toState: The name of the state to which to transition\n * immediately after handling this token\n * {string} handler: The handler function to call when this token type is\n * encountered in this state. If omitted, the default handler\n * matching the token's \"type\" property will be called. If the handler\n * function does not exist, no call will be made and no error will be\n * generated. This is useful for tokens whose sole purpose is to\n * transition to other states.\n *\n * States that consume a subexpression should define a subHandler, the\n * function to be called with an expression tree argument when the\n * subexpression is complete. Completeness is determined through the\n * endStates object, which maps tokens on which an expression should end to the\n * state to which to transition once the subHandler function has been called.\n *\n * Additionally, any state in which it is legal to mark the AST as completed\n * should have a 'completable' property set to boolean true. Attempting to\n * call {@link Parser#complete} in any state without this property will result\n * in a thrown Error.\n *\n * @type {{}}\n */ var $58309acc7a276ed4$export$b782dad1d219cf26;\n\nvar $bjg7u = parcelRequire(\"bjg7u\");\n$58309acc7a276ed4$export$b782dad1d219cf26 = {\n expectOperand: {\n tokenTypes: {\n literal: {\n toState: \"expectBinOp\"\n },\n identifier: {\n toState: \"identifier\"\n },\n unaryOp: {},\n openParen: {\n toState: \"subExpression\"\n },\n openCurl: {\n toState: \"expectObjKey\",\n handler: $bjg7u.objStart\n },\n dot: {\n toState: \"traverse\"\n },\n openBracket: {\n toState: \"arrayVal\",\n handler: $bjg7u.arrayStart\n }\n }\n },\n expectBinOp: {\n tokenTypes: {\n binaryOp: {\n toState: \"expectOperand\"\n },\n pipe: {\n toState: \"expectTransform\"\n },\n dot: {\n toState: \"traverse\"\n },\n question: {\n toState: \"ternaryMid\",\n handler: $bjg7u.ternaryStart\n }\n },\n completable: true\n },\n expectTransform: {\n tokenTypes: {\n identifier: {\n toState: \"postTransform\",\n handler: $bjg7u.transform\n }\n }\n },\n expectObjKey: {\n tokenTypes: {\n identifier: {\n toState: \"expectKeyValSep\",\n handler: $bjg7u.objKey\n },\n closeCurl: {\n toState: \"expectBinOp\"\n }\n }\n },\n expectKeyValSep: {\n tokenTypes: {\n colon: {\n toState: \"objVal\"\n }\n }\n },\n postTransform: {\n tokenTypes: {\n openParen: {\n toState: \"argVal\"\n },\n binaryOp: {\n toState: \"expectOperand\"\n },\n dot: {\n toState: \"traverse\"\n },\n openBracket: {\n toState: \"filter\"\n },\n pipe: {\n toState: \"expectTransform\"\n }\n },\n completable: true\n },\n postTransformArgs: {\n tokenTypes: {\n binaryOp: {\n toState: \"expectOperand\"\n },\n dot: {\n toState: \"traverse\"\n },\n openBracket: {\n toState: \"filter\"\n },\n pipe: {\n toState: \"expectTransform\"\n }\n },\n completable: true\n },\n identifier: {\n tokenTypes: {\n binaryOp: {\n toState: \"expectOperand\"\n },\n dot: {\n toState: \"traverse\"\n },\n openBracket: {\n toState: \"filter\"\n },\n pipe: {\n toState: \"expectTransform\"\n },\n question: {\n toState: \"ternaryMid\",\n handler: $bjg7u.ternaryStart\n }\n },\n completable: true\n },\n traverse: {\n tokenTypes: {\n identifier: {\n toState: \"identifier\"\n }\n }\n },\n filter: {\n subHandler: $bjg7u.filter,\n endStates: {\n closeBracket: \"identifier\"\n }\n },\n subExpression: {\n subHandler: $bjg7u.subExpression,\n endStates: {\n closeParen: \"expectBinOp\"\n }\n },\n argVal: {\n subHandler: $bjg7u.argVal,\n endStates: {\n comma: \"argVal\",\n closeParen: \"postTransformArgs\"\n }\n },\n objVal: {\n subHandler: $bjg7u.objVal,\n endStates: {\n comma: \"expectObjKey\",\n closeCurl: \"expectBinOp\"\n }\n },\n arrayVal: {\n subHandler: $bjg7u.arrayVal,\n endStates: {\n comma: \"arrayVal\",\n closeBracket: \"expectBinOp\"\n }\n },\n ternaryMid: {\n subHandler: $bjg7u.ternaryMid,\n endStates: {\n colon: \"ternaryEnd\"\n }\n },\n ternaryEnd: {\n subHandler: $bjg7u.ternaryEnd,\n completable: true\n }\n};\n\n});\n\n\nparcelRegister(\"5ESAN\", function(module, exports) {\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ class $41eb0918ec247604$var$PromiseSync {\n catch(rejected) {\n if (this.error) try {\n this._resolve(rejected(this.error));\n } catch (e) {\n this._reject(e);\n }\n return this;\n }\n then(resolved, rejected) {\n if (!this.error) try {\n this._resolve(resolved(this.value));\n } catch (e) {\n this._reject(e);\n }\n if (rejected) this.catch(rejected);\n return this;\n }\n _reject(error) {\n this.value = undefined;\n this.error = error;\n }\n _resolve(val) {\n if (val instanceof $41eb0918ec247604$var$PromiseSync) {\n if (val.error) this._reject(val.error);\n else this._resolve(val.value);\n } else {\n this.value = val;\n this.error = undefined;\n }\n }\n constructor(fn){\n fn(this._resolve.bind(this), this._reject.bind(this));\n }\n}\n$41eb0918ec247604$var$PromiseSync.all = (vals)=>new $41eb0918ec247604$var$PromiseSync((resolve)=>{\n const resolved = vals.map((val)=>{\n while(val instanceof $41eb0918ec247604$var$PromiseSync){\n if (val.error) throw Error(val.error);\n val = val.value;\n }\n return val;\n });\n resolve(resolved);\n });\n$41eb0918ec247604$var$PromiseSync.resolve = (val)=>new $41eb0918ec247604$var$PromiseSync((resolve)=>resolve(val));\n$41eb0918ec247604$var$PromiseSync.reject = (error)=>new $41eb0918ec247604$var$PromiseSync((resolve, reject)=>reject(error));\nmodule.exports = $41eb0918ec247604$var$PromiseSync;\n\n});\n\n\nparcelRegister(\"4Y457\", function(module, exports) {\n\n$parcel$export(module.exports, \"elements\", function () { return $39dfee8e399da221$export$7a5d735b2ab6389d; }, function (v) { return $39dfee8e399da221$export$7a5d735b2ab6389d = v; });\n/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */ /* eslint eqeqeq:0 */ /**\n * A map of all expression elements to their properties. Note that changes\n * here may require changes in the Lexer or Parser.\n * @type {{}}\n */ var $39dfee8e399da221$export$7a5d735b2ab6389d;\n$39dfee8e399da221$export$7a5d735b2ab6389d = {\n \".\": {\n type: \"dot\"\n },\n \"[\": {\n type: \"openBracket\"\n },\n \"]\": {\n type: \"closeBracket\"\n },\n \"|\": {\n type: \"pipe\"\n },\n \"{\": {\n type: \"openCurl\"\n },\n \"}\": {\n type: \"closeCurl\"\n },\n \":\": {\n type: \"colon\"\n },\n \",\": {\n type: \"comma\"\n },\n \"(\": {\n type: \"openParen\"\n },\n \")\": {\n type: \"closeParen\"\n },\n \"?\": {\n type: \"question\"\n },\n \"+\": {\n type: \"binaryOp\",\n precedence: 30,\n eval: (left, right)=>left + right\n },\n \"-\": {\n type: \"binaryOp\",\n precedence: 30,\n eval: (left, right)=>left - right\n },\n \"*\": {\n type: \"binaryOp\",\n precedence: 40,\n eval: (left, right)=>left * right\n },\n \"/\": {\n type: \"binaryOp\",\n precedence: 40,\n eval: (left, right)=>left / right\n },\n \"//\": {\n type: \"binaryOp\",\n precedence: 40,\n eval: (left, right)=>Math.floor(left / right)\n },\n \"%\": {\n type: \"binaryOp\",\n precedence: 50,\n eval: (left, right)=>left % right\n },\n \"^\": {\n type: \"binaryOp\",\n precedence: 50,\n eval: (left, right)=>Math.pow(left, right)\n },\n \"==\": {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>left == right\n },\n \"!=\": {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>left != right\n },\n \">\": {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>left > right\n },\n \">=\": {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>left >= right\n },\n \"<\": {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>left < right\n },\n \"<=\": {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>left <= right\n },\n \"&&\": {\n type: \"binaryOp\",\n precedence: 10,\n eval: (left, right)=>left && right\n },\n \"||\": {\n type: \"binaryOp\",\n precedence: 10,\n eval: (left, right)=>left || right\n },\n in: {\n type: \"binaryOp\",\n precedence: 20,\n eval: (left, right)=>{\n if (typeof right === \"string\") return right.indexOf(left) !== -1;\n if (Array.isArray(right)) return right.some((elem)=>elem === left);\n return false;\n }\n },\n \"!\": {\n type: \"unaryOp\",\n precedence: Infinity,\n eval: (right)=>!right\n }\n};\n\n});\n\n\nparcelRegister(\"lu1BS\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $fa3da6018673f5b5$export$2e2bcd8739ae039; });\n\nvar $7b1Lp = parcelRequire(\"7b1Lp\");\n\nvar $1GRlU = parcelRequire(\"1GRlU\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\nparcelRequire(\"8u8eZ\");\n\nvar $bgJ4c = parcelRequire(\"bgJ4c\");\n\nvar $1TNq4 = parcelRequire(\"1TNq4\");\n\nvar $jgf7t = parcelRequire(\"jgf7t\");\nconst $fa3da6018673f5b5$var$line = (theme)=>({\n display: \"block\",\n content: '\"\"',\n height: \"100%\",\n width: 1,\n backgroundColor: \"#A3A9AA\",\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: 26,\n zIndex: -1,\n [theme.breakpoints.down(\"sm\")]: {\n left: 13\n }\n });\nconst $fa3da6018673f5b5$var$useStyles = (0, $7b1Lp.default)((theme)=>({\n container: {\n paddingLeft: theme.spacing(6),\n paddingRight: theme.spacing(6),\n paddingTop: theme.spacing(4),\n overflowY: \"scroll\",\n position: \"relative\",\n scrollBehavior: \"smooth\",\n [theme.breakpoints.down(\"sm\")]: {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n paddingTop: theme.spacing(4)\n }\n },\n itemIndex: {\n width: 51,\n height: 51,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: \"50%\",\n border: \"1px solid currentColor\",\n color: theme.palette.grey[500],\n fontSize: \"20px\",\n backgroundColor: \"white\",\n position: \"absolute\",\n top: 0,\n left: 0,\n zIndex: 1,\n transition: \"color 0.5s\",\n fontFamily: theme.typography.fontFamily,\n [theme.breakpoints.down(\"sm\")]: {\n width: 25,\n height: 25,\n fontSize: \"15px\"\n }\n },\n completedIndex: {\n color: theme.palette.primary.main\n },\n skippedIndex: {\n color: theme.palette.warning.main,\n backgroundColor: theme.palette.warning.extraLight\n },\n item: {\n counterIncrement: \"item\",\n position: \"relative\",\n paddingLeft: 100,\n paddingBottom: 60,\n [theme.breakpoints.down(\"sm\")]: {\n paddingLeft: 40\n },\n \"&:not(:last-child):before\": {\n ...$fa3da6018673f5b5$var$line(theme),\n backgroundColor: \"#A3A9AA\"\n },\n \"&:not(:last-child):after\": {\n ...$fa3da6018673f5b5$var$line(theme),\n backgroundColor: theme.palette.primary.main,\n transformOrigin: \"top\",\n transform: \"scaleY(0)\",\n transition: \"transform 0.4s\"\n }\n },\n completedAnswer: {\n \"&:not(:last-child):after\": {\n transform: \"scaleY(1)\"\n }\n },\n skippedAnswer: {\n \"&:not(:last-child):after\": {\n transform: \"scaleY(1)\",\n backgroundColor: theme.palette.warning.main\n }\n }\n }));\nconst $fa3da6018673f5b5$var$autoScrollConfig = {\n timeout: 0,\n // id of currently running setTimeout so it can be killed when needed\n enabled: true // auto-scroll can be temporarily disabled e.g. for select type\n};\nfunction $fa3da6018673f5b5$var$LinearStepper({ stepperItems: stepperItems, className: className, heading: heading, setAnswer: setAnswer, setMeta: setMeta, country: country, containerRef: parentRef, skippedQuestions: skippedQuestions = [], skippedQuestionsCallbacks: skippedQuestionsCallbacks = [], autoScroll: autoScroll, // globally enabled/disabled auto-scroll to next question\n...rest }) {\n const classes = $fa3da6018673f5b5$var$useStyles();\n const container = (0, $cQNHH.useRef)(null);\n const itemRefs = (0, $bgJ4c.default)(stepperItems, ()=>/*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createRef());\n const [scrollToIndex, setScrollToIndex] = (0, $cQNHH.useState)(0);\n const applyRef = (containerRef)=>{\n if (parentRef) parentRef(containerRef);\n container.current = containerRef;\n };\n const scrollToItem = (index, force = false)=>{\n const ref = itemRefs[index];\n if (!ref || !ref.current) return;\n setScrollToIndex(0);\n if ($fa3da6018673f5b5$var$autoScrollConfig.enabled && autoScroll || force) {\n const itemEl = ref.current;\n const offset = 20;\n container.current.scroll({\n top: itemEl.offsetTop - offset,\n behavior: \"smooth\"\n });\n }\n };\n const scrollToNextItem = (index)=>{\n clearTimeout($fa3da6018673f5b5$var$autoScrollConfig.timeout);\n $fa3da6018673f5b5$var$autoScrollConfig.timeout = setTimeout(()=>setScrollToIndex(index + 1), (0, $1TNq4.scrollToNextItemInterval));\n };\n (0, $cQNHH.useEffect)(()=>{\n if (scrollToIndex) scrollToItem(scrollToIndex);\n }, [\n stepperItems,\n scrollToIndex\n ]);\n (0, $cQNHH.useEffect)(()=>{\n skippedQuestionsCallbacks.splice(0, skippedQuestionsCallbacks.length);\n if (skippedQuestions.length > 0) {\n const index = stepperItems.findIndex(({ id: id })=>id === skippedQuestions[0]);\n skippedQuestionsCallbacks.push(()=>scrollToItem(index, true));\n }\n }, [\n stepperItems,\n skippedQuestions\n ]);\n (0, $cQNHH.useEffect)(()=>clearTimeout($fa3da6018673f5b5$var$autoScrollConfig.timeout), []);\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n ref: applyRef,\n className: (0, (/*@__PURE__*/$parcel$interopDefault($1GRlU)))(classes.container, className, \"questions\"),\n ...rest\n }, heading, stepperItems.map((item, index)=>{\n const isCompleted = typeof item.value !== \"undefined\";\n const isSkipped = skippedQuestions.includes(item.id);\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n key: item.id,\n ref: itemRefs[index],\n className: (0, (/*@__PURE__*/$parcel$interopDefault($1GRlU)))(classes.item, {\n [classes.completedAnswer]: isCompleted,\n [classes.skippedAnswer]: isSkipped\n })\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"span\", {\n \"aria-hidden\": \"true\",\n className: (0, (/*@__PURE__*/$parcel$interopDefault($1GRlU)))(classes.itemIndex, {\n [classes.completedIndex]: isCompleted,\n [classes.skippedIndex]: isSkipped\n })\n }, index + 1), /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $jgf7t.default), {\n clearAnswer: setAnswer,\n country: country,\n disableAutoScroll: ()=>{\n $fa3da6018673f5b5$var$autoScrollConfig.enabled = false;\n },\n item: item,\n itemIndex: index + 1,\n setAnswer: (answer, autoAcroll)=>{\n setAnswer(answer);\n $fa3da6018673f5b5$var$autoScrollConfig.enabled = autoAcroll;\n if (autoAcroll) scrollToNextItem(index);\n },\n setMeta: setMeta\n }));\n }));\n}\n$fa3da6018673f5b5$var$LinearStepper.defaultProps = {\n autoScroll: false,\n className: \"\",\n containerRef: null,\n heading: undefined,\n skippedQuestions: [],\n skippedQuestionsCallbacks: []\n};\nvar $fa3da6018673f5b5$export$2e2bcd8739ae039 = $fa3da6018673f5b5$var$LinearStepper;\n\n});\nparcelRegister(\"bgJ4c\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $834425a5b4e7b4d7$export$2e2bcd8739ae039; });\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\nfunction $834425a5b4e7b4d7$export$2e2bcd8739ae039(list, createListEntry, indexer = (i)=>i) {\n const entries = (0, $cQNHH.useRef)(null);\n const listLength = (0, $cQNHH.useRef)(null);\n if (listLength.current !== list.length) {\n const refs = {};\n for(let i = 0; i < list.length; i += 1)refs[indexer(i)] = createListEntry(i);\n entries.current = refs;\n listLength.current = list.length;\n }\n return entries.current;\n}\n\n});\n\nparcelRegister(\"jgf7t\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $e05b3d61e899cca6$export$2e2bcd8739ae039; });\n\nvar $7b1Lp = parcelRequire(\"7b1Lp\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $c4XSV = parcelRequire(\"c4XSV\");\nvar $szrnD = parcelRequire(\"szrnD\");\nparcelRequire(\"8u8eZ\");\n\nvar $7lOcN = parcelRequire(\"7lOcN\");\n\nvar $kvHhM = parcelRequire(\"kvHhM\");\n\nvar $Hnq0F = parcelRequire(\"Hnq0F\");\n\nvar $7lxZo = parcelRequire(\"7lxZo\");\nconst $e05b3d61e899cca6$var$messages = (0, $c4XSV.defineMessages)({\n questionTitle: {\n \"id\": \"Questionnaire.QuestionTitle\",\n \"defaultMessage\": \"Question {number}. {questionText}\"\n }\n});\nconst $e05b3d61e899cca6$var$useStyles = (0, $7b1Lp.default)((theme)=>({\n header: {\n display: \"flex\",\n alignItems: \"center\",\n marginBottom: 20,\n whiteSpace: \"pre-line\",\n [theme.breakpoints.up(\"md\")]: {\n paddingTop: theme.spacing(1)\n }\n },\n answer: {\n display: \"flex\"\n }\n }));\nfunction $e05b3d61e899cca6$var$LinearStepperItem({ item: { question: question, description: description, value: value, id: itemId, type: questionType, items: questionItems, options: questionOptions, meta: meta }, setAnswer: setAnswer, clearAnswer: clearAnswer, disableAutoScroll: disableAutoScroll, setMeta: setMeta, country: country, itemIndex: itemIndex, intl: { formatMessage: formatMessage } }) {\n const AnswerComponent = (0, $Hnq0F.default)(questionType);\n const titleId = (0, $7lOcN.default)();\n const classes = $e05b3d61e899cca6$var$useStyles();\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n \"data-testid\": `${questionType}-${itemIndex}`,\n key: itemId\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n className: classes.header\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kvHhM.SectionHeading), {\n \"aria-label\": formatMessage($e05b3d61e899cca6$var$messages.questionTitle, {\n number: itemIndex,\n questionText: question\n }),\n id: titleId\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $7lxZo.QuestionText), null, question))), description && /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $7lxZo.QuestionDescription), null, description), /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n className: classes.answer\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(AnswerComponent, {\n aria: {\n \"aria-describedby\": titleId\n },\n clearAnswer: ()=>clearAnswer({\n id: itemId\n }),\n country: country,\n currentAnswer: value,\n disableAutoScroll: disableAutoScroll,\n itemId: itemId,\n items: questionItems,\n meta: meta || {},\n options: questionOptions,\n setAnswer: (newValue, autoAcroll = true)=>setAnswer({\n id: itemId,\n value: newValue\n }, autoAcroll),\n setMeta: (path, newValue)=>setMeta({\n id: itemId,\n value: newValue,\n path: path\n })\n })));\n}\nvar $e05b3d61e899cca6$export$2e2bcd8739ae039 = (0, $szrnD.default)($e05b3d61e899cca6$var$LinearStepperItem);\n\n});\nparcelRegister(\"7lxZo\", function(module, exports) {\n\n$parcel$export(module.exports, \"QuestionText\", function () { return $5594dc180007527f$export$276dbf9ac14ca2c6; });\n$parcel$export(module.exports, \"QuestionDescription\", function () { return $5594dc180007527f$export$7c0a16af240a6114; });\n\nvar $7b1Lp = parcelRequire(\"7b1Lp\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\nparcelRequire(\"8u8eZ\");\n\nvar $h5HRh = parcelRequire(\"h5HRh\");\n\nvar $kvHhM = parcelRequire(\"kvHhM\");\nconst $5594dc180007527f$var$useStyles = (0, $7b1Lp.default)({\n question: {\n \"& > p\": {\n marginBlockStart: 0,\n marginBlockEnd: 0\n }\n },\n description: {\n marginBottom: 20,\n whiteSpace: \"pre-line\"\n }\n});\nfunction $5594dc180007527f$export$276dbf9ac14ca2c6({ children: text }) {\n const { question: question } = $5594dc180007527f$var$useStyles();\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n className: question\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $h5HRh.default), {\n extend: {\n p: (props)=>/*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"p\", props)\n }\n }, text));\n}\nfunction $5594dc180007527f$export$7c0a16af240a6114({ children: text }) {\n const { description: description } = $5594dc180007527f$var$useStyles();\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement(\"div\", {\n className: description\n }, /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $h5HRh.default), {\n extend: {\n p: (props)=>/*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kvHhM.SubtleText), {\n variant: \"subtitle1\",\n ...props\n })\n }\n }, text));\n}\n\n});\n\n\n\nparcelRegister(\"1uQg8\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $1171216252e77697$export$2e2bcd8739ae039; });\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $kV13H = parcelRequire(\"kV13H\");\n\nvar $iTDkM = parcelRequire(\"iTDkM\");\nparcelRequire(\"8u8eZ\");\nfunction $1171216252e77697$var$Eligible({ customPage: customPage, nextPageName: nextPageName, onButtonClick: onButtonClick }) {\n const getText = ()=>{\n switch(nextPageName){\n case \"clinicForm\":\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"In the next step you will select a clinic that you would like to visit during the study.\",\n id: \"Elegible.SelectPreferedClinic\"\n });\n case \"contactDetails\":\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"In the next step you will enter your contact details so that the study medical team can reach you.\",\n id: \"Elegible.EnterContactDetails\"\n });\n default:\n return \"\";\n }\n };\n var _customPage_text;\n const text = customPage.title ? (_customPage_text = customPage.text) !== null && _customPage_text !== void 0 ? _customPage_text : \"\" : getText();\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $iTDkM.default), {\n buttonText: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Next\",\n id: \"Elegible.ChooseClinic\"\n }),\n customPage: customPage,\n noIcon: true,\n onButtonClick: onButtonClick,\n text: text,\n title: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"You meet the basic study criteria\",\n id: \"Elegible.YouAreElegible\"\n })\n });\n}\n$1171216252e77697$var$Eligible.defaultProps = {\n customPage: {},\n onButtonClick: undefined\n};\nvar $1171216252e77697$export$2e2bcd8739ae039 = $1171216252e77697$var$Eligible;\n\n});\n\nparcelRegister(\"dSWGo\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $a1bdd6b4453252d5$export$2e2bcd8739ae039; });\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $kV13H = parcelRequire(\"kV13H\");\n\nvar $iTDkM = parcelRequire(\"iTDkM\");\nparcelRequire(\"8u8eZ\");\n\nvar $jge0r = parcelRequire(\"jge0r\");\nfunction $a1bdd6b4453252d5$var$NotEligible({ customPage: customPage, onButtonClick: onButtonClick }) {\n (0, $cQNHH.useEffect)(()=>{\n (0, $jge0r.userMetrics).track(\"Ineligible screen loaded\");\n }, []);\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $iTDkM.default), {\n buttonText: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Close\",\n id: \"NotEligible.CloseButton\"\n }),\n customPage: customPage,\n onButtonClick: onButtonClick,\n showButton: Boolean(onButtonClick),\n title: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Sorry, the study is not suitable for you at this time\",\n id: \"NotEligible.NotEligible\"\n })\n });\n}\n$a1bdd6b4453252d5$var$NotEligible.defaultProps = {\n customPage: {},\n onButtonClick: undefined\n};\nvar $a1bdd6b4453252d5$export$2e2bcd8739ae039 = $a1bdd6b4453252d5$var$NotEligible;\n\n});\n\n\nparcelRegister(\"fczoz\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $b1136ecc231e5861$export$2e2bcd8739ae039; });\nfunction $b1136ecc231e5861$export$2e2bcd8739ae039(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\n\n});\n\nparcelRegister(\"6FxfJ\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $4db05dbc6e75829d$export$2e2bcd8739ae039; });\nfunction $4db05dbc6e75829d$var$_defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction $4db05dbc6e75829d$export$2e2bcd8739ae039(Constructor, protoProps, staticProps) {\n if (protoProps) $4db05dbc6e75829d$var$_defineProperties(Constructor.prototype, protoProps);\n if (staticProps) $4db05dbc6e75829d$var$_defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\n});\n\nparcelRegister(\"aVtrN\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $7f4611e3490ddb8a$export$2e2bcd8739ae039; });\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\nfunction $7f4611e3490ddb8a$export$2e2bcd8739ae039(element, muiNames) {\n return /*#__PURE__*/ $cQNHH.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;\n}\n\n});\n\nparcelRegister(\"32oIY\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $2364bcbfab9cd1f8$export$2e2bcd8739ae039; });\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n/**\n * @ignore - internal component.\n */ var $2364bcbfab9cd1f8$var$ListContext = $cQNHH.createContext({});\n$2364bcbfab9cd1f8$var$ListContext.displayName = \"ListContext\";\nvar $2364bcbfab9cd1f8$export$2e2bcd8739ae039 = $2364bcbfab9cd1f8$var$ListContext;\n\n});\n\nparcelRegister(\"7yw4T\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", function () { return $580497621dffad21$export$2e2bcd8739ae039; });\n\nvar $gtn2B = parcelRequire(\"gtn2B\");\n\nvar $fsWgf = parcelRequire(\"fsWgf\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $1xEYC = parcelRequire(\"1xEYC\");\n\nvar $bKF6r = parcelRequire(\"bKF6r\");\n\nvar $dcECW = parcelRequire(\"dcECW\");\n\nvar $eyd6T = parcelRequire(\"eyd6T\");\n\nvar $6apHB = parcelRequire(\"6apHB\");\n\nvar $aVtrN = parcelRequire(\"aVtrN\");\n\nvar $ge6Tz = parcelRequire(\"ge6Tz\");\n\nvar $32oIY = parcelRequire(\"32oIY\");\n\nvar $dLwnG = parcelRequire(\"dLwnG\");\nvar $580497621dffad21$export$9dd6ff9ea0189349 = function styles(theme) {\n return {\n /* Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */ root: {\n display: \"flex\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n position: \"relative\",\n textDecoration: \"none\",\n width: \"100%\",\n boxSizing: \"border-box\",\n textAlign: \"left\",\n paddingTop: 8,\n paddingBottom: 8,\n \"&$focusVisible\": {\n backgroundColor: theme.palette.action.selected\n },\n \"&$selected, &$selected:hover\": {\n backgroundColor: theme.palette.action.selected\n },\n \"&$disabled\": {\n opacity: 0.5\n }\n },\n /* Styles applied to the `container` element if `children` includes `ListItemSecondaryAction`. */ container: {\n position: \"relative\"\n },\n /* Pseudo-class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */ focusVisible: {},\n /* Styles applied to the `component` element if dense. */ dense: {\n paddingTop: 4,\n paddingBottom: 4\n },\n /* Styles applied to the `component` element if `alignItems=\"flex-start\"`. */ alignItemsFlexStart: {\n alignItems: \"flex-start\"\n },\n /* Pseudo-class applied to the inner `component` element if `disabled={true}`. */ disabled: {},\n /* Styles applied to the inner `component` element if `divider={true}`. */ divider: {\n borderBottom: \"1px solid \".concat(theme.palette.divider),\n backgroundClip: \"padding-box\"\n },\n /* Styles applied to the inner `component` element if `disableGutters={false}`. */ gutters: {\n paddingLeft: 16,\n paddingRight: 16\n },\n /* Styles applied to the inner `component` element if `button={true}`. */ button: {\n transition: theme.transitions.create(\"background-color\", {\n duration: theme.transitions.duration.shortest\n }),\n \"&:hover\": {\n textDecoration: \"none\",\n backgroundColor: theme.palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n \"@media (hover: none)\": {\n backgroundColor: \"transparent\"\n }\n }\n },\n /* Styles applied to the `component` element if `children` includes `ListItemSecondaryAction`. */ secondaryAction: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n },\n /* Pseudo-class applied to the root element if `selected={true}`. */ selected: {}\n };\n};\nvar $580497621dffad21$var$useEnhancedEffect = typeof window === \"undefined\" ? $cQNHH.useEffect : $cQNHH.useLayoutEffect;\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */ var $580497621dffad21$var$ListItem = /*#__PURE__*/ $cQNHH.forwardRef(function ListItem(props, ref) {\n var _props$alignItems = props.alignItems, alignItems = _props$alignItems === void 0 ? \"center\" : _props$alignItems, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$button = props.button, button = _props$button === void 0 ? false : _props$button, childrenProp = props.children, classes = props.classes, className = props.className, componentProp = props.component, _props$ContainerCompo = props.ContainerComponent, ContainerComponent = _props$ContainerCompo === void 0 ? \"li\" : _props$ContainerCompo, _props$ContainerProps = props.ContainerProps;\n _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;\n var ContainerClassName = _props$ContainerProps.className, ContainerProps = (0, $fsWgf.default)(_props$ContainerProps, [\n \"className\"\n ]), _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$disableGutters = props.disableGutters, disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters, _props$divider = props.divider, divider = _props$divider === void 0 ? false : _props$divider, focusVisibleClassName = props.focusVisibleClassName, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = (0, $fsWgf.default)(props, [\n \"alignItems\",\n \"autoFocus\",\n \"button\",\n \"children\",\n \"classes\",\n \"className\",\n \"component\",\n \"ContainerComponent\",\n \"ContainerProps\",\n \"dense\",\n \"disabled\",\n \"disableGutters\",\n \"divider\",\n \"focusVisibleClassName\",\n \"selected\"\n ]);\n var context = $cQNHH.useContext((0, $32oIY.default));\n var childContext = {\n dense: dense || context.dense || false,\n alignItems: alignItems\n };\n var listItemRef = $cQNHH.useRef(null);\n $580497621dffad21$var$useEnhancedEffect(function() {\n if (autoFocus) {\n if (listItemRef.current) listItemRef.current.focus();\n else console.error(\"Material-UI: Unable to set focus to a ListItem whose component has not been rendered.\");\n }\n }, [\n autoFocus\n ]);\n var children = $cQNHH.Children.toArray(childrenProp);\n var hasSecondaryAction = children.length && (0, $aVtrN.default)(children[children.length - 1], [\n \"ListItemSecondaryAction\"\n ]);\n var handleOwnRef = $cQNHH.useCallback(function(instance) {\n // #StrictMode ready\n listItemRef.current = $dLwnG.findDOMNode(instance);\n }, []);\n var handleRef = (0, $ge6Tz.default)(handleOwnRef, ref);\n var componentProps = (0, $gtn2B.default)({\n className: (0, $bKF6r.default)(classes.root, className, childContext.dense && classes.dense, !disableGutters && classes.gutters, divider && classes.divider, disabled && classes.disabled, button && classes.button, alignItems !== \"center\" && classes.alignItemsFlexStart, hasSecondaryAction && classes.secondaryAction, selected && classes.selected),\n disabled: disabled\n }, other);\n var Component = componentProp || \"li\";\n if (button) {\n componentProps.component = componentProp || \"div\";\n componentProps.focusVisibleClassName = (0, $bKF6r.default)(classes.focusVisible, focusVisibleClassName);\n Component = (0, $6apHB.default);\n }\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? \"div\" : Component; // Avoid nesting of li > li.\n if (ContainerComponent === \"li\") {\n if (Component === \"li\") Component = \"div\";\n else if (componentProps.component === \"li\") componentProps.component = \"div\";\n }\n return /*#__PURE__*/ $cQNHH.createElement((0, $32oIY.default).Provider, {\n value: childContext\n }, /*#__PURE__*/ $cQNHH.createElement(ContainerComponent, (0, $gtn2B.default)({\n className: (0, $bKF6r.default)(classes.container, ContainerClassName),\n ref: handleRef\n }, ContainerProps), /*#__PURE__*/ $cQNHH.createElement(Component, componentProps, children), children.pop()));\n }\n return /*#__PURE__*/ $cQNHH.createElement((0, $32oIY.default).Provider, {\n value: childContext\n }, /*#__PURE__*/ $cQNHH.createElement(Component, (0, $gtn2B.default)({\n ref: handleRef\n }, componentProps), children));\n});\n$580497621dffad21$var$ListItem.propTypes = {\n /**\n * Defines the `align-items` style property.\n */ alignItems: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).oneOf([\n \"flex-start\",\n \"center\"\n ]),\n /**\n * If `true`, the list item will be focused during the first mount.\n * Focus will also be triggered if the value changes from false to true.\n */ autoFocus: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool,\n /**\n * If `true`, the list item will be a button (using `ButtonBase`). Props intended\n * for `ButtonBase` can then be applied to `ListItem`.\n */ button: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool,\n /**\n * The content of the component. If a `ListItemSecondaryAction` is used it must\n * be the last child.\n */ children: (0, $dcECW.default)((0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).node, function(props) {\n var children = $cQNHH.Children.toArray(props.children); // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n var secondaryActionIndex = -1;\n for(var i = children.length - 1; i >= 0; i -= 1){\n var child = children[i];\n if ((0, $aVtrN.default)(child, [\n \"ListItemSecondaryAction\"\n ])) {\n secondaryActionIndex = i;\n break;\n }\n } // is ListItemSecondaryAction the last child of ListItem\n if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) return new Error(\"Material-UI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.\");\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */ classes: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).object.isRequired,\n /**\n * @ignore\n */ className: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * By default, it's a `li` when `button` is `false` and a `div` when `button` is `true`.\n */ component: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC)))/* @typescript-to-proptypes-ignore */ .elementType,\n /**\n * The container component used when a `ListItemSecondaryAction` is the last child.\n */ ContainerComponent: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).elementType,\n /**\n * Props applied to the container component if used.\n */ ContainerProps: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).object,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used.\n */ dense: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool,\n /**\n * If `true`, the list item will be disabled.\n */ disabled: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool,\n /**\n * If `true`, the left and right padding is removed.\n */ disableGutters: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool,\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n */ divider: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool,\n /**\n * @ignore\n */ focusVisibleClassName: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).string,\n /**\n * Use to apply selected styling.\n */ selected: (0, (/*@__PURE__*/$parcel$interopDefault($1xEYC))).bool\n};\nvar $580497621dffad21$export$2e2bcd8739ae039 = (0, $eyd6T.default)($580497621dffad21$export$9dd6ff9ea0189349, {\n name: \"MuiListItem\"\n})($580497621dffad21$var$ListItem);\n\n});\n\n\n//# sourceMappingURL=Questionnaire.be595222.js.map\n","/* eslint-disable react/jsx-no-bind */\n/* eslint-disable react/require-default-props */\n/* eslint-disable react/prop-types */\nimport IconButton from '@material-ui/core/IconButton';\nimport LinearProgress from '@material-ui/core/LinearProgress';\nimport Popover from '@material-ui/core/Popover';\nimport WarningIcon from '@material-ui/icons/Warning';\nimport { makeStyles, useTheme } from '@material-ui/styles';\nimport classNames from 'classnames';\nimport 'core-js/features/object/from-entries';\nimport jexl from 'jexl';\nimport React, { useState } from 'react';\nimport { FormattedMessage, useIntl } from 'react-intl';\nimport Footer from '../components/Footer/Footer';\nimport LinearStepper from '../components/Stepper/LinearStepper';\nimport { MainHeadingSmaller, NormalText } from '../components/typography';\nimport { submitMetric } from '../helpers/metrics';\nimport PropTypes, { customPagesPropType } from '../helpers/propTypes';\nimport { useCloseConfirmation } from '../hooks/useCloseConfirmation';\nimport { useGlobalScope } from '../hooks/useGlobalState';\nimport usePageAria from '../hooks/usePageAria';\nimport Eligible from './Eligible';\nimport NotEligible from './NotEligible';\n\n// Automatically close \"skipped questions\" popover after xxx [ms] (don't close when = 0|false|null)\nexport const popoverVisibilityInterval = 3000;\n\nconst useStyles = makeStyles((theme) => ({\n content: {\n flexGrow: 1,\n },\n\n contentLoading: {\n opacity: 0.5,\n pointerEvents: 'none',\n },\n\n introText: {\n [theme.breakpoints.down('xs')]: {\n marginBottom: theme.spacing(4),\n },\n\n marginTop: 0,\n marginBottom: theme.spacing(6),\n },\n\n footerProgress: {\n width: 240,\n height: 40,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n whiteSpace: 'nowrap',\n\n [theme.breakpoints.down('xs')]: {\n flexDirection: 'row',\n alignItems: 'center',\n width: '100%',\n height: 'unset',\n },\n },\n\n footerProgressText: {\n [theme.breakpoints.down('xs')]: {\n marginRight: 16,\n },\n\n color: theme.palette.grey[700],\n marginBottom: 0,\n },\n\n popoverText: {\n margin: 0,\n padding: `${theme.spacing(1)}px ${theme.spacing(2)}px`,\n },\n}));\n\nfunction WarningIconButton({ onClick, skippedQuestions }) {\n const intl = useIntl();\n if (skippedQuestions.length < 1) return null;\n\n return (\n \n \n \n );\n}\n\nWarningIconButton.propTypes = {\n onClick: PropTypes.func.isRequired,\n skippedQuestions: PropTypes.arrayOf(PropTypes.string).isRequired,\n};\n\nfunction parseAnswer(answer, type) {\n if (type === 'checkbox' || type === 'radiobutton') {\n try {\n return JSON.parse(answer);\n } catch (_) {\n return answer;\n }\n }\n return answer;\n}\n\nfunction getVisibleQuestions({ questions, answers, context }) {\n const ctx = {\n ...context,\n answer: Object.fromEntries(\n questions.map(({ id, key, type }) => [\n key,\n parseAnswer(answers[id], type),\n ]),\n ),\n };\n return questions.filter(\n (q) => !q.visibleIf || jexl.evalSync(q.visibleIf, ctx),\n );\n}\n\nfunction getAnsweredQuestions({ visibleQuestions, answers = {} }) {\n const visibleIds = visibleQuestions.map(({ id }) => id);\n return Object.keys(answers).filter((key) => visibleIds.indexOf(key) >= 0)\n .length;\n}\n\nfunction getSkippedQuestions({ visibleQuestions, answers = {} }) {\n const visibleIds = visibleQuestions.map(({ id }) => id);\n const answersIds = Object.keys(answers);\n if (answersIds.length < 1) return [];\n\n const notAnswered = (id) => !answersIds.includes(id);\n const maxIndex = (prev, id, i) => Math.max(prev, notAnswered(id) ? -1 : i);\n const lastAnswerIndex = visibleIds.reduce(maxIndex, -1);\n return visibleIds.slice(0, lastAnswerIndex + 1).filter(notAnswered);\n}\n\nfunction deepEqual(a, b) {\n return typeof a === typeof b && JSON.stringify(a) === JSON.stringify(b);\n}\n\nfunction mapOldAnswers(oldAnswers = []) {\n return Object.fromEntries(\n oldAnswers.map(({ questionId, answer }) => [questionId, answer]),\n );\n}\n\nfunction Questionnaire({\n api: { getQuestionnaireResults, submitQuestion },\n questions,\n answers: oldAnswers,\n context,\n navigateModal,\n closeModal,\n pageName,\n nextPageName,\n prevPageName,\n country,\n contentId,\n steps,\n setSites,\n customPages = {},\n questionnaireConfig = {},\n autoScroll = false,\n}) {\n const useGlobal = useGlobalScope(pageName);\n\n const [subPage, setSubPage] = useGlobal('subPage');\n const [answers, setAnswers] = useGlobal('answers', mapOldAnswers(oldAnswers));\n const [answerMetas, _, setAnswerMetaProperty] = useGlobal('answerMetas', {});\n\n useCloseConfirmation(subPage !== 'not-eligible');\n\n const [loading, setLoading] = useState(false);\n const [popoverRef, setPopoverRef] = useState(null);\n\n const aria = usePageAria();\n\n const visibleQuestions = getVisibleQuestions({ questions, answers, context });\n const answeredQuestions = getAnsweredQuestions({ visibleQuestions, answers });\n const skippedQuestions = getSkippedQuestions({ visibleQuestions, answers });\n const percentage = (answeredQuestions / visibleQuestions.length) * 100;\n\n const skippedQuestionsCallbacks = [];\n const handleWarningBtnClick = (event) => {\n setPopoverRef(event.currentTarget);\n if (popoverVisibilityInterval > 0) {\n setTimeout(() => setPopoverRef(null), popoverVisibilityInterval);\n }\n skippedQuestionsCallbacks.forEach((callback) => callback());\n };\n\n async function setAnswer({ id, value }) {\n const newAnswers = {\n ...answers,\n [id]: value,\n };\n const valueDefined = typeof value !== 'undefined';\n if (!valueDefined) {\n delete newAnswers[id];\n }\n\n setAnswers(newAnswers);\n submitMetric('answeredQuestion');\n if (valueDefined && !deepEqual(answers[id], value)) {\n await submitQuestion(id, value);\n }\n }\n\n function setMeta({ id, path, value }) {\n setAnswerMetaProperty(`${id}.${path}`, value);\n }\n\n async function handleContinueClick() {\n if (subPage !== null) {\n navigateModal({ forward: true });\n setSubPage(null);\n return;\n }\n\n setLoading(true);\n /**\n * !Danger\n * getQuestionnaireResults is not idempotent don't run it twice\n */\n const { eligible, sites } = await getQuestionnaireResults();\n setSites(sites);\n\n if (subPage === null && !eligible) {\n await setSubPage('not-eligible');\n setLoading(false);\n } else if (\n subPage === null &&\n eligible &&\n steps.includes('questionnaire.eligible')\n ) {\n await setSubPage('eligible');\n setLoading(false);\n } else {\n navigateModal({ forward: true, sites });\n setSubPage(null);\n }\n }\n\n const classes = useStyles();\n\n const renderFooter = (customPage = {}) => {\n return (\n <>\n = 100}\n liveRegionId={contentId}\n loading={loading}\n nextPageName={nextPageName}\n onContinueClick={handleContinueClick}\n prevPageName={prevPageName}\n warning={\n \n }\n >\n {subPage === null && (\n
\n \n {answeredQuestions},\n totalQuestions: visibleQuestions.length,\n }}\n />\n \n \n
\n )}\n \n setPopoverRef(null)}\n open={Boolean(popoverRef)}\n transformOrigin={{\n vertical: 'bottom',\n horizontal: 'center',\n }}\n >\n \n \n \n \n \n );\n };\n\n const { ref, ...restAria } = aria;\n const theme = useTheme();\n\n // Possibility to overwrite some questionnaire properties using `questionnaireConfig` with fallback to default.\n const config = {\n heading: (\n \n \n \n ),\n eligible: (\n <>\n \n {renderFooter(customPages.eligible)}\n \n ),\n notEligible: (\n \n ),\n ...questionnaireConfig,\n };\n\n if (subPage === null) {\n return (\n <>\n ({\n ...q,\n value: answers[q.id],\n meta: answerMetas[q.id],\n }))}\n {...restAria}\n />\n {renderFooter(config)}\n \n );\n } else if (subPage === 'eligible') {\n return config.eligible;\n } else if (subPage === 'not-eligible') {\n return config.notEligible;\n }\n return Oops, that ID was not found!;\n}\n\nQuestionnaire.propTypes = {\n answers: PropTypes.arrayOf(\n PropTypes.shape({\n answer: PropTypes.string.isRequired,\n questionId: PropTypes.string.isRequired,\n }).isRequired,\n ),\n api: PropTypes.shape({\n getQuestionnaireResults: PropTypes.func.isRequired,\n submitQuestion: PropTypes.func.isRequired,\n }).isRequired,\n autoScroll: PropTypes.bool,\n closeModal: PropTypes.func,\n contentId: PropTypes.string.isRequired,\n context: PropTypes.shape({}),\n country: PropTypes.string.isRequired,\n customPages: customPagesPropType,\n navigateModal: PropTypes.func.isRequired,\n nextPageName: PropTypes.string,\n pageName: PropTypes.string.isRequired,\n prevPageName: PropTypes.string,\n questionnaireConfig: PropTypes.shape({\n eligible: PropTypes.element,\n heading: PropTypes.string,\n notEligible: PropTypes.element,\n }),\n questions: PropTypes.arrayOf(\n PropTypes.shape({\n description: PropTypes.string,\n id: PropTypes.string,\n question: PropTypes.string,\n type: PropTypes.string,\n }),\n ).isRequired,\n};\n\nexport default Questionnaire;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport capitalize from '../utils/capitalize';\nimport withStyles from '../styles/withStyles';\nimport { darken, lighten } from '../styles/colorManipulator';\nimport useTheme from '../styles/useTheme';\nvar TRANSITION_DURATION = 4; // seconds\n\nexport var styles = function styles(theme) {\n var getColor = function getColor(color) {\n return theme.palette.type === 'light' ? lighten(color, 0.62) : darken(color, 0.5);\n };\n\n var backgroundPrimary = getColor(theme.palette.primary.main);\n var backgroundSecondary = getColor(theme.palette.secondary.main);\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'relative',\n overflow: 'hidden',\n height: 4,\n '@media print': {\n colorAdjust: 'exact'\n }\n },\n\n /* Styles applied to the root and bar2 element if `color=\"primary\"`; bar2 if `variant=\"buffer\"`. */\n colorPrimary: {\n backgroundColor: backgroundPrimary\n },\n\n /* Styles applied to the root and bar2 elements if `color=\"secondary\"`; bar2 if `variant=\"buffer\"`. */\n colorSecondary: {\n backgroundColor: backgroundSecondary\n },\n\n /* Styles applied to the root element if `variant=\"determinate\"`. */\n determinate: {},\n\n /* Styles applied to the root element if `variant=\"indeterminate\"`. */\n indeterminate: {},\n\n /* Styles applied to the root element if `variant=\"buffer\"`. */\n buffer: {\n backgroundColor: 'transparent'\n },\n\n /* Styles applied to the root element if `variant=\"query\"`. */\n query: {\n transform: 'rotate(180deg)'\n },\n\n /* Styles applied to the additional bar element if `variant=\"buffer\"`. */\n dashed: {\n position: 'absolute',\n marginTop: 0,\n height: '100%',\n width: '100%',\n animation: '$buffer 3s infinite linear'\n },\n\n /* Styles applied to the additional bar element if `variant=\"buffer\"` and `color=\"primary\"`. */\n dashedColorPrimary: {\n backgroundImage: \"radial-gradient(\".concat(backgroundPrimary, \" 0%, \").concat(backgroundPrimary, \" 16%, transparent 42%)\"),\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px'\n },\n\n /* Styles applied to the additional bar element if `variant=\"buffer\"` and `color=\"secondary\"`. */\n dashedColorSecondary: {\n backgroundImage: \"radial-gradient(\".concat(backgroundSecondary, \" 0%, \").concat(backgroundSecondary, \" 16%, transparent 42%)\"),\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px'\n },\n\n /* Styles applied to the layered bar1 and bar2 elements. */\n bar: {\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left'\n },\n\n /* Styles applied to the bar elements if `color=\"primary\"`; bar2 if `variant` not \"buffer\". */\n barColorPrimary: {\n backgroundColor: theme.palette.primary.main\n },\n\n /* Styles applied to the bar elements if `color=\"secondary\"`; bar2 if `variant` not \"buffer\". */\n barColorSecondary: {\n backgroundColor: theme.palette.secondary.main\n },\n\n /* Styles applied to the bar1 element if `variant=\"indeterminate or query\"`. */\n bar1Indeterminate: {\n width: 'auto',\n animation: '$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite'\n },\n\n /* Styles applied to the bar1 element if `variant=\"determinate\"`. */\n bar1Determinate: {\n transition: \"transform .\".concat(TRANSITION_DURATION, \"s linear\")\n },\n\n /* Styles applied to the bar1 element if `variant=\"buffer\"`. */\n bar1Buffer: {\n zIndex: 1,\n transition: \"transform .\".concat(TRANSITION_DURATION, \"s linear\")\n },\n\n /* Styles applied to the bar2 element if `variant=\"indeterminate or query\"`. */\n bar2Indeterminate: {\n width: 'auto',\n animation: '$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite'\n },\n\n /* Styles applied to the bar2 element if `variant=\"buffer\"`. */\n bar2Buffer: {\n transition: \"transform .\".concat(TRANSITION_DURATION, \"s linear\")\n },\n // Legends:\n // || represents the viewport\n // - represents a light background\n // x represents a dark background\n '@keyframes indeterminate1': {\n // |-----|---x-||-----||-----|\n '0%': {\n left: '-35%',\n right: '100%'\n },\n // |-----|-----||-----||xxxx-|\n '60%': {\n left: '100%',\n right: '-90%'\n },\n '100%': {\n left: '100%',\n right: '-90%'\n }\n },\n '@keyframes indeterminate2': {\n // |xxxxx|xxxxx||-----||-----|\n '0%': {\n left: '-200%',\n right: '100%'\n },\n // |-----|-----||-----||-x----|\n '60%': {\n left: '107%',\n right: '-8%'\n },\n '100%': {\n left: '107%',\n right: '-8%'\n }\n },\n '@keyframes buffer': {\n '0%': {\n opacity: 1,\n backgroundPosition: '0 -23px'\n },\n '50%': {\n opacity: 0,\n backgroundPosition: '0 -23px'\n },\n '100%': {\n opacity: 1,\n backgroundPosition: '-200px -23px'\n }\n }\n };\n};\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\n\nvar LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'primary' : _props$color,\n value = props.value,\n valueBuffer = props.valueBuffer,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'indeterminate' : _props$variant,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"color\", \"value\", \"valueBuffer\", \"variant\"]);\n\n var theme = useTheme();\n var rootProps = {};\n var inlineStyles = {\n bar1: {},\n bar2: {}\n };\n\n if (variant === 'determinate' || variant === 'buffer') {\n if (value !== undefined) {\n rootProps['aria-valuenow'] = Math.round(value);\n rootProps['aria-valuemin'] = 0;\n rootProps['aria-valuemax'] = 100;\n var transform = value - 100;\n\n if (theme.direction === 'rtl') {\n transform = -transform;\n }\n\n inlineStyles.bar1.transform = \"translateX(\".concat(transform, \"%)\");\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');\n }\n }\n\n if (variant === 'buffer') {\n if (valueBuffer !== undefined) {\n var _transform = (valueBuffer || 0) - 100;\n\n if (theme.direction === 'rtl') {\n _transform = -_transform;\n }\n\n inlineStyles.bar2.transform = \"translateX(\".concat(_transform, \"%)\");\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');\n }\n }\n\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, classes[\"color\".concat(capitalize(color))], className, {\n 'determinate': classes.determinate,\n 'indeterminate': classes.indeterminate,\n 'buffer': classes.buffer,\n 'query': classes.query\n }[variant]),\n role: \"progressbar\"\n }, rootProps, {\n ref: ref\n }, other), variant === 'buffer' ? /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.dashed, classes[\"dashedColor\".concat(capitalize(color))])\n }) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.bar, classes[\"barColor\".concat(capitalize(color))], (variant === 'indeterminate' || variant === 'query') && classes.bar1Indeterminate, {\n 'determinate': classes.bar1Determinate,\n 'buffer': classes.bar1Buffer\n }[variant]),\n style: inlineStyles.bar1\n }), variant === 'determinate' ? null : /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.bar, (variant === 'indeterminate' || variant === 'query') && classes.bar2Indeterminate, variant === 'buffer' ? [classes[\"color\".concat(capitalize(color))], classes.bar2Buffer] : classes[\"barColor\".concat(capitalize(color))]),\n style: inlineStyles.bar2\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? LinearProgress.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['primary', 'secondary']),\n\n /**\n * The value of the progress indicator for the determinate and buffer variants.\n * Value between 0 and 100.\n */\n value: PropTypes.number,\n\n /**\n * The value for the buffer variant.\n * Value between 0 and 100.\n */\n valueBuffer: PropTypes.number,\n\n /**\n * The variant to use.\n * Use indeterminate or query when there is no progress value.\n */\n variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiLinearProgress'\n})(LinearProgress);","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z\"\n}), 'Warning');\n\nexports.default = _default;","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nconst Expression = require('./Expression')\nconst defaultGrammar = require('./grammar').elements\n\n/**\n * Jexl is the Javascript Expression Language, capable of parsing and\n * evaluating basic to complex expression strings, combined with advanced\n * xpath-like drilldown into native Javascript objects.\n * @constructor\n */\nclass Jexl {\n constructor() {\n // Allow expr to be called outside of the jexl context\n this.expr = this.expr.bind(this)\n this._grammar = Object.assign({}, defaultGrammar)\n this._lexer = null\n this._transforms = {}\n }\n\n /**\n * Adds a binary operator to Jexl at the specified precedence. The higher the\n * precedence, the earlier the operator is applied in the order of operations.\n * For example, * has a higher precedence than +, because multiplication comes\n * before division.\n *\n * Please see grammar.js for a listing of all default operators and their\n * precedence values in order to choose the appropriate precedence for the\n * new operator.\n * @param {string} operator The operator string to be added\n * @param {number} precedence The operator's precedence\n * @param {function} fn A function to run to calculate the result. The function\n * will be called with two arguments: left and right, denoting the values\n * on either side of the operator. It should return either the resulting\n * value, or a Promise that resolves with the resulting value.\n */\n addBinaryOp(operator, precedence, fn) {\n this._addGrammarElement(operator, {\n type: 'binaryOp',\n precedence: precedence,\n eval: fn\n })\n }\n\n /**\n * Adds a unary operator to Jexl. Unary operators are currently only supported\n * on the left side of the value on which it will operate.\n * @param {string} operator The operator string to be added\n * @param {function} fn A function to run to calculate the result. The function\n * will be called with one argument: the literal value to the right of the\n * operator. It should return either the resulting value, or a Promise\n * that resolves with the resulting value.\n */\n addUnaryOp(operator, fn) {\n this._addGrammarElement(operator, {\n type: 'unaryOp',\n weight: Infinity,\n eval: fn\n })\n }\n\n /**\n * Adds or replaces a transform function in this Jexl instance.\n * @param {string} name The name of the transform function, as it will be used\n * within Jexl expressions\n * @param {function} fn The function to be executed when this transform is\n * invoked. It will be provided with at least one argument:\n * - {*} value: The value to be transformed\n * - {...*} args: The arguments for this transform\n */\n addTransform(name, fn) {\n this._transforms[name] = fn\n }\n\n /**\n * Syntactic sugar for calling {@link #addTransform} repeatedly. This function\n * accepts a map of one or more transform names to their transform function.\n * @param {{}} map A map of transform names to transform functions\n */\n addTransforms(map) {\n for (let key in map) {\n if (map.hasOwnProperty(key)) {\n this._transforms[key] = map[key]\n }\n }\n }\n\n /**\n * Creates an Expression object from the given Jexl expression string, and\n * immediately compiles it. The returned Expression object can then be\n * evaluated multiple times with new contexts, without generating any\n * additional string processing overhead.\n * @param {string} expression The Jexl expression to be compiled\n * @returns {Expression} The compiled Expression object\n */\n compile(expression) {\n const exprObj = this.createExpression(expression)\n return exprObj.compile()\n }\n\n /**\n * Constructs an Expression object from a Jexl expression string.\n * @param {string} expression The Jexl expression to be wrapped in an\n * Expression object\n * @returns {Expression} The Expression object representing the given string\n */\n createExpression(expression) {\n const lang = this._getLang()\n return new Expression(lang, expression)\n }\n\n /**\n * Retrieves a previously set transform function.\n * @param {string} name The name of the transform function\n * @returns {function} The transform function\n */\n getTransform(name) {\n return this._transforms[name]\n }\n\n /**\n * Asynchronously evaluates a Jexl string within an optional context.\n * @param {string} expression The Jexl expression to be evaluated\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {Promise<*>} resolves with the result of the evaluation.\n */\n eval(expression, context = {}) {\n const exprObj = this.createExpression(expression)\n return exprObj.eval(context)\n }\n\n /**\n * Synchronously evaluates a Jexl string within an optional context.\n * @param {string} expression The Jexl expression to be evaluated\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {*} the result of the evaluation.\n * @throws {*} on error\n */\n evalSync(expression, context = {}) {\n const exprObj = this.createExpression(expression)\n return exprObj.evalSync(context)\n }\n\n expr(strs, ...args) {\n const exprStr = strs.reduce((acc, str, idx) => {\n const arg = idx < args.length ? args[idx] : ''\n acc += str + arg\n return acc\n }, '')\n return this.createExpression(exprStr)\n }\n\n /**\n * Removes a binary or unary operator from the Jexl grammar.\n * @param {string} operator The operator string to be removed\n */\n removeOp(operator) {\n if (\n this._grammar[operator] &&\n (this._grammar[operator].type === 'binaryOp' ||\n this._grammar[operator].type === 'unaryOp')\n ) {\n delete this._grammar[operator]\n }\n }\n\n /**\n * Adds an element to the grammar map used by this Jexl instance.\n * @param {string} str The key string to be added\n * @param {{type: }} obj A map of configuration options for this\n * grammar element\n * @private\n */\n _addGrammarElement(str, obj) {\n this._grammar[str] = obj\n }\n\n /**\n * Gets an object defining the dynamic language elements of this Jexl\n * instance.\n * @returns {{ grammar: object, transforms: object }} A language definition\n * object\n * @private\n */\n _getLang() {\n return {\n grammar: this._grammar,\n transforms: this._transforms\n }\n }\n}\n\nmodule.exports = new Jexl()\nmodule.exports.Jexl = Jexl\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nconst Evaluator = require('./evaluator/Evaluator')\nconst Lexer = require('./Lexer')\nconst Parser = require('./parser/Parser')\nconst PromiseSync = require('./PromiseSync')\n\nclass Expression {\n constructor(lang, exprStr) {\n this._lang = lang\n this._lexer = new Lexer(lang.grammar)\n this._exprStr = exprStr\n this._ast = null\n }\n\n /**\n * Forces a compilation of the expression string that this Expression object\n * was constructed with. This function can be called multiple times; useful\n * if the language elements of the associated Jexl instance change.\n * @returns {Expression} this Expression instance, for convenience\n */\n compile() {\n const lexer = new Lexer(this._lang.grammar)\n const parser = new Parser(this._lang.grammar)\n const tokens = lexer.tokenize(this._exprStr)\n parser.addTokens(tokens)\n this._ast = parser.complete()\n return this\n }\n\n /**\n * Asynchronously evaluates the expression within an optional context.\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {Promise<*>} resolves with the result of the evaluation.\n */\n eval(context = {}) {\n return this._eval(context, Promise)\n }\n\n /**\n * Synchronously evaluates the expression within an optional context.\n * @param {Object} [context] A mapping of variables to values, which will be\n * made accessible to the Jexl expression when evaluating it\n * @returns {*} the result of the evaluation.\n * @throws {*} on error\n */\n evalSync(context = {}) {\n const res = this._eval(context, PromiseSync)\n if (res.error) throw res.error\n return res.value\n }\n\n _eval(context, promise) {\n return promise.resolve().then(() => {\n const ast = this._getAst()\n const evaluator = new Evaluator(\n this._lang.grammar,\n this._lang.transforms,\n context,\n undefined,\n promise\n )\n return evaluator.eval(ast)\n })\n }\n\n _getAst() {\n if (!this._ast) this.compile()\n return this._ast\n }\n}\n\nmodule.exports = Expression\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nconst handlers = require('./handlers')\n\n/**\n * The Evaluator takes a Jexl expression tree as generated by the\n * {@link Parser} and calculates its value within a given context. The\n * collection of transforms, context, and a relative context to be used as the\n * root for relative identifiers, are all specific to an Evaluator instance.\n * When any of these things change, a new instance is required. However, a\n * single instance can be used to simultaneously evaluate many different\n * expressions, and does not have to be reinstantiated for each.\n * @param {{}} grammar A grammar map against which to evaluate the expression\n * tree\n * @param {{}} [transforms] A map of transform names to transform functions. A\n * transform function takes two arguments:\n * - {*} val: A value to be transformed\n * - {{}} args: A map of argument keys to their evaluated values, as\n * specified in the expression string\n * The transform function should return either the transformed value, or\n * a Promises/A+ Promise object that resolves with the value and rejects\n * or throws only when an unrecoverable error occurs. Transforms should\n * generally return undefined when they don't make sense to be used on the\n * given value type, rather than throw/reject. An error is only\n * appropriate when the transform would normally return a value, but\n * cannot due to some other failure.\n * @param {{}} [context] A map of variable keys to their values. This will be\n * accessed to resolve the value of each non-relative identifier. Any\n * Promise values will be passed to the expression as their resolved\n * value.\n * @param {{}|Array<{}|Array>} [relativeContext] A map or array to be accessed\n * to resolve the value of a relative identifier.\n * @param {function} promise A constructor for the Promise class to be used;\n * probably either Promise or PromiseSync.\n */\nclass Evaluator {\n constructor(\n grammar,\n transforms,\n context,\n relativeContext,\n promise = Promise\n ) {\n this._grammar = grammar\n this._transforms = transforms || {}\n this._context = context || {}\n this._relContext = relativeContext || this._context\n this.Promise = promise\n }\n\n /**\n * Evaluates an expression tree within the configured context.\n * @param {{}} ast An expression tree object\n * @returns {Promise<*>} resolves with the resulting value of the expression.\n */\n eval(ast) {\n return this.Promise.resolve().then(() => {\n return handlers[ast.type].call(this, ast)\n })\n }\n\n /**\n * Simultaneously evaluates each expression within an array, and delivers the\n * response as an array with the resulting values at the same indexes as their\n * originating expressions.\n * @param {Array} arr An array of expression strings to be evaluated\n * @returns {Promise>} resolves with the result array\n */\n evalArray(arr) {\n return this.Promise.all(arr.map(elem => this.eval(elem)))\n }\n\n /**\n * Simultaneously evaluates each expression within a map, and delivers the\n * response as a map with the same keys, but with the evaluated result for each\n * as their value.\n * @param {{}} map A map of expression names to expression trees to be\n * evaluated\n * @returns {Promise<{}>} resolves with the result map.\n */\n evalMap(map) {\n const keys = Object.keys(map)\n const result = {}\n const asts = keys.map(key => {\n return this.eval(map[key])\n })\n return this.Promise.all(asts).then(vals => {\n vals.forEach((val, idx) => {\n result[keys[idx]] = val\n })\n return result\n })\n }\n\n /**\n * Applies a filter expression with relative identifier elements to a subject.\n * The intent is for the subject to be an array of subjects that will be\n * individually used as the relative context against the provided expression\n * tree. Only the elements whose expressions result in a truthy value will be\n * included in the resulting array.\n *\n * If the subject is not an array of values, it will be converted to a single-\n * element array before running the filter.\n * @param {*} subject The value to be filtered usually an array. If this value is\n * not an array, it will be converted to an array with this value as the\n * only element.\n * @param {{}} expr The expression tree to run against each subject. If the\n * tree evaluates to a truthy result, then the value will be included in\n * the returned array otherwise, it will be eliminated.\n * @returns {Promise} resolves with an array of values that passed the\n * expression filter.\n * @private\n */\n _filterRelative(subject, expr) {\n const promises = []\n if (!Array.isArray(subject)) {\n subject = subject === undefined ? [] : [subject]\n }\n subject.forEach(elem => {\n const evalInst = new Evaluator(\n this._grammar,\n this._transforms,\n this._context,\n elem,\n this.Promise\n )\n promises.push(evalInst.eval(expr))\n })\n return this.Promise.all(promises).then(values => {\n const results = []\n values.forEach((value, idx) => {\n if (value) {\n results.push(subject[idx])\n }\n })\n return results\n })\n }\n\n /**\n * Applies a static filter expression to a subject value. If the filter\n * expression evaluates to boolean true, the subject is returned if false,\n * undefined.\n *\n * For any other resulting value of the expression, this function will attempt\n * to respond with the property at that name or index of the subject.\n * @param {*} subject The value to be filtered. Usually an Array (for which\n * the expression would generally resolve to a numeric index) or an\n * Object (for which the expression would generally resolve to a string\n * indicating a property name)\n * @param {{}} expr The expression tree to run against the subject\n * @returns {Promise<*>} resolves with the value of the drill-down.\n * @private\n */\n _filterStatic(subject, expr) {\n return this.eval(expr).then(res => {\n if (typeof res === 'boolean') {\n return res ? subject : undefined\n }\n return subject[res]\n })\n }\n}\n\nmodule.exports = Evaluator\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\n/**\n * Evaluates an ArrayLiteral by returning its value, with each element\n * independently run through the evaluator.\n * @param {{type: 'ObjectLiteral', value: <{}>}} ast An expression tree with an\n * ObjectLiteral as the top node\n * @returns {Promise.<[]>} resolves to a map contained evaluated values.\n * @private\n */\nexports.ArrayLiteral = function(ast) {\n return this.evalArray(ast.value)\n}\n\n/**\n * Evaluates a BinaryExpression node by running the Grammar's evaluator for\n * the given operator.\n * @param {{type: 'BinaryExpression', operator: , left: {},\n * right: {}}} ast An expression tree with a BinaryExpression as the top\n * node\n * @returns {Promise<*>} resolves with the value of the BinaryExpression.\n * @private\n */\nexports.BinaryExpression = function(ast) {\n return this.Promise.all([this.eval(ast.left), this.eval(ast.right)]).then(\n arr => this._grammar[ast.operator].eval(arr[0], arr[1])\n )\n}\n\n/**\n * Evaluates a ConditionalExpression node by first evaluating its test branch,\n * and resolving with the consequent branch if the test is truthy, or the\n * alternate branch if it is not. If there is no consequent branch, the test\n * result will be used instead.\n * @param {{type: 'ConditionalExpression', test: {}, consequent: {},\n * alternate: {}}} ast An expression tree with a ConditionalExpression as\n * the top node\n * @private\n */\nexports.ConditionalExpression = function(ast) {\n return this.eval(ast.test).then(res => {\n if (res) {\n if (ast.consequent) {\n return this.eval(ast.consequent)\n }\n return res\n }\n return this.eval(ast.alternate)\n })\n}\n\n/**\n * Evaluates a FilterExpression by applying it to the subject value.\n * @param {{type: 'FilterExpression', relative: , expr: {},\n * subject: {}}} ast An expression tree with a FilterExpression as the top\n * node\n * @returns {Promise<*>} resolves with the value of the FilterExpression.\n * @private\n */\nexports.FilterExpression = function(ast) {\n return this.eval(ast.subject).then(subject => {\n if (ast.relative) {\n return this._filterRelative(subject, ast.expr)\n }\n return this._filterStatic(subject, ast.expr)\n })\n}\n\n/**\n * Evaluates an Identifier by either stemming from the evaluated 'from'\n * expression tree or accessing the context provided when this Evaluator was\n * constructed.\n * @param {{type: 'Identifier', value: , [from]: {}}} ast An expression\n * tree with an Identifier as the top node\n * @returns {Promise<*>|*} either the identifier's value, or a Promise that\n * will resolve with the identifier's value.\n * @private\n */\nexports.Identifier = function(ast) {\n if (!ast.from) {\n return ast.relative ? this._relContext[ast.value] : this._context[ast.value]\n }\n return this.eval(ast.from).then(context => {\n if (context === undefined || context === null) {\n return undefined\n }\n if (Array.isArray(context)) {\n context = context[0]\n }\n return context[ast.value]\n })\n}\n\n/**\n * Evaluates a Literal by returning its value property.\n * @param {{type: 'Literal', value: }} ast An expression\n * tree with a Literal as its only node\n * @returns {string|number|boolean} The value of the Literal node\n * @private\n */\nexports.Literal = function(ast) {\n return ast.value\n}\n\n/**\n * Evaluates an ObjectLiteral by returning its value, with each key\n * independently run through the evaluator.\n * @param {{type: 'ObjectLiteral', value: <{}>}} ast An expression tree with an\n * ObjectLiteral as the top node\n * @returns {Promise<{}>} resolves to a map contained evaluated values.\n * @private\n */\nexports.ObjectLiteral = function(ast) {\n return this.evalMap(ast.value)\n}\n\n/**\n * Evaluates a Transform node by applying a function from the transforms map\n * to the subject value.\n * @param {{type: 'Transform', name: , subject: {}}} ast An\n * expression tree with a Transform as the top node\n * @returns {Promise<*>|*} the value of the transformation, or a Promise that\n * will resolve with the transformed value.\n * @private\n */\nexports.Transform = function(ast) {\n const transform = this._transforms[ast.name]\n if (!transform) {\n throw new Error(`Transform ${ast.name} is not defined.`)\n }\n return this.Promise.all([\n this.eval(ast.subject),\n this.evalArray(ast.args || [])\n ]).then(arr => transform.apply(null, [arr[0]].concat(arr[1])))\n}\n\n/**\n * Evaluates a Unary expression by passing the right side through the\n * operator's eval function.\n * @param {{type: 'UnaryExpression', operator: , right: {}}} ast An\n * expression tree with a UnaryExpression as the top node\n * @returns {Promise<*>} resolves with the value of the UnaryExpression.\n * @constructor\n */\nexports.UnaryExpression = function(ast) {\n return this.eval(ast.right).then(right =>\n this._grammar[ast.operator].eval(right)\n )\n}\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nconst numericRegex = /^-?(?:(?:[0-9]*\\.[0-9]+)|[0-9]+)$/\nconst identRegex = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/\nconst escEscRegex = /\\\\\\\\/\nconst whitespaceRegex = /^\\s*$/\nconst preOpRegexElems = [\n // Strings\n \"'(?:(?:\\\\\\\\')|[^'])*'\",\n '\"(?:(?:\\\\\\\\\")|[^\"])*\"',\n // Whitespace\n '\\\\s+',\n // Booleans\n '\\\\btrue\\\\b',\n '\\\\bfalse\\\\b'\n]\nconst postOpRegexElems = [\n // Identifiers\n '[a-zA-Z_\\\\$][a-zA-Z0-9_\\\\$]*',\n // Numerics (without negative symbol)\n '(?:(?:[0-9]*\\\\.[0-9]+)|[0-9]+)'\n]\nconst minusNegatesAfter = [\n 'binaryOp',\n 'unaryOp',\n 'openParen',\n 'openBracket',\n 'question',\n 'colon'\n]\n\n/**\n * Lexer is a collection of stateless, statically-accessed functions for the\n * lexical parsing of a Jexl string. Its responsibility is to identify the\n * \"parts of speech\" of a Jexl expression, and tokenize and label each, but\n * to do only the most minimal syntax checking; the only errors the Lexer\n * should be concerned with are if it's unable to identify the utility of\n * any of its tokens. Errors stemming from these tokens not being in a\n * sensible configuration should be left for the Parser to handle.\n * @type {{}}\n */\nclass Lexer {\n constructor(grammar) {\n this._grammar = grammar\n }\n\n /**\n * Splits a Jexl expression string into an array of expression elements.\n * @param {string} str A Jexl expression string\n * @returns {Array} An array of substrings defining the functional\n * elements of the expression.\n */\n getElements(str) {\n const regex = this._getSplitRegex()\n return str.split(regex).filter(elem => {\n // Remove empty strings\n return elem\n })\n }\n\n /**\n * Converts an array of expression elements into an array of tokens. Note that\n * the resulting array may not equal the element array in length, as any\n * elements that consist only of whitespace get appended to the previous\n * token's \"raw\" property. For the structure of a token object, please see\n * {@link Lexer#tokenize}.\n * @param {Array} elements An array of Jexl expression elements to be\n * converted to tokens\n * @returns {Array<{type, value, raw}>} an array of token objects.\n */\n getTokens(elements) {\n const tokens = []\n let negate = false\n for (let i = 0; i < elements.length; i++) {\n if (this._isWhitespace(elements[i])) {\n if (tokens.length) {\n tokens[tokens.length - 1].raw += elements[i]\n }\n } else if (elements[i] === '-' && this._isNegative(tokens)) {\n negate = true\n } else {\n if (negate) {\n elements[i] = '-' + elements[i]\n negate = false\n }\n tokens.push(this._createToken(elements[i]))\n }\n }\n // Catch a - at the end of the string. Let the parser handle that issue.\n if (negate) {\n tokens.push(this._createToken('-'))\n }\n return tokens\n }\n\n /**\n * Converts a Jexl string into an array of tokens. Each token is an object\n * in the following format:\n *\n * {\n * type: ,\n * [name]: ,\n * value: ,\n * raw: \n * }\n *\n * Type is one of the following:\n *\n * literal, identifier, binaryOp, unaryOp\n *\n * OR, if the token is a control character its type is the name of the element\n * defined in the Grammar.\n *\n * Name appears only if the token is a control string found in\n * {@link grammar#elements}, and is set to the name of the element.\n *\n * Value is the value of the token in the correct type (boolean or numeric as\n * appropriate). Raw is the string representation of this value taken directly\n * from the expression string, including any trailing spaces.\n * @param {string} str The Jexl string to be tokenized\n * @returns {Array<{type, value, raw}>} an array of token objects.\n * @throws {Error} if the provided string contains an invalid token.\n */\n tokenize(str) {\n const elements = this.getElements(str)\n return this.getTokens(elements)\n }\n\n /**\n * Creates a new token object from an element of a Jexl string. See\n * {@link Lexer#tokenize} for a description of the token object.\n * @param {string} element The element from which a token should be made\n * @returns {{value: number|boolean|string, [name]: string, type: string,\n * raw: string}} a token object describing the provided element.\n * @throws {Error} if the provided string is not a valid expression element.\n * @private\n */\n _createToken(element) {\n const token = {\n type: 'literal',\n value: element,\n raw: element\n }\n if (element[0] === '\"' || element[0] === \"'\") {\n token.value = this._unquote(element)\n } else if (element.match(numericRegex)) {\n token.value = parseFloat(element)\n } else if (element === 'true' || element === 'false') {\n token.value = element === 'true'\n } else if (this._grammar[element]) {\n token.type = this._grammar[element].type\n } else if (element.match(identRegex)) {\n token.type = 'identifier'\n } else {\n throw new Error(`Invalid expression token: ${element}`)\n }\n return token\n }\n\n /**\n * Escapes a string so that it can be treated as a string literal within a\n * regular expression.\n * @param {string} str The string to be escaped\n * @returns {string} the RegExp-escaped string.\n * @see https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions\n * @private\n */\n _escapeRegExp(str) {\n str = str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n if (str.match(identRegex)) {\n str = '\\\\b' + str + '\\\\b'\n }\n return str\n }\n\n /**\n * Gets a RegEx object appropriate for splitting a Jexl string into its core\n * elements.\n * @returns {RegExp} An element-splitting RegExp object\n * @private\n */\n _getSplitRegex() {\n if (!this._splitRegex) {\n // Sort by most characters to least, then regex escape each\n const elemArray = Object.keys(this._grammar)\n .sort((a, b) => {\n return b.length - a.length\n })\n .map(elem => {\n return this._escapeRegExp(elem)\n }, this)\n this._splitRegex = new RegExp(\n '(' +\n [\n preOpRegexElems.join('|'),\n elemArray.join('|'),\n postOpRegexElems.join('|')\n ].join('|') +\n ')'\n )\n }\n return this._splitRegex\n }\n\n /**\n * Determines whether the addition of a '-' token should be interpreted as a\n * negative symbol for an upcoming number, given an array of tokens already\n * processed.\n * @param {Array} tokens An array of tokens already processed\n * @returns {boolean} true if adding a '-' should be considered a negative\n * symbol; false otherwise\n * @private\n */\n _isNegative(tokens) {\n if (!tokens.length) return true\n return minusNegatesAfter.some(\n type => type === tokens[tokens.length - 1].type\n )\n }\n\n /**\n * A utility function to determine if a string consists of only space\n * characters.\n * @param {string} str A string to be tested\n * @returns {boolean} true if the string is empty or consists of only spaces;\n * false otherwise.\n * @private\n */\n _isWhitespace(str) {\n return !!str.match(whitespaceRegex)\n }\n\n /**\n * Removes the beginning and trailing quotes from a string, unescapes any\n * escaped quotes on its interior, and unescapes any escaped escape\n * characters. Note that this function is not defensive; it assumes that the\n * provided string is not empty, and that its first and last characters are\n * actually quotes.\n * @param {string} str A string whose first and last characters are quotes\n * @returns {string} a string with the surrounding quotes stripped and escapes\n * properly processed.\n * @private\n */\n _unquote(str) {\n const quote = str[0]\n const escQuoteRegex = new RegExp('\\\\\\\\' + quote, 'g')\n return str\n .substr(1, str.length - 2)\n .replace(escQuoteRegex, quote)\n .replace(escEscRegex, '\\\\')\n }\n}\n\nmodule.exports = Lexer\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nconst handlers = require('./handlers')\nconst states = require('./states').states\n\n/**\n * The Parser is a state machine that converts tokens from the {@link Lexer}\n * into an Abstract Syntax Tree (AST), capable of being evaluated in any\n * context by the {@link Evaluator}. The Parser expects that all tokens\n * provided to it are legal and typed properly according to the grammar, but\n * accepts that the tokens may still be in an invalid order or in some other\n * unparsable configuration that requires it to throw an Error.\n * @param {{}} grammar The grammar map to use to parse Jexl strings\n * @param {string} [prefix] A string prefix to prepend to the expression string\n * for error messaging purposes. This is useful for when a new Parser is\n * instantiated to parse an subexpression, as the parent Parser's\n * expression string thus far can be passed for a more user-friendly\n * error message.\n * @param {{}} [stopMap] A mapping of token types to any truthy value. When the\n * token type is encountered, the parser will return the mapped value\n * instead of boolean false.\n */\nclass Parser {\n constructor(grammar, prefix, stopMap) {\n this._grammar = grammar\n this._state = 'expectOperand'\n this._tree = null\n this._exprStr = prefix || ''\n this._relative = false\n this._stopMap = stopMap || {}\n }\n\n /**\n * Processes a new token into the AST and manages the transitions of the state\n * machine.\n * @param {{type: }} token A token object, as provided by the\n * {@link Lexer#tokenize} function.\n * @throws {Error} if a token is added when the Parser has been marked as\n * complete by {@link #complete}, or if an unexpected token type is added.\n * @returns {boolean|*} the stopState value if this parser encountered a token\n * in the stopState mapb false if tokens can continue.\n */\n addToken(token) {\n if (this._state === 'complete') {\n throw new Error('Cannot add a new token to a completed Parser')\n }\n const state = states[this._state]\n const startExpr = this._exprStr\n this._exprStr += token.raw\n if (state.subHandler) {\n if (!this._subParser) {\n this._startSubExpression(startExpr)\n }\n const stopState = this._subParser.addToken(token)\n if (stopState) {\n this._endSubExpression()\n if (this._parentStop) return stopState\n this._state = stopState\n }\n } else if (state.tokenTypes[token.type]) {\n const typeOpts = state.tokenTypes[token.type]\n let handleFunc = handlers[token.type]\n if (typeOpts.handler) {\n handleFunc = typeOpts.handler\n }\n if (handleFunc) {\n handleFunc.call(this, token)\n }\n if (typeOpts.toState) {\n this._state = typeOpts.toState\n }\n } else if (this._stopMap[token.type]) {\n return this._stopMap[token.type]\n } else {\n throw new Error(\n `Token ${token.raw} (${token.type}) unexpected in expression: ${this._exprStr}`\n )\n }\n return false\n }\n\n /**\n * Processes an array of tokens iteratively through the {@link #addToken}\n * function.\n * @param {Array<{type: }>} tokens An array of tokens, as provided by\n * the {@link Lexer#tokenize} function.\n */\n addTokens(tokens) {\n tokens.forEach(this.addToken, this)\n }\n\n /**\n * Marks this Parser instance as completed and retrieves the full AST.\n * @returns {{}|null} a full expression tree, ready for evaluation by the\n * {@link Evaluator#eval} function, or null if no tokens were passed to\n * the parser before complete was called\n * @throws {Error} if the parser is not in a state where it's legal to end\n * the expression, indicating that the expression is incomplete\n */\n complete() {\n if (this._cursor && !states[this._state].completable) {\n throw new Error(`Unexpected end of expression: ${this._exprStr}`)\n }\n if (this._subParser) {\n this._endSubExpression()\n }\n this._state = 'complete'\n return this._cursor ? this._tree : null\n }\n\n /**\n * Indicates whether the expression tree contains a relative path identifier.\n * @returns {boolean} true if a relative identifier exists false otherwise.\n */\n isRelative() {\n return this._relative\n }\n\n /**\n * Ends a subexpression by completing the subParser and passing its result\n * to the subHandler configured in the current state.\n * @private\n */\n _endSubExpression() {\n states[this._state].subHandler.call(this, this._subParser.complete())\n this._subParser = null\n }\n\n /**\n * Places a new tree node at the current position of the cursor (to the 'right'\n * property) and then advances the cursor to the new node. This function also\n * handles setting the parent of the new node.\n * @param {{type: }} node A node to be added to the AST\n * @private\n */\n _placeAtCursor(node) {\n if (!this._cursor) {\n this._tree = node\n } else {\n this._cursor.right = node\n this._setParent(node, this._cursor)\n }\n this._cursor = node\n }\n\n /**\n * Places a tree node before the current position of the cursor, replacing\n * the node that the cursor currently points to. This should only be called in\n * cases where the cursor is known to exist, and the provided node already\n * contains a pointer to what's at the cursor currently.\n * @param {{type: }} node A node to be added to the AST\n * @private\n */\n _placeBeforeCursor(node) {\n this._cursor = this._cursor._parent\n this._placeAtCursor(node)\n }\n\n /**\n * Sets the parent of a node by creating a non-enumerable _parent property\n * that points to the supplied parent argument.\n * @param {{type: }} node A node of the AST on which to set a new\n * parent\n * @param {{type: }} parent An existing node of the AST to serve as the\n * parent of the new node\n * @private\n */\n _setParent(node, parent) {\n Object.defineProperty(node, '_parent', {\n value: parent,\n writable: true\n })\n }\n\n /**\n * Prepares the Parser to accept a subexpression by (re)instantiating the\n * subParser.\n * @param {string} [exprStr] The expression string to prefix to the new Parser\n * @private\n */\n _startSubExpression(exprStr) {\n let endStates = states[this._state].endStates\n if (!endStates) {\n this._parentStop = true\n endStates = this._stopMap\n }\n this._subParser = new Parser(this._grammar, exprStr, endStates)\n }\n}\n\nmodule.exports = Parser\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\n/**\n * Handles a subexpression that's used to define a transform argument's value.\n * @param {{type: }} ast The subexpression tree\n */\nexports.argVal = function(ast) {\n this._cursor.args.push(ast)\n}\n\n/**\n * Handles new array literals by adding them as a new node in the AST,\n * initialized with an empty array.\n */\nexports.arrayStart = function() {\n this._placeAtCursor({\n type: 'ArrayLiteral',\n value: []\n })\n}\n\n/**\n * Handles a subexpression representing an element of an array literal.\n * @param {{type: }} ast The subexpression tree\n */\nexports.arrayVal = function(ast) {\n if (ast) {\n this._cursor.value.push(ast)\n }\n}\n\n/**\n * Handles tokens of type 'binaryOp', indicating an operation that has two\n * inputs: a left side and a right side.\n * @param {{type: }} token A token object\n */\nexports.binaryOp = function(token) {\n const precedence = this._grammar[token.value].precedence || 0\n let parent = this._cursor._parent\n while (\n parent &&\n parent.operator &&\n this._grammar[parent.operator].precedence >= precedence\n ) {\n this._cursor = parent\n parent = parent._parent\n }\n const node = {\n type: 'BinaryExpression',\n operator: token.value,\n left: this._cursor\n }\n this._setParent(this._cursor, node)\n this._cursor = parent\n this._placeAtCursor(node)\n}\n\n/**\n * Handles successive nodes in an identifier chain. More specifically, it\n * sets values that determine how the following identifier gets placed in the\n * AST.\n */\nexports.dot = function() {\n this._nextIdentEncapsulate =\n this._cursor &&\n this._cursor.type !== 'UnaryExpression' &&\n (this._cursor.type !== 'BinaryExpression' ||\n (this._cursor.type === 'BinaryExpression' && this._cursor.right))\n this._nextIdentRelative =\n !this._cursor || (this._cursor && !this._nextIdentEncapsulate)\n if (this._nextIdentRelative) {\n this._relative = true\n }\n}\n\n/**\n * Handles a subexpression used for filtering an array returned by an\n * identifier chain.\n * @param {{type: }} ast The subexpression tree\n */\nexports.filter = function(ast) {\n this._placeBeforeCursor({\n type: 'FilterExpression',\n expr: ast,\n relative: this._subParser.isRelative(),\n subject: this._cursor\n })\n}\n\n/**\n * Handles identifier tokens by adding them as a new node in the AST.\n * @param {{type: }} token A token object\n */\nexports.identifier = function(token) {\n const node = {\n type: 'Identifier',\n value: token.value\n }\n if (this._nextIdentEncapsulate) {\n node.from = this._cursor\n this._placeBeforeCursor(node)\n this._nextIdentEncapsulate = false\n } else {\n if (this._nextIdentRelative) {\n node.relative = true\n this._nextIdentRelative = false\n }\n this._placeAtCursor(node)\n }\n}\n\n/**\n * Handles literal values, such as strings, booleans, and numerics, by adding\n * them as a new node in the AST.\n * @param {{type: }} token A token object\n */\nexports.literal = function(token) {\n this._placeAtCursor({\n type: 'Literal',\n value: token.value\n })\n}\n\n/**\n * Queues a new object literal key to be written once a value is collected.\n * @param {{type: }} token A token object\n */\nexports.objKey = function(token) {\n this._curObjKey = token.value\n}\n\n/**\n * Handles new object literals by adding them as a new node in the AST,\n * initialized with an empty object.\n */\nexports.objStart = function() {\n this._placeAtCursor({\n type: 'ObjectLiteral',\n value: {}\n })\n}\n\n/**\n * Handles an object value by adding its AST to the queued key on the object\n * literal node currently at the cursor.\n * @param {{type: }} ast The subexpression tree\n */\nexports.objVal = function(ast) {\n this._cursor.value[this._curObjKey] = ast\n}\n\n/**\n * Handles traditional subexpressions, delineated with the groupStart and\n * groupEnd elements.\n * @param {{type: }} ast The subexpression tree\n */\nexports.subExpression = function(ast) {\n this._placeAtCursor(ast)\n}\n\n/**\n * Handles a completed alternate subexpression of a ternary operator.\n * @param {{type: }} ast The subexpression tree\n */\nexports.ternaryEnd = function(ast) {\n this._cursor.alternate = ast\n}\n\n/**\n * Handles a completed consequent subexpression of a ternary operator.\n * @param {{type: }} ast The subexpression tree\n */\nexports.ternaryMid = function(ast) {\n this._cursor.consequent = ast\n}\n\n/**\n * Handles the start of a new ternary expression by encapsulating the entire\n * AST in a ConditionalExpression node, and using the existing tree as the\n * test element.\n */\nexports.ternaryStart = function() {\n this._tree = {\n type: 'ConditionalExpression',\n test: this._tree\n }\n this._cursor = this._tree\n}\n\n/**\n * Handles identifier tokens when used to indicate the name of a transform to\n * be applied.\n * @param {{type: }} token A token object\n */\nexports.transform = function(token) {\n this._placeBeforeCursor({\n type: 'Transform',\n name: token.value,\n args: [],\n subject: this._cursor\n })\n}\n\n/**\n * Handles token of type 'unaryOp', indicating that the operation has only\n * one input: a right side.\n * @param {{type: }} token A token object\n */\nexports.unaryOp = function(token) {\n this._placeAtCursor({\n type: 'UnaryExpression',\n operator: token.value\n })\n}\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nconst h = require('./handlers')\n\n/**\n * A mapping of all states in the finite state machine to a set of instructions\n * for handling or transitioning into other states. Each state can be handled\n * in one of two schemes: a tokenType map, or a subHandler.\n *\n * Standard expression elements are handled through the tokenType object. This\n * is an object map of all legal token types to encounter in this state (and\n * any unexpected token types will generate a thrown error) to an options\n * object that defines how they're handled. The available options are:\n *\n * {string} toState: The name of the state to which to transition\n * immediately after handling this token\n * {string} handler: The handler function to call when this token type is\n * encountered in this state. If omitted, the default handler\n * matching the token's \"type\" property will be called. If the handler\n * function does not exist, no call will be made and no error will be\n * generated. This is useful for tokens whose sole purpose is to\n * transition to other states.\n *\n * States that consume a subexpression should define a subHandler, the\n * function to be called with an expression tree argument when the\n * subexpression is complete. Completeness is determined through the\n * endStates object, which maps tokens on which an expression should end to the\n * state to which to transition once the subHandler function has been called.\n *\n * Additionally, any state in which it is legal to mark the AST as completed\n * should have a 'completable' property set to boolean true. Attempting to\n * call {@link Parser#complete} in any state without this property will result\n * in a thrown Error.\n *\n * @type {{}}\n */\nexports.states = {\n expectOperand: {\n tokenTypes: {\n literal: { toState: 'expectBinOp' },\n identifier: { toState: 'identifier' },\n unaryOp: {},\n openParen: { toState: 'subExpression' },\n openCurl: { toState: 'expectObjKey', handler: h.objStart },\n dot: { toState: 'traverse' },\n openBracket: { toState: 'arrayVal', handler: h.arrayStart }\n }\n },\n expectBinOp: {\n tokenTypes: {\n binaryOp: { toState: 'expectOperand' },\n pipe: { toState: 'expectTransform' },\n dot: { toState: 'traverse' },\n question: { toState: 'ternaryMid', handler: h.ternaryStart }\n },\n completable: true\n },\n expectTransform: {\n tokenTypes: {\n identifier: { toState: 'postTransform', handler: h.transform }\n }\n },\n expectObjKey: {\n tokenTypes: {\n identifier: { toState: 'expectKeyValSep', handler: h.objKey },\n closeCurl: { toState: 'expectBinOp' }\n }\n },\n expectKeyValSep: {\n tokenTypes: {\n colon: { toState: 'objVal' }\n }\n },\n postTransform: {\n tokenTypes: {\n openParen: { toState: 'argVal' },\n binaryOp: { toState: 'expectOperand' },\n dot: { toState: 'traverse' },\n openBracket: { toState: 'filter' },\n pipe: { toState: 'expectTransform' }\n },\n completable: true\n },\n postTransformArgs: {\n tokenTypes: {\n binaryOp: { toState: 'expectOperand' },\n dot: { toState: 'traverse' },\n openBracket: { toState: 'filter' },\n pipe: { toState: 'expectTransform' }\n },\n completable: true\n },\n identifier: {\n tokenTypes: {\n binaryOp: { toState: 'expectOperand' },\n dot: { toState: 'traverse' },\n openBracket: { toState: 'filter' },\n pipe: { toState: 'expectTransform' },\n question: { toState: 'ternaryMid', handler: h.ternaryStart }\n },\n completable: true\n },\n traverse: {\n tokenTypes: {\n identifier: { toState: 'identifier' }\n }\n },\n filter: {\n subHandler: h.filter,\n endStates: {\n closeBracket: 'identifier'\n }\n },\n subExpression: {\n subHandler: h.subExpression,\n endStates: {\n closeParen: 'expectBinOp'\n }\n },\n argVal: {\n subHandler: h.argVal,\n endStates: {\n comma: 'argVal',\n closeParen: 'postTransformArgs'\n }\n },\n objVal: {\n subHandler: h.objVal,\n endStates: {\n comma: 'expectObjKey',\n closeCurl: 'expectBinOp'\n }\n },\n arrayVal: {\n subHandler: h.arrayVal,\n endStates: {\n comma: 'arrayVal',\n closeBracket: 'expectBinOp'\n }\n },\n ternaryMid: {\n subHandler: h.ternaryMid,\n endStates: {\n colon: 'ternaryEnd'\n }\n },\n ternaryEnd: {\n subHandler: h.ternaryEnd,\n completable: true\n }\n}\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\nclass PromiseSync {\n constructor(fn) {\n fn(this._resolve.bind(this), this._reject.bind(this))\n }\n\n catch(rejected) {\n if (this.error) {\n try {\n this._resolve(rejected(this.error))\n } catch (e) {\n this._reject(e)\n }\n }\n return this\n }\n\n then(resolved, rejected) {\n if (!this.error) {\n try {\n this._resolve(resolved(this.value))\n } catch (e) {\n this._reject(e)\n }\n }\n if (rejected) this.catch(rejected)\n return this\n }\n\n _reject(error) {\n this.value = undefined\n this.error = error\n }\n\n _resolve(val) {\n if (val instanceof PromiseSync) {\n if (val.error) {\n this._reject(val.error)\n } else {\n this._resolve(val.value)\n }\n } else {\n this.value = val\n this.error = undefined\n }\n }\n}\n\nPromiseSync.all = vals =>\n new PromiseSync(resolve => {\n const resolved = vals.map(val => {\n while (val instanceof PromiseSync) {\n if (val.error) throw Error(val.error)\n val = val.value\n }\n return val\n })\n resolve(resolved)\n })\n\nPromiseSync.resolve = val => new PromiseSync(resolve => resolve(val))\n\nPromiseSync.reject = error =>\n new PromiseSync((resolve, reject) => reject(error))\n\nmodule.exports = PromiseSync\n","/*\n * Jexl\n * Copyright 2019 Tom Shawver\n */\n\n/* eslint eqeqeq:0 */\n\n/**\n * A map of all expression elements to their properties. Note that changes\n * here may require changes in the Lexer or Parser.\n * @type {{}}\n */\nexports.elements = {\n '.': { type: 'dot' },\n '[': { type: 'openBracket' },\n ']': { type: 'closeBracket' },\n '|': { type: 'pipe' },\n '{': { type: 'openCurl' },\n '}': { type: 'closeCurl' },\n ':': { type: 'colon' },\n ',': { type: 'comma' },\n '(': { type: 'openParen' },\n ')': { type: 'closeParen' },\n '?': { type: 'question' },\n '+': {\n type: 'binaryOp',\n precedence: 30,\n eval: (left, right) => left + right\n },\n '-': {\n type: 'binaryOp',\n precedence: 30,\n eval: (left, right) => left - right\n },\n '*': {\n type: 'binaryOp',\n precedence: 40,\n eval: (left, right) => left * right\n },\n '/': {\n type: 'binaryOp',\n precedence: 40,\n eval: (left, right) => left / right\n },\n '//': {\n type: 'binaryOp',\n precedence: 40,\n eval: (left, right) => Math.floor(left / right)\n },\n '%': {\n type: 'binaryOp',\n precedence: 50,\n eval: (left, right) => left % right\n },\n '^': {\n type: 'binaryOp',\n precedence: 50,\n eval: (left, right) => Math.pow(left, right)\n },\n '==': {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => left == right\n },\n '!=': {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => left != right\n },\n '>': {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => left > right\n },\n '>=': {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => left >= right\n },\n '<': {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => left < right\n },\n '<=': {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => left <= right\n },\n '&&': {\n type: 'binaryOp',\n precedence: 10,\n eval: (left, right) => left && right\n },\n '||': {\n type: 'binaryOp',\n precedence: 10,\n eval: (left, right) => left || right\n },\n in: {\n type: 'binaryOp',\n precedence: 20,\n eval: (left, right) => {\n if (typeof right === 'string') {\n return right.indexOf(left) !== -1\n }\n if (Array.isArray(right)) {\n return right.some(elem => elem === left)\n }\n return false\n }\n },\n '!': {\n type: 'unaryOp',\n precedence: Infinity,\n eval: right => !right\n }\n}\n","import { makeStyles } from '@material-ui/styles';\nimport classNames from 'classnames';\nimport React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from '../../helpers/propTypes';\nimport useListEntries from '../../hooks/useListEntries';\nimport { scrollToNextItemInterval } from './answer-types/constants';\nimport LinearStepperItem from './LinearStepperItem';\n\nconst line = (theme) => ({\n display: 'block',\n content: '\"\"',\n height: '100%',\n width: 1,\n backgroundColor: '#A3A9AA',\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 26,\n zIndex: -1,\n\n [theme.breakpoints.down('sm')]: {\n left: 13,\n },\n});\n\nconst useStyles = makeStyles((theme) => ({\n container: {\n paddingLeft: theme.spacing(6),\n paddingRight: theme.spacing(6),\n paddingTop: theme.spacing(4),\n overflowY: 'scroll',\n position: 'relative',\n scrollBehavior: 'smooth',\n\n [theme.breakpoints.down('sm')]: {\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n paddingTop: theme.spacing(4),\n },\n },\n\n itemIndex: {\n width: 51,\n height: 51,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '50%',\n border: '1px solid currentColor',\n color: theme.palette.grey[500],\n fontSize: '20px',\n backgroundColor: 'white',\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n transition: 'color 0.5s',\n fontFamily: theme.typography.fontFamily,\n\n [theme.breakpoints.down('sm')]: {\n width: 25,\n height: 25,\n fontSize: '15px',\n },\n },\n\n completedIndex: {\n color: theme.palette.primary.main,\n },\n skippedIndex: {\n color: theme.palette.warning.main,\n backgroundColor: theme.palette.warning.extraLight,\n },\n\n item: {\n counterIncrement: 'item',\n position: 'relative',\n paddingLeft: 100,\n paddingBottom: 60,\n\n [theme.breakpoints.down('sm')]: {\n paddingLeft: 40,\n },\n\n '&:not(:last-child):before': {\n ...line(theme),\n backgroundColor: '#A3A9AA',\n },\n\n '&:not(:last-child):after': {\n ...line(theme),\n backgroundColor: theme.palette.primary.main,\n transformOrigin: 'top',\n transform: 'scaleY(0)',\n transition: 'transform 0.4s',\n },\n },\n\n completedAnswer: {\n '&:not(:last-child):after': {\n transform: 'scaleY(1)',\n },\n },\n\n skippedAnswer: {\n '&:not(:last-child):after': {\n transform: 'scaleY(1)',\n backgroundColor: theme.palette.warning.main,\n },\n },\n}));\n\nconst autoScrollConfig = {\n timeout: 0, // id of currently running setTimeout so it can be killed when needed\n enabled: true, // auto-scroll can be temporarily disabled e.g. for select type\n};\n\nfunction LinearStepper({\n stepperItems,\n className,\n heading,\n setAnswer,\n setMeta,\n country,\n containerRef: parentRef,\n skippedQuestions = [],\n skippedQuestionsCallbacks = [],\n autoScroll, // globally enabled/disabled auto-scroll to next question\n ...rest\n}) {\n const classes = useStyles();\n const container = useRef(null);\n const itemRefs = useListEntries(stepperItems, () => React.createRef());\n const [scrollToIndex, setScrollToIndex] = useState(0);\n\n const applyRef = (containerRef) => {\n if (parentRef) parentRef(containerRef);\n container.current = containerRef;\n };\n\n const scrollToItem = (index, force = false) => {\n const ref = itemRefs[index];\n if (!ref || !ref.current) return;\n setScrollToIndex(0);\n\n if ((autoScrollConfig.enabled && autoScroll) || force) {\n const itemEl = ref.current;\n const offset = 20;\n container.current.scroll({\n top: itemEl.offsetTop - offset,\n behavior: 'smooth',\n });\n }\n };\n\n const scrollToNextItem = (index) => {\n clearTimeout(autoScrollConfig.timeout);\n autoScrollConfig.timeout = setTimeout(\n () => setScrollToIndex(index + 1),\n scrollToNextItemInterval,\n );\n };\n\n useEffect(() => {\n if (scrollToIndex) scrollToItem(scrollToIndex);\n }, [stepperItems, scrollToIndex]);\n\n useEffect(() => {\n skippedQuestionsCallbacks.splice(0, skippedQuestionsCallbacks.length);\n if (skippedQuestions.length > 0) {\n const index = stepperItems.findIndex(\n ({ id }) => id === skippedQuestions[0],\n );\n skippedQuestionsCallbacks.push(() => scrollToItem(index, true));\n }\n }, [stepperItems, skippedQuestions]);\n\n useEffect(() => clearTimeout(autoScrollConfig.timeout), []);\n\n return (\n \n {heading}\n {stepperItems.map((item, index) => {\n const isCompleted = typeof item.value !== 'undefined';\n const isSkipped = skippedQuestions.includes(item.id);\n return (\n \n \n {index + 1}\n \n\n {\n autoScrollConfig.enabled = false;\n }}\n item={item}\n itemIndex={index + 1}\n setAnswer={(answer, autoAcroll) => {\n setAnswer(answer);\n autoScrollConfig.enabled = autoAcroll;\n if (autoAcroll) scrollToNextItem(index);\n }}\n setMeta={setMeta}\n />\n \n );\n })}\n \n );\n}\n\nLinearStepper.propTypes = {\n autoScroll: PropTypes.bool,\n className: PropTypes.string,\n containerRef: PropTypes.func,\n country: PropTypes.string.isRequired,\n heading: PropTypes.node,\n setAnswer: PropTypes.func.isRequired,\n setMeta: PropTypes.func.isRequired,\n skippedQuestions: PropTypes.arrayOf(PropTypes.string),\n skippedQuestionsCallbacks: PropTypes.arrayOf(PropTypes.func),\n stepperItems: PropTypes.arrayOf(\n PropTypes.shape({\n description: PropTypes.string,\n id: PropTypes.string,\n question: PropTypes.string,\n type: PropTypes.string,\n }),\n ).isRequired,\n};\n\nLinearStepper.defaultProps = {\n autoScroll: false,\n className: '',\n containerRef: null,\n heading: undefined,\n skippedQuestions: [],\n skippedQuestionsCallbacks: [],\n};\n\nexport default LinearStepper;\n","import { useRef } from 'react';\n\nexport default function useListEntries(\n list,\n createListEntry,\n indexer = (i) => i,\n) {\n const entries = useRef(null);\n const listLength = useRef(null);\n\n if (listLength.current !== list.length) {\n const refs = {};\n\n for (let i = 0; i < list.length; i += 1) {\n refs[indexer(i)] = createListEntry(i);\n }\n\n entries.current = refs;\n listLength.current = list.length;\n }\n\n return entries.current;\n}\n","import { makeStyles } from '@material-ui/styles';\nimport React from 'react';\nimport { defineMessages, injectIntl } from 'react-intl';\nimport PropTypes, {\n intlPropType,\n questionPropType,\n} from '../../helpers/propTypes';\nimport useId from '../../hooks/useId';\nimport { SectionHeading } from '../typography';\nimport getAnswerComponent from './answer-types';\nimport { QuestionDescription, QuestionText } from './QuestionTypography';\n\nconst messages = defineMessages({\n questionTitle: {\n id: 'Questionnaire.QuestionTitle',\n defaultMessage: 'Question {number}. {questionText}',\n description: 'Displayed to screen readers in the question title',\n },\n});\n\nconst useStyles = makeStyles((theme) => ({\n header: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: 20,\n whiteSpace: 'pre-line',\n\n [theme.breakpoints.up('md')]: {\n paddingTop: theme.spacing(1),\n },\n },\n\n answer: {\n display: 'flex',\n },\n}));\n\nfunction LinearStepperItem({\n item: {\n question,\n description,\n value,\n id: itemId,\n type: questionType,\n items: questionItems,\n options: questionOptions,\n meta,\n },\n setAnswer,\n clearAnswer,\n disableAutoScroll,\n setMeta,\n country,\n itemIndex,\n intl: { formatMessage },\n}) {\n const AnswerComponent = getAnswerComponent(questionType);\n const titleId = useId();\n\n const classes = useStyles();\n\n return (\n
\n
\n \n {question}\n \n
\n {description && {description}}\n
\n clearAnswer({ id: itemId })}\n country={country}\n currentAnswer={value}\n disableAutoScroll={disableAutoScroll}\n itemId={itemId}\n items={questionItems}\n meta={meta || {}}\n options={questionOptions}\n setAnswer={(newValue, autoAcroll = true) =>\n setAnswer({ id: itemId, value: newValue }, autoAcroll)\n }\n setMeta={(path, newValue) =>\n setMeta({ id: itemId, value: newValue, path })\n }\n />\n
\n
\n );\n}\n\nLinearStepperItem.propTypes = {\n clearAnswer: PropTypes.func.isRequired,\n country: PropTypes.string.isRequired,\n disableAutoScroll: PropTypes.func.isRequired,\n intl: intlPropType.isRequired,\n item: questionPropType.isRequired,\n itemIndex: PropTypes.number.isRequired,\n setAnswer: PropTypes.func.isRequired,\n setMeta: PropTypes.func.isRequired,\n};\n\nexport default injectIntl(LinearStepperItem);\n","import { makeStyles } from '@material-ui/styles';\nimport React from 'react';\nimport PropTypes from '../../helpers/propTypes';\nimport Md from '../Md';\nimport { SubtleText } from '../typography';\n\nconst useStyles = makeStyles({\n question: {\n '& > p': {\n marginBlockStart: 0,\n marginBlockEnd: 0,\n },\n },\n\n description: {\n marginBottom: 20,\n whiteSpace: 'pre-line',\n },\n});\n\nfunction QuestionText({ children: text }) {\n const { question } = useStyles();\n return (\n
\n

}}>{text}\n

\n );\n}\n\nQuestionText.propTypes = {\n children: PropTypes.string.isRequired,\n};\n\nfunction QuestionDescription({ children: text }) {\n const { description } = useStyles();\n return (\n
\n }}\n >\n {text}\n \n
\n );\n}\n\nQuestionDescription.propTypes = {\n children: PropTypes.string.isRequired,\n};\n\nexport { QuestionText, QuestionDescription };\n","import React from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport EligibilityPage from '../components/MessagePage/EligibilityPage';\nimport PropTypes, { customPagePropType } from '../helpers/propTypes';\n\nfunction Eligible({ customPage, nextPageName, onButtonClick }) {\n const getText = () => {\n switch (nextPageName) {\n case 'clinicForm':\n return (\n \n );\n case 'contactDetails':\n return (\n \n );\n default:\n return '';\n }\n };\n\n const text = customPage.title ? customPage.text ?? '' : getText();\n\n return (\n \n }\n customPage={customPage}\n noIcon\n onButtonClick={onButtonClick}\n text={text}\n title={\n \n }\n />\n );\n}\n\nEligible.propTypes = {\n customPage: customPagePropType,\n nextPageName: PropTypes.string.isRequired,\n onButtonClick: PropTypes.func,\n};\n\nEligible.defaultProps = {\n customPage: {},\n onButtonClick: undefined,\n};\n\nexport default Eligible;\n","import React, { useEffect } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport EligibilityPage from '../components/MessagePage/EligibilityPage';\nimport PropTypes, { customPagePropType } from '../helpers/propTypes';\nimport { userMetrics } from '../userMetrics';\n\nfunction NotEligible({ customPage, onButtonClick }) {\n useEffect(() => {\n userMetrics.track('Ineligible screen loaded');\n }, []);\n\n return (\n \n }\n customPage={customPage}\n onButtonClick={onButtonClick}\n showButton={Boolean(onButtonClick)}\n title={\n \n }\n />\n );\n}\n\nNotEligible.propTypes = {\n customPage: customPagePropType,\n onButtonClick: PropTypes.func,\n};\n\nNotEligible.defaultProps = {\n customPage: {},\n onButtonClick: undefined,\n};\n\nexport default NotEligible;\n","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;\n}","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\n\nvar ListContext = React.createContext({});\n\nif (process.env.NODE_ENV !== 'production') {\n ListContext.displayName = 'ListContext';\n}\n\nexport default ListContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport isMuiElement from '../utils/isMuiElement';\nimport useForkRef from '../utils/useForkRef';\nimport ListContext from '../List/ListContext';\nimport * as ReactDOM from 'react-dom';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */\n root: {\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n width: '100%',\n boxSizing: 'border-box',\n textAlign: 'left',\n paddingTop: 8,\n paddingBottom: 8,\n '&$focusVisible': {\n backgroundColor: theme.palette.action.selected\n },\n '&$selected, &$selected:hover': {\n backgroundColor: theme.palette.action.selected\n },\n '&$disabled': {\n opacity: 0.5\n }\n },\n\n /* Styles applied to the `container` element if `children` includes `ListItemSecondaryAction`. */\n container: {\n position: 'relative'\n },\n\n /* Pseudo-class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */\n focusVisible: {},\n\n /* Styles applied to the `component` element if dense. */\n dense: {\n paddingTop: 4,\n paddingBottom: 4\n },\n\n /* Styles applied to the `component` element if `alignItems=\"flex-start\"`. */\n alignItemsFlexStart: {\n alignItems: 'flex-start'\n },\n\n /* Pseudo-class applied to the inner `component` element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the inner `component` element if `divider={true}`. */\n divider: {\n borderBottom: \"1px solid \".concat(theme.palette.divider),\n backgroundClip: 'padding-box'\n },\n\n /* Styles applied to the inner `component` element if `disableGutters={false}`. */\n gutters: {\n paddingLeft: 16,\n paddingRight: 16\n },\n\n /* Styles applied to the inner `component` element if `button={true}`. */\n button: {\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: theme.palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the `component` element if `children` includes `ListItemSecondaryAction`. */\n secondaryAction: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n },\n\n /* Pseudo-class applied to the root element if `selected={true}`. */\n selected: {}\n };\n};\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */\n\nvar ListItem = /*#__PURE__*/React.forwardRef(function ListItem(props, ref) {\n var _props$alignItems = props.alignItems,\n alignItems = _props$alignItems === void 0 ? 'center' : _props$alignItems,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,\n _props$button = props.button,\n button = _props$button === void 0 ? false : _props$button,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n componentProp = props.component,\n _props$ContainerCompo = props.ContainerComponent,\n ContainerComponent = _props$ContainerCompo === void 0 ? 'li' : _props$ContainerCompo,\n _props$ContainerProps = props.ContainerProps;\n _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;\n\n var ContainerClassName = _props$ContainerProps.className,\n ContainerProps = _objectWithoutProperties(_props$ContainerProps, [\"className\"]),\n _props$dense = props.dense,\n dense = _props$dense === void 0 ? false : _props$dense,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableGutters = props.disableGutters,\n disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,\n _props$divider = props.divider,\n divider = _props$divider === void 0 ? false : _props$divider,\n focusVisibleClassName = props.focusVisibleClassName,\n _props$selected = props.selected,\n selected = _props$selected === void 0 ? false : _props$selected,\n other = _objectWithoutProperties(props, [\"alignItems\", \"autoFocus\", \"button\", \"children\", \"classes\", \"className\", \"component\", \"ContainerComponent\", \"ContainerProps\", \"dense\", \"disabled\", \"disableGutters\", \"divider\", \"focusVisibleClassName\", \"selected\"]);\n\n var context = React.useContext(ListContext);\n var childContext = {\n dense: dense || context.dense || false,\n alignItems: alignItems\n };\n var listItemRef = React.useRef(null);\n useEnhancedEffect(function () {\n if (autoFocus) {\n if (listItemRef.current) {\n listItemRef.current.focus();\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: Unable to set focus to a ListItem whose component has not been rendered.');\n }\n }\n }, [autoFocus]);\n var children = React.Children.toArray(childrenProp);\n var hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n listItemRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRef = useForkRef(handleOwnRef, ref);\n\n var componentProps = _extends({\n className: clsx(classes.root, className, childContext.dense && classes.dense, !disableGutters && classes.gutters, divider && classes.divider, disabled && classes.disabled, button && classes.button, alignItems !== \"center\" && classes.alignItemsFlexStart, hasSecondaryAction && classes.secondaryAction, selected && classes.selected),\n disabled: disabled\n }, other);\n\n var Component = componentProp || 'li';\n\n if (button) {\n componentProps.component = componentProp || 'div';\n componentProps.focusVisibleClassName = clsx(classes.focusVisible, focusVisibleClassName);\n Component = ButtonBase;\n }\n\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? 'div' : Component; // Avoid nesting of li > li.\n\n if (ContainerComponent === 'li') {\n if (Component === 'li') {\n Component = 'div';\n } else if (componentProps.component === 'li') {\n componentProps.component = 'div';\n }\n }\n\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: childContext\n }, /*#__PURE__*/React.createElement(ContainerComponent, _extends({\n className: clsx(classes.container, ContainerClassName),\n ref: handleRef\n }, ContainerProps), /*#__PURE__*/React.createElement(Component, componentProps, children), children.pop()));\n }\n\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: childContext\n }, /*#__PURE__*/React.createElement(Component, _extends({\n ref: handleRef\n }, componentProps), children));\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItem.propTypes = {\n /**\n * Defines the `align-items` style property.\n */\n alignItems: PropTypes.oneOf(['flex-start', 'center']),\n\n /**\n * If `true`, the list item will be focused during the first mount.\n * Focus will also be triggered if the value changes from false to true.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * If `true`, the list item will be a button (using `ButtonBase`). Props intended\n * for `ButtonBase` can then be applied to `ListItem`.\n */\n button: PropTypes.bool,\n\n /**\n * The content of the component. If a `ListItemSecondaryAction` is used it must\n * be the last child.\n */\n children: chainPropTypes(PropTypes.node, function (props) {\n var children = React.Children.toArray(props.children); // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n\n var secondaryActionIndex = -1;\n\n for (var i = children.length - 1; i >= 0; i -= 1) {\n var child = children[i];\n\n if (isMuiElement(child, ['ListItemSecondaryAction'])) {\n secondaryActionIndex = i;\n break;\n }\n } // is ListItemSecondaryAction the last child of ListItem\n\n\n if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {\n return new Error('Material-UI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');\n }\n\n return null;\n }),\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n * By default, it's a `li` when `button` is `false` and a `div` when `button` is `true`.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The container component used when a `ListItemSecondaryAction` is the last child.\n */\n ContainerComponent: PropTypes.elementType,\n\n /**\n * Props applied to the container component if used.\n */\n ContainerProps: PropTypes.object,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used.\n */\n dense: PropTypes.bool,\n\n /**\n * If `true`, the list item will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the left and right padding is removed.\n */\n disableGutters: PropTypes.bool,\n\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n */\n divider: PropTypes.bool,\n\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n\n /**\n * Use to apply selected styling.\n */\n selected: PropTypes.bool\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiListItem'\n})(ListItem);"],"names":["$parcel$interopDefault","a","__esModule","default","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","parcelRequire","$parcel$global","globalThis","self","window","global","parcelRegister","register","module","exports","value","$556e475fd486b1c9$export$b45ff0bd86f138c8","$556e475fd486b1c9$export$2e2bcd8739ae039","$bIgYU","$igMFf","$38zXy","$3rs4B","$7b1Lp","$6WDy5","$1GRlU","$a1Q65","$cQNHH","$kV13H","$4uhmr","$k4Dr6","$lu1BS","$kvHhM","$2Hhgv","$aeuny","$hgf0k","$1YSJM","$1uQg8","$dSWGo","$556e475fd486b1c9$var$useStyles","theme","content","flexGrow","contentLoading","opacity","pointerEvents","introText","breakpoints","down","marginBottom","spacing","marginTop","footerProgress","width","height","display","flexDirection","justifyContent","whiteSpace","alignItems","footerProgressText","marginRight","color","palette","grey","popoverText","margin","padding","$556e475fd486b1c9$var$WarningIconButton","onClick","skippedQuestions","intl","length","createElement","title","formatMessage","id","defaultMessage","count","api","getQuestionnaireResults","submitQuestion","questions","answers","oldAnswers","context","navigateModal","closeModal","pageName","nextPageName","prevPageName","country","contentId","steps","setSites","customPages","questionnaireConfig","autoScroll","useGlobal","useGlobalScope","subPage","setSubPage","setAnswers","$556e475fd486b1c9$var$mapOldAnswers","fromEntries","map","questionId","answer","answerMetas","_","setAnswerMetaProperty","useCloseConfirmation","loading","setLoading","useState","popoverRef","setPopoverRef","aria","visibleQuestions","$556e475fd486b1c9$var$getVisibleQuestions","ctx","key","type","$556e475fd486b1c9$var$parseAnswer","JSON","parse","filter","q","visibleIf","evalSync","answeredQuestions","$556e475fd486b1c9$var$getAnsweredQuestions","visibleIds","keys","indexOf","$556e475fd486b1c9$var$getSkippedQuestions","answersIds","notAnswered","includes","lastAnswerIndex","reduce","prev","i","Math","max","slice","percentage","skippedQuestionsCallbacks","handleWarningBtnClick","event","currentTarget","setTimeout","forEach","callback","setAnswer","newAnswers","valueDefined","submitMetric","stringify","handleContinueClick","forward","eligible","sites","classes","renderFooter","customPage","Fragment","footerText","buttonText","formIsComplete","liveRegionId","onContinueClick","warning","className","NormalText","values","questionsAnswered","totalQuestions","variant","anchorEl","anchorOrigin","vertical","horizontal","onClose","open","Boolean","transformOrigin","ref","restAria","config","heading","MainHeadingSmaller","align","direction","notEligible","ineligible","onButtonClick","containerRef","setMeta","path","stepperItems","meta","$d4cf784fa9621636$export$2e2bcd8739ae039","$gtn2B","$fsWgf","$1xEYC","$bKF6r","$5beWR","$eyd6T","$80wVS","$ki4tF","$d4cf784fa9621636$var$LinearProgress","forwardRef","props","_props$color","valueBuffer","_props$variant","other","rootProps","inlineStyles","bar1","bar2","undefined","round","transform","concat","console","error","_transform","root","determinate","indeterminate","buffer","query","role","dashed","bar","bar1Indeterminate","bar1Determinate","bar1Buffer","style","bar2Indeterminate","bar2Buffer","propTypes","object","string","oneOf","number","getColor","lighten","darken","backgroundPrimary","primary","main","backgroundSecondary","secondary","position","overflow","colorAdjust","colorPrimary","backgroundColor","colorSecondary","animation","dashedColorPrimary","backgroundImage","backgroundSize","backgroundPosition","dashedColorSecondary","left","bottom","top","transition","barColorPrimary","barColorSecondary","zIndex","right","name","$kFrsj","$8jEx7","$2819ab7350ef6715$var$React","$2819ab7350ef6715$var$_default","$2819ab7350ef6715$var$_createSvgIcon","d","$6rgoo","$74d268cea43d4efb$require$defaultGrammar","$4Y457","elements","$74d268cea43d4efb$var$Jexl","addBinaryOp","operator","precedence","fn","_addGrammarElement","eval","addUnaryOp","weight","Infinity","addTransform","_transforms","addTransforms","hasOwnProperty","compile","expression","exprObj","createExpression","_getLang","getTransform","expr","strs","args","exprStr","acc","str","idx","removeOp","_grammar","obj","grammar","transforms","constructor","bind","assign","_lexer","Jexl","$hQqtV","$5k9w8","$6VpwJ","$5ESAN","$4b01fadf5374043b$var$Expression","lexer","_lang","parser","tokens","tokenize","_exprStr","addTokens","_ast","complete","_eval","Promise","res","promise","resolve","then","ast","_getAst","evaluator","lang","$1o0cD","$cfdbd5baac55d1fd$var$Evaluator","call","evalArray","arr","all","elem","evalMap","result","asts","vals","val","_filterRelative","subject","promises","Array","isArray","evalInst","_context","push","results","_filterStatic","relativeContext","_relContext","$102830973611cf01$export$2477073908a0de26","$102830973611cf01$export$5351bc98fa48e09c","$102830973611cf01$export$12447f42bd680fc8","$102830973611cf01$export$6b8d6da04b395169","$102830973611cf01$export$989167234458594d","$102830973611cf01$export$e175ae9e414693bc","$102830973611cf01$export$4c0cd5cfd47f57a6","$102830973611cf01$export$563a914cafbdc389","$102830973611cf01$export$b832e164a8af4bc7","test","consequent","alternate","relative","from","Error","apply","$3e0633f6a20d9d7b$var$numericRegex","$3e0633f6a20d9d7b$var$identRegex","$3e0633f6a20d9d7b$var$escEscRegex","$3e0633f6a20d9d7b$var$whitespaceRegex","$3e0633f6a20d9d7b$var$preOpRegexElems","$3e0633f6a20d9d7b$var$postOpRegexElems","$3e0633f6a20d9d7b$var$minusNegatesAfter","getElements","regex","_getSplitRegex","split","getTokens","negate","_isWhitespace","raw","_isNegative","_createToken","element","token","_unquote","match","parseFloat","_escapeRegExp","replace","_splitRegex","elemArray","sort","b","RegExp","join","some","quote","escQuoteRegex","substr","$bjg7u","$50abde1022c356b4$require$states","$7zqOM","states","$50abde1022c356b4$var$Parser","addToken","_state","state","startExpr","subHandler","_subParser","_startSubExpression","stopState","_endSubExpression","_parentStop","tokenTypes","typeOpts","handleFunc","handler","toState","_stopMap","_cursor","completable","_tree","isRelative","_relative","_placeAtCursor","node","_setParent","_placeBeforeCursor","_parent","parent","writable","endStates","prefix","stopMap","$83bdf9189b4392c1$export$bf99ae2731a267af","$83bdf9189b4392c1$export$dbbb5fc86f066522","$83bdf9189b4392c1$export$56baa95599a4a114","$83bdf9189b4392c1$export$bf7110d4c5a71b17","$83bdf9189b4392c1$export$94132a0e348806d4","$83bdf9189b4392c1$export$3dea766d36a8935f","$83bdf9189b4392c1$export$c2ab62c7bf24634","$83bdf9189b4392c1$export$c8ec6e1ec9fefcb0","$83bdf9189b4392c1$export$a7e3a597b5fb619","$83bdf9189b4392c1$export$ae43e9a7db1a053e","$83bdf9189b4392c1$export$316663dec3b13f08","$83bdf9189b4392c1$export$64f55baf472b5db","$83bdf9189b4392c1$export$4747a6a8ead63555","$83bdf9189b4392c1$export$b9522f35ae4fd641","$83bdf9189b4392c1$export$193e5ad6f5c47f1","$83bdf9189b4392c1$export$51186ad6e864892a","$83bdf9189b4392c1$export$a47f90b6064508f9","_nextIdentEncapsulate","_nextIdentRelative","_curObjKey","$58309acc7a276ed4$export$b782dad1d219cf26","expectOperand","literal","identifier","unaryOp","openParen","openCurl","objStart","dot","openBracket","arrayStart","expectBinOp","binaryOp","pipe","question","ternaryStart","expectTransform","expectObjKey","objKey","closeCurl","expectKeyValSep","colon","postTransform","postTransformArgs","traverse","closeBracket","subExpression","closeParen","argVal","comma","objVal","arrayVal","ternaryMid","ternaryEnd","$41eb0918ec247604$var$PromiseSync","catch","rejected","_resolve","_reject","resolved","reject","$39dfee8e399da221$export$7a5d735b2ab6389d","floor","pow","in","$fa3da6018673f5b5$export$2e2bcd8739ae039","$bgJ4c","$1TNq4","$jgf7t","$fa3da6018673f5b5$var$line","$fa3da6018673f5b5$var$useStyles","container","paddingLeft","paddingRight","paddingTop","overflowY","scrollBehavior","itemIndex","borderRadius","border","fontSize","fontFamily","typography","completedIndex","skippedIndex","extraLight","item","counterIncrement","paddingBottom","completedAnswer","skippedAnswer","$fa3da6018673f5b5$var$autoScrollConfig","timeout","enabled","$fa3da6018673f5b5$var$LinearStepper","parentRef","rest","useRef","itemRefs","createRef","scrollToIndex","setScrollToIndex","scrollToItem","index","force","current","itemEl","scroll","offsetTop","behavior","scrollToNextItem","clearTimeout","scrollToNextItemInterval","useEffect","splice","findIndex","isCompleted","isSkipped","clearAnswer","disableAutoScroll","autoAcroll","defaultProps","$834425a5b4e7b4d7$export$2e2bcd8739ae039","list","createListEntry","indexer","entries","listLength","refs","$e05b3d61e899cca6$export$2e2bcd8739ae039","$c4XSV","$szrnD","$7lOcN","$Hnq0F","$7lxZo","$e05b3d61e899cca6$var$messages","defineMessages","questionTitle","$e05b3d61e899cca6$var$useStyles","header","up","description","itemId","questionType","items","questionItems","options","questionOptions","AnswerComponent","titleId","SectionHeading","questionText","QuestionText","QuestionDescription","currentAnswer","newValue","$5594dc180007527f$export$276dbf9ac14ca2c6","$5594dc180007527f$export$7c0a16af240a6114","$h5HRh","$5594dc180007527f$var$useStyles","marginBlockStart","marginBlockEnd","children","text","extend","p","SubtleText","$1171216252e77697$export$2e2bcd8739ae039","$iTDkM","$1171216252e77697$var$Eligible","_customPage_text","getText","noIcon","$a1bdd6b4453252d5$export$2e2bcd8739ae039","$jge0r","$a1bdd6b4453252d5$var$NotEligible","userMetrics","track","showButton","$b1136ecc231e5861$export$2e2bcd8739ae039","instance","Constructor","TypeError","$4db05dbc6e75829d$var$_defineProperties","target","descriptor","$4db05dbc6e75829d$export$2e2bcd8739ae039","protoProps","staticProps","prototype","$7f4611e3490ddb8a$export$2e2bcd8739ae039","muiNames","isValidElement","muiName","$2364bcbfab9cd1f8$export$2e2bcd8739ae039","$2364bcbfab9cd1f8$var$ListContext","createContext","displayName","$580497621dffad21$export$2e2bcd8739ae039","$dcECW","$6apHB","$aVtrN","$ge6Tz","$32oIY","$dLwnG","$580497621dffad21$var$useEnhancedEffect","useLayoutEffect","$580497621dffad21$var$ListItem","_props$alignItems","_props$autoFocus","autoFocus","_props$button","button","childrenProp","componentProp","component","_props$ContainerCompo","ContainerComponent","_props$ContainerProps","ContainerProps","ContainerClassName","_props$dense","dense","_props$disabled","disabled","_props$disableGutters","disableGutters","_props$divider","divider","focusVisibleClassName","_props$selected","selected","useContext","childContext","listItemRef","focus","Children","toArray","hasSecondaryAction","handleOwnRef","useCallback","findDOMNode","handleRef","componentProps","gutters","alignItemsFlexStart","secondaryAction","Component","focusVisible","Provider","pop","bool","secondaryActionIndex","child","isRequired","elementType","textDecoration","boxSizing","textAlign","action","borderBottom","backgroundClip","transitions","create","duration","shortest","hover","IconButton","LinearProgress","Popover","WarningIcon","makeStyles","useTheme","classNames","jexl","React","FormattedMessage","useIntl","Footer","LinearStepper","PropTypes","customPagesPropType","usePageAria","Eligible","NotEligible","popoverVisibilityInterval","useStyles","WarningIconButton","parseAnswer","getVisibleQuestions","getAnsweredQuestions","getSkippedQuestions","maxIndex","deepEqual","mapOldAnswers","Questionnaire","useListEntries","LinearStepperItem","line","autoScrollConfig","applyRef","offset","injectIntl","intlPropType","questionPropType","useId","getAnswerComponent","messages","Md","EligibilityPage","customPagePropType"],"version":3,"file":"Questionnaire.be595222.js.map"}